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,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BufferSizeHelper = void 0;
4
- var BufferSizeHelper = /** @class */ (function () {
5
- function BufferSizeHelper() {
4
+ class BufferSizeHelper {
5
+ constructor() {
6
6
  this.uniqueIdsLengthSum = 0;
7
7
  this.testNamesCount = 0;
8
8
  this.testNamesLengthSum = 0;
@@ -16,27 +16,26 @@ var BufferSizeHelper = /** @class */ (function () {
16
16
  * Each uniqueId index in hit (methods/branches) - 8 bytes
17
17
  (see https://docs.google.com/document/d/1KQXjKFTHlJXi_zKs6QE5wCuKY5B1t3pJCemEgBriOI4/edit?usp=sharing)
18
18
  */
19
- BufferSizeHelper.prototype.calculateBufferSize = function () {
20
- var sizeInBytes = (this.uniqueIdsCount * BufferSizeHelper.FOUR_BYTES + this.uniqueIdsLengthSum) +
19
+ calculateBufferSize() {
20
+ const sizeInBytes = (this.uniqueIdsCount * BufferSizeHelper.FOUR_BYTES + this.uniqueIdsLengthSum) +
21
21
  (this.testNamesCount * BufferSizeHelper.FOUR_BYTES + this.testNamesLengthSum) +
22
22
  (this.hitCount * BufferSizeHelper.APPROX_HIT_SIZE) +
23
23
  (this.indicesCount * BufferSizeHelper.EIGHT_BYTES);
24
24
  return sizeInBytes / BufferSizeHelper.BYTES_IN_MB;
25
- };
26
- BufferSizeHelper.prototype.incrementSizeCounters = function (testName, methodIndicesSize, branchIndicesSize) {
25
+ }
26
+ incrementSizeCounters(testName, methodIndicesSize, branchIndicesSize) {
27
27
  this.hitCount++;
28
28
  this.indicesCount += (methodIndicesSize + branchIndicesSize);
29
29
  if (testName) {
30
30
  this.testNamesCount++;
31
31
  this.testNamesLengthSum += testName.length;
32
32
  }
33
- };
34
- BufferSizeHelper.FOUR_BYTES = 4;
35
- BufferSizeHelper.EIGHT_BYTES = 8;
36
- BufferSizeHelper.APPROX_HIT_SIZE = 128;
37
- BufferSizeHelper.BYTES_IN_MB = 1024 * 1024;
38
- BufferSizeHelper.BYTES_IN_GB = 1024 * 1024 * 1024;
39
- return BufferSizeHelper;
40
- }());
33
+ }
34
+ }
41
35
  exports.BufferSizeHelper = BufferSizeHelper;
36
+ BufferSizeHelper.FOUR_BYTES = 4;
37
+ BufferSizeHelper.EIGHT_BYTES = 8;
38
+ BufferSizeHelper.APPROX_HIT_SIZE = 128;
39
+ BufferSizeHelper.BYTES_IN_MB = 1024 * 1024;
40
+ BufferSizeHelper.BYTES_IN_GB = 1024 * 1024 * 1024;
42
41
  //# sourceMappingURL=buffer-size-helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"buffer-size-helper.js","sourceRoot":"","sources":["../../../common/footprints-process-v6/buffer-size-helper.ts"],"names":[],"mappings":";;;AAAA;IAcI;QACI,IAAI,CAAC,kBAAkB,GAAG,CAAC,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;QACxB,IAAI,CAAC,kBAAkB,GAAG,CAAC,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED;;;;;MAKE;IACK,8CAAmB,GAA1B;QACI,IAAM,WAAW,GAAG,CAAC,IAAI,CAAC,cAAc,GAAG,gBAAgB,CAAC,UAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC;YAC7F,CAAC,IAAI,CAAC,cAAc,GAAG,gBAAgB,CAAC,UAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC;YAC7E,CAAC,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,eAAe,CAAC;YAClD,CAAC,IAAI,CAAC,YAAY,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;QACvD,OAAO,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC;IACtD,CAAC;IAEM,gDAAqB,GAA5B,UAA6B,QAAgB,EAAE,iBAAyB,EAAE,iBAAyB;QAC/F,IAAI,CAAC,QAAQ,EAAG,CAAC;QACjB,IAAI,CAAC,YAAY,IAAI,CAAC,iBAAiB,GAA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AAqB,CAAC,QAAgB,EAAE,iBAAyB,EAAE,iBAAyB;QAC/F,IAAI,CAAC,QAAQ,EAAG,CAAC;QACjB,IAAI,CAAC,YAAY,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;QAC7D,IAAG,QAAQ,EAAC;YACR,IAAI,CAAC,cAAc,EAAG,CAAC;YACvB,IAAI,CAAC,kBAAkB,IAAI,QAAQ,CAAC,MAAM,CAAC;SAC9C;IACL,CAAC;;AA5CL,4CA6CC;AAtC2B,2BAAU,GAAG,CAAC,CAAC;AACf,4BAAW,GAAG,CAAC,CAAC;AAChB,gCAAe,GAAG,GAAG,CAAC;AACvB,4BAAW,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1B,4BAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC"}
@@ -1,40 +1,22 @@
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.CollectorFootprintsBuffer = void 0;
19
- var agent_events_contracts_1 = require("../agent-events/agent-events-contracts");
20
- var browser_footprints_buffer_1 = require("./browser-footprints-buffer");
21
- var CollectorFootprintsBuffer = /** @class */ (function (_super) {
22
- __extends(CollectorFootprintsBuffer, _super);
23
- function CollectorFootprintsBuffer(agentInstanceData, agentConfig, footprintsMapping) {
24
- var _this = _super.call(this, agentInstanceData, agentConfig, footprintsMapping) || this;
25
- _this.meta.agentConfig = {
26
- agentId: _this.agentInstanceData.agentId,
27
- appName: _this.agentConfig.appName.value,
28
- build: _this.agentConfig.build.value,
29
- branch: _this.agentConfig.branch.value,
30
- buildSessionId: _this.agentConfig.buildSessionId.value,
31
- labId: _this.agentConfig.labId.value,
32
- agentVersion: _this.agentInstanceData.agentVersion,
4
+ const agent_events_contracts_1 = require("../agent-events/agent-events-contracts");
5
+ const browser_footprints_buffer_1 = require("./browser-footprints-buffer");
6
+ class CollectorFootprintsBuffer extends browser_footprints_buffer_1.BrowserFootprintsBuffer {
7
+ constructor(agentInstanceData, agentConfig, footprintsMapping) {
8
+ super(agentInstanceData, agentConfig, footprintsMapping);
9
+ this.meta.agentConfig = {
10
+ agentId: this.agentInstanceData.agentId,
11
+ appName: this.agentConfig.appName.value,
12
+ build: this.agentConfig.build.value,
13
+ branch: this.agentConfig.branch.value,
14
+ buildSessionId: this.agentConfig.buildSessionId.value,
15
+ labId: this.agentConfig.labId.value,
16
+ agentVersion: this.agentInstanceData.agentVersion,
33
17
  agentType: agent_events_contracts_1.AgentType.BROWSER_AGENT
34
18
  };
35
- return _this;
36
19
  }
37
- return CollectorFootprintsBuffer;
38
- }(browser_footprints_buffer_1.BrowserFootprintsBuffer));
20
+ }
39
21
  exports.CollectorFootprintsBuffer = CollectorFootprintsBuffer;
40
22
  //# sourceMappingURL=collector-footprints-buffer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collector-footprints-buffer.js","sourceRoot":"","sources":["../../../common/footprints-process-v6/collector-footprints-buffer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,iFAAiE;AAGjE,yEAAsE;AAEtE;IAA+C,6CAAuB;IAElE,mCAAY,iBAAoC,EAAE,WAAwB,EAAE,iBAAqC;QAAjH,YACI,kBAAM,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,CAAC,SAW3D;QAVG,KAAI,CAAC,IAAI,CAAC,WAAW,GAAG;YACpB,OAAO,EAAE,KAAI,CAAC,iBAAiB,CAAC,OAAO;YACvC,OAAO,EAAE,KAAI,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK;YACvC,KAAK,EAAE,KAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK;YACnC,MAAM,EAAE,KAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK;YACrC,cAAc,EAAE,KAAI,CAAC,WAAW,CAAC,cAAc,CAAC,KAAK;YACrD,KAAK,EAAE,KAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK;YACnC,YAAY,EAAE,KAAI,CAAC,iBAAiB,CAAC,YAAY;YACjD,SAAS,EAAE,kCAAS,CAAC,aAAa;SACrC,CAAA;;IACL,CAAC;IACL,gCAAC;AAAD,CAAC,AAfD,CAA+C,mDAAuB,GAerE;AAfY,8DAAyB"}
1
+ {"version":3,"file":"collector-footprints-buffer.js","sourceRoot":"","sources":["../../../common/footprints-process-v6/collector-footprints-buffer.ts"],"names":[],"mappings":";;;AAEA,mFAAiE;AAGjE,2EAAsE;AAEtE,MAAa,yBAA0B,SAAQ,mDAAuB;IAElE,YAAY,iBAAoC,EAAE,WAAwB,EAAE,iBAAqC;QAC7G,KAAK,CAAC,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC;QACzD,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG;YACpB,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO;YACvC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK;YACvC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK;YACnC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK;YACrC,cAAc,EAAE,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,KAAK;YACrD,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK;YACnC,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,YAAY;YACjD,SAAS,EAAE,kCAAS,CAAC,aAAa;SACrC,CAAA;IACL,CAAC;CACJ;AAfD,8DAeC"}
@@ -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,105 +8,54 @@ 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.CollectorFootprintsProcess = void 0;
55
- var _1 = require(".");
56
- var no_op_state_tracker_1 = require("../no-op-state-tracker");
57
- var CollectorFootprintsProcess = /** @class */ (function (_super) {
58
- __extends(CollectorFootprintsProcess, _super);
59
- function CollectorFootprintsProcess(cfg, sendToServerWatchdog, keepaliveWatchdog, logger, hitsCollector, hitsConverter, footprintsBuffer, backendProxy, stateTracker) {
60
- return _super.call(this, cfg, sendToServerWatchdog, keepaliveWatchdog, logger, hitsCollector, hitsConverter, footprintsBuffer, backendProxy, stateTracker) || this;
13
+ const _1 = require(".");
14
+ const no_op_state_tracker_1 = require("../no-op-state-tracker");
15
+ class CollectorFootprintsProcess extends _1.FootprintsProcess {
16
+ constructor(cfg, sendToServerWatchdog, keepaliveWatchdog, logger, hitsCollector, hitsConverter, footprintsBuffer, backendProxy, stateTracker) {
17
+ super(cfg, sendToServerWatchdog, keepaliveWatchdog, logger, hitsCollector, hitsConverter, footprintsBuffer, backendProxy, stateTracker);
61
18
  }
62
- CollectorFootprintsProcess.prototype.submitQueuedFootprints = function () {
63
- return __awaiter(this, void 0, void 0, function () {
64
- var packet, e_1;
65
- return __generator(this, function (_a) {
66
- switch (_a.label) {
67
- case 0:
68
- if (!this.shouldSubmitFootprints()) {
69
- return [2 /*return*/];
70
- }
71
- packet = this.footprintsBuffer.createPacket();
72
- if (!packet) return [3 /*break*/, 6];
73
- this.ongoingRequestsCounter++;
74
- _a.label = 1;
75
- case 1:
76
- _a.trys.push([1, 3, 4, 5]);
77
- return [4 /*yield*/, this.backendProxy.submitFootprintsToCollector(packet, this.cfg.buildSessionId.value)];
78
- case 2:
79
- _a.sent();
80
- this.logger.info("Footprints packet submitted successfully. packet contains ".concat(packet.methods.length, " methods, ").concat(packet.branches.length, " branches in ").concat(packet.executions.length, " executions"));
81
- return [3 /*break*/, 5];
82
- case 3:
83
- e_1 = _a.sent();
84
- this.logger.error("Error while submitting footprints '".concat(e_1, "'"));
85
- return [3 /*break*/, 5];
86
- case 4:
87
- this.ongoingRequestsCounter--;
88
- return [7 /*endfinally*/];
89
- case 5: return [3 /*break*/, 7];
90
- case 6:
91
- this.logger.info('No hits collected nothing to submit');
92
- _a.label = 7;
93
- case 7: return [2 /*return*/];
19
+ submitQueuedFootprints() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ if (!this.shouldSubmitFootprints()) {
22
+ return;
23
+ }
24
+ const packet = this.footprintsBuffer.createPacket();
25
+ if (packet) {
26
+ this.ongoingRequestsCounter++;
27
+ try {
28
+ yield this.backendProxy.submitFootprintsToCollector(packet, this.cfg.buildSessionId.value);
29
+ this.logger.info(`Footprints packet submitted successfully. packet contains ${packet.methods.length} methods, ${packet.branches.length} branches in ${packet.executions.length} executions`);
94
30
  }
95
- });
96
- });
97
- };
98
- CollectorFootprintsProcess.prototype.flushCurrentFootprints = function (isFinalFootprints) {
99
- if (isFinalFootprints === void 0) { isFinalFootprints = false; }
100
- return __awaiter(this, void 0, void 0, function () {
101
- var currentTestIdentifier, testIdentifierParts;
102
- return __generator(this, function (_a) {
103
- switch (_a.label) {
104
- case 0:
105
- currentTestIdentifier = this.stateTracker.getCurrentTestIdentifier();
106
- if (!currentTestIdentifier) return [3 /*break*/, 2];
107
- testIdentifierParts = no_op_state_tracker_1.NoopStateTracker.splitTestIdToExecutionAndTestName(currentTestIdentifier);
108
- this.logger.debug('Enqueue footprints interval - start enqueuing process. currentTestIdentifier: \'%s\'', currentTestIdentifier);
109
- return [4 /*yield*/, this.enqueueCurrentFootprints(this.stateTracker.currentExecution, testIdentifierParts.testName, isFinalFootprints)];
110
- case 1:
111
- _a.sent();
112
- return [3 /*break*/, 4];
113
- case 2:
114
- this.logger.debug('Enqueue footprints interval - start enqueuing process. anonymous footprints');
115
- return [4 /*yield*/, this.enqueueCurrentFootprints(this.stateTracker.currentExecution, null, isFinalFootprints)];
116
- case 3:
117
- _a.sent();
118
- _a.label = 4;
119
- case 4: return [2 /*return*/];
31
+ catch (e) {
32
+ this.logger.error(`Error while submitting footprints '${e}'`);
33
+ }
34
+ finally {
35
+ this.ongoingRequestsCounter--;
120
36
  }
121
- });
37
+ }
38
+ else {
39
+ this.logger.info('No hits collected nothing to submit');
40
+ }
41
+ });
42
+ }
43
+ flushCurrentFootprints(isFinalFootprints = false) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ const currentTestIdentifier = this.stateTracker.getCurrentTestIdentifier();
46
+ // Colored footprints
47
+ if (currentTestIdentifier) {
48
+ const testIdentifierParts = no_op_state_tracker_1.NoopStateTracker.splitTestIdToExecutionAndTestName(currentTestIdentifier);
49
+ this.logger.debug('Enqueue footprints interval - start enqueuing process. currentTestIdentifier: \'%s\'', currentTestIdentifier);
50
+ yield this.enqueueCurrentFootprints(this.stateTracker.currentExecution, testIdentifierParts.testName, isFinalFootprints);
51
+ }
52
+ // Anonymous footprints
53
+ else {
54
+ this.logger.debug('Enqueue footprints interval - start enqueuing process. anonymous footprints');
55
+ yield this.enqueueCurrentFootprints(this.stateTracker.currentExecution, null, isFinalFootprints);
56
+ }
122
57
  });
123
- };
124
- return CollectorFootprintsProcess;
125
- }(_1.FootprintsProcess));
58
+ }
59
+ }
126
60
  exports.CollectorFootprintsProcess = CollectorFootprintsProcess;
127
61
  //# sourceMappingURL=collector-footprints-process.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collector-footprints-process.js","sourceRoot":"","sources":["../../../common/footprints-process-v6/collector-footprints-process.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sBAAsC;AACtC,8DAA0D;AAS1D;IAAgD,8CAAiB;IAI7D,oCAAY,GAAgB,EAAE,oBAA8B,EAAE,iBAA2B,EAAE,MAAc,EACrG,aAA4B,EAAE,aAA4B,EAAE,gBAA2C,EACvG,YAA0B,EAAE,YAA8B;eAC1D,kBAAM,GAAG,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,CAAC;IAC3I,CAAC;IAEY,2DAAsB,GAAnC;;;;;;wBACI,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE;4BAChC,sBAAM;yBACT;wBACK,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;6BAChD,MAAM,EAAN,wBAAM;wBACN,IAAI,CAAC,sBAAsB,EAAE,CAAC;;;;wBAE1B,qBAAM,IAAI,CAAC,YAAY,CAAC,2BAA2B,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,CAAC,EAAA;;wBAA1F,SAA0F,CAAA;wBAC1F,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oEAA6D,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAa,MAAM,CAAC,QAAQ,CAAC,MAAM,0BAAgB,MAAM,CAAC,UAAU,CAAC,MAAM,gBAAa,CAAC,CAAC;;;;wBAE7L,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6CAAsC,GAAC,MAAG,CAAC,CAAC;;;wBAE9D,IAAI,CAAC,sBAAsB,EAAE,CAAC;;;;wBAGlC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;;;;;;KAE/D;IAEY,2DAAsB,GAAnC,UAAoC,iBAAyB;QAAzB,kCAAA,EAAA,yBAAyB;;;;;;wBACnD,qBAAqB,GAAG,IAAI,CAAC,YAAY,CAAC,wBAAwB,EAAE,CAAC;6BAGvE,qBAAqB,EAArB,wBAAqB;wBACf,mBAAmB,GAAG,sCAAgB,CAAC,iCAAiC,CAAC,qBAAqB,CAAC,CAAC;wBACtG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sFAAsF,EAAE,qBAAqB,CAAC,CAAC;wBACjI,qBAAM,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,EAAA;;wBAAxH,SAAwH,CAAC;;;wBAKzH,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAC;wBACjG,qBAAM,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,CAAC,EAAA;;wBAAhG,SAAgG,CAAC;;;;;;KAExG;IACL,iCAAC;AAAD,CAAC,AA9CD,CAAgD,oBAAiB,GA8ChE;AA9CY,gEAA0B"}
1
+ {"version":3,"file":"collector-footprints-process.js","sourceRoot":"","sources":["../../../common/footprints-process-v6/collector-footprints-process.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,wBAAsC;AACtC,gEAA0D;AAS1D,MAAa,0BAA2B,SAAQ,oBAAiB;IAI7D,YAAY,GAAgB,EAAE,oBAA8B,EAAE,iBAA2B,EAAE,MAAc,EACrG,aAA4B,EAAE,aAA4B,EAAE,gBAA2C,EACvG,YAA0B,EAA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AAsF,EAAE,qBAAqB,CAAC,CAAC;gBACjI,MAAM,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;aAC5H;YAED,uBAAuB;iBAClB;gBACD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAC;gBACjG,MAAM,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC;aACpG;QACL,CAAC;KAAA;CACJ;AA9CD,gEA8CC"}
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IExtendedIstanbulMetrics = void 0;
4
- var IExtendedIstanbulMetrics = /** @class */ (function () {
5
- function IExtendedIstanbulMetrics() {
6
- }
7
- return IExtendedIstanbulMetrics;
8
- }());
4
+ class IExtendedIstanbulMetrics {
5
+ }
9
6
  exports.IExtendedIstanbulMetrics = IExtendedIstanbulMetrics;
10
7
  //# sourceMappingURL=contracts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../common/footprints-process-v6/contracts.ts"],"names":[],"mappings":";;;AAGA;IAAA;IAMA,CAAC;IAAD,+BAAC;AAAD,CAAC,AAND,IAMC;AANY,4DAAwB"}
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../common/footprints-process-v6/contracts.ts"],"names":[],"mappings":";;;AAGA,MAAa,wBAAwB;CAMpC;AAND,4DAMC"}
@@ -1,90 +1,69 @@
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.FootprintsBuffer = void 0;
19
- var cockpit_notifier_1 = require("../agent-events/cockpit-notifier");
20
- var agent_events_contracts_1 = require("../agent-events/agent-events-contracts");
21
- var events = require("events");
22
- var buffer_size_helper_1 = require("./buffer-size-helper");
4
+ const cockpit_notifier_1 = require("../agent-events/cockpit-notifier");
5
+ const agent_events_contracts_1 = require("../agent-events/agent-events-contracts");
6
+ const events = require("events");
7
+ const buffer_size_helper_1 = require("./buffer-size-helper");
23
8
  /**
24
9
  * Holds the footprints hits data and builds the DTO for footprints packet
25
10
  */
26
- var FootprintsBuffer = /** @class */ (function (_super) {
27
- __extends(FootprintsBuffer, _super);
28
- function FootprintsBuffer(agentInstanceData, agentConfig) {
29
- var _this = _super.call(this) || this;
30
- _this.formatVersion = '6.0';
31
- _this.agentInstanceData = agentInstanceData;
32
- _this._agentConfig = agentConfig;
33
- _this.currentBufferSize = 0;
34
- _this.resetState();
35
- _this.meta = {
36
- agentId: _this.agentInstanceData.agentId,
11
+ class FootprintsBuffer extends events.EventEmitter {
12
+ constructor(agentInstanceData, agentConfig) {
13
+ super();
14
+ this.formatVersion = '6.0';
15
+ this.agentInstanceData = agentInstanceData;
16
+ this._agentConfig = agentConfig;
17
+ this.currentBufferSize = 0;
18
+ this.resetState();
19
+ this.meta = {
20
+ agentId: this.agentInstanceData.agentId,
37
21
  intervals: {
38
- timedFootprintsCollectionIntervalSeconds: _this._agentConfig.footprintsCollectIntervalSecs.value
22
+ timedFootprintsCollectionIntervalSeconds: this._agentConfig.footprintsCollectIntervalSecs.value
39
23
  },
40
- labId: _this._agentConfig.labId.value
24
+ labId: this._agentConfig.labId.value
41
25
  };
42
- return _this;
43
26
  }
44
- FootprintsBuffer.prototype.addHit = function (footprints, collectionInterval, executionId, testName, isInitFootprints, isFinalFootprints) {
27
+ addHit(footprints, collectionInterval, executionId, testName, isInitFootprints, isFinalFootprints) {
45
28
  cockpit_notifier_1.CockpitNotifier.sendEventOnce(agent_events_contracts_1.AgentEventCode.FIRST_TIME_COLLECTED_FP);
46
- var methodIndices = this.addOrGetIndices(footprints.methods, true);
47
- var branchIndices = this.addOrGetIndices(footprints.branches, false);
48
- var executionIdx = this.addOrGetExecutionIndex(executionId);
29
+ const methodIndices = this.addOrGetIndices(footprints.methods, true);
30
+ const branchIndices = this.addOrGetIndices(footprints.branches, false);
31
+ const executionIdx = this.addOrGetExecutionIndex(executionId);
49
32
  this.executions[executionIdx].hits.push({
50
33
  branches: branchIndices,
51
34
  methods: methodIndices,
52
35
  start: collectionInterval.start,
53
36
  end: collectionInterval.end,
54
37
  testName: testName,
55
- isInitFootprints: isInitFootprints,
56
- isFinalFootprints: isFinalFootprints
38
+ isInitFootprints,
39
+ isFinalFootprints
57
40
  });
58
41
  this.bufferSizeHelper.incrementSizeCounters(testName, methodIndices.length, branchIndices.length);
59
42
  this.verifyBufferSize();
60
- };
61
- FootprintsBuffer.prototype.createPacket = function () {
62
- var packet = this.toJson();
43
+ }
44
+ createPacket() {
45
+ const packet = this.toJson();
63
46
  this.resetState();
64
47
  return packet;
65
- };
66
- FootprintsBuffer.prototype.resetState = function () {
48
+ }
49
+ resetState() {
67
50
  this.branches = [];
68
51
  this.methods = [];
69
52
  this.executions = [];
70
53
  this.methodIdToIndex = new Map();
71
54
  this.branchIdToIndex = new Map();
72
55
  this.bufferSizeHelper = new buffer_size_helper_1.BufferSizeHelper();
73
- };
74
- FootprintsBuffer.prototype.hasHitsInBuffer = function () {
56
+ }
57
+ hasHitsInBuffer() {
75
58
  return this.executions.length > 0;
76
- };
77
- Object.defineProperty(FootprintsBuffer.prototype, "agentConfig", {
78
- get: function () {
79
- return this._agentConfig;
80
- },
81
- set: function (value) {
82
- this._agentConfig = value;
83
- },
84
- enumerable: false,
85
- configurable: true
86
- });
87
- FootprintsBuffer.prototype.toJson = function () {
59
+ }
60
+ get agentConfig() {
61
+ return this._agentConfig;
62
+ }
63
+ set agentConfig(value) {
64
+ this._agentConfig = value;
65
+ }
66
+ toJson() {
88
67
  if (!this.executions || !this.executions.length) {
89
68
  return null;
90
69
  }
@@ -96,26 +75,25 @@ var FootprintsBuffer = /** @class */ (function (_super) {
96
75
  methods: this.methods,
97
76
  moduleName: this.moduleName
98
77
  };
99
- };
100
- FootprintsBuffer.prototype.addOrGetIndices = function (elementIds, isMethods) {
101
- var _this = this;
102
- var map = isMethods ? this.methodIdToIndex : this.branchIdToIndex;
103
- var arr = isMethods ? this.methods : this.branches;
104
- var indices = [];
105
- elementIds.forEach(function (id) {
78
+ }
79
+ addOrGetIndices(elementIds, isMethods) {
80
+ const map = isMethods ? this.methodIdToIndex : this.branchIdToIndex;
81
+ const arr = isMethods ? this.methods : this.branches;
82
+ const indices = [];
83
+ elementIds.forEach(id => {
106
84
  if (!map.get(id)) {
107
- _this.bufferSizeHelper.uniqueIdsLengthSum += id.length;
108
- _this.bufferSizeHelper.uniqueIdsCount++;
109
- var position = arr.push(id);
85
+ this.bufferSizeHelper.uniqueIdsLengthSum += id.length;
86
+ this.bufferSizeHelper.uniqueIdsCount++;
87
+ const position = arr.push(id);
110
88
  map.set(id, position - 1);
111
89
  }
112
90
  indices.push(map.get(id));
113
91
  });
114
92
  return indices;
115
- };
116
- FootprintsBuffer.prototype.addOrGetExecutionIndex = function (executionId) {
117
- var index = -1;
118
- this.executions.every(function (execution, idx) {
93
+ }
94
+ addOrGetExecutionIndex(executionId) {
95
+ let index = -1;
96
+ this.executions.every((execution, idx) => {
119
97
  if (executionId == execution.executionId) {
120
98
  index = idx;
121
99
  return false;
@@ -123,14 +101,13 @@ var FootprintsBuffer = /** @class */ (function (_super) {
123
101
  return true;
124
102
  });
125
103
  return index != -1 ? index : this.executions.push({ executionId: executionId, hits: [] }) - 1;
126
- };
127
- FootprintsBuffer.prototype.verifyBufferSize = function () {
104
+ }
105
+ verifyBufferSize() {
128
106
  if (this.bufferSizeHelper.calculateBufferSize() >= this._agentConfig.footprintsBufferThresholdMb.value) {
129
107
  this.emit(FootprintsBuffer.BUFFER_FULL);
130
108
  }
131
- };
132
- FootprintsBuffer.BUFFER_FULL = 'bufferFull';
133
- return FootprintsBuffer;
134
- }(events.EventEmitter));
109
+ }
110
+ }
135
111
  exports.FootprintsBuffer = FootprintsBuffer;
112
+ FootprintsBuffer.BUFFER_FULL = 'bufferFull';
136
113
  //# sourceMappingURL=footprints-buffer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"footprints-buffer.js","sourceRoot":"","sources":["../../../common/footprints-process-v6/footprints-buffer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AASA,qEAAiE;AACjE,iFAAsE;AACtE,+BAAkC;AAClC,2DAAsD;AAEtD;;GAEG;AAEH;IAAsC,oCAAmB;IAkBrD,0BAAY,iBAAoC,EAAE,WAAwB;QAA1E,YACI,iBAAO,SAYV;QA5BO,mBAAa,GAAG,KAAK,CAAC;QAiB1B,KAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,KAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,KAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC;QAC3B,KAAI,CAAC,UAAU,EAAE,CAAC;QAClB,KAAI,CAAC,IAAI,GAAG;YACR,OAAO,EAAE,KAAI,CAAC,iBAAiB,CAAC,OAAO;YACvC,SAAS,EAAE;gBACP,wCAAwC,EAAE,KAAI,CAAC,YAAY,CAAC,6BAA6B,CAAC,KAAK;aAClG;YACD,KAAK,EAAE,KAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK;SACvC,CAAC;;IACN,CAAC;IAEM,iCAAM,GAAb,UAAc,UAAgC,EAAE,kBAAuC,EAAE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