slnodejs 6.1.415 → 6.1.447
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 +249 -414
- package/browser-agent/dist/browser-agent-all.min.js +3 -3
- 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 +35 -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 +56 -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 +112 -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 +72 -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/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 +10 -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 +64 -133
- 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.d.ts +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.d.ts +1 -0
- package/tsOutputs/common/footprints-process-v6/index.js +210 -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 +13 -16
- 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.d.ts +4 -0
- package/tsOutputs/common/utils/validation-utils.js +13 -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,37 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.ConfigProcess = void 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
_this.isRunning = false;
|
|
4
|
+
const events = require("events");
|
|
5
|
+
const config_system_1 = require("./config-system");
|
|
6
|
+
const assign = require("object-assign");
|
|
7
|
+
const jwtDecode = require("jwt-decode");
|
|
8
|
+
class ConfigProcess extends events.EventEmitter {
|
|
9
|
+
constructor(cfg, watchdog, backendProxy, logger) {
|
|
10
|
+
super();
|
|
11
|
+
this.cfg = cfg;
|
|
12
|
+
this.watchdog = watchdog;
|
|
13
|
+
this.backendProxy = backendProxy;
|
|
14
|
+
this.logger = logger;
|
|
15
|
+
this.isRunning = false;
|
|
32
16
|
if (!cfg)
|
|
33
17
|
throw new Error('cfg is required');
|
|
34
|
-
|
|
18
|
+
this.initialCfg = assign({}, cfg.toJsonObject());
|
|
35
19
|
if (!watchdog)
|
|
36
20
|
throw new Error('watchdog is required');
|
|
37
21
|
if (!backendProxy)
|
|
@@ -39,36 +23,34 @@ var ConfigProcess = /** @class */ (function (_super) {
|
|
|
39
23
|
if (!logger) {
|
|
40
24
|
throw new Error('logger is required');
|
|
41
25
|
}
|
|
42
|
-
watchdog.on('alarm',
|
|
26
|
+
watchdog.on('alarm', () => {
|
|
43
27
|
watchdog.stop();
|
|
44
|
-
|
|
28
|
+
this.reloadConfigFromServer();
|
|
45
29
|
});
|
|
46
|
-
|
|
47
|
-
return _this;
|
|
30
|
+
this.initCfg();
|
|
48
31
|
}
|
|
49
|
-
|
|
50
|
-
var _this = this;
|
|
32
|
+
reloadConfigFromServer(callback) {
|
|
51
33
|
this.backendProxy.getRemoteConfig({
|
|
52
34
|
appName: this.cfg.appName.value,
|
|
53
35
|
branch: this.cfg.branch.value,
|
|
54
36
|
build: this.cfg.build.value,
|
|
55
37
|
labId: this.cfg.labId.value,
|
|
56
38
|
testStage: this.cfg.testStage.value
|
|
57
|
-
},
|
|
39
|
+
}, (err, updatedCfg) => {
|
|
58
40
|
if (!err && updatedCfg) {
|
|
59
|
-
|
|
41
|
+
this.mergeConfigFromServerAndFireEvent(updatedCfg);
|
|
60
42
|
}
|
|
61
|
-
|
|
43
|
+
this.watchdog.start();
|
|
62
44
|
if (callback) {
|
|
63
45
|
callback(err);
|
|
64
46
|
}
|
|
65
47
|
});
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
48
|
+
}
|
|
49
|
+
mergeConfigFromServerAndFireEvent(updatedCfgObject) {
|
|
50
|
+
let configChanged = false;
|
|
69
51
|
//Load values before any server overrides
|
|
70
52
|
this.cfg.loadConfiguration(new config_system_1.JsonObjectConfigurationProvider(this.initialCfg));
|
|
71
|
-
for (
|
|
53
|
+
for (const key in updatedCfgObject) {
|
|
72
54
|
if (this.cfg[key] && this.cfg[key].isConfigKey && this.cfg[key].value != updatedCfgObject[key]) {
|
|
73
55
|
configChanged = true;
|
|
74
56
|
break;
|
|
@@ -79,14 +61,14 @@ var ConfigProcess = /** @class */ (function (_super) {
|
|
|
79
61
|
this.cfg.loadConfiguration(new config_system_1.JsonObjectConfigurationProvider(updatedCfgObject));
|
|
80
62
|
this.emit('configuration_changed', this.cfg);
|
|
81
63
|
}
|
|
82
|
-
}
|
|
83
|
-
|
|
64
|
+
}
|
|
65
|
+
getConfiguration() {
|
|
84
66
|
return this.cfg;
|
|
85
|
-
}
|
|
86
|
-
|
|
67
|
+
}
|
|
68
|
+
initCfg() {
|
|
87
69
|
if (this.cfg.token.hasValue) {
|
|
88
70
|
try {
|
|
89
|
-
|
|
71
|
+
const tokenData = jwtDecode(this.cfg.token.value);
|
|
90
72
|
if (!tokenData['x-sl-server']) {
|
|
91
73
|
throw new Error('Token Is Invalid. Doesn\'t Contain Server');
|
|
92
74
|
}
|
|
@@ -95,18 +77,18 @@ var ConfigProcess = /** @class */ (function (_super) {
|
|
|
95
77
|
if (!tokenData['subject']) {
|
|
96
78
|
throw new Error('Token Is Invalid. Doesn\'t Contain Subject');
|
|
97
79
|
}
|
|
98
|
-
|
|
99
|
-
|
|
80
|
+
let customerId = tokenData['subject'];
|
|
81
|
+
const subjectParts = tokenData['subject'].split('@');
|
|
100
82
|
customerId = subjectParts[0];
|
|
101
83
|
this.cfg.customerId.value = this.cfg.customerId.value || customerId;
|
|
102
84
|
}
|
|
103
85
|
catch (err) {
|
|
104
86
|
this.cfg.enabled.value = false;
|
|
105
|
-
this.logger.error(
|
|
87
|
+
this.logger.error(`Error loading configuration. Agent will be disabled. ${err}`);
|
|
106
88
|
}
|
|
107
89
|
}
|
|
108
|
-
}
|
|
109
|
-
|
|
90
|
+
}
|
|
91
|
+
start(callback) {
|
|
110
92
|
if (this.isRunning)
|
|
111
93
|
return; //Already started
|
|
112
94
|
if (!this.cfg.enabled.value)
|
|
@@ -116,13 +98,12 @@ var ConfigProcess = /** @class */ (function (_super) {
|
|
|
116
98
|
this.reloadConfigFromServer(callback);
|
|
117
99
|
//this.watchdog.start(); //Will be called on the first reload, which is called from agent.start()
|
|
118
100
|
this.isRunning = true;
|
|
119
|
-
}
|
|
120
|
-
|
|
101
|
+
}
|
|
102
|
+
stop(callback) {
|
|
121
103
|
this.watchdog.stop();
|
|
122
104
|
this.isRunning = false;
|
|
123
105
|
return callback();
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
}(events.EventEmitter));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
127
108
|
exports.ConfigProcess = ConfigProcess;
|
|
128
109
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../common/config-process/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../common/config-process/index.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAClC,mDAAkE;AAElE,wCAAyC;AACzC,wCAAyC;AAKzC,MAAa,aAAc,SAAQ,MAAM,CAAC,YAAY;IAElD,YAA2B,GAAgB,EAAU,QAAkB,EAAU,YAA0B,EAAU,MAAc;QAC/H,KAAK,EAAE,CAAC;QADe,QAAG,GAAH,GAAG,CAAa;QAAU,aAAQ,GAAR,QAAQ,CAAU;QAAU,iBAAY,GAAZ,YAAY,CAAc;QAAU,WAAM,GAAN,MAAM,CAAQ;QAoF3H,cAAS,GAAG,KAAK,CAAC;QAlFtB,IAAI,CAAC,GAAG;YAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC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AM,YAAY,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrD,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;gBAE7B,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC;aAEvE;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;gBAC/B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wDAAwD,GAAG,EAAE,CAAC,CAAC;aACpF;SACJ;IACL,CAAC;IAGM,KAAK,CAAC,QAA+B;QACxC,IAAI,IAAI,CAAC,SAAS;YAAE,OAAO,CAAC,iBAAiB;QAC7C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK;YAAE,OAAO,CAAC,mDAAmD;QACxF,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ;YAAE,OAAO,CAAC,qCAAqC;QACrG,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;QACtC,iGAAiG;QACjG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IAC1B,CAAC;IAEM,IAAI,CAAC,QAAoB;QAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,OAAO,QAAQ,EAAE,CAAC;IACtB,CAAC;CACJ;AArGD,sCAqGC"}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.NoopConfigProcess = void 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
function NoopConfigProcess() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
NoopConfigProcess.prototype.start = function (callback) {
|
|
4
|
+
const index_1 = require("./index");
|
|
5
|
+
class NoopConfigProcess extends index_1.ConfigProcess {
|
|
6
|
+
start(callback) {
|
|
26
7
|
return callback === null || callback === void 0 ? void 0 : callback(null);
|
|
27
|
-
}
|
|
28
|
-
|
|
8
|
+
}
|
|
9
|
+
stop(callback) {
|
|
29
10
|
return callback();
|
|
30
|
-
}
|
|
31
|
-
|
|
11
|
+
}
|
|
12
|
+
reloadConfigFromServer(callback) {
|
|
32
13
|
return callback === null || callback === void 0 ? void 0 : callback(null);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}(index_1.ConfigProcess));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
36
16
|
exports.NoopConfigProcess = NoopConfigProcess;
|
|
37
17
|
//# sourceMappingURL=no-op-config-process.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-op-config-process.js","sourceRoot":"","sources":["../../../common/config-process/no-op-config-process.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"no-op-config-process.js","sourceRoot":"","sources":["../../../common/config-process/no-op-config-process.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,MAAa,iBAAmB,SAAQ,qBAAa;IAC1C,KAAK,CAAC,QAA6C;QACvD,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,IAAW,CAAC,CAAC;IAClC,CAAC;IAEM,IAAI,CAAC,QAAoB;QAC5B,OAAO,QAAQ,EAAE,CAAC;IACtB,CAAC;IAES,sBAAsB,CAAC,QAA+B;QAC5D,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,IAAW,CAAC,CAAA;IAClC,CAAC;CACJ;AAZD,8CAYC"}
|
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.Constants = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
var _a;
|
|
8
|
-
Constants.TRUE = 'true';
|
|
9
|
-
Constants.FALSE = 'false';
|
|
10
|
-
Constants.BUILD_SESSION_ID = 'buildSessionId';
|
|
11
|
-
Constants.REQUEST = 'request';
|
|
12
|
-
Constants.FOOTPRINTS_PACKET = 'footprintsPacket';
|
|
13
|
-
Constants.TEST_STAGE = 'testStage';
|
|
14
|
-
Constants.EXECUTION_BSID = 'executionBsid';
|
|
15
|
-
Constants.CALLBACK = 'callback';
|
|
16
|
-
Constants.PULL_REQUEST_PARAMS = 'pullRequestParams';
|
|
17
|
-
Constants.SL_WINDOW_OBJECT = 'window.$Sealights';
|
|
18
|
-
Constants.SKIP_BROWSER_AGENT = "".concat(Constants.SL_WINDOW_OBJECT, ".skipSlAgent");
|
|
19
|
-
Constants.Messages = (_a = /** @class */ (function () {
|
|
20
|
-
function class_1() {
|
|
21
|
-
}
|
|
22
|
-
return class_1;
|
|
23
|
-
}()),
|
|
24
|
-
_a.CANNOT_BE_NULL_OR_UNDEFINED = 'cannot be null or undefined.',
|
|
25
|
-
_a.CANNOT_BE_EMPTY_STRING = 'cannot be empty string',
|
|
26
|
-
_a);
|
|
27
|
-
return Constants;
|
|
28
|
-
}());
|
|
5
|
+
class Constants {
|
|
6
|
+
}
|
|
29
7
|
exports.Constants = Constants;
|
|
8
|
+
Constants.TRUE = 'true';
|
|
9
|
+
Constants.FALSE = 'false';
|
|
10
|
+
Constants.BUILD_SESSION_ID = 'buildSessionId';
|
|
11
|
+
Constants.REQUEST = 'request';
|
|
12
|
+
Constants.FOOTPRINTS_PACKET = 'footprintsPacket';
|
|
13
|
+
Constants.TEST_STAGE = 'testStage';
|
|
14
|
+
Constants.EXECUTION_BSID = 'executionBsid';
|
|
15
|
+
Constants.CALLBACK = 'callback';
|
|
16
|
+
Constants.PULL_REQUEST_PARAMS = 'pullRequestParams';
|
|
17
|
+
Constants.SL_WINDOW_OBJECT = 'window.$Sealights';
|
|
18
|
+
Constants.SKIP_BROWSER_AGENT = `${Constants.SL_WINDOW_OBJECT}.skipSlAgent`;
|
|
19
|
+
Constants.Messages = (_a = class {
|
|
20
|
+
},
|
|
21
|
+
_a.CANNOT_BE_NULL_OR_UNDEFINED = 'cannot be null or undefined.',
|
|
22
|
+
_a.CANNOT_BE_EMPTY_STRING = 'cannot be empty string',
|
|
23
|
+
_a);
|
|
30
24
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../common/constants/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../common/constants/constants.ts"],"names":[],"mappings":";;;;AACA,MAAa,SAAS;;AAAtB,8BAkBC;AAhBiB,cAAI,GAAG,MAAM,CAAC;AACd,eAAK,GAAG,OAAO,CAAC;AAChB,0BAAgB,GAAG,gBAAgB,CAAC;AACpC,iBAAO,GAAG,SAAS,CAAC;AACpB,2BAAiB,GAAG,kBAAkB,CAAC;AACvC,oBAAU,GAAG,WAAW,CAAC;AACzB,wBAAc,GAAG,eAAe,CAAC;AACjC,kBAAQ,GAAG,UAAU,CAAC;AACtB,6BAAmB,GAAG,mBAAmB,CAAC;AAC1C,0BAAgB,GAAG,mBAAmB,CAAC;AACvC,4BAAkB,GAAG,GAAG,SAAS,CAAC,gBAAgB,cAAc,CAAC;AAEjE,kBAAQ,SAAG;KAGxB;IAFiB,8BAA2B,GAAG,8BAA8B;IAC5D,yBAAsB,GAAG,wBAAwB;QAClE"}
|
|
@@ -1,156 +1,150 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.SlEnvVars = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
SlEnvVars.getHttpTimeout = function () {
|
|
5
|
+
const buffer_size_helper_1 = require("../footprints-process-v6/buffer-size-helper");
|
|
6
|
+
const env_var_parsing_1 = require("../utils/env-var-parsing");
|
|
7
|
+
class SlEnvVars {
|
|
8
|
+
static getHttpTimeout() {
|
|
10
9
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.HTTP_TIMEOUT);
|
|
11
|
-
}
|
|
12
|
-
|
|
10
|
+
}
|
|
11
|
+
static getHttpMaxAttempts() {
|
|
13
12
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.HTTP_MAX_ATTEMPTS);
|
|
14
|
-
}
|
|
15
|
-
|
|
13
|
+
}
|
|
14
|
+
static getHttpAttemptInterval() {
|
|
16
15
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.HTTP_ATTEMPT_INTERVAL);
|
|
17
|
-
}
|
|
18
|
-
|
|
16
|
+
}
|
|
17
|
+
static inProductionListenerMode() {
|
|
19
18
|
return !!process.env[SlEnvVars.PRODUCTION_LISTENER];
|
|
20
|
-
}
|
|
21
|
-
|
|
19
|
+
}
|
|
20
|
+
static getProductionListenerModes() {
|
|
22
21
|
return (process.env[SlEnvVars.PRODUCTION_LISTENER] || '').split(',');
|
|
23
|
-
}
|
|
24
|
-
|
|
22
|
+
}
|
|
23
|
+
static getFileStorage() {
|
|
25
24
|
return process.env[SlEnvVars.FILE_STORAGE];
|
|
26
|
-
}
|
|
27
|
-
|
|
25
|
+
}
|
|
26
|
+
static getBasePath() {
|
|
28
27
|
return process.env[SlEnvVars.BASE_PATH];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
}
|
|
29
|
+
static isUseNewUniqueId() { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.NEW_UNIQUE_ID); }
|
|
30
|
+
static isUseIstanbul() { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.USE_ISTANBUL); }
|
|
31
|
+
static enableFootprintsV6() {
|
|
33
32
|
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.ENABLE_FOOTPRINTS_V6);
|
|
34
|
-
}
|
|
35
|
-
|
|
33
|
+
}
|
|
34
|
+
static getFootprintsCollectIntervalSecs() {
|
|
36
35
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.FOOTPRINTS_COLLECTION_INTERVAL_SECS);
|
|
37
|
-
}
|
|
38
|
-
|
|
36
|
+
}
|
|
37
|
+
static getFootprintsSendMaxIntervalSecs() {
|
|
39
38
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.FOOTPRINTS_SEND_MAX_INTERVAL_SECS);
|
|
40
|
-
}
|
|
41
|
-
|
|
39
|
+
}
|
|
40
|
+
static getFootprintsQueueSize() {
|
|
42
41
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.FOOTPRINTS_QUEUE_SIZE);
|
|
43
|
-
}
|
|
44
|
-
|
|
42
|
+
}
|
|
43
|
+
static getExecutionQueryIntervalSecs() {
|
|
45
44
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.EXECUTION_QUERY_INTERVAL_SEC);
|
|
46
|
-
}
|
|
47
|
-
|
|
45
|
+
}
|
|
46
|
+
static getFootprintsBufferThresholdMb() {
|
|
48
47
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.FOOTPRINTS_BUFFER_THRESHOLD_MB);
|
|
49
|
-
}
|
|
50
|
-
|
|
48
|
+
}
|
|
49
|
+
static blockBrowserHttpTraffic() {
|
|
51
50
|
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.BLOCK_BROWSER_HTTP_TRAFFIC);
|
|
52
|
-
}
|
|
53
|
-
|
|
51
|
+
}
|
|
52
|
+
static getDisableHookDependencyGuard() {
|
|
54
53
|
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.DISABLE_HOOK_DEPENDENCY_GUARD);
|
|
55
|
-
}
|
|
56
|
-
|
|
54
|
+
}
|
|
55
|
+
static shouldUseOtel() {
|
|
57
56
|
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.USE_OTEL_AGENT);
|
|
58
|
-
}
|
|
59
|
-
|
|
57
|
+
}
|
|
58
|
+
static useSlMapping() {
|
|
60
59
|
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.USE_SL_MAPPING);
|
|
61
|
-
}
|
|
62
|
-
|
|
60
|
+
}
|
|
61
|
+
static turnOtelOn() {
|
|
63
62
|
process.env[SlEnvVars.USE_OTEL_AGENT] = 'true';
|
|
64
|
-
}
|
|
65
|
-
|
|
63
|
+
}
|
|
64
|
+
static turnOtelOff() {
|
|
66
65
|
process.env[SlEnvVars.USE_OTEL_AGENT] = 'false';
|
|
67
|
-
}
|
|
68
|
-
|
|
66
|
+
}
|
|
67
|
+
static useSpawnWrap() {
|
|
69
68
|
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.SL_USE_SPAWN_WRAP);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
//Controls the http timeout for all of the HTTP requests which
|
|
73
|
-
//are being sent use the HttpClient.
|
|
74
|
-
SlEnvVars.HTTP_TIMEOUT = 'SL_httpTimeout';
|
|
75
|
-
//For retriable endpoints, max number of attempts
|
|
76
|
-
SlEnvVars.HTTP_MAX_ATTEMPTS = 'SL_HttpMaxAttempts';
|
|
77
|
-
//For retriable endpoints, sleep between attemps in mSec
|
|
78
|
-
SlEnvVars.HTTP_ATTEMPT_INTERVAL = 'SL_HttpAttemptInterval';
|
|
79
|
-
//Set to 'true' in order to report production data.
|
|
80
|
-
SlEnvVars.PRODUCTION_LISTENER = 'SL_production';
|
|
81
|
-
//Determines the path in which we store files.
|
|
82
|
-
SlEnvVars.FILE_STORAGE = 'SL_fileStorage';
|
|
83
|
-
//Determines if should resolve with new uniqueId format.
|
|
84
|
-
SlEnvVars.NEW_UNIQUE_ID = 'SL_newUniqueId';
|
|
85
|
-
//Determines the cwd
|
|
86
|
-
SlEnvVars.BASE_PATH = 'SL_basePath';
|
|
87
|
-
SlEnvVars.USE_ISTANBUL = 'SL_useIstanbul';
|
|
88
|
-
SlEnvVars.ENABLE_FOOTPRINTS_V6 = 'SL_footprintsEnableV6';
|
|
89
|
-
SlEnvVars.FOOTPRINTS_COLLECTION_INTERVAL_SECS = 'SL_footprintsCollectIntervalSecs';
|
|
90
|
-
SlEnvVars.FOOTPRINTS_SEND_MAX_INTERVAL_SECS = 'SL_footprintsSendIntervalSecs';
|
|
91
|
-
SlEnvVars.FOOTPRINTS_QUEUE_SIZE = 'SL_footprintsQueueSize';
|
|
92
|
-
SlEnvVars.EXECUTION_QUERY_INTERVAL_SEC = 'SL_executionQueryIntervalSecs';
|
|
93
|
-
SlEnvVars.FOOTPRINTS_BUFFER_THRESHOLD_MB = 'SL_footprintsBufferThresholdMb';
|
|
94
|
-
SlEnvVars.BLOCK_BROWSER_HTTP_TRAFFIC = 'SL_blockBrowserHttpTraffic';
|
|
95
|
-
//Determines if it should add dummy test in case of hooks dependency (Boolean)
|
|
96
|
-
SlEnvVars.DISABLE_HOOK_DEPENDENCY_GUARD = 'SL_disableHookDependencyGuard';
|
|
97
|
-
// Allow to use SL agent alongside with node agent in bootstrap
|
|
98
|
-
SlEnvVars.USE_OTEL_AGENT = 'SL_useOtelAgent';
|
|
99
|
-
SlEnvVars.USE_SL_MAPPING = 'SL_useSlMapping';
|
|
100
|
-
SlEnvVars.SL_USE_SPAWN_WRAP = 'SL_useSpawnWrap';
|
|
101
|
-
SlEnvVars.CIA = (_a = /** @class */ (function () {
|
|
102
|
-
function class_1() {
|
|
103
|
-
}
|
|
104
|
-
class_1.getFileExtensions = function () {
|
|
105
|
-
return process.env[SlEnvVars.CIA.FILE_EXTENSIONS];
|
|
106
|
-
};
|
|
107
|
-
class_1.getSendCommitTitles = function () {
|
|
108
|
-
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.SEND_COMMIT_TITLES, true);
|
|
109
|
-
};
|
|
110
|
-
class_1.getScmPrefix = function () {
|
|
111
|
-
return process.env[SlEnvVars.CIA.SCM_PREFIX];
|
|
112
|
-
};
|
|
113
|
-
class_1.getSourceRoot = function () {
|
|
114
|
-
return process.env[SlEnvVars.CIA.SL_SOURCE_ROOT];
|
|
115
|
-
};
|
|
116
|
-
class_1.getSlMappingPath = function () {
|
|
117
|
-
return process.env[SlEnvVars.CIA.SL_MAPPING_PATH];
|
|
118
|
-
};
|
|
119
|
-
class_1.getSlMappingUrl = function () {
|
|
120
|
-
return process.env[SlEnvVars.CIA.SL_MAPPING_URL];
|
|
121
|
-
};
|
|
122
|
-
class_1.reduceInstrumentedFileSize = function () {
|
|
123
|
-
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.REDUCE_INSTRUMENTED_FILE_SIZE);
|
|
124
|
-
};
|
|
125
|
-
class_1.minifyInstrumentedOutput = function () { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.MINIFY_INSTRUMENTED_OUTPUT); };
|
|
126
|
-
class_1.inProcessInstrumentation = function () { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.IN_PROCESS_INSTRUMENTATION); };
|
|
127
|
-
class_1.getMaxBuffer = function () {
|
|
128
|
-
var bufferInBytes = env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.CIA.MAX_BUFFER);
|
|
129
|
-
if (bufferInBytes !== null) {
|
|
130
|
-
return bufferInBytes * buffer_size_helper_1.BufferSizeHelper.BYTES_IN_MB;
|
|
131
|
-
}
|
|
132
|
-
return bufferInBytes;
|
|
133
|
-
};
|
|
134
|
-
return class_1;
|
|
135
|
-
}()),
|
|
136
|
-
//Allow to override the files extensions that will be scanned and instrumented by the Build Scanner.
|
|
137
|
-
_a.FILE_EXTENSIONS = 'SL_fileExtensions',
|
|
138
|
-
//Allow to replace the file absplute before enrichment (support .git folder position change).
|
|
139
|
-
_a.SCM_PREFIX = 'SL_scmPrefix',
|
|
140
|
-
//Determines the root path we should add to the source files.
|
|
141
|
-
_a.SL_SOURCE_ROOT = 'SL_sourceRoot',
|
|
142
|
-
//Determine the physical path of sl-mapping file (relevant to cwd)
|
|
143
|
-
_a.SL_MAPPING_PATH = 'SL_mappingPath',
|
|
144
|
-
//Determine the url of sl-mapping file (relevant application root)
|
|
145
|
-
_a.SL_MAPPING_URL = 'SL_mappingUrl',
|
|
146
|
-
_a.REDUCE_INSTRUMENTED_FILE_SIZE = 'SL_reduceInstrumentedFileSize',
|
|
147
|
-
_a.MINIFY_INSTRUMENTED_OUTPUT = 'SL_minifyInstrumentedOutput',
|
|
148
|
-
_a.IN_PROCESS_INSTRUMENTATION = 'SL_inProcessInstrumentation',
|
|
149
|
-
_a.SEND_COMMIT_TITLES = 'SL_sendCommitTitles',
|
|
150
|
-
// Set the max buffer size for instrumentation in child process (in MB)
|
|
151
|
-
_a.MAX_BUFFER = 'SL_maxBuffer',
|
|
152
|
-
_a);
|
|
153
|
-
return SlEnvVars;
|
|
154
|
-
}());
|
|
69
|
+
}
|
|
70
|
+
}
|
|
155
71
|
exports.SlEnvVars = SlEnvVars;
|
|
72
|
+
//Controls the http timeout for all of the HTTP requests which
|
|
73
|
+
//are being sent use the HttpClient.
|
|
74
|
+
SlEnvVars.HTTP_TIMEOUT = 'SL_httpTimeout';
|
|
75
|
+
//For retriable endpoints, max number of attempts
|
|
76
|
+
SlEnvVars.HTTP_MAX_ATTEMPTS = 'SL_HttpMaxAttempts';
|
|
77
|
+
//For retriable endpoints, sleep between attemps in mSec
|
|
78
|
+
SlEnvVars.HTTP_ATTEMPT_INTERVAL = 'SL_HttpAttemptInterval';
|
|
79
|
+
//Set to 'true' in order to report production data.
|
|
80
|
+
SlEnvVars.PRODUCTION_LISTENER = 'SL_production';
|
|
81
|
+
//Determines the path in which we store files.
|
|
82
|
+
SlEnvVars.FILE_STORAGE = 'SL_fileStorage';
|
|
83
|
+
//Determines if should resolve with new uniqueId format.
|
|
84
|
+
SlEnvVars.NEW_UNIQUE_ID = 'SL_newUniqueId';
|
|
85
|
+
//Determines the cwd
|
|
86
|
+
SlEnvVars.BASE_PATH = 'SL_basePath';
|
|
87
|
+
SlEnvVars.USE_ISTANBUL = 'SL_useIstanbul';
|
|
88
|
+
SlEnvVars.ENABLE_FOOTPRINTS_V6 = 'SL_footprintsEnableV6';
|
|
89
|
+
SlEnvVars.FOOTPRINTS_COLLECTION_INTERVAL_SECS = 'SL_footprintsCollectIntervalSecs';
|
|
90
|
+
SlEnvVars.FOOTPRINTS_SEND_MAX_INTERVAL_SECS = 'SL_footprintsSendIntervalSecs';
|
|
91
|
+
SlEnvVars.FOOTPRINTS_QUEUE_SIZE = 'SL_footprintsQueueSize';
|
|
92
|
+
SlEnvVars.EXECUTION_QUERY_INTERVAL_SEC = 'SL_executionQueryIntervalSecs';
|
|
93
|
+
SlEnvVars.FOOTPRINTS_BUFFER_THRESHOLD_MB = 'SL_footprintsBufferThresholdMb';
|
|
94
|
+
SlEnvVars.BLOCK_BROWSER_HTTP_TRAFFIC = 'SL_blockBrowserHttpTraffic';
|
|
95
|
+
//Determines if it should add dummy test in case of hooks dependency (Boolean)
|
|
96
|
+
SlEnvVars.DISABLE_HOOK_DEPENDENCY_GUARD = 'SL_disableHookDependencyGuard';
|
|
97
|
+
// Allow to use SL agent alongside with node agent in bootstrap
|
|
98
|
+
SlEnvVars.USE_OTEL_AGENT = 'SL_useOtelAgent';
|
|
99
|
+
SlEnvVars.USE_SL_MAPPING = 'SL_useSlMapping';
|
|
100
|
+
SlEnvVars.SL_USE_SPAWN_WRAP = 'SL_useSpawnWrap';
|
|
101
|
+
SlEnvVars.CIA = (_a = class {
|
|
102
|
+
static getFileExtensions() {
|
|
103
|
+
return process.env[SlEnvVars.CIA.FILE_EXTENSIONS];
|
|
104
|
+
}
|
|
105
|
+
static getSendCommitTitles() {
|
|
106
|
+
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.SEND_COMMIT_TITLES, true);
|
|
107
|
+
}
|
|
108
|
+
static getScmPrefix() {
|
|
109
|
+
return process.env[SlEnvVars.CIA.SCM_PREFIX];
|
|
110
|
+
}
|
|
111
|
+
static getSourceRoot() {
|
|
112
|
+
return process.env[SlEnvVars.CIA.SL_SOURCE_ROOT];
|
|
113
|
+
}
|
|
114
|
+
static getSlMappingPath() {
|
|
115
|
+
return process.env[SlEnvVars.CIA.SL_MAPPING_PATH];
|
|
116
|
+
}
|
|
117
|
+
static getSlMappingUrl() {
|
|
118
|
+
return process.env[SlEnvVars.CIA.SL_MAPPING_URL];
|
|
119
|
+
}
|
|
120
|
+
static reduceInstrumentedFileSize() {
|
|
121
|
+
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.REDUCE_INSTRUMENTED_FILE_SIZE);
|
|
122
|
+
}
|
|
123
|
+
static minifyInstrumentedOutput() { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.MINIFY_INSTRUMENTED_OUTPUT); }
|
|
124
|
+
static inProcessInstrumentation() { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.IN_PROCESS_INSTRUMENTATION); }
|
|
125
|
+
static getMaxBuffer() {
|
|
126
|
+
const bufferInBytes = env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.CIA.MAX_BUFFER);
|
|
127
|
+
if (bufferInBytes !== null) {
|
|
128
|
+
return bufferInBytes * buffer_size_helper_1.BufferSizeHelper.BYTES_IN_MB;
|
|
129
|
+
}
|
|
130
|
+
return bufferInBytes;
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
//Allow to override the files extensions that will be scanned and instrumented by the Build Scanner.
|
|
134
|
+
_a.FILE_EXTENSIONS = 'SL_fileExtensions',
|
|
135
|
+
//Allow to replace the file absplute before enrichment (support .git folder position change).
|
|
136
|
+
_a.SCM_PREFIX = 'SL_scmPrefix',
|
|
137
|
+
//Determines the root path we should add to the source files.
|
|
138
|
+
_a.SL_SOURCE_ROOT = 'SL_sourceRoot',
|
|
139
|
+
//Determine the physical path of sl-mapping file (relevant to cwd)
|
|
140
|
+
_a.SL_MAPPING_PATH = 'SL_mappingPath',
|
|
141
|
+
//Determine the url of sl-mapping file (relevant application root)
|
|
142
|
+
_a.SL_MAPPING_URL = 'SL_mappingUrl',
|
|
143
|
+
_a.REDUCE_INSTRUMENTED_FILE_SIZE = 'SL_reduceInstrumentedFileSize',
|
|
144
|
+
_a.MINIFY_INSTRUMENTED_OUTPUT = 'SL_minifyInstrumentedOutput',
|
|
145
|
+
_a.IN_PROCESS_INSTRUMENTATION = 'SL_inProcessInstrumentation',
|
|
146
|
+
_a.SEND_COMMIT_TITLES = 'SL_sendCommitTitles',
|
|
147
|
+
// Set the max buffer size for instrumentation in child process (in MB)
|
|
148
|
+
_a.MAX_BUFFER = 'SL_maxBuffer',
|
|
149
|
+
_a);
|
|
156
150
|
//# sourceMappingURL=sl-env-vars.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sl-env-vars.js","sourceRoot":"","sources":["../../../common/constants/sl-env-vars.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sl-env-vars.js","sourceRoot":"","sources":["../../../common/constants/sl-env-vars.ts"],"names":[],"mappings":";;;;AAAA,oFAA+E;AAC/E,8DAAyD;AAEzD,MAAa,SAAS;IAgDX,MAAM,CAAC,cAAc;QACxB,OAAO,+BAAa,CAAC,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,kBAAkB;QAC5B,OAAO,+BAAa,CAAC,WAAW,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAClE,CAAC;IAEM,MAAM,CAAC,sBAAsB;QAChC,OAAO,+BAAa,CAAC,WAAW,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;IACtE,CAAC;IAEM,MAAM,CAAC,wBAAwB;QAClC,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IACxD,CAAC;IAEM,MAAM,CAAC,0BAA0B;QACpC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzE,CAAC;IAEM,MAAM,CAAC,cAAc;QACxB,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAC/C,CAAC;IAEM,MAAM,CAAC,WAAW;QACrB,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC;IAEM,MAAM,CAAC,gBAAgB,KAAc,OAAO,+BAAa,CAAC,YAAY,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAElG,MAAM,CAAC,aAAa,KAAc,OAAO,+BAAa,CAAC,YAAY,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IAE9F,MAAM,CAAC,kBAAkB;QAC5B,O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