slnodejs 6.1.1087 → 6.1.1090
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 +10 -9
- package/lib/cli.js +1 -1
- package/lib/preload.js +171 -171
- package/package.json +13 -3
- package/tsOutputs/api.js +8 -8
- package/tsOutputs/build-scanner/ast-utils.js +3 -3
- package/tsOutputs/build-scanner/ast-utils.js.map +1 -1
- package/tsOutputs/build-scanner/build-diff-process.js +99 -47
- package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
- package/tsOutputs/build-scanner/cia.js +17 -9
- package/tsOutputs/build-scanner/cia.js.map +1 -1
- package/tsOutputs/build-scanner/current-agent-instance.js +3 -3
- package/tsOutputs/build-scanner/current-agent-instance.js.map +1 -1
- package/tsOutputs/build-scanner/default-values-resolver.js +6 -7
- package/tsOutputs/build-scanner/default-values-resolver.js.map +1 -1
- package/tsOutputs/build-scanner/diagnostic/build-scan-diagnosis.js +9 -7
- package/tsOutputs/build-scanner/diagnostic/build-scan-diagnosis.js.map +1 -1
- package/tsOutputs/build-scanner/diagnostic/contracts.js.map +1 -1
- package/tsOutputs/build-scanner/diagnostic/none-diagnosis.js.map +1 -1
- package/tsOutputs/build-scanner/entities-mapper.js +5 -4
- package/tsOutputs/build-scanner/entities-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/file-and-folder-utils.js +23 -11
- package/tsOutputs/build-scanner/file-and-folder-utils.js.map +1 -1
- package/tsOutputs/build-scanner/file-system/actual-file.js +9 -9
- package/tsOutputs/build-scanner/file-system/actual-file.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js +135 -91
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/content-instrumenter.js +5 -4
- package/tsOutputs/build-scanner/instrumentation/content-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/files-instrumenter.js +13 -6
- package/tsOutputs/build-scanner/instrumentation/files-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/instrumentation-utils.js +6 -4
- package/tsOutputs/build-scanner/instrumentation/instrumentation-utils.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/instrumented-file-size-reducer.js +68 -43
- package/tsOutputs/build-scanner/instrumentation/instrumented-file-size-reducer.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/contracts.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/instrumenter-spawn.js +4 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/instrumenter-spawn.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/process-pool.js +10 -5
- package/tsOutputs/build-scanner/instrumentation/process-pool/process-pool.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/split-by-transform-stream.js +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/split-by-transform-stream.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/stop-by-condition-transform-stream.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/copy-as-is-strategy.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/js-instrumnetation-strategy.js +8 -3
- package/tsOutputs/build-scanner/instrumentation/strategies/js-instrumnetation-strategy.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/markup-instrumnetation-strategy.js +5 -3
- package/tsOutputs/build-scanner/instrumentation/strategies/markup-instrumnetation-strategy.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/strategy-utils.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/toggle-based-js-instrumentation-strategy.d.ts +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/toggle-based-js-instrumentation-strategy.js +3 -3
- package/tsOutputs/build-scanner/instrumentation/strategies/toggle-based-markup-instrumentation-strategy.d.ts +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/toggle-based-markup-instrumentation-strategy.js +6 -6
- package/tsOutputs/build-scanner/instrumentation/strategies/toggle-based-markup-instrumentation-strategy.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/ast-node-types.js +11 -11
- package/tsOutputs/build-scanner/js_diff/ast-node-types.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/branch-key.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/branch-signature.js +22 -15
- package/tsOutputs/build-scanner/js_diff/branch-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/create-node-key.js +1 -1
- package/tsOutputs/build-scanner/js_diff/create-node-key.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js +1 -1
- package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/file-signature.js +31 -26
- package/tsOutputs/build-scanner/js_diff/file-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/files-mapping.js +83 -62
- package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/generated-file-signature.js +24 -16
- package/tsOutputs/build-scanner/js_diff/generated-file-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/globalMethodIndexer.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/guess-method-location.js +39 -25
- package/tsOutputs/build-scanner/js_diff/guess-method-location.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/guess-method-name.js +23 -20
- package/tsOutputs/build-scanner/js_diff/guess-method-name.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/method-id-by-position-resolver.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/method-signature.js +19 -9
- package/tsOutputs/build-scanner/js_diff/method-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js +13 -8
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/source-data-enricher.js +13 -9
- package/tsOutputs/build-scanner/js_diff/source-data-enricher.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/source-files-notifier.js +13 -8
- package/tsOutputs/build-scanner/js_diff/source-files-notifier.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/source-position-mapper.js +6 -2
- package/tsOutputs/build-scanner/js_diff/source-position-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js +26 -19
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/file-element-utils.js +8 -3
- package/tsOutputs/build-scanner/mappings/file-element-utils.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/file-enricher.js +47 -17
- package/tsOutputs/build-scanner/mappings/file-enricher.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/file-path-fixer.js +15 -7
- package/tsOutputs/build-scanner/mappings/file-path-fixer.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/files-container.js +5 -5
- package/tsOutputs/build-scanner/mappings/files-data-container.js +6 -4
- package/tsOutputs/build-scanner/mappings/files-data-container.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/source-path-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/markup-files-parser.js +10 -10
- package/tsOutputs/build-scanner/markup-files-parser.js.map +1 -1
- package/tsOutputs/build-scanner/scm/parse-log.js +3 -1
- package/tsOutputs/build-scanner/scm/parse-log.js.map +1 -1
- package/tsOutputs/build-scanner/scm/scm-file-fixer.js.map +1 -1
- package/tsOutputs/build-scanner/scm/scm-files-container.js.map +1 -1
- package/tsOutputs/build-scanner/source-map-eraser/factory.js.map +1 -1
- package/tsOutputs/build-scanner/source-map-eraser/interface.js.map +1 -1
- package/tsOutputs/build-scanner/source-map-eraser/none-source-maps-eraser.js.map +1 -1
- package/tsOutputs/build-scanner/source-map-eraser/skip-copy-source-maps.js.map +1 -1
- package/tsOutputs/build-scanner/source-map-eraser/source-maps-eraser.d.ts +2 -2
- package/tsOutputs/build-scanner/source-map-eraser/source-maps-eraser.js +1 -1
- package/tsOutputs/build-scanner/utils.js +21 -15
- package/tsOutputs/build-scanner/utils.js.map +1 -1
- package/tsOutputs/cli-parse/agent-instance-data.js.map +1 -1
- package/tsOutputs/cli-parse/agent-time-synchronizer.js.map +1 -1
- package/tsOutputs/cli-parse/child-process-wrapper.js +4 -2
- package/tsOutputs/cli-parse/child-process-wrapper.js.map +1 -1
- package/tsOutputs/cli-parse/cli.js +130 -129
- package/tsOutputs/cli-parse/cli.js.map +1 -1
- package/tsOutputs/cli-parse/constants/constants.js +1 -1
- package/tsOutputs/cli-parse/constants/constants.js.map +1 -1
- package/tsOutputs/cli-parse/constants/third-parties.js +1 -1
- package/tsOutputs/cli-parse/constants/third-parties.js.map +1 -1
- package/tsOutputs/cli-parse/contracts.js.map +1 -1
- package/tsOutputs/cli-parse/custom-commander.js +7 -3
- package/tsOutputs/cli-parse/custom-commander.js.map +1 -1
- package/tsOutputs/cli-parse/executors/base-executor.js +18 -11
- package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-args-dto.js +1 -1
- package/tsOutputs/cli-parse/executors/build-args-dto.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-end-executor.js +4 -4
- package/tsOutputs/cli-parse/executors/build-end-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-executor.js +117 -51
- package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/config-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/base-data.js +2 -2
- package/tsOutputs/cli-parse/executors/dry-run/base-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js +9 -8
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js +31 -15
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-validation.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js +3 -3
- package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js +8 -6
- package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js.map +1 -1
- package/tsOutputs/cli-parse/executors/end-execution-executor.js +2 -2
- package/tsOutputs/cli-parse/executors/end-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/instrument-args-dto.js +1 -1
- package/tsOutputs/cli-parse/executors/instrument-args-dto.js.map +1 -1
- package/tsOutputs/cli-parse/executors/instrument-executor.js +43 -19
- package/tsOutputs/cli-parse/executors/instrument-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js +3 -3
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/pr-config-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/pr-config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/start-execution-executor.js +2 -2
- package/tsOutputs/cli-parse/executors/start-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-executions-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-listener-executor.js +3 -1
- package/tsOutputs/cli-parse/executors/test-listener-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/upload-report-executor.js +4 -4
- package/tsOutputs/cli-parse/executors/upload-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/preloader.js +10 -5
- package/tsOutputs/cli-parse/preloader.js.map +1 -1
- package/tsOutputs/cli-parse/utils.js +3 -3
- package/tsOutputs/cli-parse/utils.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-contracts.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-controller.js +28 -10
- package/tsOutputs/common/agent-events/agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-guard.js +2 -1
- package/tsOutputs/common/agent-events/agent-events-guard.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-instance-info-builder.js +13 -7
- package/tsOutputs/common/agent-events/agent-instance-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-start-info-builder.js +2 -3
- package/tsOutputs/common/agent-events/agent-start-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/browser-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/ci-info-builder.js +2 -2
- package/tsOutputs/common/agent-events/ci-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/cockpit-notifier.js +1 -1
- package/tsOutputs/common/agent-events/cockpit-notifier.js.map +1 -1
- package/tsOutputs/common/agent-events/dry-run-agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/machine-info-builder.js +5 -3
- package/tsOutputs/common/agent-events/machine-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/no-op-agent-events-controller.js +9 -18
- package/tsOutputs/common/agent-events/no-op-agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/nodejs-env-info-builder.js +2 -1
- package/tsOutputs/common/agent-events/nodejs-env-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/sensitive-data-filter.js +2 -2
- package/tsOutputs/common/agent-events/sensitive-data-filter.js.map +1 -1
- package/tsOutputs/common/agent-instance-data.js +5 -1
- package/tsOutputs/common/agent-instance-data.js.map +1 -1
- package/tsOutputs/common/cli-progress.js.map +1 -1
- package/tsOutputs/common/config-process/config-loader.js +13 -6
- package/tsOutputs/common/config-process/config-loader.js.map +1 -1
- package/tsOutputs/common/config-process/config-system.js +19 -6
- package/tsOutputs/common/config-process/config-system.js.map +1 -1
- package/tsOutputs/common/config-process/config.d.ts +2 -2
- package/tsOutputs/common/config-process/config.js +2 -2
- package/tsOutputs/common/config-process/config.js.map +1 -1
- package/tsOutputs/common/config-process/index.js +6 -4
- package/tsOutputs/common/config-process/index.js.map +1 -1
- package/tsOutputs/common/config-process/no-op-config-process.js.map +1 -1
- package/tsOutputs/common/constants/constants.js.map +1 -1
- package/tsOutputs/common/constants/sl-env-vars.js +93 -31
- package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
- package/tsOutputs/common/contracts.d.ts +1 -1
- package/tsOutputs/common/contracts.js.map +1 -1
- package/tsOutputs/common/coverage-elements/contracts.js.map +1 -1
- package/tsOutputs/common/coverage-elements/file-element.js +24 -12
- package/tsOutputs/common/coverage-elements/file-element.js.map +1 -1
- package/tsOutputs/common/coverage-elements/istanbul-unique-id-converter.js +19 -17
- package/tsOutputs/common/coverage-elements/istanbul-unique-id-converter.js.map +1 -1
- package/tsOutputs/common/coverage-elements/new-id-resolver.js.map +1 -1
- package/tsOutputs/common/coverage-elements/original-module-loader.js +24 -13
- package/tsOutputs/common/coverage-elements/original-module-loader.js.map +1 -1
- package/tsOutputs/common/coverage-elements/unique-id-converter.js +19 -15
- package/tsOutputs/common/coverage-elements/unique-id-converter.js.map +1 -1
- package/tsOutputs/common/environment-data-service.js.map +1 -1
- package/tsOutputs/common/events-process/events-contracts.js.map +1 -1
- package/tsOutputs/common/events-process/events-creator.js +1 -1
- package/tsOutputs/common/events-process/events-creator.js.map +1 -1
- package/tsOutputs/common/events-process/index.js +10 -4
- package/tsOutputs/common/events-process/index.js.map +1 -1
- package/tsOutputs/common/footprints-process/collection-interval.js +1 -1
- package/tsOutputs/common/footprints-process/collection-interval.js.map +1 -1
- package/tsOutputs/common/footprints-process/footprints-service-proxy.js +4 -1
- package/tsOutputs/common/footprints-process/footprints-service-proxy.js.map +1 -1
- package/tsOutputs/common/footprints-process/index.js +35 -20
- package/tsOutputs/common/footprints-process/index.js.map +1 -1
- package/tsOutputs/common/footprints-process/istanbul-to-footprints.js +26 -20
- package/tsOutputs/common/footprints-process/istanbul-to-footprints.js.map +1 -1
- package/tsOutputs/common/footprints-process/production-footprints-handler.js +30 -17
- package/tsOutputs/common/footprints-process/production-footprints-handler.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js +5 -1
- package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/buffer-size-helper.js +12 -10
- package/tsOutputs/common/footprints-process-v6/buffer-size-helper.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/collector-footprints-buffer.js +1 -1
- package/tsOutputs/common/footprints-process-v6/collector-footprints-buffer.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/collector-footprints-process.js +1 -1
- package/tsOutputs/common/footprints-process-v6/collector-footprints-process.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/collector-remote-footprints-process.js +1 -2
- package/tsOutputs/common/footprints-process-v6/collector-remote-footprints-process.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/footprints-buffer.js +12 -7
- package/tsOutputs/common/footprints-process-v6/footprints-buffer.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/footprints-data-utils.d.ts +1 -1
- package/tsOutputs/common/footprints-process-v6/footprints-data-utils.spec.js +38 -38
- package/tsOutputs/common/footprints-process-v6/hits-collector.d.ts +1 -0
- package/tsOutputs/common/footprints-process-v6/hits-collector.js +42 -19
- package/tsOutputs/common/footprints-process-v6/hits-collector.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/hits-converter.js +47 -22
- package/tsOutputs/common/footprints-process-v6/hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/index.js +12 -7
- package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/location-formatter.js +4 -2
- package/tsOutputs/common/footprints-process-v6/location-formatter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/relative-path-resolver.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js +1 -2
- package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-hits-collector.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/source-map-data.js +1 -1
- package/tsOutputs/common/footprints-process-v6/source-map-data.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy-with-default-client.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy.js +26 -10
- package/tsOutputs/common/http/backend-proxy.js.map +1 -1
- package/tsOutputs/common/http/contracts.js.map +1 -1
- package/tsOutputs/common/http/dry-run-proxy.js +8 -16
- package/tsOutputs/common/http/dry-run-proxy.js.map +1 -1
- package/tsOutputs/common/http/entities-mapper.js.map +1 -1
- package/tsOutputs/common/http/http-client.js +25 -12
- package/tsOutputs/common/http/http-client.js.map +1 -1
- package/tsOutputs/common/http/http-verb.js.map +1 -1
- package/tsOutputs/common/http/sl-routes.js +111 -33
- package/tsOutputs/common/http/sl-routes.js.map +1 -1
- package/tsOutputs/common/ignored-files-handler.js +13 -5
- package/tsOutputs/common/ignored-files-handler.js.map +1 -1
- package/tsOutputs/common/index.d.ts +1 -1
- package/tsOutputs/common/logger.js +21 -14
- package/tsOutputs/common/logger.js.map +1 -1
- package/tsOutputs/common/messages-formatter.js.map +1 -1
- package/tsOutputs/common/metrics-process/index.js.map +1 -1
- package/tsOutputs/common/metrics-process/metrics-store-factory.js.map +1 -1
- package/tsOutputs/common/metrics-process/metrics-store.js +3 -3
- package/tsOutputs/common/metrics-process/metrics-store.js.map +1 -1
- package/tsOutputs/common/no-op-state-tracker.js.map +1 -1
- package/tsOutputs/common/queue.js.map +1 -1
- package/tsOutputs/common/scm/git-cloner.js +1 -1
- package/tsOutputs/common/scm/git-cloner.js.map +1 -1
- package/tsOutputs/common/scm/git-format-builder.js +2 -2
- package/tsOutputs/common/scm/git-format-builder.js.map +1 -1
- package/tsOutputs/common/scm/git-log-parser.js +2 -2
- package/tsOutputs/common/scm/git-log-parser.js.map +1 -1
- package/tsOutputs/common/scm/git.js +43 -15
- package/tsOutputs/common/scm/git.js.map +1 -1
- package/tsOutputs/common/scm/none.js +3 -4
- package/tsOutputs/common/scm/none.js.map +1 -1
- package/tsOutputs/common/scm/scm-factory.js.map +1 -1
- package/tsOutputs/common/short-name-to-file-mapper.js.map +1 -1
- package/tsOutputs/common/sl-mapper-tokenizer.js +12 -8
- package/tsOutputs/common/sl-mapper-tokenizer.js.map +1 -1
- package/tsOutputs/common/source-map-config-dto.js +1 -1
- package/tsOutputs/common/source-map-config-dto.js.map +1 -1
- package/tsOutputs/common/source-map-handler.js +7 -4
- package/tsOutputs/common/source-map-handler.js.map +1 -1
- package/tsOutputs/common/source-map-reader.js +14 -14
- package/tsOutputs/common/source-map-reader.js.map +1 -1
- package/tsOutputs/common/source-maps-utils.js +2 -1
- package/tsOutputs/common/source-maps-utils.js.map +1 -1
- package/tsOutputs/common/state-tracker-fpv6.js +5 -4
- package/tsOutputs/common/state-tracker-fpv6.js.map +1 -1
- package/tsOutputs/common/state-tracker.js +18 -7
- package/tsOutputs/common/state-tracker.js.map +1 -1
- package/tsOutputs/common/system-date.js.map +1 -1
- package/tsOutputs/common/utils/abstract-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/build-session-data-builder.js +5 -5
- package/tsOutputs/common/utils/build-session-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/cookie.js +7 -4
- package/tsOutputs/common/utils/cookie.js.map +1 -1
- package/tsOutputs/common/utils/data-cleansing-utils.js +4 -3
- package/tsOutputs/common/utils/data-cleansing-utils.js.map +1 -1
- package/tsOutputs/common/utils/dependency-utils.js +1 -1
- package/tsOutputs/common/utils/dependency-utils.js.map +1 -1
- package/tsOutputs/common/utils/env-var-parsing.js.map +1 -1
- package/tsOutputs/common/utils/files-utils.js.map +1 -1
- package/tsOutputs/common/utils/process-utils.js +3 -2
- package/tsOutputs/common/utils/process-utils.js.map +1 -1
- package/tsOutputs/common/utils/tail-file-reader.js +5 -2
- package/tsOutputs/common/utils/tail-file-reader.js.map +1 -1
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/test-utils/mock-server-utils/contracts.js.map +1 -1
- package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js +3 -3
- package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js.map +1 -1
- package/tsOutputs/common/utils/timer-utils.js +3 -1
- package/tsOutputs/common/utils/timer-utils.js.map +1 -1
- package/tsOutputs/common/utils/token-data-builder.js +4 -4
- package/tsOutputs/common/utils/token-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/token-utils.js +2 -2
- package/tsOutputs/common/utils/validation-utils.js +1 -1
- package/tsOutputs/common/utils/validation-utils.js.map +1 -1
- package/tsOutputs/common/v8-utils.js +2 -1
- package/tsOutputs/common/v8-utils.js.map +1 -1
- package/tsOutputs/common/watchdog.js.map +1 -1
- package/tsOutputs/mocha-reporter/constants.js +7 -7
- package/tsOutputs/mocha-reporter/constants.js.map +1 -1
- package/tsOutputs/mocha-reporter/end-execution.js +3 -3
- package/tsOutputs/mocha-reporter/end-execution.js.map +1 -1
- package/tsOutputs/mocha-reporter/index.js +39 -22
- package/tsOutputs/mocha-reporter/index.js.map +1 -1
- package/tsOutputs/mocha-reporter/otel-agent.js.map +1 -1
- package/tsOutputs/test-listener/SlNodeJsProxy.js +14 -9
- package/tsOutputs/test-listener/SlNodeJsProxy.js.map +1 -1
- package/tsOutputs/test-listener/UserMessageHelper.js.map +1 -1
- package/tsOutputs/test-listener/agent-loader.js +15 -8
- package/tsOutputs/test-listener/agent-loader.js.map +1 -1
- package/tsOutputs/test-listener/agent.js +15 -10
- package/tsOutputs/test-listener/agent.js.map +1 -1
- package/tsOutputs/test-listener/api.js +1 -2
- package/tsOutputs/test-listener/api.js.map +1 -1
- package/tsOutputs/test-listener/base-proxy.js +14 -10
- package/tsOutputs/test-listener/base-proxy.js.map +1 -1
- package/tsOutputs/test-listener/bootstrap.js.map +1 -1
- package/tsOutputs/test-listener/child-process-patcher.js +6 -6
- package/tsOutputs/test-listener/child-process-patcher.js.map +1 -1
- package/tsOutputs/test-listener/coloring/http-coloring.js +38 -27
- package/tsOutputs/test-listener/coloring/http-coloring.js.map +1 -1
- package/tsOutputs/test-listener/coloring/listening-port.js +4 -3
- package/tsOutputs/test-listener/coloring/listening-port.js.map +1 -1
- package/tsOutputs/test-listener/config-process/config-loader.js +5 -3
- package/tsOutputs/test-listener/config-process/config-loader.js.map +1 -1
- package/tsOutputs/test-listener/entities/BasicConfigurationData.js.map +1 -1
- package/tsOutputs/test-listener/entities/build-scanner/ConfigModeData.js.map +1 -1
- package/tsOutputs/test-listener/entities/build-scanner/ScanModeData.js.map +1 -1
- package/tsOutputs/test-listener/execution-process/entities-mapper.js +7 -5
- package/tsOutputs/test-listener/execution-process/entities-mapper.js.map +1 -1
- package/tsOutputs/test-listener/execution-process/execution-service-proxy.js +30 -17
- package/tsOutputs/test-listener/execution-process/execution-service-proxy.js.map +1 -1
- package/tsOutputs/test-listener/execution-process/index.js +2 -2
- package/tsOutputs/test-listener/execution-process/index.js.map +1 -1
- package/tsOutputs/test-listener/factory.js +180 -50
- package/tsOutputs/test-listener/factory.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js +18 -15
- package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js.map +1 -1
- package/tsOutputs/test-listener/integrations/SlGulp.js +7 -6
- package/tsOutputs/test-listener/integrations/SlGulp.js.map +1 -1
- package/tsOutputs/test-listener/logs-process/index.js +5 -3
- package/tsOutputs/test-listener/logs-process/index.js.map +1 -1
- package/tsOutputs/test-listener/logs-process/log-service-proxy.js.map +1 -1
- package/tsOutputs/test-listener/nyc-report-executor-fpv6.js +1 -1
- package/tsOutputs/test-listener/nyc-report-executor-fpv6.js.map +1 -1
- package/tsOutputs/test-listener/nyc-report-executor.js +3 -3
- package/tsOutputs/test-listener/nyc-report-executor.js.map +1 -1
- package/tsOutputs/test-listener/otel-agent-loader.js +13 -10
- package/tsOutputs/test-listener/otel-agent-loader.js.map +1 -1
- package/tsOutputs/test-listener/remote-agent.js +37 -9
- package/tsOutputs/test-listener/remote-agent.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/AppNameResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/ArgumentResolver.js +23 -6
- package/tsOutputs/test-listener/resolvers/ArgumentResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/BuildResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/BuildSessionIdFileResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/BuildSessionIdResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/ProxyResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/TokenResolver.js.map +1 -1
- package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js +12 -4
- package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js.map +1 -1
- package/tsOutputs/test-listener/test-recommendation-handler.js +20 -11
- package/tsOutputs/test-listener/test-recommendation-handler.js.map +1 -1
- package/tsOutputs/test-listener/upload-report-handler.js +14 -5
- package/tsOutputs/test-listener/upload-report-handler.js.map +1 -1
- package/tsOutputs/test-listener/uuid.js +2 -2
- package/tsOutputs/test-listener/uuid.js.map +1 -1
- package/tsOutputs/test-listener/wait-for-multiple-callbacks.js.map +1 -1
|
@@ -32,7 +32,8 @@ class TestRecommendationHandler {
|
|
|
32
32
|
this.tiaDisabled = !!configParams.tiaDisabled;
|
|
33
33
|
this.testGroupId = configParams.testGroupId;
|
|
34
34
|
if (configParams.testRecommendationSleepSeconds >= 1) {
|
|
35
|
-
this.SLEEP_BETWEEN_RETRIES =
|
|
35
|
+
this.SLEEP_BETWEEN_RETRIES =
|
|
36
|
+
configParams.testRecommendationSleepSeconds * 1000;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
getExcludedTests() {
|
|
@@ -46,7 +47,8 @@ class TestRecommendationHandler {
|
|
|
46
47
|
const testsRecommendationResponse = yield this.getTestRecommendation();
|
|
47
48
|
this.logger.info(`Tests recommendation response: ${JSON.stringify(testsRecommendationResponse)}`);
|
|
48
49
|
if (!this.isSelectionEnabled(testsRecommendationResponse)) {
|
|
49
|
-
if (this.eventsProcess.testSelectionStatus ===
|
|
50
|
+
if (this.eventsProcess.testSelectionStatus ===
|
|
51
|
+
events_contracts_1.TestSelectionStatus.RECOMMENDATIONS_NOT_AVAILABLE) {
|
|
50
52
|
this.logger.info(`
|
|
51
53
|
**************************************************************************
|
|
52
54
|
* Test recommendation request timed out. Recommendations will be ignored *
|
|
@@ -56,8 +58,9 @@ class TestRecommendationHandler {
|
|
|
56
58
|
}
|
|
57
59
|
const excludedTests = testsRecommendationResponse.excludedTests;
|
|
58
60
|
this.logExcludedTests(excludedTests);
|
|
59
|
-
excludedTests.forEach(test => excludedTestsMap[test.name] = true);
|
|
60
|
-
this.eventsProcess.testSelectionStatus =
|
|
61
|
+
excludedTests.forEach((test) => (excludedTestsMap[test.name] = true));
|
|
62
|
+
this.eventsProcess.testSelectionStatus =
|
|
63
|
+
events_contracts_1.TestSelectionStatus.RECOMMENDED_TESTS;
|
|
61
64
|
}
|
|
62
65
|
catch (e) {
|
|
63
66
|
message = `Error while trying to get excluded tests list, run all tests as fallback. Error: ${e}`;
|
|
@@ -69,7 +72,7 @@ class TestRecommendationHandler {
|
|
|
69
72
|
});
|
|
70
73
|
}
|
|
71
74
|
getExcludedTestsAsync(callback) {
|
|
72
|
-
this.getExcludedTests().then(excludedTests => callback(excludedTests));
|
|
75
|
+
this.getExcludedTests().then((excludedTests) => callback(excludedTests));
|
|
73
76
|
}
|
|
74
77
|
getTestRecommendation() {
|
|
75
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -79,7 +82,8 @@ class TestRecommendationHandler {
|
|
|
79
82
|
response = yield this.backendProxy.getTestsRecommendation(this.buildSessionId, this.testStage, this.testGroupId);
|
|
80
83
|
retries++;
|
|
81
84
|
this.logger.debug(`Test recommendation status is ${response.recommendationSetStatus} retry ${retries}/${this.MAX_RETRIES}`);
|
|
82
|
-
if (retries >= this.MAX_RETRIES ||
|
|
85
|
+
if (retries >= this.MAX_RETRIES ||
|
|
86
|
+
!this.isRecommendationsEnabledAndNotReady(response))
|
|
83
87
|
break;
|
|
84
88
|
yield timer_utils_1.TimerUtils.sleep(this.SLEEP_BETWEEN_RETRIES);
|
|
85
89
|
}
|
|
@@ -87,7 +91,9 @@ class TestRecommendationHandler {
|
|
|
87
91
|
});
|
|
88
92
|
}
|
|
89
93
|
isRecommendationsEnabledAndNotReady(response) {
|
|
90
|
-
return response &&
|
|
94
|
+
return (response &&
|
|
95
|
+
response.testSelectionEnabled !== false &&
|
|
96
|
+
response.recommendationSetStatus == contracts_1.RecommendationSetStatus.NOT_READY);
|
|
91
97
|
}
|
|
92
98
|
logExcludedTests(excludedTests) {
|
|
93
99
|
this.logger.info(`${excludedTests.length} tests will be excluded`);
|
|
@@ -98,12 +104,14 @@ class TestRecommendationHandler {
|
|
|
98
104
|
isSelectionEnabled(response) {
|
|
99
105
|
if (response.recommendationSetStatus === contracts_1.RecommendationSetStatus.NOT_READY) {
|
|
100
106
|
cockpit_notifier_1.CockpitNotifier.sendGenericMessage('Test recommendation request timed out. Recommendations will be ignored');
|
|
101
|
-
this.eventsProcess.testSelectionStatus =
|
|
107
|
+
this.eventsProcess.testSelectionStatus =
|
|
108
|
+
events_contracts_1.TestSelectionStatus.RECOMMENDATIONS_NOT_AVAILABLE;
|
|
102
109
|
return false;
|
|
103
110
|
}
|
|
104
111
|
if (response.recommendationSetStatus === contracts_1.RecommendationSetStatus.WONT_BE_READY) {
|
|
105
|
-
cockpit_notifier_1.CockpitNotifier.sendGenericMessage(
|
|
106
|
-
this.eventsProcess.testSelectionStatus =
|
|
112
|
+
cockpit_notifier_1.CockpitNotifier.sendGenericMessage("Test recommendation won't be ready");
|
|
113
|
+
this.eventsProcess.testSelectionStatus =
|
|
114
|
+
events_contracts_1.TestSelectionStatus.RECOMMENDATIONS_NOT_AVAILABLE;
|
|
107
115
|
return false;
|
|
108
116
|
}
|
|
109
117
|
if (response.testSelectionEnabled === false) {
|
|
@@ -116,7 +124,8 @@ class TestRecommendationHandler {
|
|
|
116
124
|
shouldGetRecommendation() {
|
|
117
125
|
if (this.tiaDisabled) {
|
|
118
126
|
cockpit_notifier_1.CockpitNotifier.sendGenericMessage('Test recommendation disabled by configuration');
|
|
119
|
-
this.eventsProcess.testSelectionStatus =
|
|
127
|
+
this.eventsProcess.testSelectionStatus =
|
|
128
|
+
events_contracts_1.TestSelectionStatus.DISABLED_BY_CONFIGURATION;
|
|
120
129
|
return false;
|
|
121
130
|
}
|
|
122
131
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-recommendation-handler.js","sourceRoot":"","sources":["../../test-listener/test-recommendation-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,
|
|
1
|
+
{"version":3,"file":"test-recommendation-handler.js","sourceRoot":"","sources":["../../test-listener/test-recommendation-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,uEAAmE;AACnE,wDAGkC;AAClC,gFAAgF;AAChF,8EAA0E;AAE1E,6DAAyD;AAIzD,MAAa,yBAAyB;IAWpC,YACE,YAA2B,EAC3B,aAA4B,EAC5B,MAAc,EACd,YAAwC;QAPlC,0BAAqB,GAAG,IAAI,CAAC;QAC7B,gBAAW,GAAG,EAAE,CAAC;QAQvB,kCAAe,CAAC,oBAAoB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QACnE,kCAAe,CAAC,oBAAoB,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QACrE,kC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YAC3C,kCAAe,CAAC,kBAAkB,CAAC,8BAA8B,CAAC,CAAC;YACnE,IAAI,CAAC,aAAa,CAAC,mBAAmB,GAAG,sCAAmB,CAAC,QAAQ,CAAC;YACtE,OAAO,KAAK,CAAC;SACd;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,uBAAuB;QAC7B,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,kCAAe,CAAC,kBAAkB,CAChC,+CAA+C,CAChD,CAAC;YACF,IAAI,CAAC,aAAa,CAAC,mBAAmB;gBACpC,sCAAmB,CAAC,yBAAyB,CAAC;YAChD,OAAO,KAAK,CAAC;SACd;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAvKD,8DAuKC"}
|
|
@@ -55,7 +55,7 @@ class UploadReportHandler {
|
|
|
55
55
|
createRequestBody(agentData, reportFile) {
|
|
56
56
|
const requestBody = {
|
|
57
57
|
agentData: agentData,
|
|
58
|
-
reportFile: reportFile
|
|
58
|
+
reportFile: reportFile,
|
|
59
59
|
};
|
|
60
60
|
return requestBody;
|
|
61
61
|
}
|
|
@@ -68,10 +68,15 @@ class UploadReportHandler {
|
|
|
68
68
|
folderFiles.forEach(function (folderFileName) {
|
|
69
69
|
const stat = fs.statSync(path.join(reportFilesFolder, folderFileName));
|
|
70
70
|
if (stat.isFile()) {
|
|
71
|
-
files.push({
|
|
71
|
+
files.push({
|
|
72
|
+
filename: folderFileName,
|
|
73
|
+
buffer: fs.readFileSync(path.join(reportFilesFolder, folderFileName)),
|
|
74
|
+
});
|
|
72
75
|
}
|
|
73
76
|
else {
|
|
74
|
-
this.logger.debug('[UPLOAD REPORTS] ' +
|
|
77
|
+
this.logger.debug('[UPLOAD REPORTS] ' +
|
|
78
|
+
folderFileName +
|
|
79
|
+
' is a directory. Ignoring...');
|
|
75
80
|
}
|
|
76
81
|
});
|
|
77
82
|
}
|
|
@@ -82,10 +87,14 @@ class UploadReportHandler {
|
|
|
82
87
|
// handle reportFiles
|
|
83
88
|
reportFiles.forEach((reportFilePath) => {
|
|
84
89
|
if (fs.existsSync(reportFilePath)) {
|
|
85
|
-
files.push({
|
|
90
|
+
files.push({
|
|
91
|
+
filename: path.basename(reportFilePath),
|
|
92
|
+
buffer: fs.readFileSync(reportFilePath),
|
|
93
|
+
});
|
|
86
94
|
}
|
|
87
95
|
else {
|
|
88
|
-
this.logger.error(
|
|
96
|
+
this.logger.error("[UPLOAD REPORTS] reportFile doesn't exist. report file: " +
|
|
97
|
+
reportFilePath);
|
|
89
98
|
}
|
|
90
99
|
});
|
|
91
100
|
return files;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-report-handler.js","sourceRoot":"","sources":["../../test-listener/upload-report-handler.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,yBAAyB;AACzB,+BAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"upload-report-handler.js","sourceRoot":"","sources":["../../test-listener/upload-report-handler.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,yBAAyB;AACzB,+BAAgC;AAChC,6CAAiD;AAQjD,MAAa,mBAAmB;IAM9B,YACE,IAAyB,EACzB,YAA2B,EAC3B,SAAoB;QAEpB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,sBAAa,CAAC,0BAA0B,EAAE,CAAC;IAC3D,CAAC;IACM,MAAM,CAAC,QAA8B;QAC1C,IAAI;YACF,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAC5B,IAAI,CAAC,aAAa,CAAC,UAAU,EAC7B,IAAI,CAAC,aAAa,CAAC,iBAAiB,CACrC,CAAC;YACF,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,EAAE;gBACrB,MAAM,uCAAuC,IAAI,CAAC,aAAa,CAAC,iBAAiB;0GACiB,CAAC;aACpG;Y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,cAAc,CAAC;iBACxC,CAAC,CAAC;aACJ;iBAAM;gBACL,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,0DAA0D;oBACxD,cAAc,CACjB,CAAC;aACH;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AA9HD,kDA8HC"}
|
|
@@ -5,8 +5,8 @@ const crypto = require("crypto");
|
|
|
5
5
|
class UUID {
|
|
6
6
|
static newGuid(str) {
|
|
7
7
|
const out = crypto.createHash('sha1').update(str).digest();
|
|
8
|
-
out[8] = out[8] & 0x3f | 0xa0; // set variant
|
|
9
|
-
out[6] = out[6] & 0x0f | 0x50; // set version
|
|
8
|
+
out[8] = (out[8] & 0x3f) | 0xa0; // set variant
|
|
9
|
+
out[6] = (out[6] & 0x0f) | 0x50; // set version
|
|
10
10
|
const hex = out.toString('hex', 0, 16);
|
|
11
11
|
return [
|
|
12
12
|
hex.substring(0, 8),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../test-listener/uuid.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAElC,MAAa,IAAI;
|
|
1
|
+
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../test-listener/uuid.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAElC,MAAa,IAAI;IACR,MAAM,CAAC,OAAO,CAAC,GAAW;QAC/B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;QAE3D,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,cAAc;QAC/C,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,cAAc;QAE/C,MAAM,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAEvC,OAAO;YACL,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC;YACnB,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC;YACpB,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC;YACrB,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC;YACrB,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC;SACtB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACd,CAAC;CACF;AAjBD,oBAiBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wait-for-multiple-callbacks.js","sourceRoot":"","sources":["../../test-listener/wait-for-multiple-callbacks.ts"],"names":[],"mappings":";;;AAAA,MAAa,wBAAwB;IAArC;
|
|
1
|
+
{"version":3,"file":"wait-for-multiple-callbacks.js","sourceRoot":"","sources":["../../test-listener/wait-for-multiple-callbacks.ts"],"names":[],"mappings":";;;AAAA,MAAa,wBAAwB;IAArC;QAgCU,oBAAe,GAAgC,EAAE,CAAC;IAyB5D,CAAC;IAvDQ,UAAU,CAAC,QAAoB;QACpC,IAAI,IAAI,CAAC,eAAe,EAAE;YACxB,OAAO,QAAQ,EAAE,CAAC,CAAC,0EAA0E;aAC1F;YACH,IAAI,IAAI,CAAC,kBAAkB,EAAE;gBAC3B,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;aACzC;YAED,IAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAC,CAAC,uFAAuF;SAC5H;IACH,CAAC;IAED;;;;;;OAMG;IACI,qBAAqB,CAAC,IAAY;QACvC,IAAI,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,IAAI,CAAC;YAC3C,MAAM,IAAI,KAAK,CAAC,0BAA0B,GAAG,IAAI,CAAC,CAAC;QAErD,IA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