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
@@ -27754,7 +27754,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
27754
27754
  this.instanceAddedForBsid[configuration.buildSessionId] = true;
27755
27755
  const browserAgent = agent_factory_1.AgentFactory.createBrowserAgent(this.window, this.featureDetection, configuration);
27756
27756
  const { enableOpenTelemetry } = configuration;
27757
- (0, events_bridge_1.registerEventsBridge)(this.logger, enableOpenTelemetry);
27757
+ (0, events_bridge_1.registerEventsBridge)(this.logger, enableOpenTelemetry, true, configuration.allowCORS);
27758
27758
  if (browserAgent) {
27759
27759
  browserAgent.start();
27760
27760
  this.instances.push(browserAgent);
@@ -28066,7 +28066,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28066
28066
  "use strict";
28067
28067
  Object.defineProperty(exports, "__esModule", { value: true });
28068
28068
  exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
28069
- exports.SL_AGENT_VERSION = '6.1.410';
28069
+ exports.SL_AGENT_VERSION = '6.1.429';
28070
28070
  exports.SL_AGENT_TYPE = 'browser';
28071
28071
  });
28072
28072
 
@@ -28664,7 +28664,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28664
28664
  if (v !== undefined) module.exports = v;
28665
28665
  }
28666
28666
  else if (typeof define === "function" && define.amd) {
28667
- define(["require", "exports", "@opentelemetry/instrumentation-fetch", "../utils", "../const"], factory);
28667
+ define(["require", "exports", "@opentelemetry/instrumentation-fetch", "../utils"], factory);
28668
28668
  }
