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.
Files changed (431) hide show
  1. package/browser-agent/dist/browser-agent-all.js +33 -28
  2. package/browser-agent/dist/browser-agent-all.min.js +2 -2
  3. package/browser-agent/package.json +1 -1
  4. package/package.json +2 -2
  5. package/tsOutputs/api.js +32 -86
  6. package/tsOutputs/build-scanner/ast-utils.js +11 -11
  7. package/tsOutputs/build-scanner/ast-utils.js.map +1 -1
  8. package/tsOutputs/build-scanner/build-diff-process.js +36 -16
  9. package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
  10. package/tsOutputs/build-scanner/cia.js +2 -2
  11. package/tsOutputs/build-scanner/cia.js.map +1 -1
  12. package/tsOutputs/build-scanner/default-values-resolver.js +5 -7
  13. package/tsOutputs/build-scanner/default-values-resolver.js.map +1 -1
  14. package/tsOutputs/build-scanner/diagnostic/build-scan-diagnosis.js +101 -159
  15. package/tsOutputs/build-scanner/diagnostic/build-scan-diagnosis.js.map +1 -1
  16. package/tsOutputs/build-scanner/diagnostic/none-diagnosis.js +23 -55
  17. package/tsOutputs/build-scanner/diagnostic/none-diagnosis.js.map +1 -1
  18. package/tsOutputs/build-scanner/file-and-folder-utils.js +3 -3
  19. package/tsOutputs/build-scanner/file-and-folder-utils.js.map +1 -1
  20. package/tsOutputs/build-scanner/file-system/actual-file.js +3 -3
  21. package/tsOutputs/build-scanner/file-system/actual-file.js.map +1 -1
  22. package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js +57 -60
  23. package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js.map +1 -1
  24. package/tsOutputs/build-scanner/instrumentation/content-instrumenter.js +9 -10
  25. package/tsOutputs/build-scanner/instrumentation/content-instrumenter.js.map +1 -1
  26. package/tsOutputs/build-scanner/instrumentation/files-instrumenter.js +80 -124
  27. package/tsOutputs/build-scanner/instrumentation/files-instrumenter.js.map +1 -1
  28. package/tsOutputs/build-scanner/instrumentation/instrumentation-utils.js +3 -3
  29. package/tsOutputs/build-scanner/instrumentation/instrumentation-utils.js.map +1 -1
  30. package/tsOutputs/build-scanner/instrumentation/instrumented-file-size-reducer.js +4 -4
  31. package/tsOutputs/build-scanner/instrumentation/instrumented-file-size-reducer.js.map +1 -1
  32. package/tsOutputs/build-scanner/instrumentation/process-pool/instrumenter-spawn.js +15 -50
  33. package/tsOutputs/build-scanner/instrumentation/process-pool/instrumenter-spawn.js.map +1 -1
  34. package/tsOutputs/build-scanner/instrumentation/process-pool/process-pool.js +84 -141
  35. package/tsOutputs/build-scanner/instrumentation/process-pool/process-pool.js.map +1 -1
  36. package/tsOutputs/build-scanner/instrumentation/process-pool/split-by-transform-stream.js +15 -34
  37. package/tsOutputs/build-scanner/instrumentation/process-pool/split-by-transform-stream.js.map +1 -1
  38. package/tsOutputs/build-scanner/instrumentation/process-pool/stop-by-condition-transform-stream.js +9 -27
  39. package/tsOutputs/build-scanner/instrumentation/process-pool/stop-by-condition-transform-stream.js.map +1 -1
  40. package/tsOutputs/build-scanner/instrumentation/strategies/copy-as-is-strategy.js +8 -10
  41. package/tsOutputs/build-scanner/instrumentation/strategies/copy-as-is-strategy.js.map +1 -1
  42. package/tsOutputs/build-scanner/instrumentation/strategies/js-instrumnetation-strategy.js +22 -54
  43. package/tsOutputs/build-scanner/instrumentation/strategies/js-instrumnetation-strategy.js.map +1 -1
  44. package/tsOutputs/build-scanner/instrumentation/strategies/markup-instrumnetation-strategy.js +55 -107
  45. package/tsOutputs/build-scanner/instrumentation/strategies/markup-instrumnetation-strategy.js.map +1 -1
  46. package/tsOutputs/build-scanner/js_diff/file-signature.js +5 -6
  47. package/tsOutputs/build-scanner/js_diff/file-signature.js.map +1 -1
  48. package/tsOutputs/build-scanner/js_diff/files-mapping.js +6 -6
  49. package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
  50. package/tsOutputs/build-scanner/js_diff/generated-file-signature.js +3 -3
  51. package/tsOutputs/build-scanner/js_diff/generated-file-signature.js.map +1 -1
  52. package/tsOutputs/build-scanner/js_diff/guess-method-location.js +26 -27
  53. package/tsOutputs/build-scanner/js_diff/guess-method-location.js.map +1 -1
  54. package/tsOutputs/build-scanner/js_diff/method-signature.js +1 -1
  55. package/tsOutputs/build-scanner/js_diff/method-signature.js.map +1 -1
  56. package/tsOutputs/build-scanner/js_diff/sl-mapper.js +28 -79
  57. package/tsOutputs/build-scanner/js_diff/sl-mapper.js.map +1 -1
  58. package/tsOutputs/build-scanner/js_diff/source-data-enricher.js +3 -2
  59. package/tsOutputs/build-scanner/js_diff/source-data-enricher.js.map +1 -1
  60. package/tsOutputs/build-scanner/js_diff/source-files-notifier.js +1 -1
  61. package/tsOutputs/build-scanner/js_diff/source-files-notifier.js.map +1 -1
  62. package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js +76 -149
  63. package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js.map +1 -1
  64. package/tsOutputs/build-scanner/mappings/file-element-utils.js +9 -9
  65. package/tsOutputs/build-scanner/mappings/file-element-utils.js.map +1 -1
  66. package/tsOutputs/build-scanner/mappings/file-enricher.js +71 -100
  67. package/tsOutputs/build-scanner/mappings/file-enricher.js.map +1 -1
  68. package/tsOutputs/build-scanner/mappings/file-path-fixer.js +106 -0
  69. package/tsOutputs/build-scanner/mappings/file-path-fixer.js.map +1 -0
  70. package/tsOutputs/build-scanner/mappings/files-container.js +89 -0
  71. package/tsOutputs/build-scanner/mappings/files-container.js.map +1 -0
  72. package/tsOutputs/build-scanner/mappings/files-data-container.js +18 -23
  73. package/tsOutputs/build-scanner/mappings/files-data-container.js.map +1 -1
  74. package/tsOutputs/build-scanner/mappings/source-path-mapper.js +15 -45
  75. package/tsOutputs/build-scanner/mappings/source-path-mapper.js.map +1 -1
  76. package/tsOutputs/build-scanner/markup-files-parser.js +1 -1
  77. package/tsOutputs/build-scanner/markup-files-parser.js.map +1 -1
  78. package/tsOutputs/build-scanner/scm/scm-file-fixer.js +27 -0
  79. package/tsOutputs/build-scanner/scm/scm-file-fixer.js.map +1 -0
  80. package/tsOutputs/build-scanner/scm/scm-files-container.js +9 -45
  81. package/tsOutputs/build-scanner/scm/scm-files-container.js.map +1 -1
  82. package/tsOutputs/build-scanner/sl-config-cia-cli.js +1 -1
  83. package/tsOutputs/build-scanner/sl-config-cia-cli.js.map +1 -1
  84. package/tsOutputs/build-scanner/utils.js +5 -5
  85. package/tsOutputs/build-scanner/utils.js.map +1 -1
  86. package/tsOutputs/cli-parse/agent-instance-data.js +2 -2
  87. package/tsOutputs/cli-parse/agent-instance-data.js.map +1 -1
  88. package/tsOutputs/cli-parse/child-process-wrapper.js +26 -60
  89. package/tsOutputs/cli-parse/child-process-wrapper.js.map +1 -1
  90. package/tsOutputs/cli-parse/cli.js +74 -191
  91. package/tsOutputs/cli-parse/cli.js.map +1 -1
  92. package/tsOutputs/cli-parse/constants/constants.js +9 -9
  93. package/tsOutputs/cli-parse/constants/constants.js.map +1 -1
  94. package/tsOutputs/cli-parse/contracts.d.ts +2 -0
  95. package/tsOutputs/cli-parse/contracts.js.map +1 -1
  96. package/tsOutputs/cli-parse/custom-commander.js +17 -18
  97. package/tsOutputs/cli-parse/custom-commander.js.map +1 -1
  98. package/tsOutputs/cli-parse/executors/base-executor.js +121 -236
  99. package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
  100. package/tsOutputs/cli-parse/executors/build-args-dto.js +11 -11
  101. package/tsOutputs/cli-parse/executors/build-args-dto.js.map +1 -1
  102. package/tsOutputs/cli-parse/executors/build-end-executor.js +34 -92
  103. package/tsOutputs/cli-parse/executors/build-end-executor.js.map +1 -1
  104. package/tsOutputs/cli-parse/executors/build-executor.js +68 -132
  105. package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
  106. package/tsOutputs/cli-parse/executors/config-executor.js +35 -92
  107. package/tsOutputs/cli-parse/executors/config-executor.js.map +1 -1
  108. package/tsOutputs/cli-parse/executors/dry-run/base-data.js +29 -39
  109. package/tsOutputs/cli-parse/executors/dry-run/base-data.js.map +1 -1
  110. package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js +92 -177
  111. package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js.map +1 -1
  112. package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js +110 -194
  113. package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js.map +1 -1
  114. package/tsOutputs/cli-parse/executors/dry-run/dry-run-validation.js +49 -83
  115. package/tsOutputs/cli-parse/executors/dry-run/dry-run-validation.js.map +1 -1
  116. package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js +55 -113
  117. package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js.map +1 -1
  118. package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js +24 -25
  119. package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js.map +1 -1
  120. package/tsOutputs/cli-parse/executors/end-execution-executor.js +16 -64
  121. package/tsOutputs/cli-parse/executors/end-execution-executor.js.map +1 -1
  122. package/tsOutputs/cli-parse/executors/integration-build-components-executor.js +29 -82
  123. package/tsOutputs/cli-parse/executors/integration-build-components-executor.js.map +1 -1
  124. package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js +12 -59
  125. package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js.map +1 -1
  126. package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js +9 -58
  127. package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js.map +1 -1
  128. package/tsOutputs/cli-parse/executors/mocha-executor.js +41 -101
  129. package/tsOutputs/cli-parse/executors/mocha-executor.js.map +1 -1
  130. package/tsOutputs/cli-parse/executors/nyc-report-executor.js +24 -83
  131. package/tsOutputs/cli-parse/executors/nyc-report-executor.js.map +1 -1
  132. package/tsOutputs/cli-parse/executors/pr-config-executor.js +15 -63
  133. package/tsOutputs/cli-parse/executors/pr-config-executor.js.map +1 -1
  134. package/tsOutputs/cli-parse/executors/run-executor.js +23 -75
  135. package/tsOutputs/cli-parse/executors/run-executor.js.map +1 -1
  136. package/tsOutputs/cli-parse/executors/start-execution-executor.js +16 -64
  137. package/tsOutputs/cli-parse/executors/start-execution-executor.js.map +1 -1
  138. package/tsOutputs/cli-parse/executors/test-executions-executor.js +9 -63
  139. package/tsOutputs/cli-parse/executors/test-executions-executor.js.map +1 -1
  140. package/tsOutputs/cli-parse/executors/test-listener-executor.js +47 -117
  141. package/tsOutputs/cli-parse/executors/test-listener-executor.js.map +1 -1
  142. package/tsOutputs/cli-parse/executors/upload-report-executor.js +23 -71
  143. package/tsOutputs/cli-parse/executors/upload-report-executor.js.map +1 -1
  144. package/tsOutputs/cli-parse/utils.js +10 -10
  145. package/tsOutputs/cli-parse/utils.js.map +1 -1
  146. package/tsOutputs/common/agent-events/agent-events-controller.js +146 -251
  147. package/tsOutputs/common/agent-events/agent-events-controller.js.map +1 -1
  148. package/tsOutputs/common/agent-events/agent-events-guard.js +12 -15
  149. package/tsOutputs/common/agent-events/agent-events-guard.js.map +1 -1
  150. package/tsOutputs/common/agent-events/agent-instance-info-builder.js +22 -24
  151. package/tsOutputs/common/agent-events/agent-instance-info-builder.js.map +1 -1
  152. package/tsOutputs/common/agent-events/agent-start-info-builder.js +7 -8
  153. package/tsOutputs/common/agent-events/agent-start-info-builder.js.map +1 -1
  154. package/tsOutputs/common/agent-events/browser-info-builder.js +9 -10
  155. package/tsOutputs/common/agent-events/browser-info-builder.js.map +1 -1
  156. package/tsOutputs/common/agent-events/ci-info-builder.js +12 -13
  157. package/tsOutputs/common/agent-events/ci-info-builder.js.map +1 -1
  158. package/tsOutputs/common/agent-events/cockpit-notifier.js +38 -87
  159. package/tsOutputs/common/agent-events/cockpit-notifier.js.map +1 -1
  160. package/tsOutputs/common/agent-events/dry-run-agent-events-controller.js +10 -27
  161. package/tsOutputs/common/agent-events/dry-run-agent-events-controller.js.map +1 -1
  162. package/tsOutputs/common/agent-events/machine-info-builder.js +21 -22
  163. package/tsOutputs/common/agent-events/machine-info-builder.js.map +1 -1
  164. package/tsOutputs/common/agent-events/no-op-agent-events-controller.js +30 -84
  165. package/tsOutputs/common/agent-events/no-op-agent-events-controller.js.map +1 -1
  166. package/tsOutputs/common/agent-events/nodejs-env-info-builder.js +7 -8
  167. package/tsOutputs/common/agent-events/nodejs-env-info-builder.js.map +1 -1
  168. package/tsOutputs/common/agent-events/sensitive-data-filter.js +3 -4
  169. package/tsOutputs/common/agent-events/sensitive-data-filter.js.map +1 -1
  170. package/tsOutputs/common/agent-instance-data.js +23 -28
  171. package/tsOutputs/common/agent-instance-data.js.map +1 -1
  172. package/tsOutputs/common/cli-progress.js +16 -19
  173. package/tsOutputs/common/cli-progress.js.map +1 -1
  174. package/tsOutputs/common/config-process/config-loader.js +23 -24
  175. package/tsOutputs/common/config-process/config-loader.js.map +1 -1
  176. package/tsOutputs/common/config-process/config-system.js +104 -131
  177. package/tsOutputs/common/config-process/config-system.js.map +1 -1
  178. package/tsOutputs/common/config-process/config.js +52 -73
  179. package/tsOutputs/common/config-process/config.js.map +1 -1
  180. package/tsOutputs/common/config-process/index.js +38 -57
  181. package/tsOutputs/common/config-process/index.js.map +1 -1
  182. package/tsOutputs/common/config-process/no-op-config-process.js +9 -29
  183. package/tsOutputs/common/config-process/no-op-config-process.js.map +1 -1
  184. package/tsOutputs/common/constants/constants.js +19 -25
  185. package/tsOutputs/common/constants/constants.js.map +1 -1
  186. package/tsOutputs/common/constants/sl-env-vars.js +125 -131
  187. package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
  188. package/tsOutputs/common/coverage-elements/file-element.js +66 -103
  189. package/tsOutputs/common/coverage-elements/file-element.js.map +1 -1
  190. package/tsOutputs/common/coverage-elements/istanbul-unique-id-converter.js +28 -47
  191. package/tsOutputs/common/coverage-elements/istanbul-unique-id-converter.js.map +1 -1
  192. package/tsOutputs/common/coverage-elements/new-id-resolver.js +17 -17
  193. package/tsOutputs/common/coverage-elements/new-id-resolver.js.map +1 -1
  194. package/tsOutputs/common/coverage-elements/original-module-loader.js +71 -79
  195. package/tsOutputs/common/coverage-elements/original-module-loader.js.map +1 -1
  196. package/tsOutputs/common/coverage-elements/unique-id-converter.js +90 -110
  197. package/tsOutputs/common/coverage-elements/unique-id-converter.js.map +1 -1
  198. package/tsOutputs/common/environment-data-service.js +10 -11
  199. package/tsOutputs/common/environment-data-service.js.map +1 -1
  200. package/tsOutputs/common/events-process/events-creator.js +20 -32
  201. package/tsOutputs/common/events-process/events-creator.js.map +1 -1
  202. package/tsOutputs/common/events-process/index.js +97 -186
  203. package/tsOutputs/common/events-process/index.js.map +1 -1
  204. package/tsOutputs/common/footprints-process/collection-interval.js +10 -11
  205. package/tsOutputs/common/footprints-process/collection-interval.js.map +1 -1
  206. package/tsOutputs/common/footprints-process/footprints-service-proxy.js +21 -22
  207. package/tsOutputs/common/footprints-process/footprints-service-proxy.js.map +1 -1
  208. package/tsOutputs/common/footprints-process/index.js +68 -102
  209. package/tsOutputs/common/footprints-process/index.js.map +1 -1
  210. package/tsOutputs/common/footprints-process/istanbul-to-footprints-contract.js +2 -5
  211. package/tsOutputs/common/footprints-process/istanbul-to-footprints-contract.js.map +1 -1
  212. package/tsOutputs/common/footprints-process/istanbul-to-footprints.js +160 -162
  213. package/tsOutputs/common/footprints-process/istanbul-to-footprints.js.map +1 -1
  214. package/tsOutputs/common/footprints-process/production-footprints-handler.js +103 -156
  215. package/tsOutputs/common/footprints-process/production-footprints-handler.js.map +1 -1
  216. package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js +30 -48
  217. package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js.map +1 -1
  218. package/tsOutputs/common/footprints-process-v6/browser-footprints-buffer.js +7 -25
  219. package/tsOutputs/common/footprints-process-v6/browser-footprints-buffer.js.map +1 -1
  220. package/tsOutputs/common/footprints-process-v6/buffer-size-helper.js +13 -14
  221. package/tsOutputs/common/footprints-process-v6/buffer-size-helper.js.map +1 -1
  222. package/tsOutputs/common/footprints-process-v6/collector-footprints-buffer.js +14 -32
  223. package/tsOutputs/common/footprints-process-v6/collector-footprints-buffer.js.map +1 -1
  224. package/tsOutputs/common/footprints-process-v6/collector-footprints-process.js +43 -109
  225. package/tsOutputs/common/footprints-process-v6/collector-footprints-process.js.map +1 -1
  226. package/tsOutputs/common/footprints-process-v6/contracts.js +2 -5
  227. package/tsOutputs/common/footprints-process-v6/contracts.js.map +1 -1
  228. package/tsOutputs/common/footprints-process-v6/footprints-buffer.js +55 -78
  229. package/tsOutputs/common/footprints-process-v6/footprints-buffer.js.map +1 -1
  230. package/tsOutputs/common/footprints-process-v6/hits-collector.js +89 -129
  231. package/tsOutputs/common/footprints-process-v6/hits-collector.js.map +1 -1
  232. package/tsOutputs/common/footprints-process-v6/hits-converter.js +70 -78
  233. package/tsOutputs/common/footprints-process-v6/hits-converter.js.map +1 -1
  234. package/tsOutputs/common/footprints-process-v6/index.js +204 -347
  235. package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
  236. package/tsOutputs/common/footprints-process-v6/location-formatter.js +2 -2
  237. package/tsOutputs/common/footprints-process-v6/location-formatter.js.map +1 -1
  238. package/tsOutputs/common/footprints-process-v6/relative-path-resolver.js +10 -11
  239. package/tsOutputs/common/footprints-process-v6/relative-path-resolver.js.map +1 -1
  240. package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js +5 -25
  241. package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js.map +1 -1
  242. package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js +6 -57
  243. package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js.map +1 -1
  244. package/tsOutputs/common/footprints-process-v6/remote-hits-collector.js +7 -27
  245. package/tsOutputs/common/footprints-process-v6/remote-hits-collector.js.map +1 -1
  246. package/tsOutputs/common/footprints-process-v6/source-map-data.js +14 -15
  247. package/tsOutputs/common/footprints-process-v6/source-map-data.js.map +1 -1
  248. package/tsOutputs/common/http/backend-proxy.js +222 -321
  249. package/tsOutputs/common/http/backend-proxy.js.map +1 -1
  250. package/tsOutputs/common/http/contracts.js +40 -116
  251. package/tsOutputs/common/http/contracts.js.map +1 -1
  252. package/tsOutputs/common/http/dry-run-proxy.js +68 -111
  253. package/tsOutputs/common/http/dry-run-proxy.js.map +1 -1
  254. package/tsOutputs/common/http/entities-mapper.js +6 -9
  255. package/tsOutputs/common/http/entities-mapper.js.map +1 -1
  256. package/tsOutputs/common/http/http-client.js +76 -86
  257. package/tsOutputs/common/http/http-client.js.map +1 -1
  258. package/tsOutputs/common/http/sl-routes.js +119 -122
  259. package/tsOutputs/common/http/sl-routes.js.map +1 -1
  260. package/tsOutputs/common/ignored-files-handler.js +48 -49
  261. package/tsOutputs/common/ignored-files-handler.js.map +1 -1
  262. package/tsOutputs/common/logger.js +66 -88
  263. package/tsOutputs/common/logger.js.map +1 -1
  264. package/tsOutputs/common/messages-formatter.js +9 -14
  265. package/tsOutputs/common/messages-formatter.js.map +1 -1
  266. package/tsOutputs/common/no-op-state-tracker.js +14 -37
  267. package/tsOutputs/common/no-op-state-tracker.js.map +1 -1
  268. package/tsOutputs/common/queue.js +18 -36
  269. package/tsOutputs/common/queue.js.map +1 -1
  270. package/tsOutputs/common/scm/git-cloner.js +30 -94
  271. package/tsOutputs/common/scm/git-cloner.js.map +1 -1
  272. package/tsOutputs/common/scm/git-format-builder.js +24 -25
  273. package/tsOutputs/common/scm/git-format-builder.js.map +1 -1
  274. package/tsOutputs/common/scm/git.js +192 -327
  275. package/tsOutputs/common/scm/git.js.map +1 -1
  276. package/tsOutputs/common/scm/none.js +58 -110
  277. package/tsOutputs/common/scm/none.js.map +1 -1
  278. package/tsOutputs/common/scm/scm-factory.js +6 -9
  279. package/tsOutputs/common/scm/scm-factory.js.map +1 -1
  280. package/tsOutputs/common/short-name-to-file-mapper.js +30 -33
  281. package/tsOutputs/common/short-name-to-file-mapper.js.map +1 -1
  282. package/tsOutputs/common/source-map-handler.js +76 -98
  283. package/tsOutputs/common/source-map-handler.js.map +1 -1
  284. package/tsOutputs/common/source-map-reader.js +35 -36
  285. package/tsOutputs/common/source-map-reader.js.map +1 -1
  286. package/tsOutputs/common/source-maps-utils.js +8 -11
  287. package/tsOutputs/common/source-maps-utils.js.map +1 -1
  288. package/tsOutputs/common/state-tracker-fpv6.js +15 -37
  289. package/tsOutputs/common/state-tracker-fpv6.js.map +1 -1
  290. package/tsOutputs/common/state-tracker.js +124 -212
  291. package/tsOutputs/common/state-tracker.js.map +1 -1
  292. package/tsOutputs/common/system-date.js +3 -3
  293. package/tsOutputs/common/system-date.js.map +1 -1
  294. package/tsOutputs/common/utils/abstract-data-builder.js +8 -9
  295. package/tsOutputs/common/utils/abstract-data-builder.js.map +1 -1
  296. package/tsOutputs/common/utils/build-session-data-builder.js +25 -79
  297. package/tsOutputs/common/utils/build-session-data-builder.js.map +1 -1
  298. package/tsOutputs/common/utils/dependency-utils.js +13 -16
  299. package/tsOutputs/common/utils/dependency-utils.js.map +1 -1
  300. package/tsOutputs/common/utils/env-var-parsing.js +10 -14
  301. package/tsOutputs/common/utils/env-var-parsing.js.map +1 -1
  302. package/tsOutputs/common/utils/files-utils.js +16 -19
  303. package/tsOutputs/common/utils/files-utils.js.map +1 -1
  304. package/tsOutputs/common/utils/process-utils.js +12 -25
  305. package/tsOutputs/common/utils/process-utils.js.map +1 -1
  306. package/tsOutputs/common/utils/test-runner-build-session-data-builder.js +16 -62
  307. package/tsOutputs/common/utils/test-runner-build-session-data-builder.js.map +1 -1
  308. package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js +120 -192
  309. package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js.map +1 -1
  310. package/tsOutputs/common/utils/timer-utils.js +4 -7
  311. package/tsOutputs/common/utils/timer-utils.js.map +1 -1
  312. package/tsOutputs/common/utils/token-data-builder.js +30 -50
  313. package/tsOutputs/common/utils/token-data-builder.js.map +1 -1
  314. package/tsOutputs/common/utils/validation-utils.js +7 -10
  315. package/tsOutputs/common/utils/validation-utils.js.map +1 -1
  316. package/tsOutputs/common/uuid.js +7 -10
  317. package/tsOutputs/common/uuid.js.map +1 -1
  318. package/tsOutputs/common/v8-utils.js +12 -50
  319. package/tsOutputs/common/v8-utils.js.map +1 -1
  320. package/tsOutputs/common/watchdog.js +35 -56
  321. package/tsOutputs/common/watchdog.js.map +1 -1
  322. package/tsOutputs/mocha-reporter/index.js +12 -12
  323. package/tsOutputs/mocha-reporter/index.js.map +1 -1
  324. package/tsOutputs/mocha-reporter/otel-agent.js +47 -118
  325. package/tsOutputs/mocha-reporter/otel-agent.js.map +1 -1
  326. package/tsOutputs/test-listener/SlNodeJsProxy.js +34 -35
  327. package/tsOutputs/test-listener/SlNodeJsProxy.js.map +1 -1
  328. package/tsOutputs/test-listener/UserMessageHelper.js +14 -19
  329. package/tsOutputs/test-listener/UserMessageHelper.js.map +1 -1
  330. package/tsOutputs/test-listener/agent-loader.js +42 -59
  331. package/tsOutputs/test-listener/agent-loader.js.map +1 -1
  332. package/tsOutputs/test-listener/agent.js +93 -150
  333. package/tsOutputs/test-listener/agent.js.map +1 -1
  334. package/tsOutputs/test-listener/api.js +36 -70
  335. package/tsOutputs/test-listener/api.js.map +1 -1
  336. package/tsOutputs/test-listener/base-proxy.js +25 -27
  337. package/tsOutputs/test-listener/base-proxy.js.map +1 -1
  338. package/tsOutputs/test-listener/bootstrap.js +6 -6
  339. package/tsOutputs/test-listener/bootstrap.js.map +1 -1
  340. package/tsOutputs/test-listener/child-process-patcher.js +10 -10
  341. package/tsOutputs/test-listener/child-process-patcher.js.map +1 -1
  342. package/tsOutputs/test-listener/cli.js +27 -30
  343. package/tsOutputs/test-listener/cli.js.map +1 -1
  344. package/tsOutputs/test-listener/coloring/http-coloring.js +30 -33
  345. package/tsOutputs/test-listener/coloring/http-coloring.js.map +1 -1
  346. package/tsOutputs/test-listener/coloring/listening-port.js +14 -17
  347. package/tsOutputs/test-listener/coloring/listening-port.js.map +1 -1
  348. package/tsOutputs/test-listener/command-line-arg-parser.js +12 -15
  349. package/tsOutputs/test-listener/command-line-arg-parser.js.map +1 -1
  350. package/tsOutputs/test-listener/config-process/config-loader.js +21 -22
  351. package/tsOutputs/test-listener/config-process/config-loader.js.map +1 -1
  352. package/tsOutputs/test-listener/config-process/config-system.js +100 -127
  353. package/tsOutputs/test-listener/config-process/config-system.js.map +1 -1
  354. package/tsOutputs/test-listener/config-process/index.js +38 -57
  355. package/tsOutputs/test-listener/config-process/index.js.map +1 -1
  356. package/tsOutputs/test-listener/config.js +38 -59
  357. package/tsOutputs/test-listener/config.js.map +1 -1
  358. package/tsOutputs/test-listener/entities/BasicConfigurationData.js +37 -64
  359. package/tsOutputs/test-listener/entities/BasicConfigurationData.js.map +1 -1
  360. package/tsOutputs/test-listener/entities/build-scanner/ConfigModeData.js +17 -42
  361. package/tsOutputs/test-listener/entities/build-scanner/ConfigModeData.js.map +1 -1
  362. package/tsOutputs/test-listener/entities/build-scanner/ScanModeData.js +19 -45
  363. package/tsOutputs/test-listener/entities/build-scanner/ScanModeData.js.map +1 -1
  364. package/tsOutputs/test-listener/environment-data-service.js +10 -11
  365. package/tsOutputs/test-listener/environment-data-service.js.map +1 -1
  366. package/tsOutputs/test-listener/execution-process/entities-mapper.js +11 -14
  367. package/tsOutputs/test-listener/execution-process/entities-mapper.js.map +1 -1
  368. package/tsOutputs/test-listener/execution-process/execution-service-proxy.js +54 -72
  369. package/tsOutputs/test-listener/execution-process/execution-service-proxy.js.map +1 -1
  370. package/tsOutputs/test-listener/execution-process/index.js +26 -26
  371. package/tsOutputs/test-listener/execution-process/index.js.map +1 -1
  372. package/tsOutputs/test-listener/factory.js +140 -175
  373. package/tsOutputs/test-listener/factory.js.map +1 -1
  374. package/tsOutputs/test-listener/footprints-process/footprints-service-proxy.js +17 -34
  375. package/tsOutputs/test-listener/footprints-process/footprints-service-proxy.js.map +1 -1
  376. package/tsOutputs/test-listener/footprints-process/index.js +53 -58
  377. package/tsOutputs/test-listener/footprints-process/index.js.map +1 -1
  378. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js +49 -50
  379. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js.map +1 -1
  380. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-v3.js +98 -117
  381. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-v3.js.map +1 -1
  382. package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js +57 -141
  383. package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js.map +1 -1
  384. package/tsOutputs/test-listener/integrations/SlGulp.js +25 -26
  385. package/tsOutputs/test-listener/integrations/SlGulp.js.map +1 -1
  386. package/tsOutputs/test-listener/logs-process/index.js +30 -35
  387. package/tsOutputs/test-listener/logs-process/index.js.map +1 -1
  388. package/tsOutputs/test-listener/logs-process/log-service-proxy.js +8 -25
  389. package/tsOutputs/test-listener/logs-process/log-service-proxy.js.map +1 -1
  390. package/tsOutputs/test-listener/nyc-report-executor-fpv6.js +53 -110
  391. package/tsOutputs/test-listener/nyc-report-executor-fpv6.js.map +1 -1
  392. package/tsOutputs/test-listener/nyc-report-executor.js +48 -85
  393. package/tsOutputs/test-listener/nyc-report-executor.js.map +1 -1
  394. package/tsOutputs/test-listener/otel-agent-loader.js +30 -33
  395. package/tsOutputs/test-listener/otel-agent-loader.js.map +1 -1
  396. package/tsOutputs/test-listener/queue.js +18 -36
  397. package/tsOutputs/test-listener/queue.js.map +1 -1
  398. package/tsOutputs/test-listener/remote-agent.js +97 -223
  399. package/tsOutputs/test-listener/remote-agent.js.map +1 -1
  400. package/tsOutputs/test-listener/resolvers/AppNameResolver.js +8 -25
  401. package/tsOutputs/test-listener/resolvers/AppNameResolver.js.map +1 -1
  402. package/tsOutputs/test-listener/resolvers/ArgumentResolver.js +11 -12
  403. package/tsOutputs/test-listener/resolvers/ArgumentResolver.js.map +1 -1
  404. package/tsOutputs/test-listener/resolvers/BuildResolver.js +8 -25
  405. package/tsOutputs/test-listener/resolvers/BuildResolver.js.map +1 -1
  406. package/tsOutputs/test-listener/resolvers/BuildSessionIdFileResolver.js +8 -25
  407. package/tsOutputs/test-listener/resolvers/BuildSessionIdFileResolver.js.map +1 -1
  408. package/tsOutputs/test-listener/resolvers/BuildSessionIdResolver.js +8 -25
  409. package/tsOutputs/test-listener/resolvers/BuildSessionIdResolver.js.map +1 -1
  410. package/tsOutputs/test-listener/resolvers/ProxyResolver.js +8 -25
  411. package/tsOutputs/test-listener/resolvers/ProxyResolver.js.map +1 -1
  412. package/tsOutputs/test-listener/resolvers/TokenResolver.js +8 -25
  413. package/tsOutputs/test-listener/resolvers/TokenResolver.js.map +1 -1
  414. package/tsOutputs/test-listener/state-tracker-process/index.js +54 -74
  415. package/tsOutputs/test-listener/state-tracker-process/index.js.map +1 -1
  416. package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js +18 -37
  417. package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js.map +1 -1
  418. package/tsOutputs/test-listener/test-recommendation-handler.js +66 -109
  419. package/tsOutputs/test-listener/test-recommendation-handler.js.map +1 -1
  420. package/tsOutputs/test-listener/upload-report-handler.js +33 -35
  421. package/tsOutputs/test-listener/upload-report-handler.js.map +1 -1
  422. package/tsOutputs/test-listener/utils.js +13 -14
  423. package/tsOutputs/test-listener/utils.js.map +1 -1
  424. package/tsOutputs/test-listener/uuid.js +7 -10
  425. package/tsOutputs/test-listener/uuid.js.map +1 -1
  426. package/tsOutputs/test-listener/wait-for-multiple-callbacks.js +17 -19
  427. package/tsOutputs/test-listener/wait-for-multiple-callbacks.js.map +1 -1
  428. package/tsOutputs/test-listener/watchdog.js +32 -51
  429. package/tsOutputs/test-listener/watchdog.js.map +1 -1
  430. package/tsOutputs/build-scanner/mappings/scm-file-fixer.js +0 -96
  431. package/tsOutputs/build-scanner/mappings/scm-file-fixer.js.map +0 -1
