@seontechnologies/playwright-utils 3.10.0

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 (933) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +727 -0
  3. package/dist/cjs/api-request/api-request-fixture.d.ts +47 -0
  4. package/dist/cjs/api-request/api-request-fixture.d.ts.map +1 -0
  5. package/dist/cjs/api-request/api-request-fixture.js +26 -0
  6. package/dist/cjs/api-request/api-request-fixture.js.map +1 -0
  7. package/dist/cjs/api-request/api-request.d.ts +108 -0
  8. package/dist/cjs/api-request/api-request.d.ts.map +1 -0
  9. package/dist/cjs/api-request/api-request.js +326 -0
  10. package/dist/cjs/api-request/api-request.js.map +1 -0
  11. package/dist/cjs/api-request/fixtures.d.ts +3 -0
  12. package/dist/cjs/api-request/fixtures.d.ts.map +1 -0
  13. package/dist/cjs/api-request/fixtures.js +13 -0
  14. package/dist/cjs/api-request/fixtures.js.map +1 -0
  15. package/dist/cjs/api-request/index.d.ts +7 -0
  16. package/dist/cjs/api-request/index.d.ts.map +1 -0
  17. package/dist/cjs/api-request/index.js +11 -0
  18. package/dist/cjs/api-request/index.js.map +1 -0
  19. package/dist/cjs/api-request/schema-validation/core.d.ts +13 -0
  20. package/dist/cjs/api-request/schema-validation/core.d.ts.map +1 -0
  21. package/dist/cjs/api-request/schema-validation/core.js +55 -0
  22. package/dist/cjs/api-request/schema-validation/core.js.map +1 -0
  23. package/dist/cjs/api-request/schema-validation/fixture.d.ts +20 -0
  24. package/dist/cjs/api-request/schema-validation/fixture.d.ts.map +1 -0
  25. package/dist/cjs/api-request/schema-validation/fixture.js +17 -0
  26. package/dist/cjs/api-request/schema-validation/fixture.js.map +1 -0
  27. package/dist/cjs/api-request/schema-validation/index.d.ts +6 -0
  28. package/dist/cjs/api-request/schema-validation/index.d.ts.map +1 -0
  29. package/dist/cjs/api-request/schema-validation/index.js +13 -0
  30. package/dist/cjs/api-request/schema-validation/index.js.map +1 -0
  31. package/dist/cjs/api-request/schema-validation/internal/file-loader.d.ts +50 -0
  32. package/dist/cjs/api-request/schema-validation/internal/file-loader.d.ts.map +1 -0
  33. package/dist/cjs/api-request/schema-validation/internal/file-loader.js +126 -0
  34. package/dist/cjs/api-request/schema-validation/internal/file-loader.js.map +1 -0
  35. package/dist/cjs/api-request/schema-validation/internal/openapi-handler.d.ts +43 -0
  36. package/dist/cjs/api-request/schema-validation/internal/openapi-handler.d.ts.map +1 -0
  37. package/dist/cjs/api-request/schema-validation/internal/openapi-handler.js +147 -0
  38. package/dist/cjs/api-request/schema-validation/internal/openapi-handler.js.map +1 -0
  39. package/dist/cjs/api-request/schema-validation/internal/promise-extension.d.ts +10 -0
  40. package/dist/cjs/api-request/schema-validation/internal/promise-extension.d.ts.map +1 -0
  41. package/dist/cjs/api-request/schema-validation/internal/promise-extension.js +14 -0
  42. package/dist/cjs/api-request/schema-validation/internal/promise-extension.js.map +1 -0
  43. package/dist/cjs/api-request/schema-validation/internal/response-extension.d.ts +18 -0
  44. package/dist/cjs/api-request/schema-validation/internal/response-extension.d.ts.map +1 -0
  45. package/dist/cjs/api-request/schema-validation/internal/response-extension.js +212 -0
  46. package/dist/cjs/api-request/schema-validation/internal/response-extension.js.map +1 -0
  47. package/dist/cjs/api-request/schema-validation/internal/result-builder.d.ts +62 -0
  48. package/dist/cjs/api-request/schema-validation/internal/result-builder.d.ts.map +1 -0
  49. package/dist/cjs/api-request/schema-validation/internal/result-builder.js +140 -0
  50. package/dist/cjs/api-request/schema-validation/internal/result-builder.js.map +1 -0
  51. package/dist/cjs/api-request/schema-validation/internal/safe-error-serializer.d.ts +58 -0
  52. package/dist/cjs/api-request/schema-validation/internal/safe-error-serializer.d.ts.map +1 -0
  53. package/dist/cjs/api-request/schema-validation/internal/safe-error-serializer.js +221 -0
  54. package/dist/cjs/api-request/schema-validation/internal/safe-error-serializer.js.map +1 -0
  55. package/dist/cjs/api-request/schema-validation/internal/schema-processors.d.ts +38 -0
  56. package/dist/cjs/api-request/schema-validation/internal/schema-processors.d.ts.map +1 -0
  57. package/dist/cjs/api-request/schema-validation/internal/schema-processors.js +341 -0
  58. package/dist/cjs/api-request/schema-validation/internal/schema-processors.js.map +1 -0
  59. package/dist/cjs/api-request/schema-validation/internal/shape-validator.d.ts +96 -0
  60. package/dist/cjs/api-request/schema-validation/internal/shape-validator.d.ts.map +1 -0
  61. package/dist/cjs/api-request/schema-validation/internal/shape-validator.js +180 -0
  62. package/dist/cjs/api-request/schema-validation/internal/shape-validator.js.map +1 -0
  63. package/dist/cjs/api-request/schema-validation/internal/validation-engine.d.ts +63 -0
  64. package/dist/cjs/api-request/schema-validation/internal/validation-engine.d.ts.map +1 -0
  65. package/dist/cjs/api-request/schema-validation/internal/validation-engine.js +395 -0
  66. package/dist/cjs/api-request/schema-validation/internal/validation-engine.js.map +1 -0
  67. package/dist/cjs/api-request/schema-validation/types.d.ts +92 -0
  68. package/dist/cjs/api-request/schema-validation/types.d.ts.map +1 -0
  69. package/dist/cjs/api-request/schema-validation/types.js +16 -0
  70. package/dist/cjs/api-request/schema-validation/types.js.map +1 -0
  71. package/dist/cjs/api-request/ui-display.d.ts +42 -0
  72. package/dist/cjs/api-request/ui-display.d.ts.map +1 -0
  73. package/dist/cjs/api-request/ui-display.js +370 -0
  74. package/dist/cjs/api-request/ui-display.js.map +1 -0
  75. package/dist/cjs/auth-session/apply-user-cookies-to-browser-context.d.ts +17 -0
  76. package/dist/cjs/auth-session/apply-user-cookies-to-browser-context.d.ts.map +1 -0
  77. package/dist/cjs/auth-session/apply-user-cookies-to-browser-context.js +49 -0
  78. package/dist/cjs/auth-session/apply-user-cookies-to-browser-context.js.map +1 -0
  79. package/dist/cjs/auth-session/core.d.ts +56 -0
  80. package/dist/cjs/auth-session/core.d.ts.map +1 -0
  81. package/dist/cjs/auth-session/core.js +271 -0
  82. package/dist/cjs/auth-session/core.js.map +1 -0
  83. package/dist/cjs/auth-session/fixtures.d.ts +83 -0
  84. package/dist/cjs/auth-session/fixtures.d.ts.map +1 -0
  85. package/dist/cjs/auth-session/fixtures.js +147 -0
  86. package/dist/cjs/auth-session/fixtures.js.map +1 -0
  87. package/dist/cjs/auth-session/global-setup-helper.d.ts +18 -0
  88. package/dist/cjs/auth-session/global-setup-helper.d.ts.map +1 -0
  89. package/dist/cjs/auth-session/global-setup-helper.js +26 -0
  90. package/dist/cjs/auth-session/global-setup-helper.js.map +1 -0
  91. package/dist/cjs/auth-session/index.d.ts +15 -0
  92. package/dist/cjs/auth-session/index.d.ts.map +1 -0
  93. package/dist/cjs/auth-session/index.js +45 -0
  94. package/dist/cjs/auth-session/index.js.map +1 -0
  95. package/dist/cjs/auth-session/internal/auth-configure.d.ts +19 -0
  96. package/dist/cjs/auth-session/internal/auth-configure.d.ts.map +1 -0
  97. package/dist/cjs/auth-session/internal/auth-configure.js +117 -0
  98. package/dist/cjs/auth-session/internal/auth-configure.js.map +1 -0
  99. package/dist/cjs/auth-session/internal/auth-global-setup.d.ts +33 -0
  100. package/dist/cjs/auth-session/internal/auth-global-setup.d.ts.map +1 -0
  101. package/dist/cjs/auth-session/internal/auth-global-setup.js +152 -0
  102. package/dist/cjs/auth-session/internal/auth-global-setup.js.map +1 -0
  103. package/dist/cjs/auth-session/internal/auth-provider-validator.d.ts +36 -0
  104. package/dist/cjs/auth-session/internal/auth-provider-validator.d.ts.map +1 -0
  105. package/dist/cjs/auth-session/internal/auth-provider-validator.js +273 -0
  106. package/dist/cjs/auth-session/internal/auth-provider-validator.js.map +1 -0
  107. package/dist/cjs/auth-session/internal/auth-provider.d.ts +92 -0
  108. package/dist/cjs/auth-session/internal/auth-provider.d.ts.map +1 -0
  109. package/dist/cjs/auth-session/internal/auth-provider.js +40 -0
  110. package/dist/cjs/auth-session/internal/auth-provider.js.map +1 -0
  111. package/dist/cjs/auth-session/internal/auth-session.d.ts +76 -0
  112. package/dist/cjs/auth-session/internal/auth-session.d.ts.map +1 -0
  113. package/dist/cjs/auth-session/internal/auth-session.js +651 -0
  114. package/dist/cjs/auth-session/internal/auth-session.js.map +1 -0
  115. package/dist/cjs/auth-session/internal/auth-storage-utils.d.ts +62 -0
  116. package/dist/cjs/auth-session/internal/auth-storage-utils.d.ts.map +1 -0
  117. package/dist/cjs/auth-session/internal/auth-storage-utils.js +314 -0
  118. package/dist/cjs/auth-session/internal/auth-storage-utils.js.map +1 -0
  119. package/dist/cjs/auth-session/internal/cache-manager.d.ts +116 -0
  120. package/dist/cjs/auth-session/internal/cache-manager.d.ts.map +1 -0
  121. package/dist/cjs/auth-session/internal/cache-manager.js +267 -0
  122. package/dist/cjs/auth-session/internal/cache-manager.js.map +1 -0
  123. package/dist/cjs/auth-session/internal/types.d.ts +132 -0
  124. package/dist/cjs/auth-session/internal/types.d.ts.map +1 -0
  125. package/dist/cjs/auth-session/internal/types.js +4 -0
  126. package/dist/cjs/auth-session/internal/types.js.map +1 -0
  127. package/dist/cjs/burn-in/core/analyzer.d.ts +36 -0
  128. package/dist/cjs/burn-in/core/analyzer.d.ts.map +1 -0
  129. package/dist/cjs/burn-in/core/analyzer.js +329 -0
  130. package/dist/cjs/burn-in/core/analyzer.js.map +1 -0
  131. package/dist/cjs/burn-in/core/config.d.ts +4 -0
  132. package/dist/cjs/burn-in/core/config.d.ts.map +1 -0
  133. package/dist/cjs/burn-in/core/config.js +107 -0
  134. package/dist/cjs/burn-in/core/config.js.map +1 -0
  135. package/dist/cjs/burn-in/core/types.d.ts +24 -0
  136. package/dist/cjs/burn-in/core/types.d.ts.map +1 -0
  137. package/dist/cjs/burn-in/core/types.js +3 -0
  138. package/dist/cjs/burn-in/core/types.js.map +1 -0
  139. package/dist/cjs/burn-in/index.d.ts +3 -0
  140. package/dist/cjs/burn-in/index.d.ts.map +1 -0
  141. package/dist/cjs/burn-in/index.js +7 -0
  142. package/dist/cjs/burn-in/index.js.map +1 -0
  143. package/dist/cjs/burn-in/runner.d.ts +13 -0
  144. package/dist/cjs/burn-in/runner.d.ts.map +1 -0
  145. package/dist/cjs/burn-in/runner.js +61 -0
  146. package/dist/cjs/burn-in/runner.js.map +1 -0
  147. package/dist/cjs/file-utils/core/csv-reader.d.ts +35 -0
  148. package/dist/cjs/file-utils/core/csv-reader.d.ts.map +1 -0
  149. package/dist/cjs/file-utils/core/csv-reader.js +206 -0
  150. package/dist/cjs/file-utils/core/csv-reader.js.map +1 -0
  151. package/dist/cjs/file-utils/core/file-downloader.d.ts +19 -0
  152. package/dist/cjs/file-utils/core/file-downloader.d.ts.map +1 -0
  153. package/dist/cjs/file-utils/core/file-downloader.js +49 -0
  154. package/dist/cjs/file-utils/core/file-downloader.js.map +1 -0
  155. package/dist/cjs/file-utils/core/pdf-reader.d.ts +42 -0
  156. package/dist/cjs/file-utils/core/pdf-reader.d.ts.map +1 -0
  157. package/dist/cjs/file-utils/core/pdf-reader.js +135 -0
  158. package/dist/cjs/file-utils/core/pdf-reader.js.map +1 -0
  159. package/dist/cjs/file-utils/core/types.d.ts +138 -0
  160. package/dist/cjs/file-utils/core/types.d.ts.map +1 -0
  161. package/dist/cjs/file-utils/core/types.js +72 -0
  162. package/dist/cjs/file-utils/core/types.js.map +1 -0
  163. package/dist/cjs/file-utils/core/xlsx-reader.d.ts +31 -0
  164. package/dist/cjs/file-utils/core/xlsx-reader.d.ts.map +1 -0
  165. package/dist/cjs/file-utils/core/xlsx-reader.js +216 -0
  166. package/dist/cjs/file-utils/core/xlsx-reader.js.map +1 -0
  167. package/dist/cjs/file-utils/core/zip-reader.d.ts +26 -0
  168. package/dist/cjs/file-utils/core/zip-reader.d.ts.map +1 -0
  169. package/dist/cjs/file-utils/core/zip-reader.js +95 -0
  170. package/dist/cjs/file-utils/core/zip-reader.js.map +1 -0
  171. package/dist/cjs/file-utils/file-utils-fixture.d.ts +16 -0
  172. package/dist/cjs/file-utils/file-utils-fixture.d.ts.map +1 -0
  173. package/dist/cjs/file-utils/file-utils-fixture.js +65 -0
  174. package/dist/cjs/file-utils/file-utils-fixture.js.map +1 -0
  175. package/dist/cjs/file-utils/fixtures.d.ts +2 -0
  176. package/dist/cjs/file-utils/fixtures.d.ts.map +1 -0
  177. package/dist/cjs/file-utils/fixtures.js +6 -0
  178. package/dist/cjs/file-utils/fixtures.js.map +1 -0
  179. package/dist/cjs/file-utils/index.d.ts +9 -0
  180. package/dist/cjs/file-utils/index.d.ts.map +1 -0
  181. package/dist/cjs/file-utils/index.js +25 -0
  182. package/dist/cjs/file-utils/index.js.map +1 -0
  183. package/dist/cjs/index.d.ts +13 -0
  184. package/dist/cjs/index.d.ts.map +1 -0
  185. package/dist/cjs/index.js +45 -0
  186. package/dist/cjs/index.js.map +1 -0
  187. package/dist/cjs/intercept-network-call/core/fulfill-network-call.d.ts +10 -0
  188. package/dist/cjs/intercept-network-call/core/fulfill-network-call.d.ts.map +1 -0
  189. package/dist/cjs/intercept-network-call/core/fulfill-network-call.js +88 -0
  190. package/dist/cjs/intercept-network-call/core/fulfill-network-call.js.map +1 -0
  191. package/dist/cjs/intercept-network-call/core/observe-network-call.d.ts +4 -0
  192. package/dist/cjs/intercept-network-call/core/observe-network-call.d.ts.map +1 -0
  193. package/dist/cjs/intercept-network-call/core/observe-network-call.js +56 -0
  194. package/dist/cjs/intercept-network-call/core/observe-network-call.js.map +1 -0
  195. package/dist/cjs/intercept-network-call/core/types.d.ts +28 -0
  196. package/dist/cjs/intercept-network-call/core/types.d.ts.map +1 -0
  197. package/dist/cjs/intercept-network-call/core/types.js +28 -0
  198. package/dist/cjs/intercept-network-call/core/types.js.map +1 -0
  199. package/dist/cjs/intercept-network-call/core/utils/matches-request.d.ts +9 -0
  200. package/dist/cjs/intercept-network-call/core/utils/matches-request.d.ts.map +1 -0
  201. package/dist/cjs/intercept-network-call/core/utils/matches-request.js +32 -0
  202. package/dist/cjs/intercept-network-call/core/utils/matches-request.js.map +1 -0
  203. package/dist/cjs/intercept-network-call/fixtures.d.ts +2 -0
  204. package/dist/cjs/intercept-network-call/fixtures.d.ts.map +1 -0
  205. package/dist/cjs/intercept-network-call/fixtures.js +6 -0
  206. package/dist/cjs/intercept-network-call/fixtures.js.map +1 -0
  207. package/dist/cjs/intercept-network-call/index.d.ts +5 -0
  208. package/dist/cjs/intercept-network-call/index.d.ts.map +1 -0
  209. package/dist/cjs/intercept-network-call/index.js +11 -0
  210. package/dist/cjs/intercept-network-call/index.js.map +1 -0
  211. package/dist/cjs/intercept-network-call/intercept-network-call-fixture.d.ts +7 -0
  212. package/dist/cjs/intercept-network-call/intercept-network-call-fixture.d.ts.map +1 -0
  213. package/dist/cjs/intercept-network-call/intercept-network-call-fixture.js +18 -0
  214. package/dist/cjs/intercept-network-call/intercept-network-call-fixture.js.map +1 -0
  215. package/dist/cjs/intercept-network-call/intercept-network-call.d.ts +21 -0
  216. package/dist/cjs/intercept-network-call/intercept-network-call.d.ts.map +1 -0
  217. package/dist/cjs/intercept-network-call/intercept-network-call.js +59 -0
  218. package/dist/cjs/intercept-network-call/intercept-network-call.js.map +1 -0
  219. package/dist/cjs/internal/index.d.ts +2 -0
  220. package/dist/cjs/internal/index.d.ts.map +1 -0
  221. package/dist/cjs/internal/index.js +18 -0
  222. package/dist/cjs/internal/index.js.map +1 -0
  223. package/dist/cjs/internal/logger.d.ts +25 -0
  224. package/dist/cjs/internal/logger.d.ts.map +1 -0
  225. package/dist/cjs/internal/logger.js +33 -0
  226. package/dist/cjs/internal/logger.js.map +1 -0
  227. package/dist/cjs/log/config.d.ts +28 -0
  228. package/dist/cjs/log/config.d.ts.map +1 -0
  229. package/dist/cjs/log/config.js +165 -0
  230. package/dist/cjs/log/config.js.map +1 -0
  231. package/dist/cjs/log/fixtures.d.ts +2 -0
  232. package/dist/cjs/log/fixtures.d.ts.map +1 -0
  233. package/dist/cjs/log/fixtures.js +6 -0
  234. package/dist/cjs/log/fixtures.js.map +1 -0
  235. package/dist/cjs/log/formatters/colors.d.ts +13 -0
  236. package/dist/cjs/log/formatters/colors.d.ts.map +1 -0
  237. package/dist/cjs/log/formatters/colors.js +16 -0
  238. package/dist/cjs/log/formatters/colors.js.map +1 -0
  239. package/dist/cjs/log/formatters/format-message-base.d.ts +57 -0
  240. package/dist/cjs/log/formatters/format-message-base.d.ts.map +1 -0
  241. package/dist/cjs/log/formatters/format-message-base.js +198 -0
  242. package/dist/cjs/log/formatters/format-message-base.js.map +1 -0
  243. package/dist/cjs/log/formatters/format-message.d.ts +13 -0
  244. package/dist/cjs/log/formatters/format-message.d.ts.map +1 -0
  245. package/dist/cjs/log/formatters/format-message.js +127 -0
  246. package/dist/cjs/log/formatters/format-message.js.map +1 -0
  247. package/dist/cjs/log/index.d.ts +4 -0
  248. package/dist/cjs/log/index.d.ts.map +1 -0
  249. package/dist/cjs/log/index.js +14 -0
  250. package/dist/cjs/log/index.js.map +1 -0
  251. package/dist/cjs/log/log-fixture.d.ts +5 -0
  252. package/dist/cjs/log/log-fixture.d.ts.map +1 -0
  253. package/dist/cjs/log/log-fixture.js +23 -0
  254. package/dist/cjs/log/log-fixture.js.map +1 -0
  255. package/dist/cjs/log/log-organizer.d.ts +17 -0
  256. package/dist/cjs/log/log-organizer.d.ts.map +1 -0
  257. package/dist/cjs/log/log-organizer.js +81 -0
  258. package/dist/cjs/log/log-organizer.js.map +1 -0
  259. package/dist/cjs/log/log.d.ts +20 -0
  260. package/dist/cjs/log/log.d.ts.map +1 -0
  261. package/dist/cjs/log/log.js +268 -0
  262. package/dist/cjs/log/log.js.map +1 -0
  263. package/dist/cjs/log/outputs/add-test-header.d.ts +14 -0
  264. package/dist/cjs/log/outputs/add-test-header.d.ts.map +1 -0
  265. package/dist/cjs/log/outputs/add-test-header.js +92 -0
  266. package/dist/cjs/log/outputs/add-test-header.js.map +1 -0
  267. package/dist/cjs/log/outputs/context.d.ts +73 -0
  268. package/dist/cjs/log/outputs/context.d.ts.map +1 -0
  269. package/dist/cjs/log/outputs/context.js +156 -0
  270. package/dist/cjs/log/outputs/context.js.map +1 -0
  271. package/dist/cjs/log/outputs/create-log-file-path.d.ts +6 -0
  272. package/dist/cjs/log/outputs/create-log-file-path.d.ts.map +1 -0
  273. package/dist/cjs/log/outputs/create-log-file-path.js +118 -0
  274. package/dist/cjs/log/outputs/create-log-file-path.js.map +1 -0
  275. package/dist/cjs/log/outputs/log-to-console.d.ts +4 -0
  276. package/dist/cjs/log/outputs/log-to-console.d.ts.map +1 -0
  277. package/dist/cjs/log/outputs/log-to-console.js +26 -0
  278. package/dist/cjs/log/outputs/log-to-console.js.map +1 -0
  279. package/dist/cjs/log/outputs/log-to-file.d.ts +23 -0
  280. package/dist/cjs/log/outputs/log-to-file.d.ts.map +1 -0
  281. package/dist/cjs/log/outputs/log-to-file.js +198 -0
  282. package/dist/cjs/log/outputs/log-to-file.js.map +1 -0
  283. package/dist/cjs/log/test-step.d.ts +42 -0
  284. package/dist/cjs/log/test-step.d.ts.map +1 -0
  285. package/dist/cjs/log/test-step.js +110 -0
  286. package/dist/cjs/log/test-step.js.map +1 -0
  287. package/dist/cjs/log/types.d.ts +81 -0
  288. package/dist/cjs/log/types.d.ts.map +1 -0
  289. package/dist/cjs/log/types.js +13 -0
  290. package/dist/cjs/log/types.js.map +1 -0
  291. package/dist/cjs/log/utils/async.d.ts +6 -0
  292. package/dist/cjs/log/utils/async.d.ts.map +1 -0
  293. package/dist/cjs/log/utils/async.js +15 -0
  294. package/dist/cjs/log/utils/async.js.map +1 -0
  295. package/dist/cjs/log/utils/flag.d.ts +12 -0
  296. package/dist/cjs/log/utils/flag.d.ts.map +1 -0
  297. package/dist/cjs/log/utils/flag.js +19 -0
  298. package/dist/cjs/log/utils/flag.js.map +1 -0
  299. package/dist/cjs/log/utils/options.d.ts +14 -0
  300. package/dist/cjs/log/utils/options.d.ts.map +1 -0
  301. package/dist/cjs/log/utils/options.js +86 -0
  302. package/dist/cjs/log/utils/options.js.map +1 -0
  303. package/dist/cjs/log/utils/playwright-step-utils.d.ts +5 -0
  304. package/dist/cjs/log/utils/playwright-step-utils.d.ts.map +1 -0
  305. package/dist/cjs/log/utils/playwright-step-utils.js +48 -0
  306. package/dist/cjs/log/utils/playwright-step-utils.js.map +1 -0
  307. package/dist/cjs/network-error-monitor/fixtures.d.ts +91 -0
  308. package/dist/cjs/network-error-monitor/fixtures.d.ts.map +1 -0
  309. package/dist/cjs/network-error-monitor/fixtures.js +299 -0
  310. package/dist/cjs/network-error-monitor/fixtures.js.map +1 -0
  311. package/dist/cjs/network-recorder/core/har-builder.d.ts +122 -0
  312. package/dist/cjs/network-recorder/core/har-builder.d.ts.map +1 -0
  313. package/dist/cjs/network-recorder/core/har-builder.js +159 -0
  314. package/dist/cjs/network-recorder/core/har-builder.js.map +1 -0
  315. package/dist/cjs/network-recorder/core/har-manager.d.ts +74 -0
  316. package/dist/cjs/network-recorder/core/har-manager.d.ts.map +1 -0
  317. package/dist/cjs/network-recorder/core/har-manager.js +243 -0
  318. package/dist/cjs/network-recorder/core/har-manager.js.map +1 -0
  319. package/dist/cjs/network-recorder/core/har-playback-handler.d.ts +10 -0
  320. package/dist/cjs/network-recorder/core/har-playback-handler.d.ts.map +1 -0
  321. package/dist/cjs/network-recorder/core/har-playback-handler.js +291 -0
  322. package/dist/cjs/network-recorder/core/har-playback-handler.js.map +1 -0
  323. package/dist/cjs/network-recorder/core/index.d.ts +9 -0
  324. package/dist/cjs/network-recorder/core/index.d.ts.map +1 -0
  325. package/dist/cjs/network-recorder/core/index.js +35 -0
  326. package/dist/cjs/network-recorder/core/index.js.map +1 -0
  327. package/dist/cjs/network-recorder/core/mode-detector.d.ts +64 -0
  328. package/dist/cjs/network-recorder/core/mode-detector.d.ts.map +1 -0
  329. package/dist/cjs/network-recorder/core/mode-detector.js +191 -0
  330. package/dist/cjs/network-recorder/core/mode-detector.js.map +1 -0
  331. package/dist/cjs/network-recorder/core/network-recorder.d.ts +90 -0
  332. package/dist/cjs/network-recorder/core/network-recorder.d.ts.map +1 -0
  333. package/dist/cjs/network-recorder/core/network-recorder.js +260 -0
  334. package/dist/cjs/network-recorder/core/network-recorder.js.map +1 -0
  335. package/dist/cjs/network-recorder/core/stateful-api-mock.d.ts +31 -0
  336. package/dist/cjs/network-recorder/core/stateful-api-mock.d.ts.map +1 -0
  337. package/dist/cjs/network-recorder/core/stateful-api-mock.js +160 -0
  338. package/dist/cjs/network-recorder/core/stateful-api-mock.js.map +1 -0
  339. package/dist/cjs/network-recorder/core/types.d.ts +192 -0
  340. package/dist/cjs/network-recorder/core/types.d.ts.map +1 -0
  341. package/dist/cjs/network-recorder/core/types.js +54 -0
  342. package/dist/cjs/network-recorder/core/types.js.map +1 -0
  343. package/dist/cjs/network-recorder/fixtures.d.ts +2 -0
  344. package/dist/cjs/network-recorder/fixtures.d.ts.map +1 -0
  345. package/dist/cjs/network-recorder/fixtures.js +6 -0
  346. package/dist/cjs/network-recorder/fixtures.js.map +1 -0
  347. package/dist/cjs/network-recorder/index.d.ts +6 -0
  348. package/dist/cjs/network-recorder/index.d.ts.map +1 -0
  349. package/dist/cjs/network-recorder/index.js +22 -0
  350. package/dist/cjs/network-recorder/index.js.map +1 -0
  351. package/dist/cjs/network-recorder/network-recorder-fixture.d.ts +78 -0
  352. package/dist/cjs/network-recorder/network-recorder-fixture.d.ts.map +1 -0
  353. package/dist/cjs/network-recorder/network-recorder-fixture.js +79 -0
  354. package/dist/cjs/network-recorder/network-recorder-fixture.js.map +1 -0
  355. package/dist/cjs/network-recorder/network-recorder.d.ts +11 -0
  356. package/dist/cjs/network-recorder/network-recorder.d.ts.map +1 -0
  357. package/dist/cjs/network-recorder/network-recorder.js +32 -0
  358. package/dist/cjs/network-recorder/network-recorder.js.map +1 -0
  359. package/dist/cjs/recurse/fixtures.d.ts +2 -0
  360. package/dist/cjs/recurse/fixtures.d.ts.map +1 -0
  361. package/dist/cjs/recurse/fixtures.js +6 -0
  362. package/dist/cjs/recurse/fixtures.js.map +1 -0
  363. package/dist/cjs/recurse/index.d.ts +2 -0
  364. package/dist/cjs/recurse/index.d.ts.map +1 -0
  365. package/dist/cjs/recurse/index.js +18 -0
  366. package/dist/cjs/recurse/index.js.map +1 -0
  367. package/dist/cjs/recurse/recurse-fixture.d.ts +35 -0
  368. package/dist/cjs/recurse/recurse-fixture.d.ts.map +1 -0
  369. package/dist/cjs/recurse/recurse-fixture.js +14 -0
  370. package/dist/cjs/recurse/recurse-fixture.js.map +1 -0
  371. package/dist/cjs/recurse/recurse.d.ts +108 -0
  372. package/dist/cjs/recurse/recurse.d.ts.map +1 -0
  373. package/dist/cjs/recurse/recurse.js +298 -0
  374. package/dist/cjs/recurse/recurse.js.map +1 -0
  375. package/dist/esm/api-request/api-request-fixture.d.ts +47 -0
  376. package/dist/esm/api-request/api-request-fixture.d.ts.map +1 -0
  377. package/dist/esm/api-request/api-request-fixture.js +26 -0
  378. package/dist/esm/api-request/api-request-fixture.js.map +1 -0
  379. package/dist/esm/api-request/api-request.d.ts +108 -0
  380. package/dist/esm/api-request/api-request.d.ts.map +1 -0
  381. package/dist/esm/api-request/api-request.js +326 -0
  382. package/dist/esm/api-request/api-request.js.map +1 -0
  383. package/dist/esm/api-request/fixtures.d.ts +3 -0
  384. package/dist/esm/api-request/fixtures.d.ts.map +1 -0
  385. package/dist/esm/api-request/fixtures.js +13 -0
  386. package/dist/esm/api-request/fixtures.js.map +1 -0
  387. package/dist/esm/api-request/index.d.ts +7 -0
  388. package/dist/esm/api-request/index.d.ts.map +1 -0
  389. package/dist/esm/api-request/index.js +11 -0
  390. package/dist/esm/api-request/index.js.map +1 -0
  391. package/dist/esm/api-request/schema-validation/core.d.ts +13 -0
  392. package/dist/esm/api-request/schema-validation/core.d.ts.map +1 -0
  393. package/dist/esm/api-request/schema-validation/core.js +55 -0
  394. package/dist/esm/api-request/schema-validation/core.js.map +1 -0
  395. package/dist/esm/api-request/schema-validation/fixture.d.ts +20 -0
  396. package/dist/esm/api-request/schema-validation/fixture.d.ts.map +1 -0
  397. package/dist/esm/api-request/schema-validation/fixture.js +17 -0
  398. package/dist/esm/api-request/schema-validation/fixture.js.map +1 -0
  399. package/dist/esm/api-request/schema-validation/index.d.ts +6 -0
  400. package/dist/esm/api-request/schema-validation/index.d.ts.map +1 -0
  401. package/dist/esm/api-request/schema-validation/index.js +13 -0
  402. package/dist/esm/api-request/schema-validation/index.js.map +1 -0
  403. package/dist/esm/api-request/schema-validation/internal/file-loader.d.ts +50 -0
  404. package/dist/esm/api-request/schema-validation/internal/file-loader.d.ts.map +1 -0
  405. package/dist/esm/api-request/schema-validation/internal/file-loader.js +126 -0
  406. package/dist/esm/api-request/schema-validation/internal/file-loader.js.map +1 -0
  407. package/dist/esm/api-request/schema-validation/internal/openapi-handler.d.ts +43 -0
  408. package/dist/esm/api-request/schema-validation/internal/openapi-handler.d.ts.map +1 -0
  409. package/dist/esm/api-request/schema-validation/internal/openapi-handler.js +147 -0
  410. package/dist/esm/api-request/schema-validation/internal/openapi-handler.js.map +1 -0
  411. package/dist/esm/api-request/schema-validation/internal/promise-extension.d.ts +10 -0
  412. package/dist/esm/api-request/schema-validation/internal/promise-extension.d.ts.map +1 -0
  413. package/dist/esm/api-request/schema-validation/internal/promise-extension.js +14 -0
  414. package/dist/esm/api-request/schema-validation/internal/promise-extension.js.map +1 -0
  415. package/dist/esm/api-request/schema-validation/internal/response-extension.d.ts +18 -0
  416. package/dist/esm/api-request/schema-validation/internal/response-extension.d.ts.map +1 -0
  417. package/dist/esm/api-request/schema-validation/internal/response-extension.js +212 -0
  418. package/dist/esm/api-request/schema-validation/internal/response-extension.js.map +1 -0
  419. package/dist/esm/api-request/schema-validation/internal/result-builder.d.ts +62 -0
  420. package/dist/esm/api-request/schema-validation/internal/result-builder.d.ts.map +1 -0
  421. package/dist/esm/api-request/schema-validation/internal/result-builder.js +140 -0
  422. package/dist/esm/api-request/schema-validation/internal/result-builder.js.map +1 -0
  423. package/dist/esm/api-request/schema-validation/internal/safe-error-serializer.d.ts +58 -0
  424. package/dist/esm/api-request/schema-validation/internal/safe-error-serializer.d.ts.map +1 -0
  425. package/dist/esm/api-request/schema-validation/internal/safe-error-serializer.js +221 -0
  426. package/dist/esm/api-request/schema-validation/internal/safe-error-serializer.js.map +1 -0
  427. package/dist/esm/api-request/schema-validation/internal/schema-processors.d.ts +38 -0
  428. package/dist/esm/api-request/schema-validation/internal/schema-processors.d.ts.map +1 -0
  429. package/dist/esm/api-request/schema-validation/internal/schema-processors.js +341 -0
  430. package/dist/esm/api-request/schema-validation/internal/schema-processors.js.map +1 -0
  431. package/dist/esm/api-request/schema-validation/internal/shape-validator.d.ts +96 -0
  432. package/dist/esm/api-request/schema-validation/internal/shape-validator.d.ts.map +1 -0
  433. package/dist/esm/api-request/schema-validation/internal/shape-validator.js +180 -0
  434. package/dist/esm/api-request/schema-validation/internal/shape-validator.js.map +1 -0
  435. package/dist/esm/api-request/schema-validation/internal/validation-engine.d.ts +63 -0
  436. package/dist/esm/api-request/schema-validation/internal/validation-engine.d.ts.map +1 -0
  437. package/dist/esm/api-request/schema-validation/internal/validation-engine.js +395 -0
  438. package/dist/esm/api-request/schema-validation/internal/validation-engine.js.map +1 -0
  439. package/dist/esm/api-request/schema-validation/types.d.ts +92 -0
  440. package/dist/esm/api-request/schema-validation/types.d.ts.map +1 -0
  441. package/dist/esm/api-request/schema-validation/types.js +16 -0
  442. package/dist/esm/api-request/schema-validation/types.js.map +1 -0
  443. package/dist/esm/api-request/ui-display.d.ts +42 -0
  444. package/dist/esm/api-request/ui-display.d.ts.map +1 -0
  445. package/dist/esm/api-request/ui-display.js +370 -0
  446. package/dist/esm/api-request/ui-display.js.map +1 -0
  447. package/dist/esm/auth-session/apply-user-cookies-to-browser-context.d.ts +17 -0
  448. package/dist/esm/auth-session/apply-user-cookies-to-browser-context.d.ts.map +1 -0
  449. package/dist/esm/auth-session/apply-user-cookies-to-browser-context.js +49 -0
  450. package/dist/esm/auth-session/apply-user-cookies-to-browser-context.js.map +1 -0
  451. package/dist/esm/auth-session/core.d.ts +56 -0
  452. package/dist/esm/auth-session/core.d.ts.map +1 -0
  453. package/dist/esm/auth-session/core.js +271 -0
  454. package/dist/esm/auth-session/core.js.map +1 -0
  455. package/dist/esm/auth-session/fixtures.d.ts +83 -0
  456. package/dist/esm/auth-session/fixtures.d.ts.map +1 -0
  457. package/dist/esm/auth-session/fixtures.js +147 -0
  458. package/dist/esm/auth-session/fixtures.js.map +1 -0
  459. package/dist/esm/auth-session/global-setup-helper.d.ts +18 -0
  460. package/dist/esm/auth-session/global-setup-helper.d.ts.map +1 -0
  461. package/dist/esm/auth-session/global-setup-helper.js +26 -0
  462. package/dist/esm/auth-session/global-setup-helper.js.map +1 -0
  463. package/dist/esm/auth-session/index.d.ts +15 -0
  464. package/dist/esm/auth-session/index.d.ts.map +1 -0
  465. package/dist/esm/auth-session/index.js +45 -0
  466. package/dist/esm/auth-session/index.js.map +1 -0
  467. package/dist/esm/auth-session/internal/auth-configure.d.ts +19 -0
  468. package/dist/esm/auth-session/internal/auth-configure.d.ts.map +1 -0
  469. package/dist/esm/auth-session/internal/auth-configure.js +117 -0
  470. package/dist/esm/auth-session/internal/auth-configure.js.map +1 -0
  471. package/dist/esm/auth-session/internal/auth-global-setup.d.ts +33 -0
  472. package/dist/esm/auth-session/internal/auth-global-setup.d.ts.map +1 -0
  473. package/dist/esm/auth-session/internal/auth-global-setup.js +152 -0
  474. package/dist/esm/auth-session/internal/auth-global-setup.js.map +1 -0
  475. package/dist/esm/auth-session/internal/auth-provider-validator.d.ts +36 -0
  476. package/dist/esm/auth-session/internal/auth-provider-validator.d.ts.map +1 -0
  477. package/dist/esm/auth-session/internal/auth-provider-validator.js +240 -0
  478. package/dist/esm/auth-session/internal/auth-provider-validator.js.map +1 -0
  479. package/dist/esm/auth-session/internal/auth-provider.d.ts +92 -0
  480. package/dist/esm/auth-session/internal/auth-provider.d.ts.map +1 -0
  481. package/dist/esm/auth-session/internal/auth-provider.js +40 -0
  482. package/dist/esm/auth-session/internal/auth-provider.js.map +1 -0
  483. package/dist/esm/auth-session/internal/auth-session.d.ts +76 -0
  484. package/dist/esm/auth-session/internal/auth-session.d.ts.map +1 -0
  485. package/dist/esm/auth-session/internal/auth-session.js +651 -0
  486. package/dist/esm/auth-session/internal/auth-session.js.map +1 -0
  487. package/dist/esm/auth-session/internal/auth-storage-utils.d.ts +62 -0
  488. package/dist/esm/auth-session/internal/auth-storage-utils.d.ts.map +1 -0
  489. package/dist/esm/auth-session/internal/auth-storage-utils.js +314 -0
  490. package/dist/esm/auth-session/internal/auth-storage-utils.js.map +1 -0
  491. package/dist/esm/auth-session/internal/cache-manager.d.ts +116 -0
  492. package/dist/esm/auth-session/internal/cache-manager.d.ts.map +1 -0
  493. package/dist/esm/auth-session/internal/cache-manager.js +267 -0
  494. package/dist/esm/auth-session/internal/cache-manager.js.map +1 -0
  495. package/dist/esm/auth-session/internal/types.d.ts +132 -0
  496. package/dist/esm/auth-session/internal/types.d.ts.map +1 -0
  497. package/dist/esm/auth-session/internal/types.js +4 -0
  498. package/dist/esm/auth-session/internal/types.js.map +1 -0
  499. package/dist/esm/burn-in/core/analyzer.d.ts +36 -0
  500. package/dist/esm/burn-in/core/analyzer.d.ts.map +1 -0
  501. package/dist/esm/burn-in/core/analyzer.js +329 -0
  502. package/dist/esm/burn-in/core/analyzer.js.map +1 -0
  503. package/dist/esm/burn-in/core/config.d.ts +4 -0
  504. package/dist/esm/burn-in/core/config.d.ts.map +1 -0
  505. package/dist/esm/burn-in/core/config.js +107 -0
  506. package/dist/esm/burn-in/core/config.js.map +1 -0
  507. package/dist/esm/burn-in/core/types.d.ts +24 -0
  508. package/dist/esm/burn-in/core/types.d.ts.map +1 -0
  509. package/dist/esm/burn-in/core/types.js +3 -0
  510. package/dist/esm/burn-in/core/types.js.map +1 -0
  511. package/dist/esm/burn-in/index.d.ts +3 -0
  512. package/dist/esm/burn-in/index.d.ts.map +1 -0
  513. package/dist/esm/burn-in/index.js +7 -0
  514. package/dist/esm/burn-in/index.js.map +1 -0
  515. package/dist/esm/burn-in/runner.d.ts +13 -0
  516. package/dist/esm/burn-in/runner.d.ts.map +1 -0
  517. package/dist/esm/burn-in/runner.js +61 -0
  518. package/dist/esm/burn-in/runner.js.map +1 -0
  519. package/dist/esm/file-utils/core/csv-reader.d.ts +35 -0
  520. package/dist/esm/file-utils/core/csv-reader.d.ts.map +1 -0
  521. package/dist/esm/file-utils/core/csv-reader.js +206 -0
  522. package/dist/esm/file-utils/core/csv-reader.js.map +1 -0
  523. package/dist/esm/file-utils/core/file-downloader.d.ts +19 -0
  524. package/dist/esm/file-utils/core/file-downloader.d.ts.map +1 -0
  525. package/dist/esm/file-utils/core/file-downloader.js +49 -0
  526. package/dist/esm/file-utils/core/file-downloader.js.map +1 -0
  527. package/dist/esm/file-utils/core/pdf-reader.d.ts +42 -0
  528. package/dist/esm/file-utils/core/pdf-reader.d.ts.map +1 -0
  529. package/dist/esm/file-utils/core/pdf-reader.js +135 -0
  530. package/dist/esm/file-utils/core/pdf-reader.js.map +1 -0
  531. package/dist/esm/file-utils/core/types.d.ts +138 -0
  532. package/dist/esm/file-utils/core/types.d.ts.map +1 -0
  533. package/dist/esm/file-utils/core/types.js +72 -0
  534. package/dist/esm/file-utils/core/types.js.map +1 -0
  535. package/dist/esm/file-utils/core/xlsx-reader.d.ts +31 -0
  536. package/dist/esm/file-utils/core/xlsx-reader.d.ts.map +1 -0
  537. package/dist/esm/file-utils/core/xlsx-reader.js +216 -0
  538. package/dist/esm/file-utils/core/xlsx-reader.js.map +1 -0
  539. package/dist/esm/file-utils/core/zip-reader.d.ts +26 -0
  540. package/dist/esm/file-utils/core/zip-reader.d.ts.map +1 -0
  541. package/dist/esm/file-utils/core/zip-reader.js +95 -0
  542. package/dist/esm/file-utils/core/zip-reader.js.map +1 -0
  543. package/dist/esm/file-utils/file-utils-fixture.d.ts +16 -0
  544. package/dist/esm/file-utils/file-utils-fixture.d.ts.map +1 -0
  545. package/dist/esm/file-utils/file-utils-fixture.js +65 -0
  546. package/dist/esm/file-utils/file-utils-fixture.js.map +1 -0
  547. package/dist/esm/file-utils/fixtures.d.ts +2 -0
  548. package/dist/esm/file-utils/fixtures.d.ts.map +1 -0
  549. package/dist/esm/file-utils/fixtures.js +6 -0
  550. package/dist/esm/file-utils/fixtures.js.map +1 -0
  551. package/dist/esm/file-utils/index.d.ts +9 -0
  552. package/dist/esm/file-utils/index.d.ts.map +1 -0
  553. package/dist/esm/file-utils/index.js +25 -0
  554. package/dist/esm/file-utils/index.js.map +1 -0
  555. package/dist/esm/index.d.ts +13 -0
  556. package/dist/esm/index.d.ts.map +1 -0
  557. package/dist/esm/index.js +45 -0
  558. package/dist/esm/index.js.map +1 -0
  559. package/dist/esm/intercept-network-call/core/fulfill-network-call.d.ts +10 -0
  560. package/dist/esm/intercept-network-call/core/fulfill-network-call.d.ts.map +1 -0
  561. package/dist/esm/intercept-network-call/core/fulfill-network-call.js +88 -0
  562. package/dist/esm/intercept-network-call/core/fulfill-network-call.js.map +1 -0
  563. package/dist/esm/intercept-network-call/core/observe-network-call.d.ts +4 -0
  564. package/dist/esm/intercept-network-call/core/observe-network-call.d.ts.map +1 -0
  565. package/dist/esm/intercept-network-call/core/observe-network-call.js +56 -0
  566. package/dist/esm/intercept-network-call/core/observe-network-call.js.map +1 -0
  567. package/dist/esm/intercept-network-call/core/types.d.ts +28 -0
  568. package/dist/esm/intercept-network-call/core/types.d.ts.map +1 -0
  569. package/dist/esm/intercept-network-call/core/types.js +28 -0
  570. package/dist/esm/intercept-network-call/core/types.js.map +1 -0
  571. package/dist/esm/intercept-network-call/core/utils/matches-request.d.ts +9 -0
  572. package/dist/esm/intercept-network-call/core/utils/matches-request.d.ts.map +1 -0
  573. package/dist/esm/intercept-network-call/core/utils/matches-request.js +32 -0
  574. package/dist/esm/intercept-network-call/core/utils/matches-request.js.map +1 -0
  575. package/dist/esm/intercept-network-call/fixtures.d.ts +2 -0
  576. package/dist/esm/intercept-network-call/fixtures.d.ts.map +1 -0
  577. package/dist/esm/intercept-network-call/fixtures.js +6 -0
  578. package/dist/esm/intercept-network-call/fixtures.js.map +1 -0
  579. package/dist/esm/intercept-network-call/index.d.ts +5 -0
  580. package/dist/esm/intercept-network-call/index.d.ts.map +1 -0
  581. package/dist/esm/intercept-network-call/index.js +11 -0
  582. package/dist/esm/intercept-network-call/index.js.map +1 -0
  583. package/dist/esm/intercept-network-call/intercept-network-call-fixture.d.ts +7 -0
  584. package/dist/esm/intercept-network-call/intercept-network-call-fixture.d.ts.map +1 -0
  585. package/dist/esm/intercept-network-call/intercept-network-call-fixture.js +18 -0
  586. package/dist/esm/intercept-network-call/intercept-network-call-fixture.js.map +1 -0
  587. package/dist/esm/intercept-network-call/intercept-network-call.d.ts +21 -0
  588. package/dist/esm/intercept-network-call/intercept-network-call.d.ts.map +1 -0
  589. package/dist/esm/intercept-network-call/intercept-network-call.js +59 -0
  590. package/dist/esm/intercept-network-call/intercept-network-call.js.map +1 -0
  591. package/dist/esm/internal/index.d.ts +2 -0
  592. package/dist/esm/internal/index.d.ts.map +1 -0
  593. package/dist/esm/internal/index.js +18 -0
  594. package/dist/esm/internal/index.js.map +1 -0
  595. package/dist/esm/internal/logger.d.ts +25 -0
  596. package/dist/esm/internal/logger.d.ts.map +1 -0
  597. package/dist/esm/internal/logger.js +33 -0
  598. package/dist/esm/internal/logger.js.map +1 -0
  599. package/dist/esm/log/config.d.ts +28 -0
  600. package/dist/esm/log/config.d.ts.map +1 -0
  601. package/dist/esm/log/config.js +165 -0
  602. package/dist/esm/log/config.js.map +1 -0
  603. package/dist/esm/log/fixtures.d.ts +2 -0
  604. package/dist/esm/log/fixtures.d.ts.map +1 -0
  605. package/dist/esm/log/fixtures.js +6 -0
  606. package/dist/esm/log/fixtures.js.map +1 -0
  607. package/dist/esm/log/formatters/colors.d.ts +13 -0
  608. package/dist/esm/log/formatters/colors.d.ts.map +1 -0
  609. package/dist/esm/log/formatters/colors.js +16 -0
  610. package/dist/esm/log/formatters/colors.js.map +1 -0
  611. package/dist/esm/log/formatters/format-message-base.d.ts +57 -0
  612. package/dist/esm/log/formatters/format-message-base.d.ts.map +1 -0
  613. package/dist/esm/log/formatters/format-message-base.js +198 -0
  614. package/dist/esm/log/formatters/format-message-base.js.map +1 -0
  615. package/dist/esm/log/formatters/format-message.d.ts +13 -0
  616. package/dist/esm/log/formatters/format-message.d.ts.map +1 -0
  617. package/dist/esm/log/formatters/format-message.js +127 -0
  618. package/dist/esm/log/formatters/format-message.js.map +1 -0
  619. package/dist/esm/log/index.d.ts +4 -0
  620. package/dist/esm/log/index.d.ts.map +1 -0
  621. package/dist/esm/log/index.js +14 -0
  622. package/dist/esm/log/index.js.map +1 -0
  623. package/dist/esm/log/log-fixture.d.ts +5 -0
  624. package/dist/esm/log/log-fixture.d.ts.map +1 -0
  625. package/dist/esm/log/log-fixture.js +23 -0
  626. package/dist/esm/log/log-fixture.js.map +1 -0
  627. package/dist/esm/log/log-organizer.d.ts +17 -0
  628. package/dist/esm/log/log-organizer.d.ts.map +1 -0
  629. package/dist/esm/log/log-organizer.js +81 -0
  630. package/dist/esm/log/log-organizer.js.map +1 -0
  631. package/dist/esm/log/log.d.ts +20 -0
  632. package/dist/esm/log/log.d.ts.map +1 -0
  633. package/dist/esm/log/log.js +268 -0
  634. package/dist/esm/log/log.js.map +1 -0
  635. package/dist/esm/log/outputs/add-test-header.d.ts +14 -0
  636. package/dist/esm/log/outputs/add-test-header.d.ts.map +1 -0
  637. package/dist/esm/log/outputs/add-test-header.js +92 -0
  638. package/dist/esm/log/outputs/add-test-header.js.map +1 -0
  639. package/dist/esm/log/outputs/context.d.ts +73 -0
  640. package/dist/esm/log/outputs/context.d.ts.map +1 -0
  641. package/dist/esm/log/outputs/context.js +156 -0
  642. package/dist/esm/log/outputs/context.js.map +1 -0
  643. package/dist/esm/log/outputs/create-log-file-path.d.ts +6 -0
  644. package/dist/esm/log/outputs/create-log-file-path.d.ts.map +1 -0
  645. package/dist/esm/log/outputs/create-log-file-path.js +118 -0
  646. package/dist/esm/log/outputs/create-log-file-path.js.map +1 -0
  647. package/dist/esm/log/outputs/log-to-console.d.ts +4 -0
  648. package/dist/esm/log/outputs/log-to-console.d.ts.map +1 -0
  649. package/dist/esm/log/outputs/log-to-console.js +26 -0
  650. package/dist/esm/log/outputs/log-to-console.js.map +1 -0
  651. package/dist/esm/log/outputs/log-to-file.d.ts +23 -0
  652. package/dist/esm/log/outputs/log-to-file.d.ts.map +1 -0
  653. package/dist/esm/log/outputs/log-to-file.js +198 -0
  654. package/dist/esm/log/outputs/log-to-file.js.map +1 -0
  655. package/dist/esm/log/test-step.d.ts +42 -0
  656. package/dist/esm/log/test-step.d.ts.map +1 -0
  657. package/dist/esm/log/test-step.js +110 -0
  658. package/dist/esm/log/test-step.js.map +1 -0
  659. package/dist/esm/log/types.d.ts +81 -0
  660. package/dist/esm/log/types.d.ts.map +1 -0
  661. package/dist/esm/log/types.js +13 -0
  662. package/dist/esm/log/types.js.map +1 -0
  663. package/dist/esm/log/utils/async.d.ts +6 -0
  664. package/dist/esm/log/utils/async.d.ts.map +1 -0
  665. package/dist/esm/log/utils/async.js +15 -0
  666. package/dist/esm/log/utils/async.js.map +1 -0
  667. package/dist/esm/log/utils/flag.d.ts +12 -0
  668. package/dist/esm/log/utils/flag.d.ts.map +1 -0
  669. package/dist/esm/log/utils/flag.js +19 -0
  670. package/dist/esm/log/utils/flag.js.map +1 -0
  671. package/dist/esm/log/utils/options.d.ts +14 -0
  672. package/dist/esm/log/utils/options.d.ts.map +1 -0
  673. package/dist/esm/log/utils/options.js +86 -0
  674. package/dist/esm/log/utils/options.js.map +1 -0
  675. package/dist/esm/log/utils/playwright-step-utils.d.ts +5 -0
  676. package/dist/esm/log/utils/playwright-step-utils.d.ts.map +1 -0
  677. package/dist/esm/log/utils/playwright-step-utils.js +48 -0
  678. package/dist/esm/log/utils/playwright-step-utils.js.map +1 -0
  679. package/dist/esm/network-error-monitor/fixtures.d.ts +91 -0
  680. package/dist/esm/network-error-monitor/fixtures.d.ts.map +1 -0
  681. package/dist/esm/network-error-monitor/fixtures.js +299 -0
  682. package/dist/esm/network-error-monitor/fixtures.js.map +1 -0
  683. package/dist/esm/network-recorder/core/har-builder.d.ts +122 -0
  684. package/dist/esm/network-recorder/core/har-builder.d.ts.map +1 -0
  685. package/dist/esm/network-recorder/core/har-builder.js +159 -0
  686. package/dist/esm/network-recorder/core/har-builder.js.map +1 -0
  687. package/dist/esm/network-recorder/core/har-manager.d.ts +74 -0
  688. package/dist/esm/network-recorder/core/har-manager.d.ts.map +1 -0
  689. package/dist/esm/network-recorder/core/har-manager.js +243 -0
  690. package/dist/esm/network-recorder/core/har-manager.js.map +1 -0
  691. package/dist/esm/network-recorder/core/har-playback-handler.d.ts +10 -0
  692. package/dist/esm/network-recorder/core/har-playback-handler.d.ts.map +1 -0
  693. package/dist/esm/network-recorder/core/har-playback-handler.js +291 -0
  694. package/dist/esm/network-recorder/core/har-playback-handler.js.map +1 -0
  695. package/dist/esm/network-recorder/core/index.d.ts +9 -0
  696. package/dist/esm/network-recorder/core/index.d.ts.map +1 -0
  697. package/dist/esm/network-recorder/core/index.js +35 -0
  698. package/dist/esm/network-recorder/core/index.js.map +1 -0
  699. package/dist/esm/network-recorder/core/mode-detector.d.ts +64 -0
  700. package/dist/esm/network-recorder/core/mode-detector.d.ts.map +1 -0
  701. package/dist/esm/network-recorder/core/mode-detector.js +191 -0
  702. package/dist/esm/network-recorder/core/mode-detector.js.map +1 -0
  703. package/dist/esm/network-recorder/core/network-recorder.d.ts +90 -0
  704. package/dist/esm/network-recorder/core/network-recorder.d.ts.map +1 -0
  705. package/dist/esm/network-recorder/core/network-recorder.js +260 -0
  706. package/dist/esm/network-recorder/core/network-recorder.js.map +1 -0
  707. package/dist/esm/network-recorder/core/stateful-api-mock.d.ts +31 -0
  708. package/dist/esm/network-recorder/core/stateful-api-mock.d.ts.map +1 -0
  709. package/dist/esm/network-recorder/core/stateful-api-mock.js +160 -0
  710. package/dist/esm/network-recorder/core/stateful-api-mock.js.map +1 -0
  711. package/dist/esm/network-recorder/core/types.d.ts +192 -0
  712. package/dist/esm/network-recorder/core/types.d.ts.map +1 -0
  713. package/dist/esm/network-recorder/core/types.js +54 -0
  714. package/dist/esm/network-recorder/core/types.js.map +1 -0
  715. package/dist/esm/network-recorder/fixtures.d.ts +2 -0
  716. package/dist/esm/network-recorder/fixtures.d.ts.map +1 -0
  717. package/dist/esm/network-recorder/fixtures.js +6 -0
  718. package/dist/esm/network-recorder/fixtures.js.map +1 -0
  719. package/dist/esm/network-recorder/index.d.ts +6 -0
  720. package/dist/esm/network-recorder/index.d.ts.map +1 -0
  721. package/dist/esm/network-recorder/index.js +22 -0
  722. package/dist/esm/network-recorder/index.js.map +1 -0
  723. package/dist/esm/network-recorder/network-recorder-fixture.d.ts +78 -0
  724. package/dist/esm/network-recorder/network-recorder-fixture.d.ts.map +1 -0
  725. package/dist/esm/network-recorder/network-recorder-fixture.js +79 -0
  726. package/dist/esm/network-recorder/network-recorder-fixture.js.map +1 -0
  727. package/dist/esm/network-recorder/network-recorder.d.ts +11 -0
  728. package/dist/esm/network-recorder/network-recorder.d.ts.map +1 -0
  729. package/dist/esm/network-recorder/network-recorder.js +32 -0
  730. package/dist/esm/network-recorder/network-recorder.js.map +1 -0
  731. package/dist/esm/recurse/fixtures.d.ts +2 -0
  732. package/dist/esm/recurse/fixtures.d.ts.map +1 -0
  733. package/dist/esm/recurse/fixtures.js +6 -0
  734. package/dist/esm/recurse/fixtures.js.map +1 -0
  735. package/dist/esm/recurse/index.d.ts +2 -0
  736. package/dist/esm/recurse/index.d.ts.map +1 -0
  737. package/dist/esm/recurse/index.js +18 -0
  738. package/dist/esm/recurse/index.js.map +1 -0
  739. package/dist/esm/recurse/recurse-fixture.d.ts +35 -0
  740. package/dist/esm/recurse/recurse-fixture.d.ts.map +1 -0
  741. package/dist/esm/recurse/recurse-fixture.js +14 -0
  742. package/dist/esm/recurse/recurse-fixture.js.map +1 -0
  743. package/dist/esm/recurse/recurse.d.ts +108 -0
  744. package/dist/esm/recurse/recurse.d.ts.map +1 -0
  745. package/dist/esm/recurse/recurse.js +298 -0
  746. package/dist/esm/recurse/recurse.js.map +1 -0
  747. package/dist/types/api-request/api-request-fixture.d.ts +47 -0
  748. package/dist/types/api-request/api-request-fixture.d.ts.map +1 -0
  749. package/dist/types/api-request/api-request.d.ts +108 -0
  750. package/dist/types/api-request/api-request.d.ts.map +1 -0
  751. package/dist/types/api-request/fixtures.d.ts +3 -0
  752. package/dist/types/api-request/fixtures.d.ts.map +1 -0
  753. package/dist/types/api-request/index.d.ts +7 -0
  754. package/dist/types/api-request/index.d.ts.map +1 -0
  755. package/dist/types/api-request/schema-validation/core.d.ts +13 -0
  756. package/dist/types/api-request/schema-validation/core.d.ts.map +1 -0
  757. package/dist/types/api-request/schema-validation/fixture.d.ts +20 -0
  758. package/dist/types/api-request/schema-validation/fixture.d.ts.map +1 -0
  759. package/dist/types/api-request/schema-validation/index.d.ts +6 -0
  760. package/dist/types/api-request/schema-validation/index.d.ts.map +1 -0
  761. package/dist/types/api-request/schema-validation/internal/file-loader.d.ts +50 -0
  762. package/dist/types/api-request/schema-validation/internal/file-loader.d.ts.map +1 -0
  763. package/dist/types/api-request/schema-validation/internal/openapi-handler.d.ts +43 -0
  764. package/dist/types/api-request/schema-validation/internal/openapi-handler.d.ts.map +1 -0
  765. package/dist/types/api-request/schema-validation/internal/promise-extension.d.ts +10 -0
  766. package/dist/types/api-request/schema-validation/internal/promise-extension.d.ts.map +1 -0
  767. package/dist/types/api-request/schema-validation/internal/response-extension.d.ts +18 -0
  768. package/dist/types/api-request/schema-validation/internal/response-extension.d.ts.map +1 -0
  769. package/dist/types/api-request/schema-validation/internal/result-builder.d.ts +62 -0
  770. package/dist/types/api-request/schema-validation/internal/result-builder.d.ts.map +1 -0
  771. package/dist/types/api-request/schema-validation/internal/safe-error-serializer.d.ts +58 -0
  772. package/dist/types/api-request/schema-validation/internal/safe-error-serializer.d.ts.map +1 -0
  773. package/dist/types/api-request/schema-validation/internal/schema-processors.d.ts +38 -0
  774. package/dist/types/api-request/schema-validation/internal/schema-processors.d.ts.map +1 -0
  775. package/dist/types/api-request/schema-validation/internal/shape-validator.d.ts +96 -0
  776. package/dist/types/api-request/schema-validation/internal/shape-validator.d.ts.map +1 -0
  777. package/dist/types/api-request/schema-validation/internal/validation-engine.d.ts +63 -0
  778. package/dist/types/api-request/schema-validation/internal/validation-engine.d.ts.map +1 -0
  779. package/dist/types/api-request/schema-validation/types.d.ts +92 -0
  780. package/dist/types/api-request/schema-validation/types.d.ts.map +1 -0
  781. package/dist/types/api-request/ui-display.d.ts +42 -0
  782. package/dist/types/api-request/ui-display.d.ts.map +1 -0
  783. package/dist/types/auth-session/apply-user-cookies-to-browser-context.d.ts +17 -0
  784. package/dist/types/auth-session/apply-user-cookies-to-browser-context.d.ts.map +1 -0
  785. package/dist/types/auth-session/core.d.ts +56 -0
  786. package/dist/types/auth-session/core.d.ts.map +1 -0
  787. package/dist/types/auth-session/fixtures.d.ts +83 -0
  788. package/dist/types/auth-session/fixtures.d.ts.map +1 -0
  789. package/dist/types/auth-session/global-setup-helper.d.ts +18 -0
  790. package/dist/types/auth-session/global-setup-helper.d.ts.map +1 -0
  791. package/dist/types/auth-session/index.d.ts +15 -0
  792. package/dist/types/auth-session/index.d.ts.map +1 -0
  793. package/dist/types/auth-session/internal/auth-configure.d.ts +19 -0
  794. package/dist/types/auth-session/internal/auth-configure.d.ts.map +1 -0
  795. package/dist/types/auth-session/internal/auth-global-setup.d.ts +33 -0
  796. package/dist/types/auth-session/internal/auth-global-setup.d.ts.map +1 -0
  797. package/dist/types/auth-session/internal/auth-provider-validator.d.ts +36 -0
  798. package/dist/types/auth-session/internal/auth-provider-validator.d.ts.map +1 -0
  799. package/dist/types/auth-session/internal/auth-provider.d.ts +92 -0
  800. package/dist/types/auth-session/internal/auth-provider.d.ts.map +1 -0
  801. package/dist/types/auth-session/internal/auth-session.d.ts +76 -0
  802. package/dist/types/auth-session/internal/auth-session.d.ts.map +1 -0
  803. package/dist/types/auth-session/internal/auth-storage-utils.d.ts +62 -0
  804. package/dist/types/auth-session/internal/auth-storage-utils.d.ts.map +1 -0
  805. package/dist/types/auth-session/internal/cache-manager.d.ts +116 -0
  806. package/dist/types/auth-session/internal/cache-manager.d.ts.map +1 -0
  807. package/dist/types/auth-session/internal/types.d.ts +132 -0
  808. package/dist/types/auth-session/internal/types.d.ts.map +1 -0
  809. package/dist/types/burn-in/core/analyzer.d.ts +36 -0
  810. package/dist/types/burn-in/core/analyzer.d.ts.map +1 -0
  811. package/dist/types/burn-in/core/config.d.ts +4 -0
  812. package/dist/types/burn-in/core/config.d.ts.map +1 -0
  813. package/dist/types/burn-in/core/types.d.ts +24 -0
  814. package/dist/types/burn-in/core/types.d.ts.map +1 -0
  815. package/dist/types/burn-in/index.d.ts +3 -0
  816. package/dist/types/burn-in/index.d.ts.map +1 -0
  817. package/dist/types/burn-in/runner.d.ts +13 -0
  818. package/dist/types/burn-in/runner.d.ts.map +1 -0
  819. package/dist/types/file-utils/core/csv-reader.d.ts +35 -0
  820. package/dist/types/file-utils/core/csv-reader.d.ts.map +1 -0
  821. package/dist/types/file-utils/core/file-downloader.d.ts +19 -0
  822. package/dist/types/file-utils/core/file-downloader.d.ts.map +1 -0
  823. package/dist/types/file-utils/core/pdf-reader.d.ts +42 -0
  824. package/dist/types/file-utils/core/pdf-reader.d.ts.map +1 -0
  825. package/dist/types/file-utils/core/types.d.ts +138 -0
  826. package/dist/types/file-utils/core/types.d.ts.map +1 -0
  827. package/dist/types/file-utils/core/xlsx-reader.d.ts +31 -0
  828. package/dist/types/file-utils/core/xlsx-reader.d.ts.map +1 -0
  829. package/dist/types/file-utils/core/zip-reader.d.ts +26 -0
  830. package/dist/types/file-utils/core/zip-reader.d.ts.map +1 -0
  831. package/dist/types/file-utils/file-utils-fixture.d.ts +16 -0
  832. package/dist/types/file-utils/file-utils-fixture.d.ts.map +1 -0
  833. package/dist/types/file-utils/fixtures.d.ts +2 -0
  834. package/dist/types/file-utils/fixtures.d.ts.map +1 -0
  835. package/dist/types/file-utils/index.d.ts +9 -0
  836. package/dist/types/file-utils/index.d.ts.map +1 -0
  837. package/dist/types/index.d.ts +13 -0
  838. package/dist/types/index.d.ts.map +1 -0
  839. package/dist/types/intercept-network-call/core/fulfill-network-call.d.ts +10 -0
  840. package/dist/types/intercept-network-call/core/fulfill-network-call.d.ts.map +1 -0
  841. package/dist/types/intercept-network-call/core/observe-network-call.d.ts +4 -0
  842. package/dist/types/intercept-network-call/core/observe-network-call.d.ts.map +1 -0
  843. package/dist/types/intercept-network-call/core/types.d.ts +28 -0
  844. package/dist/types/intercept-network-call/core/types.d.ts.map +1 -0
  845. package/dist/types/intercept-network-call/core/utils/matches-request.d.ts +9 -0
  846. package/dist/types/intercept-network-call/core/utils/matches-request.d.ts.map +1 -0
  847. package/dist/types/intercept-network-call/fixtures.d.ts +2 -0
  848. package/dist/types/intercept-network-call/fixtures.d.ts.map +1 -0
  849. package/dist/types/intercept-network-call/index.d.ts +5 -0
  850. package/dist/types/intercept-network-call/index.d.ts.map +1 -0
  851. package/dist/types/intercept-network-call/intercept-network-call-fixture.d.ts +7 -0
  852. package/dist/types/intercept-network-call/intercept-network-call-fixture.d.ts.map +1 -0
  853. package/dist/types/intercept-network-call/intercept-network-call.d.ts +21 -0
  854. package/dist/types/intercept-network-call/intercept-network-call.d.ts.map +1 -0
  855. package/dist/types/internal/index.d.ts +2 -0
  856. package/dist/types/internal/index.d.ts.map +1 -0
  857. package/dist/types/internal/logger.d.ts +25 -0
  858. package/dist/types/internal/logger.d.ts.map +1 -0
  859. package/dist/types/log/config.d.ts +28 -0
  860. package/dist/types/log/config.d.ts.map +1 -0
  861. package/dist/types/log/fixtures.d.ts +2 -0
  862. package/dist/types/log/fixtures.d.ts.map +1 -0
  863. package/dist/types/log/formatters/colors.d.ts +13 -0
  864. package/dist/types/log/formatters/colors.d.ts.map +1 -0
  865. package/dist/types/log/formatters/format-message-base.d.ts +57 -0
  866. package/dist/types/log/formatters/format-message-base.d.ts.map +1 -0
  867. package/dist/types/log/formatters/format-message.d.ts +13 -0
  868. package/dist/types/log/formatters/format-message.d.ts.map +1 -0
  869. package/dist/types/log/index.d.ts +4 -0
  870. package/dist/types/log/index.d.ts.map +1 -0
  871. package/dist/types/log/log-fixture.d.ts +5 -0
  872. package/dist/types/log/log-fixture.d.ts.map +1 -0
  873. package/dist/types/log/log-organizer.d.ts +17 -0
  874. package/dist/types/log/log-organizer.d.ts.map +1 -0
  875. package/dist/types/log/log.d.ts +20 -0
  876. package/dist/types/log/log.d.ts.map +1 -0
  877. package/dist/types/log/outputs/add-test-header.d.ts +14 -0
  878. package/dist/types/log/outputs/add-test-header.d.ts.map +1 -0
  879. package/dist/types/log/outputs/context.d.ts +73 -0
  880. package/dist/types/log/outputs/context.d.ts.map +1 -0
  881. package/dist/types/log/outputs/create-log-file-path.d.ts +6 -0
  882. package/dist/types/log/outputs/create-log-file-path.d.ts.map +1 -0
  883. package/dist/types/log/outputs/log-to-console.d.ts +4 -0
  884. package/dist/types/log/outputs/log-to-console.d.ts.map +1 -0
  885. package/dist/types/log/outputs/log-to-file.d.ts +23 -0
  886. package/dist/types/log/outputs/log-to-file.d.ts.map +1 -0
  887. package/dist/types/log/test-step.d.ts +42 -0
  888. package/dist/types/log/test-step.d.ts.map +1 -0
  889. package/dist/types/log/types.d.ts +81 -0
  890. package/dist/types/log/types.d.ts.map +1 -0
  891. package/dist/types/log/utils/async.d.ts +6 -0
  892. package/dist/types/log/utils/async.d.ts.map +1 -0
  893. package/dist/types/log/utils/flag.d.ts +12 -0
  894. package/dist/types/log/utils/flag.d.ts.map +1 -0
  895. package/dist/types/log/utils/options.d.ts +14 -0
  896. package/dist/types/log/utils/options.d.ts.map +1 -0
  897. package/dist/types/log/utils/playwright-step-utils.d.ts +5 -0
  898. package/dist/types/log/utils/playwright-step-utils.d.ts.map +1 -0
  899. package/dist/types/network-error-monitor/fixtures.d.ts +91 -0
  900. package/dist/types/network-error-monitor/fixtures.d.ts.map +1 -0
  901. package/dist/types/network-recorder/core/har-builder.d.ts +122 -0
  902. package/dist/types/network-recorder/core/har-builder.d.ts.map +1 -0
  903. package/dist/types/network-recorder/core/har-manager.d.ts +74 -0
  904. package/dist/types/network-recorder/core/har-manager.d.ts.map +1 -0
  905. package/dist/types/network-recorder/core/har-playback-handler.d.ts +10 -0
  906. package/dist/types/network-recorder/core/har-playback-handler.d.ts.map +1 -0
  907. package/dist/types/network-recorder/core/index.d.ts +9 -0
  908. package/dist/types/network-recorder/core/index.d.ts.map +1 -0
  909. package/dist/types/network-recorder/core/mode-detector.d.ts +64 -0
  910. package/dist/types/network-recorder/core/mode-detector.d.ts.map +1 -0
  911. package/dist/types/network-recorder/core/network-recorder.d.ts +90 -0
  912. package/dist/types/network-recorder/core/network-recorder.d.ts.map +1 -0
  913. package/dist/types/network-recorder/core/stateful-api-mock.d.ts +31 -0
  914. package/dist/types/network-recorder/core/stateful-api-mock.d.ts.map +1 -0
  915. package/dist/types/network-recorder/core/types.d.ts +192 -0
  916. package/dist/types/network-recorder/core/types.d.ts.map +1 -0
  917. package/dist/types/network-recorder/fixtures.d.ts +2 -0
  918. package/dist/types/network-recorder/fixtures.d.ts.map +1 -0
  919. package/dist/types/network-recorder/index.d.ts +6 -0
  920. package/dist/types/network-recorder/index.d.ts.map +1 -0
  921. package/dist/types/network-recorder/network-recorder-fixture.d.ts +78 -0
  922. package/dist/types/network-recorder/network-recorder-fixture.d.ts.map +1 -0
  923. package/dist/types/network-recorder/network-recorder.d.ts +11 -0
  924. package/dist/types/network-recorder/network-recorder.d.ts.map +1 -0
  925. package/dist/types/recurse/fixtures.d.ts +2 -0
  926. package/dist/types/recurse/fixtures.d.ts.map +1 -0
  927. package/dist/types/recurse/index.d.ts +2 -0
  928. package/dist/types/recurse/index.d.ts.map +1 -0
  929. package/dist/types/recurse/recurse-fixture.d.ts +35 -0
  930. package/dist/types/recurse/recurse-fixture.d.ts.map +1 -0
  931. package/dist/types/recurse/recurse.d.ts +108 -0
  932. package/dist/types/recurse/recurse.d.ts.map +1 -0
  933. package/package.json +238 -0
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * Shared logger interface and utility for internal use
4
+ * This avoids circular dependencies between modules
5
+ *
6
+ * Usage:
7
+ * - Configure at startup from index.ts
8
+ * - Use getLogger() in other modules
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.getLogger = exports.configureLogger = void 0;
12
+ // Singleton instance to be configured at startup, with default fallback to console
13
+ let logger = {
14
+ info: async (message) => console.log(message),
15
+ step: async (message) => console.log(message),
16
+ success: async (message) => console.log(message),
17
+ warning: async (message) => console.warn(message),
18
+ error: async (message) => console.error(message),
19
+ debug: async (message) => console.debug(message)
20
+ };
21
+ /**
22
+ * Configure the shared logger instance
23
+ * Called once at app initialization from index.ts */
24
+ const configureLogger = (loggerImplementation) => {
25
+ logger = loggerImplementation;
26
+ };
27
+ exports.configureLogger = configureLogger;
28
+ /**
29
+ * Get the shared logger instance
30
+ * Used by all modules that need logging functionality */
31
+ const getLogger = () => logger;
32
+ exports.getLogger = getLogger;
33
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/internal/logger.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAWH,mFAAmF;AACnF,IAAI,MAAM,GAAW;IACnB,IAAI,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;IACrD,IAAI,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;IACrD,OAAO,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;IACxD,OAAO,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;IACzD,KAAK,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;IACxD,KAAK,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;CACzD,CAAA;AAED;;qDAEqD;AAC9C,MAAM,eAAe,GAAG,CAAC,oBAA4B,EAAQ,EAAE;IACpE,MAAM,GAAG,oBAAoB,CAAA;AAC/B,CAAC,CAAA;AAFY,QAAA,eAAe,mBAE3B;AAED;;yDAEyD;AAClD,MAAM,SAAS,GAAG,GAAW,EAAE,CAAC,MAAM,CAAA;AAAhC,QAAA,SAAS,aAAuB"}
@@ -0,0 +1,28 @@
1
+ import type { LoggingConfig } from './types';
2
+ /** Configure the logging utility
3
+ * @param config - Configuration options to apply
4
+ */
5
+ export declare function configureLogging(config: Partial<LoggingConfig>): LoggingConfig;
6
+ /** @returns The current logging configuration */
7
+ export declare function getLoggingConfig(): LoggingConfig;
8
+ /** Information about the current test context
9
+ * Used for both logging and worker ID support */
10
+ export type TestContextInfo = {
11
+ /** Worker ID for parallel execution */
12
+ workerIndex?: number;
13
+ /** Test file path */
14
+ testFile?: string;
15
+ /** Test name */
16
+ testName?: string;
17
+ /** Source file path for detailed logs */
18
+ sourceFilePath?: string;
19
+ /** Project name from Playwright config */
20
+ projectName?: string;
21
+ };
22
+ /**
23
+ * Set the current test context information
24
+ * @param info - Object containing test context details */
25
+ export declare function setTestContextInfo(info: Partial<TestContextInfo>): void;
26
+ /** Get the current test context information */
27
+ export declare function getTestContextInfo(): TestContextInfo;
28
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/log/config.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAkE5C;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAC7B,aAAa,CAQf;AAqDD,kDAAkD;AAClD,wBAAgB,gBAAgB,IAAI,aAAa,CAEhD;AAMD;iDACiD;AACjD,MAAM,MAAM,eAAe,GAAG;IAC5B,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAKD;;0DAE0D;AAC1D,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAKvE;AAED,+CAA+C;AAC/C,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD"}
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ // Logging configuration manager
3
+ // Provides global configuration options for the logging utility
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.configureLogging = configureLogging;
42
+ exports.getLoggingConfig = getLoggingConfig;
43
+ exports.setTestContextInfo = setTestContextInfo;
44
+ exports.getTestContextInfo = getTestContextInfo;
45
+ const fs = __importStar(require("node:fs"));
46
+ const path = __importStar(require("node:path"));
47
+ const deepmerge_1 = __importDefault(require("deepmerge"));
48
+ // LoggingConfig imported from ./types
49
+ /** Default configuration for the logging utility */
50
+ const defaultConfig = {
51
+ console: {
52
+ enabled: true,
53
+ colorize: true,
54
+ timestamps: true
55
+ },
56
+ fileLogging: {
57
+ enabled: false,
58
+ outputDir: 'playwright-logs',
59
+ defaultTestFolder: 'default-test-folder' // Fallback folder when no test context is available
60
+ },
61
+ workerID: {
62
+ enabled: true, // Enabled by default for better debugging
63
+ format: '[W{workerIndex}]'
64
+ },
65
+ sourceFileTracking: {
66
+ enabled: true, // Track source files by default for decorators
67
+ showInLogs: false // But don't show in logs by default to reduce noise
68
+ }
69
+ };
70
+ /////////////////////////
71
+ // Logging Configuration Management
72
+ /////////////////////////
73
+ // Singleton instance of configuration, with default fallback
74
+ let currentConfig = { ...defaultConfig };
75
+ /**
76
+ * Normalizes configuration values by converting boolean settings to their object equivalents
77
+ * @param config - Raw configuration with possible boolean values
78
+ * @returns Normalized configuration with all settings in object form
79
+ */
80
+ function normalizeConfig(config) {
81
+ const normalized = { ...config };
82
+ // Convert console setting
83
+ if (typeof config.console === 'boolean') {
84
+ normalized.console = { enabled: config.console };
85
+ }
86
+ // Convert fileLogging setting
87
+ if (typeof config.fileLogging === 'boolean') {
88
+ normalized.fileLogging = { enabled: config.fileLogging };
89
+ }
90
+ // Convert workerID setting
91
+ if (typeof config.workerID === 'boolean') {
92
+ normalized.workerID = { enabled: config.workerID };
93
+ }
94
+ // Convert sourceFileTracking setting
95
+ if (typeof config.sourceFileTracking === 'boolean') {
96
+ normalized.sourceFileTracking = { enabled: config.sourceFileTracking };
97
+ }
98
+ return normalized;
99
+ }
100
+ /** Configure the logging utility
101
+ * @param config - Configuration options to apply
102
+ */
103
+ function configureLogging(config) {
104
+ // Normalize the config to ensure all properties are in the correct format
105
+ const normalizedConfig = normalizeConfig(config);
106
+ // Deep merge the normalized config with the current config
107
+ currentConfig = (0, deepmerge_1.default)(currentConfig, normalizedConfig);
108
+ return ensureLogDirectory(currentConfig);
109
+ }
110
+ /** Function to ensure log directory exists if needed
111
+ * @param config - The logging configuration */
112
+ function ensureLogDirectory(config) {
113
+ // Handle both boolean and object fileLogging configurations
114
+ const fileLoggingEnabled = typeof config.fileLogging === 'boolean'
115
+ ? config.fileLogging
116
+ : config.fileLogging?.enabled;
117
+ if (!fileLoggingEnabled)
118
+ return config;
119
+ // If fileLogging is undefined or a boolean, convert it to an object
120
+ if (config.fileLogging === undefined ||
121
+ typeof config.fileLogging === 'boolean') {
122
+ config.fileLogging = {
123
+ enabled: typeof config.fileLogging === 'boolean' ? config.fileLogging : false
124
+ };
125
+ }
126
+ // Now we know fileLogging is an object, not a boolean
127
+ const fileLoggingConfig = config.fileLogging;
128
+ // If no output directory is specified, use the standard playwright-logs directory
129
+ if (!fileLoggingConfig.outputDir) {
130
+ // Default to the playwright-logs directory in the project root
131
+ fileLoggingConfig.outputDir = path.join(process.cwd(), 'playwright-logs');
132
+ }
133
+ const outputDir = fileLoggingConfig.outputDir;
134
+ // Ensure the directory exists
135
+ if (!fs.existsSync(outputDir)) {
136
+ try {
137
+ fs.mkdirSync(outputDir, { recursive: true });
138
+ console.log(`Created log directory: ${outputDir}`);
139
+ }
140
+ catch (error) {
141
+ console.error(`Failed to create log directory: ${error}`);
142
+ }
143
+ }
144
+ return config;
145
+ }
146
+ /** @returns The current logging configuration */
147
+ function getLoggingConfig() {
148
+ return currentConfig;
149
+ }
150
+ // Keep track of current test context info
151
+ let testContextInfo = {};
152
+ /**
153
+ * Set the current test context information
154
+ * @param info - Object containing test context details */
155
+ function setTestContextInfo(info) {
156
+ testContextInfo = {
157
+ ...testContextInfo,
158
+ ...info
159
+ };
160
+ }
161
+ /** Get the current test context information */
162
+ function getTestContextInfo() {
163
+ return { ...testContextInfo };
164
+ }
165
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/log/config.ts"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EhE,4CAUC;AAsDD,4CAEC;AA2BD,gDAKC;AAGD,gDAEC;AA/KD,4CAA6B;AAC7B,gDAAiC;AACjC,0DAAiC;AAGjC,sCAAsC;AAEtC,oDAAoD;AACpD,MAAM,aAAa,GAAkB;IACnC,OAAO,EAAE;QACP,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,IAAI;KACjB;IACD,WAAW,EAAE;QACX,OAAO,EAAE,KAAK;QACd,SAAS,EAAE,iBAAiB;QAC5B,iBAAiB,EAAE,qBAAqB,CAAC,oDAAoD;KAC9F;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,IAAI,EAAE,0CAA0C;QACzD,MAAM,EAAE,kBAAkB;KAC3B;IACD,kBAAkB,EAAE;QAClB,OAAO,EAAE,IAAI,EAAE,+CAA+C;QAC9D,UAAU,EAAE,KAAK,CAAC,oDAAoD;KACvE;CACF,CAAA;AAED,yBAAyB;AACzB,mCAAmC;AACnC,yBAAyB;AAEzB,6DAA6D;AAC7D,IAAI,aAAa,GAAkB,EAAE,GAAG,aAAa,EAAE,CAAA;AAEvD;;;;GAIG;AACH,SAAS,eAAe,CACtB,MAA8B;IAE9B,MAAM,U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IAC/D,eAAe,GAAG;QAChB,GAAG,eAAe;QAClB,GAAG,IAAI;KACR,CAAA;AACH,CAAC;AAED,+CAA+C;AAC/C,SAAgB,kBAAkB;IAChC,OAAO,EAAE,GAAG,eAAe,EAAE,CAAA;AAC/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { test } from './log-fixture';
2
+ //# sourceMappingURL=fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/log/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.test = void 0;
4
+ var log_fixture_1 = require("./log-fixture");
5
+ Object.defineProperty(exports, "test", { enumerable: true, get: function () { return log_fixture_1.test; } });
6
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/log/fixtures.ts"],"names":[],"mappings":";;;AAAA,6CAAoC;AAA3B,mGAAA,IAAI,OAAA"}
@@ -0,0 +1,13 @@
1
+ /** Color utilities for terminal output */
2
+ /** ANSI color codes for terminal output */
3
+ export declare const colors: {
4
+ reset: string;
5
+ cyan: string;
6
+ green: string;
7
+ yellow: string;
8
+ red: string;
9
+ gray: string;
10
+ white: string;
11
+ bold: string;
12
+ };
13
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/log/formatters/colors.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAE1C,2CAA2C;AAC3C,eAAO,MAAM,MAAM;;;;;;;;;CASlB,CAAA"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /** Color utilities for terminal output */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.colors = void 0;
5
+ /** ANSI color codes for terminal output */
6
+ exports.colors = {
7
+ reset: '\x1b[0m',
8
+ cyan: '\x1b[36m',
9
+ green: '\x1b[32m',
10
+ yellow: '\x1b[33m',
11
+ red: '\x1b[31m',
12
+ gray: '\x1b[90m',
13
+ white: '\x1b[37m',
14
+ bold: '\x1b[1m'
15
+ };
16
+ //# sourceMappingURL=colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../../src/log/formatters/colors.ts"],"names":[],"mappings":";AAAA,0CAA0C;;;AAE1C,2CAA2C;AAC9B,QAAA,MAAM,GAAG;IACpB,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,UAAU;IAClB,GAAG,EAAE,UAAU;IACf,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;IACjB,IAAI,EAAE,SAAS;CAChB,CAAA"}
@@ -0,0 +1,57 @@
1
+ import type { LoggingConfig } from '../types';
2
+ /**
3
+ * Format options for the base message formatter
4
+ * Leverages shared types from types.ts where possible while adding
5
+ * formatter-specific options
6
+ */
7
+ type BaseFormatOptions = {
8
+ /** Whether to add timestamp to the formatted message (maps to FormatOptions.timestamps) */
9
+ addTimestamp?: boolean;
10
+ /** Worker ID configuration - derived from LoggingConfig.workerID */
11
+ workerIdConfig?: {
12
+ /** Whether worker ID is enabled */
13
+ enabled: boolean;
14
+ /** Format string for worker ID */
15
+ format: string;
16
+ /** Context object with workerIndex or other values to use */
17
+ context?: {
18
+ workerIndex?: number;
19
+ extractedWorkerIndex?: string;
20
+ [key: string]: unknown;
21
+ };
22
+ };
23
+ /** Whether to strip existing timestamps and worker IDs from the message */
24
+ stripExistingFormatting?: boolean;
25
+ /** Optional prefix to add before the formatted message (from FormatOptions.prefix) */
26
+ prefix?: string;
27
+ /** Test information from LoggingConfig */
28
+ testInfo?: Pick<LoggingConfig, 'testName' | 'testFile'>;
29
+ /** Log organization mode */
30
+ organizationMode?: 'consolidated' | 'organized';
31
+ /** Whether to apply colors to the message (from FormatOptions.colorize) */
32
+ colorize?: boolean;
33
+ /** Configuration for log level formatting */
34
+ levelConfig?: {
35
+ /** ANSI color function to apply */
36
+ color?: unknown;
37
+ /** Prefix to add before the message content */
38
+ prefix?: string;
39
+ /** Suffix to add after the message content */
40
+ suffix?: string;
41
+ };
42
+ /** Maximum length for the formatted message (maps to FormatOptions.maxLineLength) */
43
+ maxLength?: number;
44
+ /** Whether to add new line at the end (from FormatOptions.addNewLine) */
45
+ addNewLine?: boolean;
46
+ /** Whether to include milliseconds in timestamp */
47
+ includeMilliseconds?: boolean;
48
+ };
49
+ /**
50
+ * Base function for formatting log messages
51
+ * @param message Raw message to format
52
+ * @param options Formatting options derived from FormatOptions and LoggingConfig
53
+ * @returns Formatted message string
54
+ */
55
+ export declare const formatMessageBase: (message: string, options?: BaseFormatOptions) => string;
56
+ export {};
57
+ //# sourceMappingURL=format-message-base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-message-base.d.ts","sourceRoot":"","sources":["../../../../src/log/formatters/format-message-base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,aAAa,EAAE,MAAM,UAAU,CAAA;AAE5D;;;;GAIG;AACH,KAAK,iBAAiB,GAAG;IACvB,2FAA2F;IAC3F,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,oEAAoE;IACpE,cAAc,CAAC,EAAE;QACf,mCAAmC;QACnC,OAAO,EAAE,OAAO,CAAA;QAChB,kCAAkC;QAClC,MAAM,EAAE,MAAM,CAAA;QACd,6DAA6D;QAC7D,OAAO,CAAC,EAAE;YACR,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,oBAAoB,CAAC,EAAE,MAAM,CAAA;YAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SACvB,CAAA;KACF,CAAA;IACD,2EAA2E;IAC3E,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,sFAAsF;IACtF,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,CAAA;IACvD,4BAA4B;IAC5B,gBAAgB,CAAC,EAAE,cAAc,GAAG,WAAW,CAAA;IAC/C,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6CAA6C;IAC7C,WAAW,CAAC,EAAE;QACZ,mCAAmC;QACnC,KAAK,CAAC,EAAE,OAAO,CAAA;QACf,+CAA+C;QAC/C,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,8CAA8C;QAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yEAAyE;IACzE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAA;AAkLD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAC5B,SAAS,MAAM,EACf,UAAS,iBAAsB,KAC9B,MAiDF,CAAA"}
@@ -0,0 +1,198 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.formatMessageBase = void 0;
37
+ const path = __importStar(require("node:path"));
38
+ /**
39
+ * Generates a formatted timestamp string for log messages
40
+ * @returns {string} Formatted timestamp string like "[05:30:02]" or "[05:30:02.123]" */
41
+ const formatTimestamp = ({ showTimestamp = true, includeMilliseconds = false } = {}) => {
42
+ if (!showTimestamp)
43
+ return '';
44
+ const date = new Date();
45
+ const isoString = date.toISOString();
46
+ // Extract either HH:MM:SS or HH:MM:SS.mmm depending on options
47
+ const timePart = includeMilliseconds
48
+ ? isoString.slice(11, 23) // With milliseconds
49
+ : isoString.split('T')[1]?.substring(0, 8) || ''; // Just HH:MM:SS
50
+ return `[${timePart}]`;
51
+ };
52
+ /**
53
+ * Formats a worker ID string based on the provided format and context
54
+ " ex: [W{workerIndex}]" with context.workerIndex=3 becomes "[W3]"
55
+ */
56
+ const formatWorkerID = (format, context, options = {}) => {
57
+ const { enabled = true } = options;
58
+ // Skip if disabled or no worker index available
59
+ if (!enabled ||
60
+ (context.workerIndex === undefined && context.workerIndex !== 0))
61
+ return '';
62
+ // Replace placeholders with actual values from context
63
+ return format.replace(/\{(\w+)\}/g, (_, key) => {
64
+ const value = context[key];
65
+ return value !== undefined ? String(value) : '';
66
+ });
67
+ };
68
+ /** Build message components (timestamp, worker ID, prefix, test info) */
69
+ const buildMessageComponents = (options, extractedWorkerIndex) => {
70
+ const { addTimestamp = true, workerIdConfig, prefix = '', testInfo, organizationMode = 'consolidated', includeMilliseconds = false } = options;
71
+ // Create specialized component generators to improve readability
72
+ const getTimestampComponent = () => addTimestamp
73
+ ? [formatTimestamp({ showTimestamp: true, includeMilliseconds })]
74
+ : [];
75
+ const getWorkerIdComponent = () => {
76
+ if (!workerIdConfig?.enabled)
77
+ return [];
78
+ if (extractedWorkerIndex)
79
+ return [`[W${extractedWorkerIndex}]`];
80
+ if (workerIdConfig.format && workerIdConfig.context) {
81
+ const workerId = formatWorkerID(workerIdConfig.format, workerIdConfig.context, { enabled: true });
82
+ return workerId ? [workerId] : [];
83
+ }
84
+ return [];
85
+ };
86
+ const getPrefixComponent = () => (prefix ? [prefix] : []);
87
+ const getTestInfoComponent = () => {
88
+ if (organizationMode !== 'consolidated' || !testInfo)
89
+ return [];
90
+ return [
91
+ ...(testInfo.testName ? [`[${testInfo.testName}]`] : []),
92
+ ...(testInfo.testFile
93
+ ? [`[File: ${path.basename(testInfo.testFile)}]`]
94
+ : [])
95
+ ];
96
+ };
97
+ // Compose the final result from all component generators
98
+ return [
99
+ ...getTimestampComponent(),
100
+ ...getWorkerIdComponent(),
101
+ ...getPrefixComponent(),
102
+ ...getTestInfoComponent()
103
+ ];
104
+ };
105
+ /** Format message text based on level configuration */
106
+ const formatMessageText = (message, options) => {
107
+ const { levelConfig, colorize = true } = options;
108
+ // No level config means return the original message
109
+ if (!levelConfig)
110
+ return message;
111
+ // Function to add delimiters (prefix/suffix) to text
112
+ const addDelimiters = (text) => {
113
+ if (!levelConfig.prefix && !levelConfig.suffix)
114
+ return text;
115
+ return `${levelConfig.prefix || ''}${text}${levelConfig.suffix || ''}`;
116
+ };
117
+ // Function to apply color if enabled and color is provided
118
+ const applyColor = (text) => {
119
+ // Only apply colors if colorize is enabled and levelConfig.color exists
120
+ if (!colorize || !levelConfig.color)
121
+ return text;
122
+ // If color is a function, call it
123
+ if (typeof levelConfig.color === 'function') {
124
+ return levelConfig.color(text);
125
+ }
126
+ // Otherwise, assume it's an ANSI color code string
127
+ // Use the colors.bold plus the color code, and reset at the end
128
+ const colorCode = levelConfig.color;
129
+ const boldCode = '\x1b[1m'; // Bold code
130
+ const resetCode = '\x1b[0m'; // Reset code
131
+ return `${boldCode}${colorCode}${text}${resetCode}`;
132
+ };
133
+ // Apply transformations in sequence
134
+ return applyColor(addDelimiters(message));
135
+ };
136
+ /** Clean a message by removing timestamps and worker IDs */
137
+ const cleanMessageFormatting = (message, _workerIdConfig) => {
138
+ const timestampRegex = /\[(\d{2}:\d{2}:\d{2}(?:\.\d{3})?)\]/g;
139
+ const workerRegex = /\[W(\d+)\]/g;
140
+ // Extract worker ID if needed for preservation
141
+ const workerMatch = workerRegex.exec(message);
142
+ // Using null instead of undefined for consistency
143
+ const extractedWorkerIndex = workerMatch
144
+ ? workerMatch[1]
145
+ : null;
146
+ // Remove existing formatting
147
+ const processedMessage = message
148
+ .replace(workerRegex, '')
149
+ .replace(timestampRegex, '')
150
+ .replace(/\s+/g, ' ')
151
+ .trim();
152
+ return { processedMessage, extractedWorkerIndex };
153
+ };
154
+ /**
155
+ * Base function for formatting log messages
156
+ * @param message Raw message to format
157
+ * @param options Formatting options derived from FormatOptions and LoggingConfig
158
+ * @returns Formatted message string
159
+ */
160
+ const formatMessageBase = (message, options = {}) => {
161
+ const { stripExistingFormatting = false, maxLength = 0, addNewLine = false } = options;
162
+ // Step 1: Clean the message if requested
163
+ let processedMessage = message;
164
+ let extractedWorkerIndex = null;
165
+ if (stripExistingFormatting) {
166
+ const result = cleanMessageFormatting(message, options.workerIdConfig);
167
+ processedMessage = result.processedMessage;
168
+ extractedWorkerIndex = result.extractedWorkerIndex;
169
+ // Update workerIdConfig if needed
170
+ if (extractedWorkerIndex && options.workerIdConfig) {
171
+ options.workerIdConfig.context = {
172
+ ...options.workerIdConfig.context,
173
+ extractedWorkerIndex
174
+ };
175
+ }
176
+ }
177
+ // Step 2: Build components (timestamp, worker ID, prefixes, test info)
178
+ const components = buildMessageComponents(options, extractedWorkerIndex);
179
+ // Step 3: Format the message text based on level configuration
180
+ const formattedText = formatMessageText(processedMessage, {
181
+ levelConfig: options.levelConfig,
182
+ colorize: options.colorize
183
+ });
184
+ // Step 4: Add the formatted text and combine components
185
+ components.push(formattedText);
186
+ let result = components.join(' ');
187
+ // Step 5: Apply max length if specified
188
+ if (maxLength > 0 && result.length > maxLength) {
189
+ result = result.substring(0, maxLength - 3) + '...';
190
+ }
191
+ // Step 6: Add newline if requested
192
+ if (addNewLine) {
193
+ result += '\n';
194
+ }
195
+ return result;
196
+ };
197
+ exports.formatMessageBase = formatMessageBase;
198
+ //# sourceMappingURL=format-message-base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-message-base.js","sourceRoot":"","sources":["../../../../src/log/formatters/format-message-base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAiC;AAmDjC;;wFAEwF;AACxF,MAAM,eAAe,GAAG,CAAC,EACvB,aAAa,GAAG,IAAI,EACpB,mBAAmB,GAAG,KAAK,KAIzB,EAAE,EAAU,EAAE;IAChB,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAA;IAE7B,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;IACvB,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;IACpC,+DAA+D;IAC/D,MAAM,QAAQ,GAAG,mBAAmB;QAClC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,oBAAoB;QAC9C,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA,CAAC,gBAAgB;IAEnE,OAAO,IAAI,QAAQ,GAAG,CAAA;AACxB,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,cAAc,GAAG,CACrB,MAAc,EACd,OAAyD,EACzD,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,CAAA;IAEF,wDAAwD;IACxD,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IAC9B,IAAI,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAEjC,wCAAwC;IACxC,IAAI,SAAS,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,SAAS,EAAE,CAAC;QAC/C,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,GAAG,KAAK,CAAA;IACrD,CAAC;IAED,mCAAmC;IACnC,IAAI,UAAU,EAAE,CAAC;QACf,MAAM,IAAI,IAAI,CAAA;IAChB,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AApDY,QAAA,iBAAiB,qBAoD7B"}
@@ -0,0 +1,13 @@
1
+ /** Message formatting utilities */
2
+ import type { LogLevel, FormatOptions, LogContext } from '../types';
3
+ /**
4
+ * Formats a message for logging with appropriate formatting based on log level
5
+ * Now supports an optional object parameter
6
+ */
7
+ export declare function formatMessage(message: string, level?: LogLevel, options?: FormatOptions, workerIdConfig?: {
8
+ enabled: boolean;
9
+ format: string;
10
+ }, metaObjects?: unknown[]): string;
11
+ /** Format a log message with timestamp, worker ID, etc. (for log files) */
12
+ export declare function formatLogMessage(message: string, context: LogContext): string;
13
+ //# sourceMappingURL=format-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-message.d.ts","sourceRoot":"","sources":["../../../../src/log/formatters/format-message.ts"],"names":[],"mappings":"AAAA,oCAAoC;AAGpC,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EAEb,UAAU,EACX,MAAM,UAAU,CAAA;AA0DjB;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,QAAiB,EACxB,OAAO,GAAE,aAIR,EACD,cAAc,CAAC,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACrD,WAAW,GAAE,OAAO,EAAO,GAC1B,MAAM,CA+BR;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,MAAM,CA0C7E"}