28669
28669
  })(function (require, exports) {
28670
28670
  "use strict";
@@ -28672,7 +28672,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28672
28672
  exports.CustomFetchInstrumentation = exports.handleAddHeaders = void 0;
28673
28673
  const instrumentation_fetch_1 = require("@opentelemetry/instrumentation-fetch");
28674
28674
  const utils_1 = require("../utils");
28675
- const const_1 = require("../const");
28676
28675
  const setPropagationHeaders = (options, contextPropagationHeaders) => {
28677
28676
  for (const [key, value] of Object.entries(contextPropagationHeaders)) {
28678
28677
  if (value) {
@@ -28680,13 +28679,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28680
28679
  }
28681
28680
  }
28682
28681
  };
28683
- function handleAddHeaders(options, spanUrl) {
28684
- const origin = window.location.origin;
28685
- const startsWithOrigin = spanUrl === null || spanUrl === void 0 ? void 0 : spanUrl.startsWith(origin);
28686
- const isRelativeUrl = const_1.relativePathRegex.test(spanUrl);
28687
- if (!startsWithOrigin && !isRelativeUrl) {
28682
+ function handleAddHeaders(options, spanUrl, allowCORS) {
28683
+ const allowHeadersPropagation = (0, utils_1.shouldAddHeaders)(window.location.origin, spanUrl, allowCORS);
28684
+ if (!allowHeadersPropagation)
28688
28685
  return;
28689
- }
28690
28686
  const contextPropagationHeaders = Object.assign(Object.assign({}, (0, utils_1.constructBaggageHeader)()), (0, utils_1.constructContextHeaders)());
28691
28687
  if (options instanceof Request && contextPropagationHeaders) {
28692
28688
  setPropagationHeaders(options, contextPropagationHeaders);
@@ -28707,20 +28703,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28707
28703
  class CustomFetchInstrumentation extends instrumentation_fetch_1.FetchInstrumentation {
28708
28704
  constructor(config) {
28709
28705
  super(config);
28710
- this['_addHeaders'] = (options, spanUrl) => handleAddHeaders(options, spanUrl);
28706
+ this['_addHeaders'] = (options, spanUrl) => handleAddHeaders(options, spanUrl, config === null || config === void 0 ? void 0 : config.allowCORS);
28711
28707
  }
28712
28708
  }
28713
28709
  exports.CustomFetchInstrumentation = CustomFetchInstrumentation;
28714
28710
  });
28715
28711
 
28716
- },{"../const":237,"../utils":244,"@opentelemetry/instrumentation-fetch":89}],241:[function(require,module,exports){
28712
+ },{"../utils":244,"@opentelemetry/instrumentation-fetch":89}],241:[function(require,module,exports){
28717
28713
  (function (factory) {
28718
28714
  if (typeof module === "object" && typeof module.exports === "object") {
28719
28715
  var v = factory(require, exports);
28720
28716
  if (v !== undefined) module.exports = v;
28721
28717
  }
28722
28718
  else if (typeof define === "function" && define.amd) {
28723
- define(["require", "exports", "@opentelemetry/instrumentation-xml-http-request", "../utils", "../const"], factory);
28719
+ define(["require", "exports", "@opentelemetry/instrumentation-xml-http-request", "../utils"], factory);
28724
28720
  }
28725
28721
  })(function (require, exports) {
28726
28722
  "use strict";
@@ -28728,14 +28724,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28728
28724
  exports.CustomXMLHttpRequestInstrumentation = exports.handleAddHeaders = void 0;
28729
28725
  const instrumentation_xml_http_request_1 = require("@opentelemetry/instrumentation-xml-http-request");
28730
28726
  const utils_1 = require("../utils");
28731
- const const_1 = require("../const");
28732
- function handleAddHeaders(xhr, spanUrl) {
28733
- const origin = window.location.origin;
28734
- const startsWithOrigin = spanUrl === null || spanUrl === void 0 ? void 0 : spanUrl.startsWith(origin);
28735
- const isRelativeUrl = const_1.relativePathRegex.test(spanUrl);
28736
- if (!startsWithOrigin && !isRelativeUrl) {
28727
+ function handleAddHeaders(xhr, spanUrl, allowCORS) {
28728
+ const allowHeadersPropagation = (0, utils_1.shouldAddHeaders)(window.location.origin, spanUrl, allowCORS);
28729
+ if (!allowHeadersPropagation)
28737
28730
  return;
28738
- }
28739
28731
  const headers = Object.assign(Object.assign({}, (0, utils_1.constructBaggageHeader)()), (0, utils_1.constructContextHeaders)());
28740
28732
  Object.keys(headers).forEach((headerKey) => {
28741
28733
  xhr.setRequestHeader(headerKey, headers[headerKey]);
@@ -28745,13 +28737,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28745
28737
  class CustomXMLHttpRequestInstrumentation extends instrumentation_xml_http_request_1.XMLHttpRequestInstrumentation {
28746
28738
  constructor(config) {
28747
28739
  super(config);
28748
- this['_addHeaders'] = (xhr, spanUrl) => handleAddHeaders(xhr, spanUrl);
28740
+ this['_addHeaders'] = (xhr, spanUrl) => handleAddHeaders(xhr, spanUrl, config === null || config === void 0 ? void 0 : config.allowCORS);
28749
28741
  }
28750
28742
  }
28751
28743
  exports.CustomXMLHttpRequestInstrumentation = CustomXMLHttpRequestInstrumentation;
28752
28744
  });
28753
28745
 
28754
- },{"../const":237,"../utils":244,"@opentelemetry/instrumentation-xml-http-request":93}],242:[function(require,module,exports){
28746
+ },{"../utils":244,"@opentelemetry/instrumentation-xml-http-request":93}],242:[function(require,module,exports){
28755
28747
  (function (factory) {
28756
28748
  if (typeof module === "object" && typeof module.exports === "object") {
28757
28749
  var v = factory(require, exports);
@@ -28767,7 +28759,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28767
28759
  const otel_1 = require("./otel");
28768
28760
  const events_1 = require("./events");
28769
28761
  const const_1 = require("./const");
28770
- const registerEventsBridge = (logger, enableOpenTelemetry, sendCockpitEvents = true) => {
28762
+ const registerEventsBridge = (logger, enableOpenTelemetry, sendCockpitEvents = true, allowCORS) => {
28771
28763
  var _a, _b, _c, _d;
28772
28764
  const eventsBridgeRegistered = (_b = (_a = window.$Sealights) === null || _a === void 0 ? void 0 : _a.eventsBridge) === null || _b === void 0 ? void 0 : _b.loaded;
28773
28765
  const otelRegistered = (_d = (_c = window.$Sealights) === null || _c === void 0 ? void 0 : _c.eventsBridge) === null || _d === void 0 ? void 0 : _d.otel;
@@ -28775,7 +28767,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28775
28767
  (0, events_1.registerEvents)(logger, enableOpenTelemetry, sendCockpitEvents);
28776
28768
  }
28777
28769
  if (enableOpenTelemetry && !otelRegistered) {
28778
- (0, otel_1.registerOpenTelemetry)(logger);
28770
+ (0, otel_1.registerOpenTelemetry)(logger, allowCORS);
28779
28771
  }
28780
28772
  const event = new Event(const_1.EVENTS.READY_EVENTS_BRIDGE);
28781
28773
  window.dispatchEvent(event);
@@ -28800,12 +28792,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28800
28792
  const CustomFetchInstrumentation_1 = require("./implementations/CustomFetchInstrumentation");
28801
28793
  const CustomXMLHttpRequestInstrumentation_1 = require("./implementations/CustomXMLHttpRequestInstrumentation");
28802
28794
  const cockpit_notifier_1 = require("../../../common/agent-events/cockpit-notifier");
28803
- const registerOpenTelemetry = (logger) => {
28795
+ const registerOpenTelemetry = (logger, allowCORS) => {
28804
28796
  try {
28805
28797
  (0, instrumentation_1.registerInstrumentations)({
28806
28798
  instrumentations: [
28807
- new CustomFetchInstrumentation_1.CustomFetchInstrumentation(),
28808
- new CustomXMLHttpRequestInstrumentation_1.CustomXMLHttpRequestInstrumentation(),
28799
+ new CustomFetchInstrumentation_1.CustomFetchInstrumentation({ allowCORS }),
28800
+ new CustomXMLHttpRequestInstrumentation_1.CustomXMLHttpRequestInstrumentation({ allowCORS }),
28809
28801
  ],
28810
28802
  });
28811
28803
  }
@@ -28830,7 +28822,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28830
28822
  })(function (require, exports) {
28831
28823
  "use strict";
28832
28824
  Object.defineProperty(exports, "__esModule", { value: true });
28833
- exports.sendAckEvent = exports.checkIsDiagnosisBaggage = exports.constructContextHeaders = exports.constructBaggageHeader = exports.mapHeaderValuesToString = void 0;
28825
+ exports.shouldAddHeaders = exports.sendAckEvent = exports.checkIsDiagnosisBaggage = exports.constructContextHeaders = exports.constructBaggageHeader = exports.mapHeaderValuesToString = void 0;
28834
28826
  const const_1 = require("./const");
28835
28827
  const SlConst = require("./const");
28836
28828
  const mapHeaderValuesToString = (headerValues) => {
@@ -28884,6 +28876,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28884
28876
  }));
28885
28877
  };
28886
28878
  exports.sendAckEvent = sendAckEvent;
28879
+ const shouldAddHeaders = (origin, spanUrl, allowCORS) => {
28880
+ if ((allowCORS === null || allowCORS === void 0 ? void 0 : allowCORS.trim()) === '*')
28881
+ return true;
28882
+ const isRelativeUrl = const_1.relativePathRegex.test(spanUrl);
28883
+ if (isRelativeUrl) {
28884
+ spanUrl = `${origin}${spanUrl.startsWith('/') ? '' : '/'}${spanUrl}`;
28885
+ }
28886
+ const allowCORSArray = !(allowCORS === null || allowCORS === void 0 ? void 0 : allowCORS.length)
28887
+ ? [origin]
28888
+ : allowCORS === null || allowCORS === void 0 ? void 0 : allowCORS.split(',');
28889
+ return allowCORSArray.some((propagationOrigin) => spanUrl === null || spanUrl === void 0 ? void 0 : spanUrl.startsWith(propagationOrigin.trim()));
28890
+ };
28891
+ exports.shouldAddHeaders = shouldAddHeaders;
28887
28892
  });
28888
28893
 
28889
28894
  },{"./const":237}],245:[function(require,module,exports){