slnodejs 6.1.415 → 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 (429) hide show
  1. package/browser-agent/dist/browser-agent-all.js +1 -1
  2. package/browser-agent/dist/browser-agent-all.min.js +1 -1
  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 +35 -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 +56 -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 +72 -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/custom-commander.js +17 -18
  95. package/tsOutputs/cli-parse/custom-commander.js.map +1 -1
  96. package/tsOutputs/cli-parse/executors/base-executor.js +121 -236
  97. package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
  98. package/tsOutputs/cli-parse/executors/build-args-dto.js +10 -11
  99. package/tsOutputs/cli-parse/executors/build-args-dto.js.map +1 -1
  100. package/tsOutputs/cli-parse/executors/build-end-executor.js +34 -92
  101. package/tsOutputs/cli-parse/executors/build-end-executor.js.map +1 -1
  102. package/tsOutputs/cli-parse/executors/build-executor.js +64 -133
  103. package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
  104. package/tsOutputs/cli-parse/executors/config-executor.js +35 -92
  105. package/tsOutputs/cli-parse/executors/config-executor.js.map +1 -1
  106. package/tsOutputs/cli-parse/executors/dry-run/base-data.js +29 -39
  107. package/tsOutputs/cli-parse/executors/dry-run/base-data.js.map +1 -1
  108. package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js +92 -177
  109. package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js.map +1 -1
  110. package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js +110 -194
  111. package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js.map +1 -1
  112. package/tsOutputs/cli-parse/executors/dry-run/dry-run-validation.js +49 -83
  113. package/tsOutputs/cli-parse/executors/dry-run/dry-run-validation.js.map +1 -1
  114. package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js +55 -113
  115. package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js.map +1 -1
  116. package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js +24 -25
  117. package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js.map +1 -1
  118. package/tsOutputs/cli-parse/executors/end-execution-executor.js +16 -64
  119. package/tsOutputs/cli-parse/executors/end-execution-executor.js.map +1 -1
  120. package/tsOutputs/cli-parse/executors/integration-build-components-executor.js +29 -82
  121. package/tsOutputs/cli-parse/executors/integration-build-components-executor.js.map +1 -1
  122. package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js +12 -59
  123. package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js.map +1 -1
  124. package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js +9 -58
  125. package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js.map +1 -1
  126. package/tsOutputs/cli-parse/executors/mocha-executor.js +41 -101
  127. package/tsOutputs/cli-parse/executors/mocha-executor.js.map +1 -1
  128. package/tsOutputs/cli-parse/executors/nyc-report-executor.js +24 -83
  129. package/tsOutputs/cli-parse/executors/nyc-report-executor.js.map +1 -1
  130. package/tsOutputs/cli-parse/executors/pr-config-executor.js +15 -63
  131. package/tsOutputs/cli-parse/executors/pr-config-executor.js.map +1 -1
  132. package/tsOutputs/cli-parse/executors/run-executor.js +23 -75
  133. package/tsOutputs/cli-parse/executors/run-executor.js.map +1 -1
  134. package/tsOutputs/cli-parse/executors/start-execution-executor.js +16 -64
  135. package/tsOutputs/cli-parse/executors/start-execution-executor.js.map +1 -1
  136. package/tsOutputs/cli-parse/executors/test-executions-executor.js +9 -63
  137. package/tsOutputs/cli-parse/executors/test-executions-executor.js.map +1 -1
  138. package/tsOutputs/cli-parse/executors/test-listener-executor.js +47 -117
  139. package/tsOutputs/cli-parse/executors/test-listener-executor.js.map +1 -1
  140. package/tsOutputs/cli-parse/executors/upload-report-executor.js +23 -71
  141. package/tsOutputs/cli-parse/executors/upload-report-executor.js.map +1 -1
  142. package/tsOutputs/cli-parse/utils.js +10 -10
  143. package/tsOutputs/cli-parse/utils.js.map +1 -1
  144. package/tsOutputs/common/agent-events/agent-events-controller.js +146 -251
  145. package/tsOutputs/common/agent-events/agent-events-controller.js.map +1 -1
  146. package/tsOutputs/common/agent-events/agent-events-guard.js +12 -15
  147. package/tsOutputs/common/agent-events/agent-events-guard.js.map +1 -1
  148. package/tsOutputs/common/agent-events/agent-instance-info-builder.js +22 -24
  149. package/tsOutputs/common/agent-events/agent-instance-info-builder.js.map +1 -1
  150. package/tsOutputs/common/agent-events/agent-start-info-builder.js +7 -8
  151. package/tsOutputs/common/agent-events/agent-start-info-builder.js.map +1 -1
  152. package/tsOutputs/common/agent-events/browser-info-builder.js +9 -10
  153. package/tsOutputs/common/agent-events/browser-info-builder.js.map +1 -1
  154. package/tsOutputs/common/agent-events/ci-info-builder.js +12 -13
  155. package/tsOutputs/common/agent-events/ci-info-builder.js.map +1 -1
  156. package/tsOutputs/common/agent-events/cockpit-notifier.js +38 -87
  157. package/tsOutputs/common/agent-events/cockpit-notifier.js.map +1 -1
  158. package/tsOutputs/common/agent-events/dry-run-agent-events-controller.js +10 -27
  159. package/tsOutputs/common/agent-events/dry-run-agent-events-controller.js.map +1 -1
  160. package/tsOutputs/common/agent-events/machine-info-builder.js +21 -22
  161. package/tsOutputs/common/agent-events/machine-info-builder.js.map +1 -1
  162. package/tsOutputs/common/agent-events/no-op-agent-events-controller.js +30 -84
  163. package/tsOutputs/common/agent-events/no-op-agent-events-controller.js.map +1 -1
  164. package/tsOutputs/common/agent-events/nodejs-env-info-builder.js +7 -8
  165. package/tsOutputs/common/agent-events/nodejs-env-info-builder.js.map +1 -1
  166. package/tsOutputs/common/agent-events/sensitive-data-filter.js +3 -4
  167. package/tsOutputs/common/agent-events/sensitive-data-filter.js.map +1 -1
  168. package/tsOutputs/common/agent-instance-data.js +23 -28
  169. package/tsOutputs/common/agent-instance-data.js.map +1 -1
  170. package/tsOutputs/common/cli-progress.js +16 -19
  171. package/tsOutputs/common/cli-progress.js.map +1 -1
  172. package/tsOutputs/common/config-process/config-loader.js +23 -24
  173. package/tsOutputs/common/config-process/config-loader.js.map +1 -1
  174. package/tsOutputs/common/config-process/config-system.js +104 -131
  175. package/tsOutputs/common/config-process/config-system.js.map +1 -1
  176. package/tsOutputs/common/config-process/config.js +52 -73
  177. package/tsOutputs/common/config-process/config.js.map +1 -1
  178. package/tsOutputs/common/config-process/index.js +38 -57
  179. package/tsOutputs/common/config-process/index.js.map +1 -1
  180. package/tsOutputs/common/config-process/no-op-config-process.js +9 -29
  181. package/tsOutputs/common/config-process/no-op-config-process.js.map +1 -1
  182. package/tsOutputs/common/constants/constants.js +19 -25
  183. package/tsOutputs/common/constants/constants.js.map +1 -1
  184. package/tsOutputs/common/constants/sl-env-vars.js +125 -131
  185. package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
  186. package/tsOutputs/common/coverage-elements/file-element.js +66 -103
  187. package/tsOutputs/common/coverage-elements/file-element.js.map +1 -1
  188. package/tsOutputs/common/coverage-elements/istanbul-unique-id-converter.js +28 -47
  189. package/tsOutputs/common/coverage-elements/istanbul-unique-id-converter.js.map +1 -1
  190. package/tsOutputs/common/coverage-elements/new-id-resolver.js +17 -17
  191. package/tsOutputs/common/coverage-elements/new-id-resolver.js.map +1 -1
  192. package/tsOutputs/common/coverage-elements/original-module-loader.js +71 -79
  193. package/tsOutputs/common/coverage-elements/original-module-loader.js.map +1 -1
  194. package/tsOutputs/common/coverage-elements/unique-id-converter.js +90 -110
  195. package/tsOutputs/common/coverage-elements/unique-id-converter.js.map +1 -1
  196. package/tsOutputs/common/environment-data-service.js +10 -11
  197. package/tsOutputs/common/environment-data-service.js.map +1 -1
  198. package/tsOutputs/common/events-process/events-creator.js +20 -32
  199. package/tsOutputs/common/events-process/events-creator.js.map +1 -1
  200. package/tsOutputs/common/events-process/index.js +97 -186
  201. package/tsOutputs/common/events-process/index.js.map +1 -1
  202. package/tsOutputs/common/footprints-process/collection-interval.js +10 -11
  203. package/tsOutputs/common/footprints-process/collection-interval.js.map +1 -1
  204. package/tsOutputs/common/footprints-process/footprints-service-proxy.js +21 -22
  205. package/tsOutputs/common/footprints-process/footprints-service-proxy.js.map +1 -1
  206. package/tsOutputs/common/footprints-process/index.js +68 -102
  207. package/tsOutputs/common/footprints-process/index.js.map +1 -1
  208. package/tsOutputs/common/footprints-process/istanbul-to-footprints-contract.js +2 -5
  209. package/tsOutputs/common/footprints-process/istanbul-to-footprints-contract.js.map +1 -1
  210. package/tsOutputs/common/footprints-process/istanbul-to-footprints.js +160 -162
  211. package/tsOutputs/common/footprints-process/istanbul-to-footprints.js.map +1 -1
  212. package/tsOutputs/common/footprints-process/production-footprints-handler.js +103 -156
  213. package/tsOutputs/common/footprints-process/production-footprints-handler.js.map +1 -1
  214. package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js +30 -48
  215. package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js.map +1 -1
  216. package/tsOutputs/common/footprints-process-v6/browser-footprints-buffer.js +7 -25
  217. package/tsOutputs/common/footprints-process-v6/browser-footprints-buffer.js.map +1 -1
  218. package/tsOutputs/common/footprints-process-v6/buffer-size-helper.js +13 -14
  219. package/tsOutputs/common/footprints-process-v6/buffer-size-helper.js.map +1 -1
  220. package/tsOutputs/common/footprints-process-v6/collector-footprints-buffer.js +14 -32
  221. package/tsOutputs/common/footprints-process-v6/collector-footprints-buffer.js.map +1 -1
  222. package/tsOutputs/common/footprints-process-v6/collector-footprints-process.js +43 -109
  223. package/tsOutputs/common/footprints-process-v6/collector-footprints-process.js.map +1 -1
  224. package/tsOutputs/common/footprints-process-v6/contracts.js +2 -5
  225. package/tsOutputs/common/footprints-process-v6/contracts.js.map +1 -1
  226. package/tsOutputs/common/footprints-process-v6/footprints-buffer.js +55 -78
  227. package/tsOutputs/common/footprints-process-v6/footprints-buffer.js.map +1 -1
  228. package/tsOutputs/common/footprints-process-v6/hits-collector.js +89 -129
  229. package/tsOutputs/common/footprints-process-v6/hits-collector.js.map +1 -1
  230. package/tsOutputs/common/footprints-process-v6/hits-converter.js +70 -78
  231. package/tsOutputs/common/footprints-process-v6/hits-converter.js.map +1 -1
  232. package/tsOutputs/common/footprints-process-v6/index.js +204 -347
  233. package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
  234. package/tsOutputs/common/footprints-process-v6/location-formatter.js +2 -2
  235. package/tsOutputs/common/footprints-process-v6/location-formatter.js.map +1 -1
  236. package/tsOutputs/common/footprints-process-v6/relative-path-resolver.js +10 -11
  237. package/tsOutputs/common/footprints-process-v6/relative-path-resolver.js.map +1 -1
  238. package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js +5 -25
  239. package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js.map +1 -1
  240. package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js +6 -57
  241. package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js.map +1 -1
  242. package/tsOutputs/common/footprints-process-v6/remote-hits-collector.js +7 -27
  243. package/tsOutputs/common/footprints-process-v6/remote-hits-collector.js.map +1 -1
  244. package/tsOutputs/common/footprints-process-v6/source-map-data.js +14 -15
  245. package/tsOutputs/common/footprints-process-v6/source-map-data.js.map +1 -1
  246. package/tsOutputs/common/http/backend-proxy.js +222 -321
  247. package/tsOutputs/common/http/backend-proxy.js.map +1 -1
  248. package/tsOutputs/common/http/contracts.js +40 -116
  249. package/tsOutputs/common/http/contracts.js.map +1 -1
  250. package/tsOutputs/common/http/dry-run-proxy.js +68 -111
  251. package/tsOutputs/common/http/dry-run-proxy.js.map +1 -1
  252. package/tsOutputs/common/http/entities-mapper.js +6 -9
  253. package/tsOutputs/common/http/entities-mapper.js.map +1 -1
  254. package/tsOutputs/common/http/http-client.js +76 -86
  255. package/tsOutputs/common/http/http-client.js.map +1 -1
  256. package/tsOutputs/common/http/sl-routes.js +119 -122
  257. package/tsOutputs/common/http/sl-routes.js.map +1 -1
  258. package/tsOutputs/common/ignored-files-handler.js +48 -49
  259. package/tsOutputs/common/ignored-files-handler.js.map +1 -1
  260. package/tsOutputs/common/logger.js +66 -88
  261. package/tsOutputs/common/logger.js.map +1 -1
  262. package/tsOutputs/common/messages-formatter.js +9 -14
  263. package/tsOutputs/common/messages-formatter.js.map +1 -1
  264. package/tsOutputs/common/no-op-state-tracker.js +14 -37
  265. package/tsOutputs/common/no-op-state-tracker.js.map +1 -1
  266. package/tsOutputs/common/queue.js +18 -36
  267. package/tsOutputs/common/queue.js.map +1 -1
  268. package/tsOutputs/common/scm/git-cloner.js +30 -94
  269. package/tsOutputs/common/scm/git-cloner.js.map +1 -1
  270. package/tsOutputs/common/scm/git-format-builder.js +24 -25
  271. package/tsOutputs/common/scm/git-format-builder.js.map +1 -1
  272. package/tsOutputs/common/scm/git.js +192 -327
  273. package/tsOutputs/common/scm/git.js.map +1 -1
  274. package/tsOutputs/common/scm/none.js +58 -110
  275. package/tsOutputs/common/scm/none.js.map +1 -1
  276. package/tsOutputs/common/scm/scm-factory.js +6 -9
  277. package/tsOutputs/common/scm/scm-factory.js.map +1 -1
  278. package/tsOutputs/common/short-name-to-file-mapper.js +30 -33
  279. package/tsOutputs/common/short-name-to-file-mapper.js.map +1 -1
  280. package/tsOutputs/common/source-map-handler.js +76 -98
  281. package/tsOutputs/common/source-map-handler.js.map +1 -1
  282. package/tsOutputs/common/source-map-reader.js +35 -36
  283. package/tsOutputs/common/source-map-reader.js.map +1 -1
  284. package/tsOutputs/common/source-maps-utils.js +8 -11
  285. package/tsOutputs/common/source-maps-utils.js.map +1 -1
  286. package/tsOutputs/common/state-tracker-fpv6.js +15 -37
  287. package/tsOutputs/common/state-tracker-fpv6.js.map +1 -1
  288. package/tsOutputs/common/state-tracker.js +124 -212
  289. package/tsOutputs/common/state-tracker.js.map +1 -1
  290. package/tsOutputs/common/system-date.js +3 -3
  291. package/tsOutputs/common/system-date.js.map +1 -1
  292. package/tsOutputs/common/utils/abstract-data-builder.js +8 -9
  293. package/tsOutputs/common/utils/abstract-data-builder.js.map +1 -1
  294. package/tsOutputs/common/utils/build-session-data-builder.js +25 -79
  295. package/tsOutputs/common/utils/build-session-data-builder.js.map +1 -1
  296. package/tsOutputs/common/utils/dependency-utils.js +13 -16
  297. package/tsOutputs/common/utils/dependency-utils.js.map +1 -1
  298. package/tsOutputs/common/utils/env-var-parsing.js +10 -14
  299. package/tsOutputs/common/utils/env-var-parsing.js.map +1 -1
  300. package/tsOutputs/common/utils/files-utils.js +16 -19
  301. package/tsOutputs/common/utils/files-utils.js.map +1 -1
  302. package/tsOutputs/common/utils/process-utils.js +12 -25
  303. package/tsOutputs/common/utils/process-utils.js.map +1 -1
  304. package/tsOutputs/common/utils/test-runner-build-session-data-builder.js +16 -62
  305. package/tsOutputs/common/utils/test-runner-build-session-data-builder.js.map +1 -1
  306. package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js +120 -192
  307. package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js.map +1 -1
  308. package/tsOutputs/common/utils/timer-utils.js +4 -7
  309. package/tsOutputs/common/utils/timer-utils.js.map +1 -1
  310. package/tsOutputs/common/utils/token-data-builder.js +30 -50
  311. package/tsOutputs/common/utils/token-data-builder.js.map +1 -1
  312. package/tsOutputs/common/utils/validation-utils.js +7 -10
  313. package/tsOutputs/common/utils/validation-utils.js.map +1 -1
  314. package/tsOutputs/common/uuid.js +7 -10
  315. package/tsOutputs/common/uuid.js.map +1 -1
  316. package/tsOutputs/common/v8-utils.js +12 -50
  317. package/tsOutputs/common/v8-utils.js.map +1 -1
  318. package/tsOutputs/common/watchdog.js +35 -56
  319. package/tsOutputs/common/watchdog.js.map +1 -1
  320. package/tsOutputs/mocha-reporter/index.js +12 -12
  321. package/tsOutputs/mocha-reporter/index.js.map +1 -1
  322. package/tsOutputs/mocha-reporter/otel-agent.js +47 -118
  323. package/tsOutputs/mocha-reporter/otel-agent.js.map +1 -1
  324. package/tsOutputs/test-listener/SlNodeJsProxy.js +34 -35
  325. package/tsOutputs/test-listener/SlNodeJsProxy.js.map +1 -1
  326. package/tsOutputs/test-listener/UserMessageHelper.js +14 -19
  327. package/tsOutputs/test-listener/UserMessageHelper.js.map +1 -1
  328. package/tsOutputs/test-listener/agent-loader.js +42 -59
  329. package/tsOutputs/test-listener/agent-loader.js.map +1 -1
  330. package/tsOutputs/test-listener/agent.js +93 -150
  331. package/tsOutputs/test-listener/agent.js.map +1 -1
  332. package/tsOutputs/test-listener/api.js +36 -70
  333. package/tsOutputs/test-listener/api.js.map +1 -1
  334. package/tsOutputs/test-listener/base-proxy.js +25 -27
  335. package/tsOutputs/test-listener/base-proxy.js.map +1 -1
  336. package/tsOutputs/test-listener/bootstrap.js +6 -6
  337. package/tsOutputs/test-listener/bootstrap.js.map +1 -1
  338. package/tsOutputs/test-listener/child-process-patcher.js +10 -10
  339. package/tsOutputs/test-listener/child-process-patcher.js.map +1 -1
  340. package/tsOutputs/test-listener/cli.js +27 -30
  341. package/tsOutputs/test-listener/cli.js.map +1 -1
  342. package/tsOutputs/test-listener/coloring/http-coloring.js +30 -33
  343. package/tsOutputs/test-listener/coloring/http-coloring.js.map +1 -1
  344. package/tsOutputs/test-listener/coloring/listening-port.js +14 -17
  345. package/tsOutputs/test-listener/coloring/listening-port.js.map +1 -1
  346. package/tsOutputs/test-listener/command-line-arg-parser.js +12 -15
  347. package/tsOutputs/test-listener/command-line-arg-parser.js.map +1 -1
  348. package/tsOutputs/test-listener/config-process/config-loader.js +21 -22
  349. package/tsOutputs/test-listener/config-process/config-loader.js.map +1 -1
  350. package/tsOutputs/test-listener/config-process/config-system.js +100 -127
  351. package/tsOutputs/test-listener/config-process/config-system.js.map +1 -1
  352. package/tsOutputs/test-listener/config-process/index.js +38 -57
  353. package/tsOutputs/test-listener/config-process/index.js.map +1 -1
  354. package/tsOutputs/test-listener/config.js +38 -59
  355. package/tsOutputs/test-listener/config.js.map +1 -1
  356. package/tsOutputs/test-listener/entities/BasicConfigurationData.js +37 -64
  357. package/tsOutputs/test-listener/entities/BasicConfigurationData.js.map +1 -1
  358. package/tsOutputs/test-listener/entities/build-scanner/ConfigModeData.js +17 -42
  359. package/tsOutputs/test-listener/entities/build-scanner/ConfigModeData.js.map +1 -1
  360. package/tsOutputs/test-listener/entities/build-scanner/ScanModeData.js +19 -45
  361. package/tsOutputs/test-listener/entities/build-scanner/ScanModeData.js.map +1 -1
  362. package/tsOutputs/test-listener/environment-data-service.js +10 -11
  363. package/tsOutputs/test-listener/environment-data-service.js.map +1 -1
  364. package/tsOutputs/test-listener/execution-process/entities-mapper.js +11 -14
  365. package/tsOutputs/test-listener/execution-process/entities-mapper.js.map +1 -1
  366. package/tsOutputs/test-listener/execution-process/execution-service-proxy.js +54 -72
  367. package/tsOutputs/test-listener/execution-process/execution-service-proxy.js.map +1 -1
  368. package/tsOutputs/test-listener/execution-process/index.js +26 -26
  369. package/tsOutputs/test-listener/execution-process/index.js.map +1 -1
  370. package/tsOutputs/test-listener/factory.js +140 -175
  371. package/tsOutputs/test-listener/factory.js.map +1 -1
  372. package/tsOutputs/test-listener/footprints-process/footprints-service-proxy.js +17 -34
  373. package/tsOutputs/test-listener/footprints-process/footprints-service-proxy.js.map +1 -1
  374. package/tsOutputs/test-listener/footprints-process/index.js +53 -58
  375. package/tsOutputs/test-listener/footprints-process/index.js.map +1 -1
  376. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js +49 -50
  377. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js.map +1 -1
  378. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-v3.js +98 -117
  379. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-v3.js.map +1 -1
  380. package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js +57 -141
  381. package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js.map +1 -1
  382. package/tsOutputs/test-listener/integrations/SlGulp.js +25 -26
  383. package/tsOutputs/test-listener/integrations/SlGulp.js.map +1 -1
  384. package/tsOutputs/test-listener/logs-process/index.js +30 -35
  385. package/tsOutputs/test-listener/logs-process/index.js.map +1 -1
  386. package/tsOutputs/test-listener/logs-process/log-service-proxy.js +8 -25
  387. package/tsOutputs/test-listener/logs-process/log-service-proxy.js.map +1 -1
  388. package/tsOutputs/test-listener/nyc-report-executor-fpv6.js +53 -110
  389. package/tsOutputs/test-listener/nyc-report-executor-fpv6.js.map +1 -1
  390. package/tsOutputs/test-listener/nyc-report-executor.js +48 -85
  391. package/tsOutputs/test-listener/nyc-report-executor.js.map +1 -1
  392. package/tsOutputs/test-listener/otel-agent-loader.js +30 -33
  393. package/tsOutputs/test-listener/otel-agent-loader.js.map +1 -1
  394. package/tsOutputs/test-listener/queue.js +18 -36
  395. package/tsOutputs/test-listener/queue.js.map +1 -1
  396. package/tsOutputs/test-listener/remote-agent.js +97 -223
  397. package/tsOutputs/test-listener/remote-agent.js.map +1 -1
  398. package/tsOutputs/test-listener/resolvers/AppNameResolver.js +8 -25
  399. package/tsOutputs/test-listener/resolvers/AppNameResolver.js.map +1 -1
  400. package/tsOutputs/test-listener/resolvers/ArgumentResolver.js +11 -12
  401. package/tsOutputs/test-listener/resolvers/ArgumentResolver.js.map +1 -1
  402. package/tsOutputs/test-listener/resolvers/BuildResolver.js +8 -25
  403. package/tsOutputs/test-listener/resolvers/BuildResolver.js.map +1 -1
  404. package/tsOutputs/test-listener/resolvers/BuildSessionIdFileResolver.js +8 -25
  405. package/tsOutputs/test-listener/resolvers/BuildSessionIdFileResolver.js.map +1 -1
  406. package/tsOutputs/test-listener/resolvers/BuildSessionIdResolver.js +8 -25
  407. package/tsOutputs/test-listener/resolvers/BuildSessionIdResolver.js.map +1 -1
  408. package/tsOutputs/test-listener/resolvers/ProxyResolver.js +8 -25
  409. package/tsOutputs/test-listener/resolvers/ProxyResolver.js.map +1 -1
  410. package/tsOutputs/test-listener/resolvers/TokenResolver.js +8 -25
  411. package/tsOutputs/test-listener/resolvers/TokenResolver.js.map +1 -1
  412. package/tsOutputs/test-listener/state-tracker-process/index.js +54 -74
  413. package/tsOutputs/test-listener/state-tracker-process/index.js.map +1 -1
  414. package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js +18 -37
  415. package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js.map +1 -1
  416. package/tsOutputs/test-listener/test-recommendation-handler.js +66 -109
  417. package/tsOutputs/test-listener/test-recommendation-handler.js.map +1 -1
  418. package/tsOutputs/test-listener/upload-report-handler.js +33 -35
  419. package/tsOutputs/test-listener/upload-report-handler.js.map +1 -1
  420. package/tsOutputs/test-listener/utils.js +13 -14
  421. package/tsOutputs/test-listener/utils.js.map +1 -1
  422. package/tsOutputs/test-listener/uuid.js +7 -10
  423. package/tsOutputs/test-listener/uuid.js.map +1 -1
  424. package/tsOutputs/test-listener/wait-for-multiple-callbacks.js +17 -19
  425. package/tsOutputs/test-listener/wait-for-multiple-callbacks.js.map +1 -1
  426. package/tsOutputs/test-listener/watchdog.js +32 -51
  427. package/tsOutputs/test-listener/watchdog.js.map +1 -1
  428. package/tsOutputs/build-scanner/mappings/scm-file-fixer.js +0 -96
  429. package/tsOutputs/build-scanner/mappings/scm-file-fixer.js.map +0 -1