@@ -1,22 +1,7 @@
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.Watchdog = void 0;
19
- var events = require("events");
4
+ const events = require("events");
20
5
  /**
21
6
  * Wraps timers to fire an "alarm" alarm after a given interval. Supports
22
7
  *
@@ -24,99 +9,96 @@ var events = require("events");
24
9
  * @class Watchdog
25
10
  * @extends {events.EventEmitter}
26
11
  */
27
- var Watchdog = /** @class */ (function (_super) {
28
- __extends(Watchdog, _super);
29
- function Watchdog(options, timers) {
30
- var _this = _super.call(this) || this;
31
- _this.options = options;
32
- _this.timers = timers;
33
- _this.handle = null;
34
- _this.pendingAlarmDuringSuspended = false;
35
- _this.suspended = false;
36
- _this.stopped = true;
12
+ class Watchdog extends events.EventEmitter {
13
+ constructor(options, timers) {
14
+ super();
15
+ this.options = options;
16
+ this.timers = timers;
17
+ this.handle = null;
18
+ this.pendingAlarmDuringSuspended = false;
19
+ this.suspended = false;
20
+ this.stopped = true;
37
21
  if (!options) {
38
22
  throw new Error('options is required');
39
23
  }
40
24
  if (!timers) {
41
25
  throw new Error('timers is required');
42
26
  }
43
- return _this;
44
27
  }
45
- Watchdog.prototype.abort = function () {
28
+ abort() {
46
29
  if (this.handle) {
47
30
  this.timers.clearTimeout(this.handle);
48
31
  this.handle = null;
49
32
  this.pendingAlarmDuringSuspended = false;
50
33
  }
51
- };
34
+ }
52
35
  /**
53
36
  * Restarts the watchdog
54
37
  *
55
38
  * @memberOf Watchdog
56
39
  */
57
- Watchdog.prototype.reset = function () {
58
- var _this = this;
40
+ reset() {
59
41
  this.abort();
60
42
  if (!this.stopped) {
61
- this.handle = this.timers.setTimeout(function () { _this.fireAlarm(); }, this.options.interval);
43
+ this.handle = this.timers.setTimeout(() => { this.fireAlarm(); }, this.options.interval);
62
44
  if (this.options.unref) {
63
45
  this.handle.unref(); // Don't hold the process alive if this timer is still pending
64
46
  }
65
47
  }
66
- };
48
+ }
67
49
  /**
68
50
  * Stops the watchdog
69
51
  *
70
52
  *
71
53
  * @memberOf Watchdog
72
54
  */
73
- Watchdog.prototype.stop = function () {
55
+ stop() {
74
56
  this.stopped = true;
75
57
  this.abort();
76
- };
58
+ }
77
59
  /**
78
60
  * Starts the watchdog
79
61
  *
80
62
  * @memberOf Watchdog
81
63
  */
82
- Watchdog.prototype.start = function () {
64
+ start() {
83
65
  this.stopped = false;
84
66
  this.reset();
85
- };
67
+ }
86
68
  /**
87
69
  * Returns the current status of the watchdog
88
70
  * @returns
89
71
  *
90
72
  * @memberOf Watchdog
91
73
  */
92
- Watchdog.prototype.getStatus = function () {
74
+ getStatus() {
93
75
  return {
94
76
  pendingAlarmDuringSuspended: this.pendingAlarmDuringSuspended,
95
77
  running: !this.stopped,
96
78
  suspended: this.suspended,
97
79
  };
98
- };
80
+ }
99
81
  /**
100
82
  * Suspends this watchdog, which prevents it from firing events.
101
83
  *
102
84
  * @memberOf Watchdog
103
85
  */
104
- Watchdog.prototype.suspend = function () {
86
+ suspend() {
105
87
  this.suspended = true;
106
- };
88
+ }
107
89
  /**
108
90
  * Resumes this watchdog from suspended mode. If an alarm was fired while suspended, it will be fired now.
109
91
  *
110
92
  * @memberOf Watchdog
111
93
  */
112
- Watchdog.prototype.resume = function () {
94
+ resume() {
113
95
  this.suspended = false;
114
96
  if (this.pendingAlarmDuringSuspended) {
115
97
  this.pendingAlarmDuringSuspended = false;
116
98
  this.fireAlarm();
117
99
  }
118
- };
119
- Watchdog.prototype.fireAlarm = function () {
100
+ }
101
+ fireAlarm() {
120
102
  this.handle = null;
121
103
  if (this.suspended) {
122
104
  this.pendingAlarmDuringSuspended = true; //raise this flag and quit
@@ -132,16 +114,15 @@ var Watchdog = /** @class */ (function (_super) {
132
114
  if (this.options.autoReset) {
133
115
  this.reset();
134
116
  }
135
- };
136
- Watchdog.prototype.setInterval = function (newInterval) {
117
+ }
118
+ setInterval(newInterval) {
137
119
  if (newInterval <= 0)
138
120
  throw new Error('Invalid value for interval: ' + newInterval);
139
121
  this.options.interval = newInterval;
140
- };
141
- Watchdog.prototype.getInterval = function () {
122
+ }
123
+ getInterval() {
142
124
  return this.options.interval;
143
- };
144
- return Watchdog;
145
- }(events.EventEmitter));
125
+ }
126
+ }
146
127
  exports.Watchdog = Watchdog;
147
128
  //# sourceMappingURL=watchdog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"watchdog.js","sourceRoot":"","sources":["../../test-listener/watchdog.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAAkC;AAgClC;;;;;;GAMG;AACH;IAA8B,4BAAmB;IAO7C,kBAA2B,OAAyB,EAAU,MAAe;QAA7E,YACI,iBAAO,SAGV;QAJ0B,aAAO,GAAP,OAAO,CAAkB;QAAU,YAAM,GAAN,MAAM,CAAS;QALrE,YAAM,GAAQ,IAAI,CAAC;QACnB,iCAA2B,GAAY,KAAK,CAAC;QAC7C,eAAS,GAAY,KAAK,CAAC;QAC3B,aAAO,GAAY,IAAI,CAAC;QAI5B,IAAI,CAAC,OAAO,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;SAAE;QACzD,IAAI,CAAC,MAAM,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;SAAE;;IAC3D,CAAC;IAEM,wBAAK,GAAZ;QACI,IAAI,IAAI,CAAC,MAAM,EAAE;YACb,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACtC,IAAI,CA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C;IAED;;;;OAIG;IACI,MAAM;QACT,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,IAAI,CAAC,2BAA2B,EAAE;YAClC,IAAI,CAAC,2BAA2B,GAAG,KAAK,CAAC;YACzC,IAAI,CAAC,SAAS,EAAE,CAAC;SACpB;IACL,CAAC;IAEO,SAAS;QACb,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,IAAI,CAAC,2BAA2B,GAAG,IAAI,CAAC,CAAC,0BAA0B;SACtE;aAAM;YACH,IAAI;gBACA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;aAC5B;YAAC,OAAO,GAAG,EAAE;gBACV,aAAa;aAChB;SACJ;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACxB,IAAI,CAAC,KAAK,EAAE,CAAC;SAChB;IACL,CAAC;IAEM,WAAW,CAAC,WAAmB;QAClC,IAAI,WAAW,IAAI,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,8BAA8B,GAAG,WAAW,CAAC,CAAC;QACpF,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,WAAW,CAAC;IACxC,CAAC;IACM,WAAW;QACd,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IACjC,CAAC;CACJ;AArHD,4BAqHC"}
@@ -1,96 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ScmFileFixer = void 0;
13
- var files_utils_1 = require("../../common/utils/files-utils");
14
- var path_1 = require("path");
15
- var logger_1 = require("../../common/logger");
16
- var file_element_utils_1 = require("./file-element-utils");
17
- var sl_mapper_1 = require("../js_diff/sl-mapper");
18
- var sl_env_vars_1 = require("../../common/constants/sl-env-vars");
19
- var logger = logger_1.LoggerFactory.getCreateApplicationLogger();
20
- var ScmFileFixer = /** @class */ (function () {
21
- function ScmFileFixer(scmFilesContainer, slMapper) {
22
- this.scmFilesContainer = scmFilesContainer;
23
- this.slMapper = slMapper;
24
- }
25
- ScmFileFixer.prototype.fixFilesPath = function (uniqueFiles, scmRootDir) {
26
- var duplicatesMatchFiles = [];
27
- var prefixToAdd = '';
28
- var uniqueFileCopy = __spreadArray([], uniqueFiles, true);
29
- for (var _i = 0, uniqueFiles_1 = uniqueFiles; _i < uniqueFiles_1.length; _i++) {
30
- var file = uniqueFiles_1[_i];
31
- var filesFromScm = this.fixPathByScm(file.logicalPath);
32
- if (filesFromScm.length > 1) {
33
- duplicatesMatchFiles.push(file);
34
- }
35
- else if (filesFromScm.length === 1) {
36
- var fullScmFilePath = filesFromScm[0];
37
- prefixToAdd = fullScmFilePath.replace(file.logicalPath, '');
38
- this.fixOneFile(file, fullScmFilePath, scmRootDir);
39
- }
40
- else {
41
- logger.info("Cannot find file ".concat(file.logicalPath, " in git. File is auto generated."));
42
- var indexToRemove = uniqueFileCopy.indexOf(file);
43
- uniqueFileCopy.splice(indexToRemove, 1);
44
- }
45
- }
46
- for (var _a = 0, duplicatesMatchFiles_1 = duplicatesMatchFiles; _a < duplicatesMatchFiles_1.length; _a++) {
47
- var fileToFix = duplicatesMatchFiles_1[_a];
48
- var fullScmFile = files_utils_1.FilesUtils.adjustPathSlashes("".concat(prefixToAdd).concat(fileToFix.logicalPath));
49
- this.fixOneFile(fileToFix, fullScmFile, scmRootDir);
50
- }
51
- return uniqueFileCopy;
52
- };
53
- ScmFileFixer.prototype.fixOneFile = function (file, fullScmFilePath, scmRootDir) {
54
- var _this = this;
55
- var fixedScmPath = files_utils_1.FilesUtils.adjustPathSlashes(fullScmFilePath);
56
- if ((this.slMapper instanceof sl_mapper_1.SlMapper) && !(this.slMapper instanceof sl_mapper_1.BrowserSlMapper)) {
57
- this.slMapper.addMapping(file.logicalPath, fixedScmPath);
58
- }
59
- file.logicalPath = fixedScmPath;
60
- file.physicalPath = fixedScmPath;
61
- var scmPrefix = sl_env_vars_1.SlEnvVars.CIA.getScmPrefix();
62
- if (scmPrefix && file.physicalPath.indexOf(scmPrefix) === 0) {
63
- file.absolutePath = (0, path_1.normalize)((0, path_1.join)(scmRootDir, file.physicalPath.replace(scmPrefix, '')));
64
- }
65
- else {
66
- file.absolutePath = (0, path_1.normalize)((0, path_1.join)(scmRootDir, file.physicalPath));
67
- }
68
- file.methods.forEach(function (method) {
69
- method.uniqueId = "".concat(files_utils_1.FilesUtils.adjustPathSlashes(file.logicalPath), "@").concat(method.position.join(','));
70
- if (_this.slMapper instanceof sl_mapper_1.BrowserSlMapper) {
71
- _this.slMapper.addMapping(method.uniqueIdKey, method.uniqueId);
72
- }
73
- delete method.uniqueIdKey;
74
- });
75
- file.branches.forEach(function (branch) {
76
- var position = (0, file_element_utils_1.getBranchPosition)(branch);
77
- branch.uniqueId = "".concat(files_utils_1.FilesUtils.adjustPathSlashes(file.logicalPath), "|").concat(position.join(','), "|").concat(branch.index);
78
- if (_this.slMapper instanceof sl_mapper_1.BrowserSlMapper) {
79
- _this.slMapper.addMapping(branch.uniqueIdKey, branch.uniqueId);
80
- }
81
- delete branch.uniqueIdKey;
82
- });
83
- };
84
- ScmFileFixer.prototype.fixPathByScm = function (sourceFile) {
85
- var gitFiles = this.scmFilesContainer.getScmPath(sourceFile);
86
- if (gitFiles === null) {
87
- return [];
88
- }
89
- else {
90
- return gitFiles;
91
- }
92
- };
93
- return ScmFileFixer;
94
- }());
95
- exports.ScmFileFixer = ScmFileFixer;
96
- //# sourceMappingURL=scm-file-fixer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scm-file-fixer.js","sourceRoot":"","sources":["../../../build-scanner/mappings/sc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