slnodejs 6.1.410 → 6.1.429
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/browser-agent/dist/browser-agent-all.js +33 -28
- package/browser-agent/dist/browser-agent-all.min.js +2 -2
- package/browser-agent/package.json +1 -1
- package/package.json +2 -2
- package/tsOutputs/api.js +32 -86
- package/tsOutputs/build-scanner/ast-utils.js +11 -11
- package/tsOutputs/build-scanner/ast-utils.js.map +1 -1
- package/tsOutputs/build-scanner/build-diff-process.js +36 -16
- package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
- package/tsOutputs/build-scanner/cia.js +2 -2
- package/tsOutputs/build-scanner/cia.js.map +1 -1
- package/tsOutputs/build-scanner/default-values-resolver.js +5 -7
- package/tsOutputs/build-scanner/default-values-resolver.js.map +1 -1
- package/tsOutputs/build-scanner/diagnostic/build-scan-diagnosis.js +101 -159
- package/tsOutputs/build-scanner/diagnostic/build-scan-diagnosis.js.map +1 -1
- package/tsOutputs/build-scanner/diagnostic/none-diagnosis.js +23 -55
- package/tsOutputs/build-scanner/diagnostic/none-diagnosis.js.map +1 -1
- package/tsOutputs/build-scanner/file-and-folder-utils.js +3 -3
- package/tsOutputs/build-scanner/file-and-folder-utils.js.map +1 -1
- package/tsOutputs/build-scanner/file-system/actual-file.js +3 -3
- package/tsOutputs/build-scanner/file-system/actual-file.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js +57 -60
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/content-instrumenter.js +9 -10
- package/tsOutputs/build-scanner/instrumentation/content-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/files-instrumenter.js +80 -124
- package/tsOutputs/build-scanner/instrumentation/files-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/instrumentation-utils.js +3 -3
- package/tsOutputs/build-scanner/instrumentation/instrumentation-utils.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/instrumented-file-size-reducer.js +4 -4
- package/tsOutputs/build-scanner/instrumentation/instrumented-file-size-reducer.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/instrumenter-spawn.js +15 -50
- package/tsOutputs/build-scanner/instrumentation/process-pool/instrumenter-spawn.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/process-pool.js +84 -141
- 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 +15 -34
- 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 +9 -27
- 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 +8 -10
- package/tsOutputs/build-scanner/instrumentation/strategies/copy-as-is-strategy.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/js-instrumnetation-strategy.js +22 -54
- package/tsOutputs/build-scanner/instrumentation/strategies/js-instrumnetation-strategy.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/markup-instrumnetation-strategy.js +55 -107
- package/tsOutputs/build-scanner/instrumentation/strategies/markup-instrumnetation-strategy.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/file-signature.js +5 -6
- package/tsOutputs/build-scanner/js_diff/file-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/files-mapping.js +6 -6
- package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/generated-file-signature.js +3 -3
- package/tsOutputs/build-scanner/js_diff/generated-file-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/guess-method-location.js +26 -27
- package/tsOutputs/build-scanner/js_diff/guess-method-location.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/method-signature.js +1 -1
- package/tsOutputs/build-scanner/js_diff/method-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js +28 -79
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/source-data-enricher.js +3 -2
- package/tsOutputs/build-scanner/js_diff/source-data-enricher.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/source-files-notifier.js +1 -1
- package/tsOutputs/build-scanner/js_diff/source-files-notifier.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js +76 -149
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/file-element-utils.js +9 -9
- package/tsOutputs/build-scanner/mappings/file-element-utils.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/file-enricher.js +71 -100
- package/tsOutputs/build-scanner/mappings/file-enricher.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/file-path-fixer.js +106 -0
- package/tsOutputs/build-scanner/mappings/file-path-fixer.js.map +1 -0
- package/tsOutputs/build-scanner/mappings/files-container.js +89 -0
- package/tsOutputs/build-scanner/mappings/files-container.js.map +1 -0
- package/tsOutputs/build-scanner/mappings/files-data-container.js +18 -23
- package/tsOutputs/build-scanner/mappings/files-data-container.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/source-path-mapper.js +15 -45
- package/tsOutputs/build-scanner/mappings/source-path-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/markup-files-parser.js +1 -1
- package/tsOutputs/build-scanner/markup-files-parser.js.map +1 -1
- package/tsOutputs/build-scanner/scm/scm-file-fixer.js +27 -0
- package/tsOutputs/build-scanner/scm/scm-file-fixer.js.map +1 -0
- package/tsOutputs/build-scanner/scm/scm-files-container.js +9 -45
- package/tsOutputs/build-scanner/scm/scm-files-container.js.map +1 -1
- package/tsOutputs/build-scanner/sl-config-cia-cli.js +1 -1
- package/tsOutputs/build-scanner/sl-config-cia-cli.js.map +1 -1
- package/tsOutputs/build-scanner/utils.js +5 -5
- package/tsOutputs/build-scanner/utils.js.map +1 -1
- package/tsOutputs/cli-parse/agent-instance-data.js +2 -2
- package/tsOutputs/cli-parse/agent-instance-data.js.map +1 -1
- package/tsOutputs/cli-parse/child-process-wrapper.js +26 -60
- package/tsOutputs/cli-parse/child-process-wrapper.js.map +1 -1
- package/tsOutputs/cli-parse/cli.js +74 -191
- package/tsOutputs/cli-parse/cli.js.map +1 -1
- package/tsOutputs/cli-parse/constants/constants.js +9 -9
- package/tsOutputs/cli-parse/constants/constants.js.map +1 -1
- package/tsOutputs/cli-parse/contracts.d.ts +2 -0
- package/tsOutputs/cli-parse/contracts.js.map +1 -1
- package/tsOutputs/cli-parse/custom-commander.js +17 -18
- package/tsOutputs/cli-parse/custom-commander.js.map +1 -1
- package/tsOutputs/cli-parse/executors/base-executor.js +121 -236
- package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-args-dto.js +11 -11
- package/tsOutputs/cli-parse/executors/build-args-dto.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-end-executor.js +34 -92
- package/tsOutputs/cli-parse/executors/build-end-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-executor.js +68 -132
- package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/config-executor.js +35 -92
- package/tsOutputs/cli-parse/executors/config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/base-data.js +29 -39
- package/tsOutputs/cli-parse/executors/dry-run/base-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js +92 -177
- 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 +110 -194
- 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 +49 -83
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-validation.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js +55 -113
- package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js +24 -25
- package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js.map +1 -1
- package/tsOutputs/cli-parse/executors/end-execution-executor.js +16 -64
- package/tsOutputs/cli-parse/executors/end-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js +29 -82
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js +12 -59
- 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 +9 -58
- package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js +41 -101
- package/tsOutputs/cli-parse/executors/mocha-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js +24 -83
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/pr-config-executor.js +15 -63
- package/tsOutputs/cli-parse/executors/pr-config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/run-executor.js +23 -75
- package/tsOutputs/cli-parse/executors/run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/start-execution-executor.js +16 -64
- package/tsOutputs/cli-parse/executors/start-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-executions-executor.js +9 -63
- package/tsOutputs/cli-parse/executors/test-executions-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-listener-executor.js +47 -117
- package/tsOutputs/cli-parse/executors/test-listener-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/upload-report-executor.js +23 -71
- package/tsOutputs/cli-parse/executors/upload-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/utils.js +10 -10
- package/tsOutputs/cli-parse/utils.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-controller.js +146 -251
- package/tsOutputs/common/agent-events/agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-guard.js +12 -15
- package/tsOutputs/common/agent-events/agent-events-guard.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-instance-info-builder.js +22 -24
- package/tsOutputs/common/agent-events/agent-instance-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-start-info-builder.js +7 -8
- package/tsOutputs/common/agent-events/agent-start-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/browser-info-builder.js +9 -10
- package/tsOutputs/common/agent-events/browser-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/ci-info-builder.js +12 -13
- package/tsOutputs/common/agent-events/ci-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/cockpit-notifier.js +38 -87
- package/tsOutputs/common/agent-events/cockpit-notifier.js.map +1 -1
- package/tsOutputs/common/agent-events/dry-run-agent-events-controller.js +10 -27
- package/tsOutputs/common/agent-events/dry-run-agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/machine-info-builder.js +21 -22
- package/tsOutputs/common/agent-events/machine-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/no-op-agent-events-controller.js +30 -84
- package/tsOutputs/common/agent-events/no-op-agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/nodejs-env-info-builder.js +7 -8
- package/tsOutputs/common/agent-events/nodejs-env-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/sensitive-data-filter.js +3 -4
- package/tsOutputs/common/agent-events/sensitive-data-filter.js.map +1 -1
- package/tsOutputs/common/agent-instance-data.js +23 -28
- package/tsOutputs/common/agent-instance-data.js.map +1 -1
- package/tsOutputs/common/cli-progress.js +16 -19
- package/tsOutputs/common/cli-progress.js.map +1 -1
- package/tsOutputs/common/config-process/config-loader.js +23 -24
- package/tsOutputs/common/config-process/config-loader.js.map +1 -1
- package/tsOutputs/common/config-process/config-system.js +104 -131
- package/tsOutputs/common/config-process/config-system.js.map +1 -1
- package/tsOutputs/common/config-process/config.js +52 -73
- package/tsOutputs/common/config-process/config.js.map +1 -1
- package/tsOutputs/common/config-process/index.js +38 -57
- package/tsOutputs/common/config-process/index.js.map +1 -1
- package/tsOutputs/common/config-process/no-op-config-process.js +9 -29
- package/tsOutputs/common/config-process/no-op-config-process.js.map +1 -1
- package/tsOutputs/common/constants/constants.js +19 -25
- package/tsOutputs/common/constants/constants.js.map +1 -1
- package/tsOutputs/common/constants/sl-env-vars.js +125 -131
- package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
- package/tsOutputs/common/coverage-elements/file-element.js +66 -103
- package/tsOutputs/common/coverage-elements/file-element.js.map +1 -1
- package/tsOutputs/common/coverage-elements/istanbul-unique-id-converter.js +28 -47
- package/tsOutputs/common/coverage-elements/istanbul-unique-id-converter.js.map +1 -1
- package/tsOutputs/common/coverage-elements/new-id-resolver.js +17 -17
- package/tsOutputs/common/coverage-elements/new-id-resolver.js.map +1 -1
- package/tsOutputs/common/coverage-elements/original-module-loader.js +71 -79
- package/tsOutputs/common/coverage-elements/original-module-loader.js.map +1 -1
- package/tsOutputs/common/coverage-elements/unique-id-converter.js +90 -110
- package/tsOutputs/common/coverage-elements/unique-id-converter.js.map +1 -1
- package/tsOutputs/common/environment-data-service.js +10 -11
- package/tsOutputs/common/environment-data-service.js.map +1 -1
- package/tsOutputs/common/events-process/events-creator.js +20 -32
- package/tsOutputs/common/events-process/events-creator.js.map +1 -1
- package/tsOutputs/common/events-process/index.js +97 -186
- package/tsOutputs/common/events-process/index.js.map +1 -1
- package/tsOutputs/common/footprints-process/collection-interval.js +10 -11
- package/tsOutputs/common/footprints-process/collection-interval.js.map +1 -1
- package/tsOutputs/common/footprints-process/footprints-service-proxy.js +21 -22
- package/tsOutputs/common/footprints-process/footprints-service-proxy.js.map +1 -1
- package/tsOutputs/common/footprints-process/index.js +68 -102
- package/tsOutputs/common/footprints-process/index.js.map +1 -1
- package/tsOutputs/common/footprints-process/istanbul-to-footprints-contract.js +2 -5
- package/tsOutputs/common/footprints-process/istanbul-to-footprints-contract.js.map +1 -1
- package/tsOutputs/common/footprints-process/istanbul-to-footprints.js +160 -162
- package/tsOutputs/common/footprints-process/istanbul-to-footprints.js.map +1 -1
- package/tsOutputs/common/footprints-process/production-footprints-handler.js +103 -156
- package/tsOutputs/common/footprints-process/production-footprints-handler.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js +30 -48
- package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/browser-footprints-buffer.js +7 -25
- package/tsOutputs/common/footprints-process-v6/browser-footprints-buffer.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/buffer-size-helper.js +13 -14
- package/tsOutputs/common/footprints-process-v6/buffer-size-helper.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/collector-footprints-buffer.js +14 -32
- package/tsOutputs/common/footprints-process-v6/collector-footprints-buffer.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/collector-footprints-process.js +43 -109
- package/tsOutputs/common/footprints-process-v6/collector-footprints-process.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/contracts.js +2 -5
- package/tsOutputs/common/footprints-process-v6/contracts.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/footprints-buffer.js +55 -78
- package/tsOutputs/common/footprints-process-v6/footprints-buffer.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/hits-collector.js +89 -129
- package/tsOutputs/common/footprints-process-v6/hits-collector.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/hits-converter.js +70 -78
- package/tsOutputs/common/footprints-process-v6/hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/index.js +204 -347
- package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/location-formatter.js +2 -2
- package/tsOutputs/common/footprints-process-v6/location-formatter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/relative-path-resolver.js +10 -11
- package/tsOutputs/common/footprints-process-v6/relative-path-resolver.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js +5 -25
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js +6 -57
- package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-hits-collector.js +7 -27
- package/tsOutputs/common/footprints-process-v6/remote-hits-collector.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/source-map-data.js +14 -15
- package/tsOutputs/common/footprints-process-v6/source-map-data.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy.js +222 -321
- package/tsOutputs/common/http/backend-proxy.js.map +1 -1
- package/tsOutputs/common/http/contracts.js +40 -116
- package/tsOutputs/common/http/contracts.js.map +1 -1
- package/tsOutputs/common/http/dry-run-proxy.js +68 -111
- package/tsOutputs/common/http/dry-run-proxy.js.map +1 -1
- package/tsOutputs/common/http/entities-mapper.js +6 -9
- package/tsOutputs/common/http/entities-mapper.js.map +1 -1
- package/tsOutputs/common/http/http-client.js +76 -86
- package/tsOutputs/common/http/http-client.js.map +1 -1
- package/tsOutputs/common/http/sl-routes.js +119 -122
- package/tsOutputs/common/http/sl-routes.js.map +1 -1
- package/tsOutputs/common/ignored-files-handler.js +48 -49
- package/tsOutputs/common/ignored-files-handler.js.map +1 -1
- package/tsOutputs/common/logger.js +66 -88
- package/tsOutputs/common/logger.js.map +1 -1
- package/tsOutputs/common/messages-formatter.js +9 -14
- package/tsOutputs/common/messages-formatter.js.map +1 -1
- package/tsOutputs/common/no-op-state-tracker.js +14 -37
- package/tsOutputs/common/no-op-state-tracker.js.map +1 -1
- package/tsOutputs/common/queue.js +18 -36
- package/tsOutputs/common/queue.js.map +1 -1
- package/tsOutputs/common/scm/git-cloner.js +30 -94
- package/tsOutputs/common/scm/git-cloner.js.map +1 -1
- package/tsOutputs/common/scm/git-format-builder.js +24 -25
- package/tsOutputs/common/scm/git-format-builder.js.map +1 -1
- package/tsOutputs/common/scm/git.js +192 -327
- package/tsOutputs/common/scm/git.js.map +1 -1
- package/tsOutputs/common/scm/none.js +58 -110
- package/tsOutputs/common/scm/none.js.map +1 -1
- package/tsOutputs/common/scm/scm-factory.js +6 -9
- package/tsOutputs/common/scm/scm-factory.js.map +1 -1
- package/tsOutputs/common/short-name-to-file-mapper.js +30 -33
- package/tsOutputs/common/short-name-to-file-mapper.js.map +1 -1
- package/tsOutputs/common/source-map-handler.js +76 -98
- package/tsOutputs/common/source-map-handler.js.map +1 -1
- package/tsOutputs/common/source-map-reader.js +35 -36
- package/tsOutputs/common/source-map-reader.js.map +1 -1
- package/tsOutputs/common/source-maps-utils.js +8 -11
- package/tsOutputs/common/source-maps-utils.js.map +1 -1
- package/tsOutputs/common/state-tracker-fpv6.js +15 -37
- package/tsOutputs/common/state-tracker-fpv6.js.map +1 -1
- package/tsOutputs/common/state-tracker.js +124 -212
- package/tsOutputs/common/state-tracker.js.map +1 -1
- package/tsOutputs/common/system-date.js +3 -3
- package/tsOutputs/common/system-date.js.map +1 -1
- package/tsOutputs/common/utils/abstract-data-builder.js +8 -9
- package/tsOutputs/common/utils/abstract-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/build-session-data-builder.js +25 -79
- package/tsOutputs/common/utils/build-session-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/dependency-utils.js +13 -16
- package/tsOutputs/common/utils/dependency-utils.js.map +1 -1
- package/tsOutputs/common/utils/env-var-parsing.js +10 -14
- package/tsOutputs/common/utils/env-var-parsing.js.map +1 -1
- package/tsOutputs/common/utils/files-utils.js +16 -19
- package/tsOutputs/common/utils/files-utils.js.map +1 -1
- package/tsOutputs/common/utils/process-utils.js +12 -25
- package/tsOutputs/common/utils/process-utils.js.map +1 -1
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.js +16 -62
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js +120 -192
- package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js.map +1 -1
- package/tsOutputs/common/utils/timer-utils.js +4 -7
- package/tsOutputs/common/utils/timer-utils.js.map +1 -1
- package/tsOutputs/common/utils/token-data-builder.js +30 -50
- package/tsOutputs/common/utils/token-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/validation-utils.js +7 -10
- package/tsOutputs/common/utils/validation-utils.js.map +1 -1
- package/tsOutputs/common/uuid.js +7 -10
- package/tsOutputs/common/uuid.js.map +1 -1
- package/tsOutputs/common/v8-utils.js +12 -50
- package/tsOutputs/common/v8-utils.js.map +1 -1
- package/tsOutputs/common/watchdog.js +35 -56
- package/tsOutputs/common/watchdog.js.map +1 -1
- package/tsOutputs/mocha-reporter/index.js +12 -12
- package/tsOutputs/mocha-reporter/index.js.map +1 -1
- package/tsOutputs/mocha-reporter/otel-agent.js +47 -118
- package/tsOutputs/mocha-reporter/otel-agent.js.map +1 -1
- package/tsOutputs/test-listener/SlNodeJsProxy.js +34 -35
- package/tsOutputs/test-listener/SlNodeJsProxy.js.map +1 -1
- package/tsOutputs/test-listener/UserMessageHelper.js +14 -19
- package/tsOutputs/test-listener/UserMessageHelper.js.map +1 -1
- package/tsOutputs/test-listener/agent-loader.js +42 -59
- package/tsOutputs/test-listener/agent-loader.js.map +1 -1
- package/tsOutputs/test-listener/agent.js +93 -150
- package/tsOutputs/test-listener/agent.js.map +1 -1
- package/tsOutputs/test-listener/api.js +36 -70
- package/tsOutputs/test-listener/api.js.map +1 -1
- package/tsOutputs/test-listener/base-proxy.js +25 -27
- package/tsOutputs/test-listener/base-proxy.js.map +1 -1
- package/tsOutputs/test-listener/bootstrap.js +6 -6
- package/tsOutputs/test-listener/bootstrap.js.map +1 -1
- package/tsOutputs/test-listener/child-process-patcher.js +10 -10
- package/tsOutputs/test-listener/child-process-patcher.js.map +1 -1
- package/tsOutputs/test-listener/cli.js +27 -30
- package/tsOutputs/test-listener/cli.js.map +1 -1
- package/tsOutputs/test-listener/coloring/http-coloring.js +30 -33
- package/tsOutputs/test-listener/coloring/http-coloring.js.map +1 -1
- package/tsOutputs/test-listener/coloring/listening-port.js +14 -17
- package/tsOutputs/test-listener/coloring/listening-port.js.map +1 -1
- package/tsOutputs/test-listener/command-line-arg-parser.js +12 -15
- package/tsOutputs/test-listener/command-line-arg-parser.js.map +1 -1
- package/tsOutputs/test-listener/config-process/config-loader.js +21 -22
- package/tsOutputs/test-listener/config-process/config-loader.js.map +1 -1
- package/tsOutputs/test-listener/config-process/config-system.js +100 -127
- package/tsOutputs/test-listener/config-process/config-system.js.map +1 -1
- package/tsOutputs/test-listener/config-process/index.js +38 -57
- package/tsOutputs/test-listener/config-process/index.js.map +1 -1
- package/tsOutputs/test-listener/config.js +38 -59
- package/tsOutputs/test-listener/config.js.map +1 -1
- package/tsOutputs/test-listener/entities/BasicConfigurationData.js +37 -64
- package/tsOutputs/test-listener/entities/BasicConfigurationData.js.map +1 -1
- package/tsOutputs/test-listener/entities/build-scanner/ConfigModeData.js +17 -42
- package/tsOutputs/test-listener/entities/build-scanner/ConfigModeData.js.map +1 -1
- package/tsOutputs/test-listener/entities/build-scanner/ScanModeData.js +19 -45
- package/tsOutputs/test-listener/entities/build-scanner/ScanModeData.js.map +1 -1
- package/tsOutputs/test-listener/environment-data-service.js +10 -11
- package/tsOutputs/test-listener/environment-data-service.js.map +1 -1
- package/tsOutputs/test-listener/execution-process/entities-mapper.js +11 -14
- package/tsOutputs/test-listener/execution-process/entities-mapper.js.map +1 -1
- package/tsOutputs/test-listener/execution-process/execution-service-proxy.js +54 -72
- package/tsOutputs/test-listener/execution-process/execution-service-proxy.js.map +1 -1
- package/tsOutputs/test-listener/execution-process/index.js +26 -26
- package/tsOutputs/test-listener/execution-process/index.js.map +1 -1
- package/tsOutputs/test-listener/factory.js +140 -175
- package/tsOutputs/test-listener/factory.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/footprints-service-proxy.js +17 -34
- package/tsOutputs/test-listener/footprints-process/footprints-service-proxy.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/index.js +53 -58
- package/tsOutputs/test-listener/footprints-process/index.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js +49 -50
- package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-v3.js +98 -117
- package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-v3.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js +57 -141
- package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js.map +1 -1
- package/tsOutputs/test-listener/integrations/SlGulp.js +25 -26
- package/tsOutputs/test-listener/integrations/SlGulp.js.map +1 -1
- package/tsOutputs/test-listener/logs-process/index.js +30 -35
- package/tsOutputs/test-listener/logs-process/index.js.map +1 -1
- package/tsOutputs/test-listener/logs-process/log-service-proxy.js +8 -25
- package/tsOutputs/test-listener/logs-process/log-service-proxy.js.map +1 -1
- package/tsOutputs/test-listener/nyc-report-executor-fpv6.js +53 -110
- package/tsOutputs/test-listener/nyc-report-executor-fpv6.js.map +1 -1
- package/tsOutputs/test-listener/nyc-report-executor.js +48 -85
- package/tsOutputs/test-listener/nyc-report-executor.js.map +1 -1
- package/tsOutputs/test-listener/otel-agent-loader.js +30 -33
- package/tsOutputs/test-listener/otel-agent-loader.js.map +1 -1
- package/tsOutputs/test-listener/queue.js +18 -36
- package/tsOutputs/test-listener/queue.js.map +1 -1
- package/tsOutputs/test-listener/remote-agent.js +97 -223
- package/tsOutputs/test-listener/remote-agent.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/AppNameResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/AppNameResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/ArgumentResolver.js +11 -12
- package/tsOutputs/test-listener/resolvers/ArgumentResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/BuildResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/BuildResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/BuildSessionIdFileResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/BuildSessionIdFileResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/BuildSessionIdResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/BuildSessionIdResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/ProxyResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/ProxyResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/TokenResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/TokenResolver.js.map +1 -1
- package/tsOutputs/test-listener/state-tracker-process/index.js +54 -74
- package/tsOutputs/test-listener/state-tracker-process/index.js.map +1 -1
- package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js +18 -37
- package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js.map +1 -1
- package/tsOutputs/test-listener/test-recommendation-handler.js +66 -109
- package/tsOutputs/test-listener/test-recommendation-handler.js.map +1 -1
- package/tsOutputs/test-listener/upload-report-handler.js +33 -35
- package/tsOutputs/test-listener/upload-report-handler.js.map +1 -1
- package/tsOutputs/test-listener/utils.js +13 -14
- package/tsOutputs/test-listener/utils.js.map +1 -1
- package/tsOutputs/test-listener/uuid.js +7 -10
- package/tsOutputs/test-listener/uuid.js.map +1 -1
- package/tsOutputs/test-listener/wait-for-multiple-callbacks.js +17 -19
- package/tsOutputs/test-listener/wait-for-multiple-callbacks.js.map +1 -1
- package/tsOutputs/test-listener/watchdog.js +32 -51
- package/tsOutputs/test-listener/watchdog.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/scm-file-fixer.js +0 -96
- package/tsOutputs/build-scanner/mappings/scm-file-fixer.js.map +0 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SlNodeJsProxy = void 0;
|
|
4
|
-
|
|
4
|
+
const child_process = require("child_process");
|
|
5
5
|
/**
|
|
6
6
|
* This class acts as proxy between the code to sl-node-js component.
|
|
7
7
|
* */
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
class SlNodeJsProxy {
|
|
9
|
+
constructor(userMessageHelper) {
|
|
10
10
|
this.userMessageHelper = userMessageHelper;
|
|
11
11
|
if (!userMessageHelper) {
|
|
12
12
|
throw new Error('\'userMessageHelper\' cannot be null or undefined');
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
runConfigMode(configModeData, callback) {
|
|
16
16
|
//TODO: Check if we need additional arguments.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
const command = 'config';
|
|
18
|
+
const params = {};
|
|
19
|
+
const excludes = this.getBuildModeExcludeList();
|
|
20
20
|
console.log('excludes:' + excludes);
|
|
21
|
-
for (
|
|
21
|
+
for (const p in configModeData) {
|
|
22
22
|
if (excludes.indexOf(p) > -1 || p.indexOf('_') === 0 || !configModeData[p])
|
|
23
23
|
continue;
|
|
24
|
-
|
|
24
|
+
const pName = '--' + p.toLowerCase();
|
|
25
25
|
params[pName] = configModeData[p];
|
|
26
26
|
}
|
|
27
27
|
this.invokeCommand(command, params, callback);
|
|
28
|
-
}
|
|
29
|
-
|
|
28
|
+
}
|
|
29
|
+
runScanMode(scanModeData, callback) {
|
|
30
30
|
//TODO: Check if we need additional arguments.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const command = 'build';
|
|
32
|
+
const params = {};
|
|
33
|
+
const excludes = this.getBuildModeExcludeList();
|
|
34
34
|
console.log('excludes:' + excludes);
|
|
35
|
-
for (
|
|
35
|
+
for (const p in scanModeData) {
|
|
36
36
|
if (excludes.indexOf(p) > -1 || p.indexOf('_') === 0 || !scanModeData[p])
|
|
37
37
|
continue;
|
|
38
|
-
|
|
38
|
+
const pName = '--' + p.toLowerCase();
|
|
39
39
|
params[pName] = scanModeData[p];
|
|
40
40
|
}
|
|
41
41
|
this.invokeCommand(command, params, callback);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
}
|
|
43
|
+
getBuildModeExcludeList() {
|
|
44
|
+
const excludes = ['constructor'];
|
|
45
45
|
return excludes;
|
|
46
|
-
}
|
|
47
|
-
|
|
46
|
+
}
|
|
47
|
+
invokeCommand(mode, params, callback) {
|
|
48
48
|
if (!mode) {
|
|
49
49
|
throw new Error('\'mode\' cannot be null or undefined');
|
|
50
50
|
}
|
|
@@ -54,35 +54,35 @@ var SlNodeJsProxy = /** @class */ (function () {
|
|
|
54
54
|
if (!callback) {
|
|
55
55
|
throw new Error('\'callback\' cannot be null or undefined');
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
const commandParts = [];
|
|
58
58
|
commandParts.push(mode);
|
|
59
|
-
for (
|
|
59
|
+
for (const p in params) {
|
|
60
60
|
commandParts.push(p);
|
|
61
61
|
commandParts.push(params[p]);
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
const command = this.getSlNodeJsPath();
|
|
64
64
|
this.userMessageHelper.println('Command: ' + command);
|
|
65
65
|
this.userMessageHelper.println('Command Args: ' + commandParts.join(' '));
|
|
66
|
-
|
|
66
|
+
const slNodeJsProcess = child_process.spawn(command, commandParts, {
|
|
67
67
|
stdio: 'inherit'
|
|
68
68
|
});
|
|
69
|
-
slNodeJsProcess.on('close',
|
|
70
|
-
|
|
69
|
+
slNodeJsProcess.on('close', (code) => {
|
|
70
|
+
let error = null;
|
|
71
71
|
if (code > 0) {
|
|
72
|
-
|
|
72
|
+
const fullCommand = command + ' ' + commandParts.join(' ');
|
|
73
73
|
error = new Error('Failed while running sl-node-js.\nReturn Code: ' + code + '\nCommand:\'' + fullCommand + '\'. ');
|
|
74
74
|
return callback(error);
|
|
75
75
|
}
|
|
76
76
|
return callback(error);
|
|
77
77
|
});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
}
|
|
79
|
+
getSlNodeJsPath() {
|
|
80
|
+
const SL_NODE_JS_PATH = 'SL_NODE_JS_PATH';
|
|
81
81
|
if (process.env && process.env[SL_NODE_JS_PATH]) {
|
|
82
82
|
return process.env[SL_NODE_JS_PATH];
|
|
83
83
|
}
|
|
84
84
|
try {
|
|
85
|
-
|
|
85
|
+
const path = require.resolve('slnodejs');
|
|
86
86
|
if (path) {
|
|
87
87
|
return path;
|
|
88
88
|
}
|
|
@@ -90,8 +90,7 @@ var SlNodeJsProxy = /** @class */ (function () {
|
|
|
90
90
|
catch (e) {
|
|
91
91
|
}
|
|
92
92
|
return './node_modules/.bin/slnodejs';
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
}());
|
|
93
|
+
}
|
|
94
|
+
}
|
|
96
95
|
exports.SlNodeJsProxy = SlNodeJsProxy;
|
|
97
96
|
//# sourceMappingURL=SlNodeJsProxy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlNodeJsProxy.js","sourceRoot":"","sources":["../../test-listener/SlNodeJsProxy.ts"],"names":[],"mappings":";;;AAOA
|
|
1
|
+
{"version":3,"file":"SlNodeJsProxy.js","sourceRoot":"","sources":["../../test-listener/SlNodeJsProxy.ts"],"names":[],"mappings":";;;AAOA,+CAA+C;AAE/C;;KAEK;AACL,MAAa,aAAa;IAEtB,YAAoB,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpD,IAAI,CAAC,iBAAiB,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;SACxE;IACL,CAAC;IAEM,aAAa,CAAC,cAA8B,EAAE,QA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GAAG,CAAC,EAAE;gBACV,MAAM,WAAW,GAAG,OAAO,GAAG,GAAG,GAAG,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAC3D,KAAK,GAAG,IAAI,KAAK,CAAC,iDAAiD,GAAG,IAAI,GAAG,cAAc,GAAG,WAAW,GAAG,MAAM,CAAC,CAAA;gBACnH,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;aAC1B;YAGD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC1B,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,eAAe;QACnB,MAAM,eAAe,GAAG,iBAAiB,CAAC;QAE1C,IAAI,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE;YAC7C,OAAO,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;SACvC;QAED,IAAI;YACA,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YACzC,IAAI,IAAI,EAAE;gBACN,OAAO,IAAI,CAAC;aACf;SACJ;QAAC,OAAO,CAAC,EAAE;SAEX;QAGD,OAAO,8BAA8B,CAAC;IAC1C,CAAC;CACJ;AAlHD,sCAkHC"}
|
|
@@ -4,20 +4,16 @@ exports.UserMessageHelper = void 0;
|
|
|
4
4
|
/**
|
|
5
5
|
* Created by nadav on 12/03/2017.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
class UserMessageHelper {
|
|
8
|
+
constructor(perfix, verbose) {
|
|
9
9
|
this.perfix = perfix;
|
|
10
10
|
this.verbose = verbose;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
15
|
-
args[_i - 1] = arguments[_i];
|
|
16
|
-
}
|
|
17
|
-
var message = this.perfix + ' - ' + text;
|
|
12
|
+
println(text, ...args) {
|
|
13
|
+
let message = this.perfix + ' - ' + text;
|
|
18
14
|
if (args && args.length > 0) {
|
|
19
|
-
for (
|
|
20
|
-
|
|
15
|
+
for (let i = 0; i < args.length; i++) {
|
|
16
|
+
const arg = args[i];
|
|
21
17
|
if (arg instanceof Error) {
|
|
22
18
|
message += arg.message + '\n' + arg.stack;
|
|
23
19
|
}
|
|
@@ -30,19 +26,18 @@ var UserMessageHelper = /** @class */ (function () {
|
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
28
|
console.log(message);
|
|
33
|
-
}
|
|
34
|
-
|
|
29
|
+
}
|
|
30
|
+
printWarn(text) {
|
|
35
31
|
this.println('WARNING - ' + text);
|
|
36
|
-
}
|
|
37
|
-
|
|
32
|
+
}
|
|
33
|
+
printError(text, error) {
|
|
38
34
|
this.println('ERROR - ' + text, error);
|
|
39
|
-
}
|
|
40
|
-
|
|
35
|
+
}
|
|
36
|
+
printDebug(text) {
|
|
41
37
|
if (this.verbose) {
|
|
42
38
|
this.println('DEBUG - ' + text);
|
|
43
39
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}());
|
|
40
|
+
}
|
|
41
|
+
}
|
|
47
42
|
exports.UserMessageHelper = UserMessageHelper;
|
|
48
43
|
//# sourceMappingURL=UserMessageHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserMessageHelper.js","sourceRoot":"","sources":["../../test-listener/UserMessageHelper.ts"],"names":[],"mappings":";;;AACA;;GAEG;AAEH;
|
|
1
|
+
{"version":3,"file":"UserMessageHelper.js","sourceRoot":"","sources":["../../test-listener/UserMessageHelper.ts"],"names":[],"mappings":";;;AACA;;GAEG;AAEH,MAAa,iBAAiB;IAC1B,YAAoB,MAAa,EAAU,OAAe;QAAtC,WAAM,GAAN,MAAM,CAAO;QAAU,YAAO,GAAP,OAAO,CAAQ;IAE1D,CAAC;IACD,OAAO,CAAC,IAAY,EAAE,GAAG,IAAkB;QACvC,IAAI,OAAO,GAAU,IAAI,CAAC,MAAM,GAAI,KAAK,GAAG,IAAI,CAAC;QACjD,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAC;YACxB,KAAI,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAC;gBAC5B,MAAM,GAAG,GAAQ,IAAI,CAAC,CAAC,CAAC,CAAC;gBACzB,IAAI,GAAG,YAAY,KAAK,EAAC;oBACrB,OAAO,IAAI,GAAG,CAAC,OAAO,GAAG,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC;iBAC7C;qBAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAC;oBAC/B,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;iBACjC;qBACG;oBACA,OAAO,GAAG,OAAO,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;iBACtC;aACJ;SACJ;QACD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAED,SAAS,CAAC,IAAY;QAClB,IAAI,CAAC,OAAO,CAAC,YAAY,GAAE,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,UAAU,CAAC,IAAY,EAAE,KAAa;QAClC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,UAAU,CAAC,IAAY;QACnB,IAAI,IAAI,CAAC,OAAO,EAChB;YACI,IAAI,CAAC,OAAO,CAAC,UAAU,GAAE,IAAI,CAAC,CAAC;SAClC;IACL,CAAC;CAEJ;AArCD,8CAqCC"}
|
|
@@ -1,49 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.AgentLoader = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
4
|
+
const factory_1 = require("./factory");
|
|
5
|
+
const config_loader_1 = require("../common/config-process/config-loader");
|
|
6
|
+
const nycBinFile = require.resolve('nyc/bin/nyc.js');
|
|
7
|
+
const Module = require("module");
|
|
8
|
+
const otel_agent_loader_1 = require("./otel-agent-loader");
|
|
9
|
+
const sl_env_vars_1 = require("../common/constants/sl-env-vars");
|
|
10
|
+
const files_utils_1 = require("../common/utils/files-utils");
|
|
11
|
+
const fs = require("fs");
|
|
12
|
+
const cockpit_notifier_1 = require("../common/agent-events/cockpit-notifier");
|
|
22
13
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (shouldBootstrap === void 0) { shouldBootstrap = true; }
|
|
29
|
-
if (options === void 0) { options = {}; }
|
|
30
|
-
var configLoader = new config_loader_1.ConfigLoader();
|
|
31
|
-
var agentCfg = configLoader.loadAgentConfiguration({});
|
|
14
|
+
const patchChildProcess = require('./child-process-patcher').patchChildProcess;
|
|
15
|
+
class AgentLoader {
|
|
16
|
+
static run(args, useIstanbul, spawnRuntimeArgs, shouldBootstrap = true, options = {}) {
|
|
17
|
+
const configLoader = new config_loader_1.ConfigLoader();
|
|
18
|
+
const agentCfg = configLoader.loadAgentConfiguration({});
|
|
32
19
|
agentCfg.useIstanbul.value = useIstanbul;
|
|
33
20
|
agentCfg.useTsNode.value = args.includes('ts-node/register');
|
|
34
21
|
global['agentCfg'] = agentCfg;
|
|
35
22
|
AgentLoader.init(agentCfg, args, spawnRuntimeArgs, shouldBootstrap, options);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var factory = new factory_1.NodeAgentFactory(agentCfg);
|
|
41
|
-
var logger = factory.getCreateApplicationLogger();
|
|
23
|
+
}
|
|
24
|
+
static init(agentCfg, args, spawnRuntimeArgs, shouldBootstrap = true, options = {}) {
|
|
25
|
+
const factory = new factory_1.NodeAgentFactory(agentCfg);
|
|
26
|
+
const logger = factory.getCreateApplicationLogger();
|
|
42
27
|
if (agentCfg.enableChildProcessPatcher.value) {
|
|
43
28
|
logger.warn('patchChildProcess is enabled.');
|
|
44
29
|
patchChildProcess(__filename);
|
|
45
30
|
}
|
|
46
|
-
|
|
31
|
+
const useIstanbul = agentCfg.useIstanbul.value == true;
|
|
47
32
|
if (useIstanbul) {
|
|
48
33
|
logger.warn('Running agent using Istanbul.');
|
|
49
34
|
AgentLoader.runAgentUsingIstanbul(args, shouldBootstrap);
|
|
@@ -54,62 +39,60 @@ var AgentLoader = /** @class */ (function () {
|
|
|
54
39
|
AgentLoader.runAgentUsingNyc(agentCfg, args, spawnRuntimeArgs, shouldBootstrap);
|
|
55
40
|
logger.info('After Running agent using NYC');
|
|
56
41
|
}
|
|
57
|
-
|
|
42
|
+
const otelAgentLoader = new otel_agent_loader_1.OtelAgentLoader({
|
|
58
43
|
command: options === null || options === void 0 ? void 0 : options.command,
|
|
59
44
|
agentConfig: agentCfg,
|
|
60
|
-
useIstanbul
|
|
61
|
-
logger
|
|
45
|
+
useIstanbul,
|
|
46
|
+
logger
|
|
62
47
|
});
|
|
63
48
|
otelAgentLoader.resolveAgentRunningOtelAgent();
|
|
64
49
|
Module.runMain();
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
var _a;
|
|
50
|
+
}
|
|
51
|
+
static runAgentUsingNyc(agentCfg, args, spawnRuntimeArgs, shouldBootstrap) {
|
|
68
52
|
process.env.SL_CONFIGURATION = JSON.stringify(agentCfg.toJsonObject());
|
|
69
53
|
process.argv = [process.argv[0], nycBinFile, process.argv[0]].concat(spawnRuntimeArgs).concat(args);
|
|
70
54
|
if (shouldBootstrap) {
|
|
71
|
-
|
|
55
|
+
const nycArgs = ['-i', require.resolve('./bootstrap')];
|
|
72
56
|
if (sl_env_vars_1.SlEnvVars.useSpawnWrap()) {
|
|
73
57
|
nycArgs.push('--use-spawn-wrap');
|
|
74
58
|
}
|
|
75
|
-
|
|
59
|
+
process.argv.splice(2, 0, ...nycArgs);
|
|
76
60
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
61
|
+
}
|
|
62
|
+
static runAgentUsingIstanbul(args, shouldBootstrap) {
|
|
79
63
|
if (shouldBootstrap) {
|
|
80
64
|
require('./bootstrap');
|
|
81
65
|
}
|
|
82
|
-
|
|
66
|
+
const istanbulMain = require.resolve('istanbul/lib/cli.js');
|
|
83
67
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
84
|
-
|
|
68
|
+
const x = require(istanbulMain); //Module.runMain();
|
|
85
69
|
x.runToCompletion(['cover'].concat(args));
|
|
86
|
-
}
|
|
87
|
-
|
|
70
|
+
}
|
|
71
|
+
static warnIfCustomNycConfigExist(logger) {
|
|
88
72
|
// check for config in package.json
|
|
89
|
-
|
|
73
|
+
const pathToPackageJson = files_utils_1.FilesUtils.findFileUp('package.json', process.cwd());
|
|
90
74
|
if (pathToPackageJson) {
|
|
91
|
-
|
|
92
|
-
|
|
75
|
+
const packageJsonContent = fs.readFileSync(pathToPackageJson).toString();
|
|
76
|
+
const packageDate = JSON.parse(packageJsonContent);
|
|
93
77
|
if (packageDate === null || packageDate === void 0 ? void 0 : packageDate.nyc) {
|
|
94
|
-
cockpit_notifier_1.CockpitNotifier.sendWarning(
|
|
78
|
+
cockpit_notifier_1.CockpitNotifier.sendWarning(`NYC configuration detected in ${pathToPackageJson}. This may interfere with the Test Listener configuration and result in no/low coverage`);
|
|
95
79
|
}
|
|
96
80
|
}
|
|
97
81
|
// check for nyc config files
|
|
98
|
-
|
|
82
|
+
const nycConfigFiles = [
|
|
99
83
|
'.nycrc',
|
|
100
84
|
'.nycrc.json',
|
|
101
85
|
'.nycrc.yaml',
|
|
102
86
|
'.nycrc.yml',
|
|
103
87
|
'nyc.config.js',
|
|
104
88
|
];
|
|
105
|
-
nycConfigFiles.forEach(
|
|
106
|
-
|
|
89
|
+
nycConfigFiles.forEach(cf => {
|
|
90
|
+
const pathToConfig = files_utils_1.FilesUtils.findFileUp(cf, process.cwd());
|
|
107
91
|
if (pathToConfig) {
|
|
108
|
-
cockpit_notifier_1.CockpitNotifier.sendWarning(
|
|
92
|
+
cockpit_notifier_1.CockpitNotifier.sendWarning(`NYC configuration detected in ${pathToConfig}. This may interfere with the Test Listener configuration and result in no/low coverage`);
|
|
109
93
|
}
|
|
110
94
|
});
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
}());
|
|
95
|
+
}
|
|
96
|
+
}
|
|
114
97
|
exports.AgentLoader = AgentLoader;
|
|
115
98
|
//# sourceMappingURL=agent-loader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-loader.js","sourceRoot":"","sources":["../../test-listener/agent-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-loader.js","sourceRoot":"","sources":["../../test-listener/agent-loader.ts"],"names":[],"mappings":";;;AAAA,uCAA6C;AAC7C,0EAAoE;AAEpE,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACrD,iCAAkC;AAClC,2DAAoD;AACpD,iEAA0D;AAC1D,6DAAyD;AACzD,yBAAyB;AAEzB,8EAA0E;AAG1E,8DAA8D;AAC9D,MAAM,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC,iBAAiB,CAAC;AAE/E,MAAa,WAAW;IAEpB,MAAM,CAAC,GAAG,CAAC,IAAkB,EAAE,WAAmB,EAAE,gBAA2B,EAAE,kBAA2B,IAAI,EAA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