@wopee-io/wopee.wdio 4.0.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/README.md +5 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts +5 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js +48 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts +9 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js +20 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts +9 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js +22 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts +8 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js +39 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts +85 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js +2 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts +8 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js +35 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts +8 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js +27 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts +13 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts.map +1 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js +27 -0
- package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js.map +1 -0
- package/build/adapter/driven/localSaveScreenshot/default.d.ts +14 -0
- package/build/adapter/driven/localSaveScreenshot/default.d.ts.map +1 -0
- package/build/adapter/driven/localSaveScreenshot/default.js +20 -0
- package/build/adapter/driven/localSaveScreenshot/default.js.map +1 -0
- package/build/adapter/driven/localSaveScreenshot/localSaveScreenshot.d.ts +42 -0
- package/build/adapter/driven/localSaveScreenshot/localSaveScreenshot.d.ts.map +1 -0
- package/build/adapter/driven/localSaveScreenshot/localSaveScreenshot.interface.d.ts +43 -0
- package/build/adapter/driven/localSaveScreenshot/localSaveScreenshot.interface.d.ts.map +1 -0
- package/build/adapter/driven/localSaveScreenshot/localSaveScreenshot.interface.js +2 -0
- package/build/adapter/driven/localSaveScreenshot/localSaveScreenshot.interface.js.map +1 -0
- package/build/adapter/driven/localSaveScreenshot/localSaveScreenshot.js +76 -0
- package/build/adapter/driven/localSaveScreenshot/localSaveScreenshot.js.map +1 -0
- package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.d.ts +10 -0
- package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +1 -0
- package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.js +20 -0
- package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.js.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.d.ts +31 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.d.ts.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.js +138 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.js.map +1 -0
- package/build/adapter/wdioConfigAdapter/wdioConfigAdapter.d.ts +10 -0
- package/build/adapter/wdioConfigAdapter/wdioConfigAdapter.d.ts.map +1 -0
- package/build/adapter/wdioConfigAdapter/wdioConfigAdapter.interface.d.ts +28 -0
- package/build/adapter/wdioConfigAdapter/wdioConfigAdapter.interface.d.ts.map +1 -0
- package/build/adapter/wdioConfigAdapter/wdioConfigAdapter.interface.js +12 -0
- package/build/adapter/wdioConfigAdapter/wdioConfigAdapter.interface.js.map +1 -0
- package/build/adapter/wdioConfigAdapter/wdioConfigAdapter.js +57 -0
- package/build/adapter/wdioConfigAdapter/wdioConfigAdapter.js.map +1 -0
- package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.d.ts +10 -0
- package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +1 -0
- package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.js +20 -0
- package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.js.map +1 -0
- package/build/core/domain/valueObjects/elementPosition.interface.d.ts +7 -0
- package/build/core/domain/valueObjects/elementPosition.interface.d.ts.map +1 -0
- package/build/core/domain/valueObjects/elementPosition.interface.js +2 -0
- package/build/core/domain/valueObjects/elementPosition.interface.js.map +1 -0
- package/build/core/domain/valueObjects/index.d.ts +4 -0
- package/build/core/domain/valueObjects/index.d.ts.map +1 -0
- package/build/core/domain/valueObjects/index.js +2 -0
- package/build/core/domain/valueObjects/index.js.map +1 -0
- package/build/core/domain/valueObjects/track.interface.d.ts +22 -0
- package/build/core/domain/valueObjects/track.interface.d.ts.map +1 -0
- package/build/core/domain/valueObjects/track.interface.js +2 -0
- package/build/core/domain/valueObjects/track.interface.js.map +1 -0
- package/build/desktopBrowser/clientSideScript/screenDimensions.interfaces.d.ts +85 -0
- package/build/desktopBrowser/clientSideScript/screenDimensions.interfaces.d.ts.map +1 -0
- package/build/desktopBrowser/clientSideScript/screenDimensions.interfaces.js +2 -0
- package/build/desktopBrowser/clientSideScript/screenDimensions.interfaces.js.map +1 -0
- package/build/desktopBrowser/commands/element.interfaces.d.ts +11 -0
- package/build/desktopBrowser/commands/element.interfaces.d.ts.map +1 -0
- package/build/desktopBrowser/commands/element.interfaces.js +2 -0
- package/build/desktopBrowser/commands/element.interfaces.js.map +1 -0
- package/build/desktopBrowser/commands/fullPage.interfaces.d.ts +11 -0
- package/build/desktopBrowser/commands/fullPage.interfaces.d.ts.map +1 -0
- package/build/desktopBrowser/commands/fullPage.interfaces.js +2 -0
- package/build/desktopBrowser/commands/fullPage.interfaces.js.map +1 -0
- package/build/desktopBrowser/commands/screen.interfaces.d.ts +8 -0
- package/build/desktopBrowser/commands/screen.interfaces.d.ts.map +1 -0
- package/build/desktopBrowser/commands/screen.interfaces.js +2 -0
- package/build/desktopBrowser/commands/screen.interfaces.js.map +1 -0
- package/build/desktopBrowser/commands/trackElement.d.ts +7 -0
- package/build/desktopBrowser/commands/trackElement.d.ts.map +1 -0
- package/build/desktopBrowser/commands/trackElement.js +63 -0
- package/build/desktopBrowser/commands/trackElement.js.map +1 -0
- package/build/desktopBrowser/commands/trackFullPageScreen.d.ts +7 -0
- package/build/desktopBrowser/commands/trackFullPageScreen.d.ts.map +1 -0
- package/build/desktopBrowser/commands/trackFullPageScreen.js +49 -0
- package/build/desktopBrowser/commands/trackFullPageScreen.js.map +1 -0
- package/build/desktopBrowser/commands/trackImage.d.ts +6 -0
- package/build/desktopBrowser/commands/trackImage.d.ts.map +1 -0
- package/build/desktopBrowser/commands/trackImage.interface.d.ts +8 -0
- package/build/desktopBrowser/commands/trackImage.interface.d.ts.map +1 -0
- package/build/desktopBrowser/commands/trackImage.interface.js +2 -0
- package/build/desktopBrowser/commands/trackImage.interface.js.map +1 -0
- package/build/desktopBrowser/commands/trackImage.js +27 -0
- package/build/desktopBrowser/commands/trackImage.js.map +1 -0
- package/build/desktopBrowser/commands/trackScreen.d.ts +7 -0
- package/build/desktopBrowser/commands/trackScreen.d.ts.map +1 -0
- package/build/desktopBrowser/commands/trackScreen.js +52 -0
- package/build/desktopBrowser/commands/trackScreen.js.map +1 -0
- package/build/desktopBrowser/helpers/utils.d.ts +33 -0
- package/build/desktopBrowser/helpers/utils.d.ts.map +1 -0
- package/build/desktopBrowser/helpers/utils.js +77 -0
- package/build/desktopBrowser/helpers/utils.js.map +1 -0
- package/build/desktopBrowser/index.d.ts +8 -0
- package/build/desktopBrowser/index.d.ts.map +1 -0
- package/build/desktopBrowser/index.js +6 -0
- package/build/desktopBrowser/index.js.map +1 -0
- package/build/desktopBrowser/methods/elementPosition.d.ts +23 -0
- package/build/desktopBrowser/methods/elementPosition.d.ts.map +1 -0
- package/build/desktopBrowser/methods/elementPosition.js +26 -0
- package/build/desktopBrowser/methods/elementPosition.js.map +1 -0
- package/build/desktopBrowser/methods/images.d.ts +27 -0
- package/build/desktopBrowser/methods/images.d.ts.map +1 -0
- package/build/desktopBrowser/methods/images.interfaces.d.ts +31 -0
- package/build/desktopBrowser/methods/images.interfaces.d.ts.map +1 -0
- package/build/desktopBrowser/methods/images.interfaces.js +2 -0
- package/build/desktopBrowser/methods/images.interfaces.js.map +1 -0
- package/build/desktopBrowser/methods/images.js +109 -0
- package/build/desktopBrowser/methods/images.js.map +1 -0
- package/build/desktopBrowser/methods/instanceData.interfaces.d.ts +10 -0
- package/build/desktopBrowser/methods/instanceData.interfaces.d.ts.map +1 -0
- package/build/desktopBrowser/methods/instanceData.interfaces.js +2 -0
- package/build/desktopBrowser/methods/instanceData.interfaces.js.map +1 -0
- package/build/desktopBrowser/methods/methods.interface.d.ts +13 -0
- package/build/desktopBrowser/methods/methods.interface.d.ts.map +1 -0
- package/build/desktopBrowser/methods/methods.interface.js +2 -0
- package/build/desktopBrowser/methods/methods.interface.js.map +1 -0
- package/build/desktopBrowser/methods/rectangles.d.ts +23 -0
- package/build/desktopBrowser/methods/rectangles.d.ts.map +1 -0
- package/build/desktopBrowser/methods/rectangles.interfaces.d.ts +23 -0
- package/build/desktopBrowser/methods/rectangles.interfaces.d.ts.map +1 -0
- package/build/desktopBrowser/methods/rectangles.interfaces.js +2 -0
- package/build/desktopBrowser/methods/rectangles.interfaces.js.map +1 -0
- package/build/desktopBrowser/methods/rectangles.js +51 -0
- package/build/desktopBrowser/methods/rectangles.js.map +1 -0
- package/build/desktopBrowser/methods/screenshots.d.ts +29 -0
- package/build/desktopBrowser/methods/screenshots.d.ts.map +1 -0
- package/build/desktopBrowser/methods/screenshots.interfaces.d.ts +27 -0
- package/build/desktopBrowser/methods/screenshots.interfaces.d.ts.map +1 -0
- package/build/desktopBrowser/methods/screenshots.interfaces.js +2 -0
- package/build/desktopBrowser/methods/screenshots.interfaces.js.map +1 -0
- package/build/desktopBrowser/methods/screenshots.js +91 -0
- package/build/desktopBrowser/methods/screenshots.js.map +1 -0
- package/build/domain/model/afterScreenshotOptions.interface.d.ts +11 -0
- package/build/domain/model/afterScreenshotOptions.interface.d.ts.map +1 -0
- package/build/domain/model/afterScreenshotOptions.interface.js +2 -0
- package/build/domain/model/afterScreenshotOptions.interface.js.map +1 -0
- package/build/domain/model/beforeScreenshotOptions.interface.d.ts +7 -0
- package/build/domain/model/beforeScreenshotOptions.interface.d.ts.map +1 -0
- package/build/domain/model/beforeScreenshotOptions.interface.js +2 -0
- package/build/domain/model/beforeScreenshotOptions.interface.js.map +1 -0
- package/build/domain/model/config.interface.d.ts +19 -0
- package/build/domain/model/config.interface.d.ts.map +1 -0
- package/build/domain/model/config.interface.js +2 -0
- package/build/domain/model/config.interface.js.map +1 -0
- package/build/domain/model/constants.d.ts +9 -0
- package/build/domain/model/constants.d.ts.map +1 -0
- package/build/domain/model/constants.js +9 -0
- package/build/domain/model/constants.js.map +1 -0
- package/build/domain/model/croppingOptions.interface.d.ts +8 -0
- package/build/domain/model/croppingOptions.interface.d.ts.map +1 -0
- package/build/domain/model/croppingOptions.interface.js +12 -0
- package/build/domain/model/croppingOptions.interface.js.map +1 -0
- package/build/domain/model/instances.interface.d.ts +16 -0
- package/build/domain/model/instances.interface.d.ts.map +1 -0
- package/build/domain/model/instances.interface.js +2 -0
- package/build/domain/model/instances.interface.js.map +1 -0
- package/build/domain/model/instancesOptions.interface.d.ts +7 -0
- package/build/domain/model/instancesOptions.interface.d.ts.map +1 -0
- package/build/domain/model/instancesOptions.interface.js +10 -0
- package/build/domain/model/instancesOptions.interface.js.map +1 -0
- package/build/domain/model/methods.interface.d.ts +17 -0
- package/build/domain/model/methods.interface.d.ts.map +1 -0
- package/build/domain/model/methods.interface.js +2 -0
- package/build/domain/model/methods.interface.js.map +1 -0
- package/build/domain/model/permanentStorageResult.interface.d.ts +14 -0
- package/build/domain/model/permanentStorageResult.interface.d.ts.map +1 -0
- package/build/domain/model/permanentStorageResult.interface.js +2 -0
- package/build/domain/model/permanentStorageResult.interface.js.map +1 -0
- package/build/domain/model/saveBase64ImageOptions.interface.d.ts +54 -0
- package/build/domain/model/saveBase64ImageOptions.interface.d.ts.map +1 -0
- package/build/domain/model/saveBase64ImageOptions.interface.js +2 -0
- package/build/domain/model/saveBase64ImageOptions.interface.js.map +1 -0
- package/build/domain/model/screenshotOutput.interface.d.ts +16 -0
- package/build/domain/model/screenshotOutput.interface.d.ts.map +1 -0
- package/build/domain/model/screenshotOutput.interface.js +2 -0
- package/build/domain/model/screenshotOutput.interface.js.map +1 -0
- package/build/domain/model/screenshotSize.interface.d.ts +14 -0
- package/build/domain/model/screenshotSize.interface.d.ts.map +1 -0
- package/build/domain/model/screenshotSize.interface.js +2 -0
- package/build/domain/model/screenshotSize.interface.js.map +1 -0
- package/build/domain/model/screenshotValidationPayload.interface.d.ts +47 -0
- package/build/domain/model/screenshotValidationPayload.interface.d.ts.map +1 -0
- package/build/domain/model/screenshotValidationPayload.interface.js +2 -0
- package/build/domain/model/screenshotValidationPayload.interface.js.map +1 -0
- package/build/domain/model/screenshotValidationResult.interface.d.ts +23 -0
- package/build/domain/model/screenshotValidationResult.interface.d.ts.map +1 -0
- package/build/domain/model/screenshotValidationResult.interface.js +11 -0
- package/build/domain/model/screenshotValidationResult.interface.js.map +1 -0
- package/build/domain/model/service.interface.d.ts +33 -0
- package/build/domain/model/service.interface.d.ts.map +1 -0
- package/build/domain/model/service.interface.js +2 -0
- package/build/domain/model/service.interface.js.map +1 -0
- package/build/domain/model/trackImage.interface.d.ts +17 -0
- package/build/domain/model/trackImage.interface.d.ts.map +1 -0
- package/build/domain/model/trackImage.interface.js +2 -0
- package/build/domain/model/trackImage.interface.js.map +1 -0
- package/build/domain/service/afterScreenshot.d.ts +11 -0
- package/build/domain/service/afterScreenshot.d.ts.map +1 -0
- package/build/domain/service/afterScreenshot.js +15 -0
- package/build/domain/service/afterScreenshot.js.map +1 -0
- package/build/domain/service/beforeScreenshot.d.ts +12 -0
- package/build/domain/service/beforeScreenshot.d.ts.map +1 -0
- package/build/domain/service/beforeScreenshot.js +41 -0
- package/build/domain/service/beforeScreenshot.js.map +1 -0
- package/build/domain/service/webdriverService.d.ts +19 -0
- package/build/domain/service/webdriverService.d.ts.map +1 -0
- package/build/domain/service/webdriverService.js +98 -0
- package/build/domain/service/webdriverService.js.map +1 -0
- package/build/domain/service/wopeeService.d.ts +37 -0
- package/build/domain/service/wopeeService.d.ts.map +1 -0
- package/build/domain/service/wopeeService.js +83 -0
- package/build/domain/service/wopeeService.js.map +1 -0
- package/build/index.d.ts +59 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +4 -0
- package/build/index.js.map +1 -0
- package/build/port/clientSideOperationPort/clientSideOperationPort.d.ts +12 -0
- package/build/port/clientSideOperationPort/clientSideOperationPort.d.ts.map +1 -0
- package/build/port/clientSideOperationPort/clientSideOperationPort.js +3 -0
- package/build/port/clientSideOperationPort/clientSideOperationPort.js.map +1 -0
- package/build/port/driven/configDrivingPort/configDrivingPort.d.ts +9 -0
- package/build/port/driven/configDrivingPort/configDrivingPort.d.ts.map +1 -0
- package/build/port/driven/configDrivingPort/configDrivingPort.js +15 -0
- package/build/port/driven/configDrivingPort/configDrivingPort.js.map +1 -0
- package/build/port/driven/configDrivingPort/configDrivingPortDefaults.d.ts +6 -0
- package/build/port/driven/configDrivingPort/configDrivingPortDefaults.d.ts.map +1 -0
- package/build/port/driven/configDrivingPort/configDrivingPortDefaults.js +36 -0
- package/build/port/driven/configDrivingPort/configDrivingPortDefaults.js.map +1 -0
- package/build/port/driven/permanentStoragePort.d.ts +15 -0
- package/build/port/driven/permanentStoragePort.d.ts.map +1 -0
- package/build/port/driven/permanentStoragePort.js +6 -0
- package/build/port/driven/permanentStoragePort.js.map +1 -0
- package/build/port/driven/screenshotValidationPort.d.ts +28 -0
- package/build/port/driven/screenshotValidationPort.d.ts.map +1 -0
- package/build/port/driven/screenshotValidationPort.js +6 -0
- package/build/port/driven/screenshotValidationPort.js.map +1 -0
- package/build/types.d.ts +1 -0
- package/build/types.d.ts.map +1 -0
- package/build/types.js +2 -0
- package/build/types.js.map +1 -0
- package/build/utils/versionMetadata.d.ts +10 -0
- package/build/utils/versionMetadata.d.ts.map +1 -0
- package/build/utils/versionMetadata.js +26 -0
- package/build/utils/versionMetadata.js.map +1 -0
- package/build/utils/wopeeError.d.ts +4 -0
- package/build/utils/wopeeError.d.ts.map +1 -0
- package/build/utils/wopeeError.js +8 -0
- package/build/utils/wopeeError.js.map +1 -0
- package/build/utils.d.ts +34 -0
- package/build/utils.d.ts.map +1 -0
- package/build/utils.js +57 -0
- package/build/utils.js.map +1 -0
- package/docs/commands.md +37 -0
- package/docs/configuration.md +241 -0
- package/docs/mobile_native.md +31 -0
- package/node_modules/@autonomous-testing/sdk/.commitlintrc.json +3 -0
- package/node_modules/@autonomous-testing/sdk/.eslintignore +2 -0
- package/node_modules/@autonomous-testing/sdk/.eslintrc +21 -0
- package/node_modules/@autonomous-testing/sdk/.github/actions/npm_clean_install/action.yaml +35 -0
- package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +137 -0
- package/node_modules/@autonomous-testing/sdk/.prettierignore +3 -0
- package/node_modules/@autonomous-testing/sdk/.prettierrc +12 -0
- package/node_modules/@autonomous-testing/sdk/README.md +57 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/index.d.ts +2 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/index.js +18 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/imageTrackingResult.interface.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/imageTrackingResult.interface.js +3 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/index.js +3 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/trackPayload.interface.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/trackPayload.interface.js +3 -0
- package/node_modules/@autonomous-testing/sdk/build/core/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/core/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/imageTracker.d.ts +6 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/imageTracker.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/index.js +8 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/logger.d.ts +7 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/logger.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/index.js +20 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.d.ts +39 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.default.d.ts +16 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.default.js +31 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.interface.d.ts +93 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.interface.js +14 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.js +153 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterQueries.d.ts +5 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterQueries.js +102 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterUtils.d.ts +9 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterUtils.js +26 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/index.d.ts +7 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/index.js +8 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.d.ts +36 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.js +49 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.js +20 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.d.ts +31 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.js +34 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.interface.d.ts +51 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.interface.js +24 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.js +13 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/consoleLoggerOptions.interface.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/consoleLoggerOptions.interface.js +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +8 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.js +24 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/index.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.js +12 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.js +21 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.js +39 -0
- package/node_modules/@autonomous-testing/sdk/package.json +53 -0
- package/node_modules/asynckit/LICENSE +21 -0
- package/node_modules/asynckit/README.md +233 -0
- package/node_modules/asynckit/bench.js +76 -0
- package/node_modules/asynckit/index.js +6 -0
- package/node_modules/asynckit/lib/abort.js +29 -0
- package/node_modules/asynckit/lib/async.js +34 -0
- package/node_modules/asynckit/lib/defer.js +26 -0
- package/node_modules/asynckit/lib/iterate.js +75 -0
- package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules/asynckit/lib/state.js +37 -0
- package/node_modules/asynckit/lib/streamify.js +141 -0
- package/node_modules/asynckit/lib/terminator.js +29 -0
- package/node_modules/asynckit/package.json +63 -0
- package/node_modules/asynckit/parallel.js +43 -0
- package/node_modules/asynckit/serial.js +17 -0
- package/node_modules/asynckit/serialOrdered.js +75 -0
- package/node_modules/asynckit/stream.js +21 -0
- package/node_modules/axios/CHANGELOG.md +952 -0
- package/node_modules/axios/LICENSE +7 -0
- package/node_modules/axios/MIGRATION_GUIDE.md +3 -0
- package/node_modules/axios/README.md +1695 -0
- package/node_modules/axios/SECURITY.md +6 -0
- package/node_modules/axios/dist/axios.js +4172 -0
- package/node_modules/axios/dist/axios.js.map +1 -0
- package/node_modules/axios/dist/axios.min.js +2 -0
- package/node_modules/axios/dist/axios.min.js.map +1 -0
- package/node_modules/axios/dist/browser/axios.cjs +3638 -0
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -0
- package/node_modules/axios/dist/esm/axios.js +3661 -0
- package/node_modules/axios/dist/esm/axios.js.map +1 -0
- package/node_modules/axios/dist/esm/axios.min.js +2 -0
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -0
- package/node_modules/axios/dist/node/axios.cjs +4705 -0
- package/node_modules/axios/dist/node/axios.cjs.map +1 -0
- package/node_modules/axios/index.d.cts +545 -0
- package/node_modules/axios/index.d.ts +562 -0
- package/node_modules/axios/index.js +43 -0
- package/node_modules/axios/lib/adapters/README.md +37 -0
- package/node_modules/axios/lib/adapters/adapters.js +79 -0
- package/node_modules/axios/lib/adapters/fetch.js +227 -0
- package/node_modules/axios/lib/adapters/http.js +685 -0
- package/node_modules/axios/lib/adapters/xhr.js +190 -0
- package/node_modules/axios/lib/axios.js +89 -0
- package/node_modules/axios/lib/cancel/CancelToken.js +121 -0
- package/node_modules/axios/lib/cancel/CanceledError.js +25 -0
- package/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/axios/lib/core/Axios.js +228 -0
- package/node_modules/axios/lib/core/AxiosError.js +100 -0
- package/node_modules/axios/lib/core/AxiosHeaders.js +302 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +71 -0
- package/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/axios/lib/core/buildFullPath.js +21 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +81 -0
- package/node_modules/axios/lib/core/mergeConfig.js +106 -0
- package/node_modules/axios/lib/core/settle.js +27 -0
- package/node_modules/axios/lib/core/transformData.js +28 -0
- package/node_modules/axios/lib/defaults/index.js +161 -0
- package/node_modules/axios/lib/defaults/transitional.js +7 -0
- package/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/node_modules/axios/lib/env/data.js +1 -0
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +192 -0
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
- package/node_modules/axios/lib/helpers/bind.js +7 -0
- package/node_modules/axios/lib/helpers/buildURL.js +63 -0
- package/node_modules/axios/lib/helpers/callbackify.js +16 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +15 -0
- package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
- package/node_modules/axios/lib/helpers/cookies.js +42 -0
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +26 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +95 -0
- package/node_modules/axios/lib/helpers/formDataToStream.js +111 -0
- package/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +15 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +67 -0
- package/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +55 -0
- package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +32 -0
- package/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
- package/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/axios/lib/helpers/spread.js +28 -0
- package/node_modules/axios/lib/helpers/throttle.js +35 -0
- package/node_modules/axios/lib/helpers/toFormData.js +219 -0
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
- package/node_modules/axios/lib/helpers/trackStream.js +55 -0
- package/node_modules/axios/lib/helpers/validator.js +91 -0
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/browser/index.js +13 -0
- package/node_modules/axios/lib/platform/common/utils.js +50 -0
- package/node_modules/axios/lib/platform/index.js +7 -0
- package/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/node/index.js +12 -0
- package/node_modules/axios/lib/utils.js +728 -0
- package/node_modules/axios/package.json +219 -0
- package/node_modules/combined-stream/License +19 -0
- package/node_modules/combined-stream/Readme.md +138 -0
- package/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/node_modules/combined-stream/package.json +25 -0
- package/node_modules/delayed-stream/.npmignore +1 -0
- package/node_modules/delayed-stream/License +19 -0
- package/node_modules/delayed-stream/Makefile +7 -0
- package/node_modules/delayed-stream/Readme.md +141 -0
- package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/node_modules/delayed-stream/package.json +27 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +155 -0
- package/node_modules/follow-redirects/debug.js +15 -0
- package/node_modules/follow-redirects/http.js +1 -0
- package/node_modules/follow-redirects/https.js +1 -0
- package/node_modules/follow-redirects/index.js +672 -0
- package/node_modules/follow-redirects/package.json +58 -0
- package/node_modules/form-data/License +19 -0
- package/node_modules/form-data/README.md.bak +358 -0
- package/node_modules/form-data/Readme.md +358 -0
- package/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/form-data/lib/browser.js +2 -0
- package/node_modules/form-data/lib/form_data.js +501 -0
- package/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/form-data/package.json +68 -0
- package/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +60 -0
- package/node_modules/mime-types/HISTORY.md +397 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +113 -0
- package/node_modules/mime-types/index.js +188 -0
- package/node_modules/mime-types/package.json +44 -0
- package/node_modules/proxy-from-env/.eslintrc +29 -0
- package/node_modules/proxy-from-env/.travis.yml +10 -0
- package/node_modules/proxy-from-env/LICENSE +20 -0
- package/node_modules/proxy-from-env/README.md +131 -0
- package/node_modules/proxy-from-env/index.js +108 -0
- package/node_modules/proxy-from-env/package.json +34 -0
- package/node_modules/proxy-from-env/test.js +483 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +2876 -0
- package/node_modules/zod/index.d.ts +2 -0
- package/node_modules/zod/lib/ZodError.d.ts +164 -0
- package/node_modules/zod/lib/ZodError.js +137 -0
- package/node_modules/zod/lib/__tests__/Mocker.d.ts +17 -0
- package/node_modules/zod/lib/__tests__/Mocker.js +57 -0
- package/node_modules/zod/lib/benchmarks/datetime.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/datetime.js +54 -0
- package/node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/discriminatedUnion.js +79 -0
- package/node_modules/zod/lib/benchmarks/index.d.ts +1 -0
- package/node_modules/zod/lib/benchmarks/index.js +59 -0
- package/node_modules/zod/lib/benchmarks/ipv4.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/ipv4.js +54 -0
- package/node_modules/zod/lib/benchmarks/object.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/object.js +70 -0
- package/node_modules/zod/lib/benchmarks/primitives.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/primitives.js +170 -0
- package/node_modules/zod/lib/benchmarks/realworld.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/realworld.js +56 -0
- package/node_modules/zod/lib/benchmarks/string.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/string.js +55 -0
- package/node_modules/zod/lib/benchmarks/union.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/union.js +79 -0
- package/node_modules/zod/lib/errors.d.ts +5 -0
- package/node_modules/zod/lib/errors.js +17 -0
- package/node_modules/zod/lib/external.d.ts +6 -0
- package/node_modules/zod/lib/external.js +18 -0
- package/node_modules/zod/lib/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/lib/helpers/enumUtil.js +2 -0
- package/node_modules/zod/lib/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/lib/helpers/errorUtil.js +8 -0
- package/node_modules/zod/lib/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/lib/helpers/parseUtil.js +125 -0
- package/node_modules/zod/lib/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/lib/helpers/partialUtil.js +2 -0
- package/node_modules/zod/lib/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/lib/helpers/typeAliases.js +2 -0
- package/node_modules/zod/lib/helpers/util.d.ts +82 -0
- package/node_modules/zod/lib/helpers/util.js +142 -0
- package/node_modules/zod/lib/index.d.ts +4 -0
- package/node_modules/zod/lib/index.js +29 -0
- package/node_modules/zod/lib/index.mjs +4236 -0
- package/node_modules/zod/lib/index.umd.js +4351 -0
- package/node_modules/zod/lib/locales/en.d.ts +3 -0
- package/node_modules/zod/lib/locales/en.js +129 -0
- package/node_modules/zod/lib/types.d.ts +1127 -0
- package/node_modules/zod/lib/types.js +3677 -0
- package/node_modules/zod/package.json +119 -0
- package/package.json +79 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "axios",
|
|
3
|
+
"version": "1.7.2",
|
|
4
|
+
"description": "Promise based HTTP client for the browser and node.js",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": {
|
|
9
|
+
"require": "./index.d.cts",
|
|
10
|
+
"default": "./index.d.ts"
|
|
11
|
+
},
|
|
12
|
+
"browser": {
|
|
13
|
+
"require": "./dist/browser/axios.cjs",
|
|
14
|
+
"default": "./index.js"
|
|
15
|
+
},
|
|
16
|
+
"default": {
|
|
17
|
+
"require": "./dist/node/axios.cjs",
|
|
18
|
+
"default": "./index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"./lib/adapters/http.js": "./lib/adapters/http.js",
|
|
22
|
+
"./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
|
|
23
|
+
"./unsafe/*": "./lib/*",
|
|
24
|
+
"./unsafe/core/settle.js": "./lib/core/settle.js",
|
|
25
|
+
"./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
|
|
26
|
+
"./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js",
|
|
27
|
+
"./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js",
|
|
28
|
+
"./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js",
|
|
29
|
+
"./unsafe/adapters/http.js": "./lib/adapters/http.js",
|
|
30
|
+
"./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
|
|
31
|
+
"./unsafe/utils.js": "./lib/utils.js",
|
|
32
|
+
"./package.json": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
"type": "module",
|
|
35
|
+
"types": "index.d.ts",
|
|
36
|
+
"scripts": {
|
|
37
|
+
"test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports",
|
|
38
|
+
"test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
|
|
39
|
+
"test:dtslint": "dtslint --localTs node_modules/typescript/lib",
|
|
40
|
+
"test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
|
|
41
|
+
"test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
|
|
42
|
+
"test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run",
|
|
43
|
+
"test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run",
|
|
44
|
+
"test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs",
|
|
45
|
+
"test:build:version": "node ./bin/check-build-version.js",
|
|
46
|
+
"start": "node ./sandbox/server.js",
|
|
47
|
+
"preversion": "gulp version",
|
|
48
|
+
"version": "npm run build && git add dist && git add package.json",
|
|
49
|
+
"prepublishOnly": "npm run test:build:version",
|
|
50
|
+
"postpublish": "git push && git push --tags",
|
|
51
|
+
"build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
|
|
52
|
+
"examples": "node ./examples/server.js",
|
|
53
|
+
"coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
54
|
+
"fix": "eslint --fix lib/**/*.js",
|
|
55
|
+
"prepare": "husky install && npm run prepare:hooks",
|
|
56
|
+
"prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"",
|
|
57
|
+
"release:dry": "release-it --dry-run --no-npm",
|
|
58
|
+
"release:info": "release-it --release-version",
|
|
59
|
+
"release:beta:no-npm": "release-it --preRelease=beta --no-npm",
|
|
60
|
+
"release:beta": "release-it --preRelease=beta",
|
|
61
|
+
"release:no-npm": "release-it --no-npm",
|
|
62
|
+
"release:changelog:fix": "node ./bin/injectContributorsList.js && git add CHANGELOG.md",
|
|
63
|
+
"release": "release-it"
|
|
64
|
+
},
|
|
65
|
+
"repository": {
|
|
66
|
+
"type": "git",
|
|
67
|
+
"url": "https://github.com/axios/axios.git"
|
|
68
|
+
},
|
|
69
|
+
"keywords": [
|
|
70
|
+
"xhr",
|
|
71
|
+
"http",
|
|
72
|
+
"ajax",
|
|
73
|
+
"promise",
|
|
74
|
+
"node"
|
|
75
|
+
],
|
|
76
|
+
"author": "Matt Zabriskie",
|
|
77
|
+
"license": "MIT",
|
|
78
|
+
"bugs": {
|
|
79
|
+
"url": "https://github.com/axios/axios/issues"
|
|
80
|
+
},
|
|
81
|
+
"homepage": "https://axios-http.com",
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@babel/core": "^7.23.9",
|
|
84
|
+
"@babel/preset-env": "^7.23.9",
|
|
85
|
+
"@commitlint/cli": "^17.8.1",
|
|
86
|
+
"@commitlint/config-conventional": "^17.8.1",
|
|
87
|
+
"@release-it/conventional-changelog": "^5.1.1",
|
|
88
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
89
|
+
"@rollup/plugin-commonjs": "^15.1.0",
|
|
90
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
91
|
+
"@rollup/plugin-multi-entry": "^4.1.0",
|
|
92
|
+
"@rollup/plugin-node-resolve": "^9.0.0",
|
|
93
|
+
"abortcontroller-polyfill": "^1.7.5",
|
|
94
|
+
"auto-changelog": "^2.4.0",
|
|
95
|
+
"body-parser": "^1.20.2",
|
|
96
|
+
"chalk": "^5.3.0",
|
|
97
|
+
"coveralls": "^3.1.1",
|
|
98
|
+
"cross-env": "^7.0.3",
|
|
99
|
+
"dev-null": "^0.1.1",
|
|
100
|
+
"dtslint": "^4.2.1",
|
|
101
|
+
"es6-promise": "^4.2.8",
|
|
102
|
+
"eslint": "^8.56.0",
|
|
103
|
+
"express": "^4.18.2",
|
|
104
|
+
"formdata-node": "^5.0.1",
|
|
105
|
+
"formidable": "^2.1.2",
|
|
106
|
+
"fs-extra": "^10.1.0",
|
|
107
|
+
"get-stream": "^3.0.0",
|
|
108
|
+
"gulp": "^4.0.2",
|
|
109
|
+
"gzip-size": "^7.0.0",
|
|
110
|
+
"handlebars": "^4.7.8",
|
|
111
|
+
"husky": "^8.0.3",
|
|
112
|
+
"istanbul-instrumenter-loader": "^3.0.1",
|
|
113
|
+
"jasmine-core": "^2.99.1",
|
|
114
|
+
"karma": "^6.3.17",
|
|
115
|
+
"karma-chrome-launcher": "^3.2.0",
|
|
116
|
+
"karma-firefox-launcher": "^2.1.2",
|
|
117
|
+
"karma-jasmine": "^1.1.2",
|
|
118
|
+
"karma-jasmine-ajax": "^0.1.13",
|
|
119
|
+
"karma-rollup-preprocessor": "^7.0.8",
|
|
120
|
+
"karma-safari-launcher": "^1.0.0",
|
|
121
|
+
"karma-sauce-launcher": "^4.3.6",
|
|
122
|
+
"karma-sinon": "^1.0.5",
|
|
123
|
+
"karma-sourcemap-loader": "^0.3.8",
|
|
124
|
+
"memoizee": "^0.4.15",
|
|
125
|
+
"minimist": "^1.2.8",
|
|
126
|
+
"mocha": "^10.3.0",
|
|
127
|
+
"multer": "^1.4.4",
|
|
128
|
+
"pretty-bytes": "^6.1.1",
|
|
129
|
+
"release-it": "^15.11.0",
|
|
130
|
+
"rollup": "^2.79.1",
|
|
131
|
+
"rollup-plugin-auto-external": "^2.0.0",
|
|
132
|
+
"rollup-plugin-bundle-size": "^1.0.3",
|
|
133
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
134
|
+
"sinon": "^4.5.0",
|
|
135
|
+
"stream-throttle": "^0.1.3",
|
|
136
|
+
"string-replace-async": "^3.0.2",
|
|
137
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
138
|
+
"typescript": "^4.9.5",
|
|
139
|
+
"@rollup/plugin-alias": "^5.1.0"
|
|
140
|
+
},
|
|
141
|
+
"browser": {
|
|
142
|
+
"./lib/adapters/http.js": "./lib/helpers/null.js",
|
|
143
|
+
"./lib/platform/node/index.js": "./lib/platform/browser/index.js",
|
|
144
|
+
"./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
|
|
145
|
+
},
|
|
146
|
+
"jsdelivr": "dist/axios.min.js",
|
|
147
|
+
"unpkg": "dist/axios.min.js",
|
|
148
|
+
"typings": "./index.d.ts",
|
|
149
|
+
"dependencies": {
|
|
150
|
+
"follow-redirects": "^1.15.6",
|
|
151
|
+
"form-data": "^4.0.0",
|
|
152
|
+
"proxy-from-env": "^1.1.0"
|
|
153
|
+
},
|
|
154
|
+
"bundlesize": [
|
|
155
|
+
{
|
|
156
|
+
"path": "./dist/axios.min.js",
|
|
157
|
+
"threshold": "5kB"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"contributors": [
|
|
161
|
+
"Matt Zabriskie (https://github.com/mzabriskie)",
|
|
162
|
+
"Nick Uraltsev (https://github.com/nickuraltsev)",
|
|
163
|
+
"Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
|
|
164
|
+
"Jay (https://github.com/jasonsaayman)",
|
|
165
|
+
"Emily Morehouse (https://github.com/emilyemorehouse)",
|
|
166
|
+
"Rubén Norte (https://github.com/rubennorte)",
|
|
167
|
+
"Justin Beckwith (https://github.com/JustinBeckwith)",
|
|
168
|
+
"Martti Laine (https://github.com/codeclown)",
|
|
169
|
+
"Xianming Zhong (https://github.com/chinesedfan)",
|
|
170
|
+
"Rikki Gibson (https://github.com/RikkiGibson)",
|
|
171
|
+
"Remco Haszing (https://github.com/remcohaszing)",
|
|
172
|
+
"Yasu Flores (https://github.com/yasuf)",
|
|
173
|
+
"Ben Carp (https://github.com/carpben)"
|
|
174
|
+
],
|
|
175
|
+
"sideEffects": false,
|
|
176
|
+
"release-it": {
|
|
177
|
+
"git": {
|
|
178
|
+
"commitMessage": "chore(release): v${version}",
|
|
179
|
+
"push": true,
|
|
180
|
+
"commit": true,
|
|
181
|
+
"tag": true,
|
|
182
|
+
"requireCommits": false,
|
|
183
|
+
"requireCleanWorkingDir": false
|
|
184
|
+
},
|
|
185
|
+
"github": {
|
|
186
|
+
"release": true,
|
|
187
|
+
"draft": true
|
|
188
|
+
},
|
|
189
|
+
"npm": {
|
|
190
|
+
"publish": false,
|
|
191
|
+
"ignoreVersion": false
|
|
192
|
+
},
|
|
193
|
+
"plugins": {
|
|
194
|
+
"@release-it/conventional-changelog": {
|
|
195
|
+
"preset": "angular",
|
|
196
|
+
"infile": "CHANGELOG.md",
|
|
197
|
+
"header": "# Changelog"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"hooks": {
|
|
201
|
+
"before:init": "npm test",
|
|
202
|
+
"after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version && git add ./dist && git add ./package-lock.json",
|
|
203
|
+
"before:release": "npm run release:changelog:fix",
|
|
204
|
+
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"commitlint": {
|
|
208
|
+
"rules": {
|
|
209
|
+
"header-max-length": [
|
|
210
|
+
2,
|
|
211
|
+
"always",
|
|
212
|
+
130
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
"extends": [
|
|
216
|
+
"@commitlint/config-conventional"
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2011 Debuggable Limited <felix@debuggable.com>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# combined-stream
|
|
2
|
+
|
|
3
|
+
A stream that emits multiple other streams one after another.
|
|
4
|
+
|
|
5
|
+
**NB** Currently `combined-stream` works with streams version 1 only. There is ongoing effort to switch this library to streams version 2. Any help is welcome. :) Meanwhile you can explore other libraries that provide streams2 support with more or less compatibility with `combined-stream`.
|
|
6
|
+
|
|
7
|
+
- [combined-stream2](https://www.npmjs.com/package/combined-stream2): A drop-in streams2-compatible replacement for the combined-stream module.
|
|
8
|
+
|
|
9
|
+
- [multistream](https://www.npmjs.com/package/multistream): A stream that emits multiple other streams one after another.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
``` bash
|
|
14
|
+
npm install combined-stream
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Here is a simple example that shows how you can use combined-stream to combine
|
|
20
|
+
two files into one:
|
|
21
|
+
|
|
22
|
+
``` javascript
|
|
23
|
+
var CombinedStream = require('combined-stream');
|
|
24
|
+
var fs = require('fs');
|
|
25
|
+
|
|
26
|
+
var combinedStream = CombinedStream.create();
|
|
27
|
+
combinedStream.append(fs.createReadStream('file1.txt'));
|
|
28
|
+
combinedStream.append(fs.createReadStream('file2.txt'));
|
|
29
|
+
|
|
30
|
+
combinedStream.pipe(fs.createWriteStream('combined.txt'));
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
While the example above works great, it will pause all source streams until
|
|
34
|
+
they are needed. If you don't want that to happen, you can set `pauseStreams`
|
|
35
|
+
to `false`:
|
|
36
|
+
|
|
37
|
+
``` javascript
|
|
38
|
+
var CombinedStream = require('combined-stream');
|
|
39
|
+
var fs = require('fs');
|
|
40
|
+
|
|
41
|
+
var combinedStream = CombinedStream.create({pauseStreams: false});
|
|
42
|
+
combinedStream.append(fs.createReadStream('file1.txt'));
|
|
43
|
+
combinedStream.append(fs.createReadStream('file2.txt'));
|
|
44
|
+
|
|
45
|
+
combinedStream.pipe(fs.createWriteStream('combined.txt'));
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
However, what if you don't have all the source streams yet, or you don't want
|
|
49
|
+
to allocate the resources (file descriptors, memory, etc.) for them right away?
|
|
50
|
+
Well, in that case you can simply provide a callback that supplies the stream
|
|
51
|
+
by calling a `next()` function:
|
|
52
|
+
|
|
53
|
+
``` javascript
|
|
54
|
+
var CombinedStream = require('combined-stream');
|
|
55
|
+
var fs = require('fs');
|
|
56
|
+
|
|
57
|
+
var combinedStream = CombinedStream.create();
|
|
58
|
+
combinedStream.append(function(next) {
|
|
59
|
+
next(fs.createReadStream('file1.txt'));
|
|
60
|
+
});
|
|
61
|
+
combinedStream.append(function(next) {
|
|
62
|
+
next(fs.createReadStream('file2.txt'));
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
combinedStream.pipe(fs.createWriteStream('combined.txt'));
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## API
|
|
69
|
+
|
|
70
|
+
### CombinedStream.create([options])
|
|
71
|
+
|
|
72
|
+
Returns a new combined stream object. Available options are:
|
|
73
|
+
|
|
74
|
+
* `maxDataSize`
|
|
75
|
+
* `pauseStreams`
|
|
76
|
+
|
|
77
|
+
The effect of those options is described below.
|
|
78
|
+
|
|
79
|
+
### combinedStream.pauseStreams = `true`
|
|
80
|
+
|
|
81
|
+
Whether to apply back pressure to the underlaying streams. If set to `false`,
|
|
82
|
+
the underlaying streams will never be paused. If set to `true`, the
|
|
83
|
+
underlaying streams will be paused right after being appended, as well as when
|
|
84
|
+
`delayedStream.pipe()` wants to throttle.
|
|
85
|
+
|
|
86
|
+
### combinedStream.maxDataSize = `2 * 1024 * 1024`
|
|
87
|
+
|
|
88
|
+
The maximum amount of bytes (or characters) to buffer for all source streams.
|
|
89
|
+
If this value is exceeded, `combinedStream` emits an `'error'` event.
|
|
90
|
+
|
|
91
|
+
### combinedStream.dataSize = `0`
|
|
92
|
+
|
|
93
|
+
The amount of bytes (or characters) currently buffered by `combinedStream`.
|
|
94
|
+
|
|
95
|
+
### combinedStream.append(stream)
|
|
96
|
+
|
|
97
|
+
Appends the given `stream` to the combinedStream object. If `pauseStreams` is
|
|
98
|
+
set to `true, this stream will also be paused right away.
|
|
99
|
+
|
|
100
|
+
`streams` can also be a function that takes one parameter called `next`. `next`
|
|
101
|
+
is a function that must be invoked in order to provide the `next` stream, see
|
|
102
|
+
example above.
|
|
103
|
+
|
|
104
|
+
Regardless of how the `stream` is appended, combined-stream always attaches an
|
|
105
|
+
`'error'` listener to it, so you don't have to do that manually.
|
|
106
|
+
|
|
107
|
+
Special case: `stream` can also be a String or Buffer.
|
|
108
|
+
|
|
109
|
+
### combinedStream.write(data)
|
|
110
|
+
|
|
111
|
+
You should not call this, `combinedStream` takes care of piping the appended
|
|
112
|
+
streams into itself for you.
|
|
113
|
+
|
|
114
|
+
### combinedStream.resume()
|
|
115
|
+
|
|
116
|
+
Causes `combinedStream` to start drain the streams it manages. The function is
|
|
117
|
+
idempotent, and also emits a `'resume'` event each time which usually goes to
|
|
118
|
+
the stream that is currently being drained.
|
|
119
|
+
|
|
120
|
+
### combinedStream.pause();
|
|
121
|
+
|
|
122
|
+
If `combinedStream.pauseStreams` is set to `false`, this does nothing.
|
|
123
|
+
Otherwise a `'pause'` event is emitted, this goes to the stream that is
|
|
124
|
+
currently being drained, so you can use it to apply back pressure.
|
|
125
|
+
|
|
126
|
+
### combinedStream.end();
|
|
127
|
+
|
|
128
|
+
Sets `combinedStream.writable` to false, emits an `'end'` event, and removes
|
|
129
|
+
all streams from the queue.
|
|
130
|
+
|
|
131
|
+
### combinedStream.destroy();
|
|
132
|
+
|
|
133
|
+
Same as `combinedStream.end()`, except it emits a `'close'` event instead of
|
|
134
|
+
`'end'`.
|
|
135
|
+
|
|
136
|
+
## License
|
|
137
|
+
|
|
138
|
+
combined-stream is licensed under the MIT license.
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
var util = require('util');
|
|
2
|
+
var Stream = require('stream').Stream;
|
|
3
|
+
var DelayedStream = require('delayed-stream');
|
|
4
|
+
|
|
5
|
+
module.exports = CombinedStream;
|
|
6
|
+
function CombinedStream() {
|
|
7
|
+
this.writable = false;
|
|
8
|
+
this.readable = true;
|
|
9
|
+
this.dataSize = 0;
|
|
10
|
+
this.maxDataSize = 2 * 1024 * 1024;
|
|
11
|
+
this.pauseStreams = true;
|
|
12
|
+
|
|
13
|
+
this._released = false;
|
|
14
|
+
this._streams = [];
|
|
15
|
+
this._currentStream = null;
|
|
16
|
+
this._insideLoop = false;
|
|
17
|
+
this._pendingNext = false;
|
|
18
|
+
}
|
|
19
|
+
util.inherits(CombinedStream, Stream);
|
|
20
|
+
|
|
21
|
+
CombinedStream.create = function(options) {
|
|
22
|
+
var combinedStream = new this();
|
|
23
|
+
|
|
24
|
+
options = options || {};
|
|
25
|
+
for (var option in options) {
|
|
26
|
+
combinedStream[option] = options[option];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return combinedStream;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
CombinedStream.isStreamLike = function(stream) {
|
|
33
|
+
return (typeof stream !== 'function')
|
|
34
|
+
&& (typeof stream !== 'string')
|
|
35
|
+
&& (typeof stream !== 'boolean')
|
|
36
|
+
&& (typeof stream !== 'number')
|
|
37
|
+
&& (!Buffer.isBuffer(stream));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
CombinedStream.prototype.append = function(stream) {
|
|
41
|
+
var isStreamLike = CombinedStream.isStreamLike(stream);
|
|
42
|
+
|
|
43
|
+
if (isStreamLike) {
|
|
44
|
+
if (!(stream instanceof DelayedStream)) {
|
|
45
|
+
var newStream = DelayedStream.create(stream, {
|
|
46
|
+
maxDataSize: Infinity,
|
|
47
|
+
pauseStream: this.pauseStreams,
|
|
48
|
+
});
|
|
49
|
+
stream.on('data', this._checkDataSize.bind(this));
|
|
50
|
+
stream = newStream;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
this._handleErrors(stream);
|
|
54
|
+
|
|
55
|
+
if (this.pauseStreams) {
|
|
56
|
+
stream.pause();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
this._streams.push(stream);
|
|
61
|
+
return this;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
CombinedStream.prototype.pipe = function(dest, options) {
|
|
65
|
+
Stream.prototype.pipe.call(this, dest, options);
|
|
66
|
+
this.resume();
|
|
67
|
+
return dest;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
CombinedStream.prototype._getNext = function() {
|
|
71
|
+
this._currentStream = null;
|
|
72
|
+
|
|
73
|
+
if (this._insideLoop) {
|
|
74
|
+
this._pendingNext = true;
|
|
75
|
+
return; // defer call
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
this._insideLoop = true;
|
|
79
|
+
try {
|
|
80
|
+
do {
|
|
81
|
+
this._pendingNext = false;
|
|
82
|
+
this._realGetNext();
|
|
83
|
+
} while (this._pendingNext);
|
|
84
|
+
} finally {
|
|
85
|
+
this._insideLoop = false;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
CombinedStream.prototype._realGetNext = function() {
|
|
90
|
+
var stream = this._streams.shift();
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
if (typeof stream == 'undefined') {
|
|
94
|
+
this.end();
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (typeof stream !== 'function') {
|
|
99
|
+
this._pipeNext(stream);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
var getStream = stream;
|
|
104
|
+
getStream(function(stream) {
|
|
105
|
+
var isStreamLike = CombinedStream.isStreamLike(stream);
|
|
106
|
+
if (isStreamLike) {
|
|
107
|
+
stream.on('data', this._checkDataSize.bind(this));
|
|
108
|
+
this._handleErrors(stream);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
this._pipeNext(stream);
|
|
112
|
+
}.bind(this));
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
CombinedStream.prototype._pipeNext = function(stream) {
|
|
116
|
+
this._currentStream = stream;
|
|
117
|
+
|
|
118
|
+
var isStreamLike = CombinedStream.isStreamLike(stream);
|
|
119
|
+
if (isStreamLike) {
|
|
120
|
+
stream.on('end', this._getNext.bind(this));
|
|
121
|
+
stream.pipe(this, {end: false});
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
var value = stream;
|
|
126
|
+
this.write(value);
|
|
127
|
+
this._getNext();
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
CombinedStream.prototype._handleErrors = function(stream) {
|
|
131
|
+
var self = this;
|
|
132
|
+
stream.on('error', function(err) {
|
|
133
|
+
self._emitError(err);
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
CombinedStream.prototype.write = function(data) {
|
|
138
|
+
this.emit('data', data);
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
CombinedStream.prototype.pause = function() {
|
|
142
|
+
if (!this.pauseStreams) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause();
|
|
147
|
+
this.emit('pause');
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
CombinedStream.prototype.resume = function() {
|
|
151
|
+
if (!this._released) {
|
|
152
|
+
this._released = true;
|
|
153
|
+
this.writable = true;
|
|
154
|
+
this._getNext();
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume();
|
|
158
|
+
this.emit('resume');
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
CombinedStream.prototype.end = function() {
|
|
162
|
+
this._reset();
|
|
163
|
+
this.emit('end');
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
CombinedStream.prototype.destroy = function() {
|
|
167
|
+
this._reset();
|
|
168
|
+
this.emit('close');
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
CombinedStream.prototype._reset = function() {
|
|
172
|
+
this.writable = false;
|
|
173
|
+
this._streams = [];
|
|
174
|
+
this._currentStream = null;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
CombinedStream.prototype._checkDataSize = function() {
|
|
178
|
+
this._updateDataSize();
|
|
179
|
+
if (this.dataSize <= this.maxDataSize) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
var message =
|
|
184
|
+
'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.';
|
|
185
|
+
this._emitError(new Error(message));
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
CombinedStream.prototype._updateDataSize = function() {
|
|
189
|
+
this.dataSize = 0;
|
|
190
|
+
|
|
191
|
+
var self = this;
|
|
192
|
+
this._streams.forEach(function(stream) {
|
|
193
|
+
if (!stream.dataSize) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
self.dataSize += stream.dataSize;
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
if (this._currentStream && this._currentStream.dataSize) {
|
|
201
|
+
this.dataSize += this._currentStream.dataSize;
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
CombinedStream.prototype._emitError = function(err) {
|
|
206
|
+
this._reset();
|
|
207
|
+
this.emit('error', err);
|
|
208
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Felix Geisendörfer <felix@debuggable.com> (http://debuggable.com/)",
|
|
3
|
+
"name": "combined-stream",
|
|
4
|
+
"description": "A stream that emits multiple other streams one after another.",
|
|
5
|
+
"version": "1.0.8",
|
|
6
|
+
"homepage": "https://github.com/felixge/node-combined-stream",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git://github.com/felixge/node-combined-stream.git"
|
|
10
|
+
},
|
|
11
|
+
"main": "./lib/combined_stream",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "node test/run.js"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">= 0.8"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"delayed-stream": "~1.0.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"far": "~0.0.7"
|
|
23
|
+
},
|
|
24
|
+
"license": "MIT"
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
test
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2011 Debuggable Limited <felix@debuggable.com>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|