@@ -1,19 +1,4 @@
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
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -23,81 +8,43 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
24
9
  });
25
10
  };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
11
  Object.defineProperty(exports, "__esModule", { value: true });
54
12
  exports.BuildSessionDataBuilder = void 0;
55
- var abstract_data_builder_1 = require("./abstract-data-builder");
13
+ const abstract_data_builder_1 = require("./abstract-data-builder");
56
14
  /**
57
15
  * Build the build session data (app, branch and build).
58
16
  * For config commands, returns the values from CLI.
59
17
  * For other commands, resolves using backend.
60
18
  */
61
- var BuildSessionDataBuilder = /** @class */ (function (_super) {
62
- __extends(BuildSessionDataBuilder, _super);
63
- function BuildSessionDataBuilder(backendProxy) {
64
- var _this = _super.call(this) || this;
65
- _this.backendProxy = backendProxy;
66
- return _this;
19
+ class BuildSessionDataBuilder extends abstract_data_builder_1.AbstractDataBuilder {
20
+ constructor(backendProxy) {
21
+ super();
22
+ this.backendProxy = backendProxy;
67
23
  }
68
- BuildSessionDataBuilder.prototype.build = function (cmd) {
69
- return __awaiter(this, void 0, void 0, function () {
70
- return __generator(this, function (_a) {
71
- return [2 /*return*/, this.parseFromBuildSessionId(cmd)];
72
- });
24
+ build(cmd) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return this.parseFromBuildSessionId(cmd);
73
27
  });
74
- };
75
- BuildSessionDataBuilder.prototype.parseFromCli = function (cmd) {
28
+ }
29
+ parseFromCli(cmd) {
76
30
  return {
77
31
  appName: cmd.appname,
78
32
  branchName: cmd.branch,
79
33
  buildName: cmd.build,
80
34
  buildSessionId: null
81
35
  };
82
- };
83
- BuildSessionDataBuilder.prototype.parseFromBuildSessionId = function (cmd) {
84
- return __awaiter(this, void 0, void 0, function () {
85
- var rawBuildSessionId, response;
86
- return __generator(this, function (_a) {
87
- switch (_a.label) {
88
- case 0:
89
- rawBuildSessionId = this.getRawBuildSessionId(cmd);
90
- if (!rawBuildSessionId) return [3 /*break*/, 2];
91
- return [4 /*yield*/, this.backendProxy.getBuildSessionData(rawBuildSessionId)];
92
- case 1:
93
- response = _a.sent();
94
- return [2 /*return*/, this.mapBuildSessionResponse(response)];
95
- case 2: return [2 /*return*/, null];
96
- }
97
- });
36
+ }
37
+ parseFromBuildSessionId(cmd) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ const rawBuildSessionId = this.getRawBuildSessionId(cmd);
40
+ if (rawBuildSessionId) {
41
+ const response = yield this.backendProxy.getBuildSessionData(rawBuildSessionId);
42
+ return this.mapBuildSessionResponse(response);
43
+ }
44
+ return null;
98
45
  });
99
- };
100
- BuildSessionDataBuilder.prototype.mapBuildSessionResponse = function (response) {
46
+ }
47
+ mapBuildSessionResponse(response) {
101
48
  if (!response) {
102
49
  this.logger.error('BuildSession response is null');
103
50
  return null;
@@ -120,8 +67,8 @@ var BuildSessionDataBuilder = /** @class */ (function (_super) {
120
67
  appName: response.appName,
121
68
  buildSessionId: response.buildSessionId
122
69
  };
123
- };
124
- BuildSessionDataBuilder.prototype.getRawBuildSessionId = function (cmd) {
70
+ }
71
+ getRawBuildSessionId(cmd) {
125
72
  if (cmd.buildsessionid) {
126
73
  return cmd.buildsessionid;
127
74
  }
@@ -131,8 +78,7 @@ var BuildSessionDataBuilder = /** @class */ (function (_super) {
131
78
  else {
132
79
  this.logger.error('buildSessionId or buildSessionIdFile must be provided');
133
80
  }
134
- };
135
- return BuildSessionDataBuilder;
136
- }(abstract_data_builder_1.AbstractDataBuilder));
81
+ }
82
+ }
137
83
  exports.BuildSessionDataBuilder = BuildSessionDataBuilder;
138
84
  //# sourceMappingURL=build-session-data-builder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-session-data-builder.js","sourceRo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UAAU,EAAE;YACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;YAC/D,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;YACnB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;YAC5D,OAAO,IAAI,CAAC;SACf;QACD,OAAO;YACH,SAAS,EAAE,QAAQ,CAAC,SAAS;YAC7B,UAAU,EAAE,QAAQ,CAAC,UAAU;YAC/B,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,cAAc,EAAE,QAAQ,CAAC,cAAc;SAC1C,CAAA;IACL,CAAC;IAEO,sDAAoB,GAA5B,UAA6B,GAAiB;QAC1C,IAAI,GAAG,CAAC,cAAc,EAAE;YACpB,OAAO,GAAG,CAAC,cAAc,CAAC;SAC7B;QACD,IAAI,GAAG,CAAC,kBAAkB,EAAE;YACxB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,oBAAoB,CAAC,CAAA;SACrD;aACI;YACD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;SAC9E;IACL,CAAC;IACL,8BAAC;AAAD,CAAC,AApED,CAA6C,2CAAmB,GAoE/D;AApEY,0DAAuB"}
1
+ {"version":3,"file":"build-session-data-builder.js","sourceRoot":"","sources":["../../../common/utils/build-session-data-builder.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mEAA4D;AAI5D;;;;GAIG;AACH,MAAa,uBAAwB,SAAQ,2CAAmB;IAI5D,YAAY,YAA0B;QAClC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;IAEY,KAAK,CAAC,GAAiB;;YAChC,OAAO,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;QAC7C,CAAC;KAAA;IAGM,YAAY,CAAC,GAAgB;QAChC,OAAO;YACH,OAAO,EAAE,GAAG,CA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GAAG,CAAC,cAAc,EAAE;YACpB,OAAO,GAAG,CAAC,cAAc,CAAC;SAC7B;QACD,IAAI,GAAG,CAAC,kBAAkB,EAAE;YACxB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,oBAAoB,CAAC,CAAA;SACrD;aACI;YACD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;SAC9E;IACL,CAAC;CACJ;AApED,0DAoEC"}
@@ -1,30 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DependencyUtils = void 0;
4
- var DependencyUtils = /** @class */ (function () {
5
- function DependencyUtils() {
6
- }
7
- DependencyUtils.parseDependencies = function (dependencyArray, logger) {
4
+ class DependencyUtils {
5
+ static parseDependencies(dependencyArray, logger) {
8
6
  if (!dependencyArray || !dependencyArray.length) {
9
7
  logger.warn('Dependencies array is empty');
10
8
  return [];
11
9
  }
12
- var parsedArray = [];
10
+ const parsedArray = [];
13
11
  dependencyArray.forEach(function (depStr) {
14
12
  depStr = depStr.trim();
15
- var deps = depStr.split(';');
13
+ const deps = depStr.split(';');
16
14
  deps.forEach(function (d) {
17
15
  d = d.trim();
18
16
  if (d.indexOf('@') == -1) {
19
17
  parsedArray.push({ buildSessionId: d });
20
18
  return;
21
19
  }
22
- var threeParts = d.split('@'); //Must contain exactly 3 parts - appname, branch and build
20
+ const threeParts = d.split('@'); //Must contain exactly 3 parts - appname, branch and build
23
21
  if (threeParts.length != 3)
24
22
  throw 'Invalid dependency: ' + d;
25
- var appName = threeParts[0].trim();
26
- var branch = threeParts[1].trim();
27
- var build = threeParts[2].trim();
23
+ const appName = threeParts[0].trim();
24
+ const branch = threeParts[1].trim();
25
+ const build = threeParts[2].trim();
28
26
  if (!appName.length)
29
27
  throw 'Missing appName: ' + d;
30
28
  if (!branch.length)
@@ -35,12 +33,12 @@ var DependencyUtils = /** @class */ (function () {
35
33
  });
36
34
  });
37
35
  return parsedArray;
38
- };
39
- DependencyUtils.parseDependenciesFile = function (parsedJson, logger) {
36
+ }
37
+ static parseDependenciesFile(parsedJson, logger) {
40
38
  if (!parsedJson || !Array.isArray(parsedJson)) {
41
39
  throw 'Invalid file structure (not a JSON document)';
42
40
  }
43
- var parsedDependencies = [];
41
+ const parsedDependencies = [];
44
42
  parsedJson.forEach(function (depItem) {
45
43
  if (depItem.buildName)
46
44
  depItem.build = depItem.buildName; //Accept both buildName and build. Different APIs have different naming convensions
@@ -63,8 +61,7 @@ var DependencyUtils = /** @class */ (function () {
63
61
  }
64
62
  });
65
63
  return parsedDependencies;
66
- };
67
- return DependencyUtils;
68
- }());
64
+ }
65
+ }
69
66
  exports.DependencyUtils = DependencyUtils;
70
67
  //# sourceMappingURL=dependency-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dependency-utils.js","sourceRoot":"","sources":["../../../common/utils/dependency-utils.ts"],"names":[],"mappings":";;;AAEA;IAAA;IA+DA,CAAC;IA9DiB,iCAAiB,GAA/B,UAAgC,eAAyB,EAAE,MAAc;QACrE,IAAI,CAAC,eAAe,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE;YAC7C,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;YAC3C,OAAO,EAAE,CAAC;SACb;QAED,IAAM,WAAW,GAAuB,EAAE,CAAC;QAC3C,eAAe,CAAC,OAAO,CAAC,UAAS,MAAM;YACnC,MAAM,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;YACvB,IAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC/B,IAAI,CAAC,OAAO,CAAC,UAAS,CAAC;gBACnB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;gBACb,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE;oBACtB,WAAW,CAAC,IAAI,CAAC,EAAC,cAAc,EAAE,CAAC,EAAC,CAAC,CAAC;oBACtC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AAC;QAC9B,UAAU,CAAC,OAAO,CAAC,UAAS,OAAO;YAE/B,IAAI,OAAO,CAAC,SAAS;gBAAE,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,mFAAmF;YAC7I,IAAI,OAAO,CAAC,UAAU;gBAAE,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,qFAAqF;YAElJ,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,EAAE;gBACpD,kBAAkB,CAAC,IAAI,CAAC;oBACpB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE;oBACnC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;oBACjC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE;iBAClC,CAAC,CAAC;aACN;iBAAM,IAAI,OAAO,CAAC,cAAc,EAAE;gBAC/B,kBAAkB,CAAC,IAAI,CAAC;oBACpB,cAAc,EAAE,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE;iBACpD,CAAC,CAAC;aACN;iBAAM;gBACH,MAAM,2BAA2B,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;aAC/D;QACL,CAAC,CAAC,CAAC;QACH,OAAO,kBAAkB,CAAC;IAC9B,CAAC;CACJ;AA/DD,0CA+DC"}
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EnvVarParsing = void 0;
4
- var EnvVarParsing = /** @class */ (function () {
5
- function EnvVarParsing() {
6
- }
7
- EnvVarParsing.parseNumber = function (key) {
8
- var valueFromEnv = process.env[key];
4
+ class EnvVarParsing {
5
+ static parseNumber(key) {
6
+ let valueFromEnv = process.env[key];
9
7
  if (valueFromEnv != null) {
10
- var valueAsNumber = Number.parseFloat(valueFromEnv);
8
+ const valueAsNumber = Number.parseFloat(valueFromEnv);
11
9
  if (!isNaN(valueAsNumber)) {
12
10
  valueFromEnv = valueAsNumber;
13
11
  }
@@ -16,15 +14,13 @@ var EnvVarParsing = /** @class */ (function () {
16
14
  }
17
15
  }
18
16
  return valueFromEnv;
19
- };
20
- EnvVarParsing.parseBoolean = function (key, defaultValue) {
17
+ }
18
+ static parseBoolean(key, defaultValue = false) {
21
19
  var _a;
22
- if (defaultValue === void 0) { defaultValue = false; }
23
- var normalizedEnvVar = (_a = process.env[key]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
24
- var isValidValue = normalizedEnvVar === 'true' || normalizedEnvVar === 'false';
20
+ const normalizedEnvVar = (_a = process.env[key]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
21
+ const isValidValue = normalizedEnvVar === 'true' || normalizedEnvVar === 'false';
25
22
  return isValidValue ? normalizedEnvVar === 'true' : defaultValue;
26
- };
27
- return EnvVarParsing;
28
- }());
23
+ }
24
+ }
29
25
  exports.EnvVarParsing = EnvVarParsing;
30
26
  //# sourceMappingURL=env-var-parsing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"env-var-parsing.js","sourceRoot":"","sources":["../../../common/utils/env-var-parsing.ts"],"names":[],"mappings":";;;AACA;IAAA;IAoBA,CAAC;IAnBiB,yBAAW,GAAzB,UAA0B,GAAW;QACjC,IAAI,YAAY,GAAkB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnD,IAAI,YAAY,IAAI,IAAI,EAAE;YACtB,IAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YACtD,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE;gBACvB,YAAY,GAAG,aAAa,CAAC;aAChC;iBAAM;gBACH,YAAY,GAAG,IAAI,CAAC;aACvB;SACJ;QAED,OAAe,YAAY,CAAC;IAChC,CAAC;IAEa,0BAAY,GAA1B,UAA2B,GAAW,EAAE,YAAoB;;QAApB,6BAAA,EAAA,oBAAoB;QACxD,IAAM,gBAAgB,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,0CAAE,WAAW,EAAE,CAAC;QACzD,IAAM,YAAY,GAAG,gBAAgB,KAAK,MAAM,IAAI,gBAAgB,KAAK,OAAO,CAAC;QACjF,OAAO,YAAY,CAAC,CAAC,CAAC,gBAAgB,KAAK,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC;IACrE,CAAC;IACL,oBAAC;AAAD,CAAC,AApBD,IAoBC;AApBY,sCAAa"}
1
+ {"version":3,"file":"env-var-parsing.js","sourceRoot":"","sources":["../../../common/utils/env-var-parsing.ts"],"names":[],"mappings":";;;AACA,MAAa,aAAa;IACf,MAAM,CAAC,WAAW,CAAC,GAAW;QACjC,IAAI,YAAY,GAAkB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnD,IAAI,YAAY,IAAI,IAAI,EAAE;YACtB,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YACtD,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE;gBACvB,YAAY,GAAG,aAAa,CAAC;aAChC;iBAAM;gBACH,YAAY,GAAG,IAAI,CAAC;aACvB;SACJ;QAED,OAAe,YAAY,CAAC;IAChC,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,GAAW,EAAE,YAAY,GAAG,KAAK;;QACxD,MAAM,gBAAgB,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,0CAAE,WAAW,EAAE,CAAC;QACzD,MAAM,YAAY,GAAG,gBAAgB,KAAK,MAAM,IAAI,gBAAgB,KAAK,OAAO,CAAC;QACjF,OAAO,YAAY,CAAC,CAAC,CAAC,gBAAgB,KAAK,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC;IACrE,CAAC;CACJ;AApBD,sCAoBC"}
@@ -1,20 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FilesUtils = void 0;
4
- var path = require("path");
5
- var fs = require("fs");
6
- var FilesUtils = /** @class */ (function () {
7
- function FilesUtils() {
8
- }
9
- FilesUtils.resolveOriginalFullFileName = function (fullPath, originalFilename) {
4
+ const path = require("path");
5
+ const fs = require("fs");
6
+ class FilesUtils {
7
+ static resolveOriginalFullFileName(fullPath, originalFilename) {
10
8
  if (path.isAbsolute(originalFilename)) {
11
9
  return originalFilename;
12
10
  }
13
- var generatedDir = path.dirname(fullPath);
11
+ const generatedDir = path.dirname(fullPath);
14
12
  originalFilename = path.resolve(generatedDir, originalFilename);
15
13
  return originalFilename;
16
- };
17
- FilesUtils.prototype.fixPathAndSpecialChar = function (path) {
14
+ }
15
+ fixPathAndSpecialChar(path) {
18
16
  if (path) {
19
17
  if (path[0] === '/' || path[0] === '\\') {
20
18
  return path.substr(1).split('\\').join('/');
@@ -22,25 +20,24 @@ var FilesUtils = /** @class */ (function () {
22
20
  return path.split('\\').join('/');
23
21
  }
24
22
  return path;
25
- };
26
- FilesUtils.adjustPathSlashes = function (filePath) {
23
+ }
24
+ static adjustPathSlashes(filePath) {
27
25
  filePath = (filePath || '').replace(/\\/g, '/');
28
26
  return filePath;
29
- };
30
- FilesUtils.findFileUp = function (file, folder) {
31
- var parsed = path.parse(folder);
32
- var filePath = path.join(folder, file);
27
+ }
28
+ static findFileUp(file, folder) {
29
+ const parsed = path.parse(folder);
30
+ const filePath = path.join(folder, file);
33
31
  if (fs.existsSync(filePath)) {
34
32
  return filePath;
35
33
  }
36
34
  if (path.resolve(folder) === parsed.root || folder === '.') {
37
35
  return null;
38
36
  }
39
- var parentFolder = path.join(folder, '..');
37
+ let parentFolder = path.join(folder, '..');
40
38
  parentFolder = path.normalize(parentFolder);
41
39
  return FilesUtils.findFileUp(file, parentFolder);
42
- };
43
- return FilesUtils;
44
- }());
40
+ }
41
+ }
45
42
  exports.FilesUtils = FilesUtils;
46
43
  //# sourceMappingURL=files-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"files-utils.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,IAAI,CAAC,GAAG,CAAC,CAAC;SACrC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,MAAM,CAAC,iBAAiB,CAAC,QAAQ;QACpC,QAAQ,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAChD,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM;QACjC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACzC,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;YACzB,OAAO,QAAQ,CAAC;SACnB;QACD,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC,IAAI,IAAI,MAAM,KAAK,GAAG,EAAE;YACxD,OAAO,IAAI,CAAC;SACf;QACD,IAAI,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC3C,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC5C,OAAO,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IACrD,CAAC;CACJ;AAtCD,gCAsCC"}
@@ -1,35 +1,22 @@
1
1
  "use strict";
2
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
- if (ar || !(i in from)) {
5
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
- ar[i] = from[i];
7
- }
8
- }
9
- return to.concat(ar || Array.prototype.slice.call(from));
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.ProcessUtils = void 0;
13
- var ProcessUtils = /** @class */ (function () {
14
- function ProcessUtils() {
4
+ class ProcessUtils {
5
+ static findMochaBinIndexInProcess() {
6
+ return process.argv.findIndex(v => v.includes('node_modules/mocha/bin') || v.includes('mocha\\bin\\_mocha'));
15
7
  }
16
- ProcessUtils.findMochaBinIndexInProcess = function () {
17
- return process.argv.findIndex(function (v) { return v.includes('node_modules/mocha/bin') || v.includes('mocha\\bin\\_mocha'); });
18
- };
19
- ProcessUtils.findLastIndexBinNodeInProcess = function () {
20
- var commandIndex = -1;
21
- process.argv.forEach(function (command, index) {
8
+ static findLastIndexBinNodeInProcess() {
9
+ let commandIndex = -1;
10
+ process.argv.forEach((command, index) => {
22
11
  if (command.includes('bin/node') || command.includes('nodejs\\node.exe'))
23
12
  commandIndex = index;
24
13
  });
25
14
  return commandIndex;
26
- };
27
- ProcessUtils.addCommandByIndex = function (_a) {
28
- var _b, _c;
29
- var commandIndex = _a.commandIndex, command = _a.command;
30
- return (_c = (_b = process.argv).splice) === null || _c === void 0 ? void 0 : _c.call.apply(_c, __spreadArray([_b, commandIndex, 0], command, false));
31
- };
32
- return ProcessUtils;
33
- }());
15
+ }
16
+ static addCommandByIndex({ commandIndex, command }) {
17
+ var _a, _b;
18
+ return (_b = (_a = process.argv).splice) === null || _b === void 0 ? void 0 : _b.call(_a, commandIndex, 0, ...command);
19
+ }
20
+ }
34
21
  exports.ProcessUtils = ProcessUtils;
35
22
  //# sourceMappingURL=process-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"process-utils.js","sourceRoot":"","sources":["../../../common/utils/process-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;IAAA;IAkBA,CAAC;IAjBU,uCAA0B,GAAjC;QACI,OAAO,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAxE,CAAwE,CAAC,CAAA;IAChH,CAAC;I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E,YAAY,EAAE,OAAO,EAA+C;;QAC3F,OAAO,MAAA,MAAA,OAAO,CAAC,IAAI,EAAC,MAAM,mDAAG,YAAY,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC;IAC9D,CAAC;CACJ;AAlBD,oCAkBC"}
@@ -1,19 +1,4 @@
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
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -23,56 +8,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
24
9
  });
25
10
  };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
11
  Object.defineProperty(exports, "__esModule", { value: true });
54
12
  exports.TestRunnerBuildSessionDataBuilder = void 0;
55
- var build_session_data_builder_1 = require("./build-session-data-builder");
56
- var TestRunnerBuildSessionDataBuilder = /** @class */ (function (_super) {
57
- __extends(TestRunnerBuildSessionDataBuilder, _super);
58
- function TestRunnerBuildSessionDataBuilder() {
59
- return _super !== null && _super.apply(this, arguments) || this;
60
- }
61
- TestRunnerBuildSessionDataBuilder.prototype.build = function (cmd) {
62
- return __awaiter(this, void 0, void 0, function () {
63
- return __generator(this, function (_a) {
64
- if (this.shouldParseFromLabId(cmd)) {
65
- this.logger.info("Resolving build session data for labid '".concat(cmd.labid, "'"));
66
- return [2 /*return*/, this.backendProxy.getBuildSessionDataFromLabId(cmd.labid)];
67
- }
68
- return [2 /*return*/, _super.prototype.build.call(this, cmd)];
69
- });
13
+ const build_session_data_builder_1 = require("./build-session-data-builder");
14
+ class TestRunnerBuildSessionDataBuilder extends build_session_data_builder_1.BuildSessionDataBuilder {
15
+ build(cmd) {
16
+ const _super = Object.create(null, {
17
+ build: { get: () => super.build }
70
18
  });
71
- };
72
- TestRunnerBuildSessionDataBuilder.prototype.shouldParseFromLabId = function (cmd) {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ if (this.shouldParseFromLabId(cmd)) {
21
+ this.logger.info(`Resolving build session data for labid '${cmd.labid}'`);
22
+ return this.backendProxy.getBuildSessionDataFromLabId(cmd.labid);
23
+ }
24
+ return _super.build.call(this, cmd);
25
+ });
26
+ }
27
+ shouldParseFromLabId(cmd) {
73
28
  return cmd.labid && !cmd.buildsessionid && !cmd.buildsessionidfile;
74
- };
75
- return TestRunnerBuildSessionDataBuilder;
76
- }(build_session_data_builder_1.BuildSessionDataBuilder));
29
+ }
30
+ }
77
31
  exports.TestRunnerBuildSessionDataBuilder = TestRunnerBuildSessionDataBuilder;
78
32
  //# sourceMappingURL=test-runner-build-session-data-builder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-runner-build-session-data-builder.js","sourceRoot":"","sources":["../../../common/utils/test-runner-build-session-data-builder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,2EAAqE;AAGrE;IAAwD,qDAAuB;IAA/E;;IAaA,CAAC;IAXS,iDAAK,GAAX,UAAY,GAA0D;;;gBAClE,IAAG,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAC;oBAC9B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kDAA2C,GAAG,CAAC,KAAK,MAAG,CAAC,CAAC;oBAC1E,sBAAO,IAAI,CAAC,YAAY,CAAC,4BAA4B,CAAC,GAAG,CAAC,KAAK,CAAC,EAAC;iBACpE;gBACD,sBAAO,iBAAM,KAAK,YAAC,GAAG,CAAC,EAAC;;;KAC3B;IAEO,gEAAoB,GAA5B,UAA6B,GAA0D;QACnF,OAAO,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,cAAc,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC;IACvE,CAAC;IACL,wCAAC;AAAD,CAAC,AAbD,CAAwD,oDAAuB,GAa9E;AAbY,8EAAiC"}
1
+ {"version":3,"file":"test-runner-build-session-data-builder.js","sourceRoot":"","sources":["../../../common/utils/test-runner-build-session-data-builder.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,6EAAqE;AAGrE,MAAa,iCAAkC,SAAS,oDAAuB;IAErE,KAAK,CAAC,GAA0D;;;;;YAClE,IAAG,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAC;gBAC9B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2CAA2C,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;gBAC1E,OAAO,IAAI,CAAC,YAAY,CAAC,4BAA4B,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;aACpE;YACD,OAAO,OAAM,KAAK,YAAC,GAAG,EAAE;QAC5B,CAAC;KAAA;IAEO,oBAAoB,CAAC,GAA0D;QACnF,OAAO,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,cAAc,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC;IACvE,CAAC;CACJ;AAbD,8EAaC"}