@wopee-io/wopee.pw 4.19.0 → 4.21.1

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 (648) hide show
  1. package/.github/workflows/ci_cd.yaml +16 -9
  2. package/build/core/ports/configPort/configDefaults.js +1 -2
  3. package/build/core/ports/configPort/configDefaults.js.map +1 -1
  4. package/build/shared/metadata/versionMetadata.js +2 -2
  5. package/build/tools/wopee-reporter/helpers/axios-config.d.ts +3 -0
  6. package/build/tools/wopee-reporter/helpers/axios-config.js +120 -0
  7. package/build/tools/wopee-reporter/helpers/axios-config.js.map +1 -0
  8. package/build/tools/wopee-reporter/helpers/generateTestRunId.js +1 -2
  9. package/build/tools/wopee-reporter/helpers/generateTestRunId.js.map +1 -1
  10. package/build/tools/wopee-reporter/helpers/parseError.js +1 -2
  11. package/build/tools/wopee-reporter/helpers/parseError.js.map +1 -1
  12. package/build/tools/wopee-reporter/helpers/parseNestedSteps.js +1 -2
  13. package/build/tools/wopee-reporter/helpers/parseNestedSteps.js.map +1 -1
  14. package/build/tools/wopee-reporter/wopeeReporter.js +11 -9
  15. package/build/tools/wopee-reporter/wopeeReporter.js.map +1 -1
  16. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +6 -4
  17. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.d.ts +4 -0
  18. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.js +120 -0
  19. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
  20. package/node_modules/@autonomous-testing/sdk/package.json +3 -1
  21. package/node_modules/follow-redirects/package.json +1 -1
  22. package/node_modules/form-data/CHANGELOG.md +659 -0
  23. package/node_modules/form-data/{Readme.md → README.md} +34 -37
  24. package/node_modules/form-data/lib/browser.js +3 -1
  25. package/node_modules/form-data/lib/form_data.js +126 -135
  26. package/node_modules/form-data/lib/populate.js +5 -5
  27. package/node_modules/form-data/package.json +24 -16
  28. package/node_modules/zod/LICENSE +1 -1
  29. package/node_modules/zod/README.md +114 -2782
  30. package/node_modules/zod/index.cjs +33 -0
  31. package/node_modules/zod/index.d.cts +4 -0
  32. package/node_modules/zod/index.d.ts +4 -2
  33. package/node_modules/zod/index.js +4 -0
  34. package/node_modules/zod/package.json +94 -95
  35. package/node_modules/zod/src/index.ts +4 -0
  36. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  37. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  38. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  39. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  40. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  41. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  42. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  43. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  44. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  45. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  46. package/node_modules/zod/src/v3/errors.ts +13 -0
  47. package/node_modules/zod/src/v3/external.ts +6 -0
  48. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  49. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  50. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  51. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  52. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  53. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  54. package/node_modules/zod/src/v3/index.ts +4 -0
  55. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  56. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  57. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  58. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  59. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  60. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  61. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  62. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  63. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  64. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  65. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  66. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  67. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  68. package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  69. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  70. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  71. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  72. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  73. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  74. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  75. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  76. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  77. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  78. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  79. package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  80. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  81. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  82. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  83. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  84. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  85. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  86. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  87. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  88. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  89. package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  90. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  91. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  92. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  93. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  94. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  95. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  96. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  97. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  98. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  99. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  100. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  101. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  102. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  103. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  104. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  105. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  106. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  107. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  108. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  109. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  110. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  111. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  112. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  113. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  114. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  115. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  116. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  117. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  118. package/node_modules/zod/src/v3/types.ts +5136 -0
  119. package/node_modules/zod/src/v4/classic/checks.ts +30 -0
  120. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  121. package/node_modules/zod/src/v4/classic/compat.ts +66 -0
  122. package/node_modules/zod/src/v4/classic/errors.ts +75 -0
  123. package/node_modules/zod/src/v4/classic/external.ts +50 -0
  124. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  125. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  126. package/node_modules/zod/src/v4/classic/parse.ts +33 -0
  127. package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  128. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  129. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  130. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  131. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  132. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  133. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  134. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  135. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  136. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  137. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  138. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  139. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  140. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  141. package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  142. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  143. package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  144. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  145. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  146. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  147. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  148. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  149. package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  150. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  151. package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  152. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  153. package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  154. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  155. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  156. package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  157. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  158. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  159. package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  160. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  161. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  162. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  163. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  164. package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  165. package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  166. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  167. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  168. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  169. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  170. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  171. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  172. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  173. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  174. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  175. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  176. package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  177. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  178. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  179. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  180. package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  181. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  182. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  183. package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  184. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  185. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  186. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  187. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  188. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  189. package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  190. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  191. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  192. package/node_modules/zod/src/v4/core/api.ts +1594 -0
  193. package/node_modules/zod/src/v4/core/checks.ts +1283 -0
  194. package/node_modules/zod/src/v4/core/config.ts +15 -0
  195. package/node_modules/zod/src/v4/core/core.ts +134 -0
  196. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  197. package/node_modules/zod/src/v4/core/errors.ts +424 -0
  198. package/node_modules/zod/src/v4/core/function.ts +176 -0
  199. package/node_modules/zod/src/v4/core/index.ts +15 -0
  200. package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  201. package/node_modules/zod/src/v4/core/parse.ts +94 -0
  202. package/node_modules/zod/src/v4/core/regexes.ts +135 -0
  203. package/node_modules/zod/src/v4/core/registries.ts +96 -0
  204. package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  205. package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  206. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  207. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  208. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  209. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  210. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  211. package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  212. package/node_modules/zod/src/v4/core/util.ts +775 -0
  213. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  214. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  215. package/node_modules/zod/src/v4/index.ts +4 -0
  216. package/node_modules/zod/src/v4/locales/ar.ts +125 -0
  217. package/node_modules/zod/src/v4/locales/az.ts +121 -0
  218. package/node_modules/zod/src/v4/locales/be.ts +184 -0
  219. package/node_modules/zod/src/v4/locales/ca.ts +127 -0
  220. package/node_modules/zod/src/v4/locales/cs.ts +142 -0
  221. package/node_modules/zod/src/v4/locales/de.ts +124 -0
  222. package/node_modules/zod/src/v4/locales/en.ts +127 -0
  223. package/node_modules/zod/src/v4/locales/eo.ts +125 -0
  224. package/node_modules/zod/src/v4/locales/es.ts +125 -0
  225. package/node_modules/zod/src/v4/locales/fa.ts +134 -0
  226. package/node_modules/zod/src/v4/locales/fi.ts +131 -0
  227. package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  228. package/node_modules/zod/src/v4/locales/fr.ts +124 -0
  229. package/node_modules/zod/src/v4/locales/he.ts +125 -0
  230. package/node_modules/zod/src/v4/locales/hu.ts +126 -0
  231. package/node_modules/zod/src/v4/locales/id.ts +125 -0
  232. package/node_modules/zod/src/v4/locales/index.ts +39 -0
  233. package/node_modules/zod/src/v4/locales/it.ts +125 -0
  234. package/node_modules/zod/src/v4/locales/ja.ts +122 -0
  235. package/node_modules/zod/src/v4/locales/kh.ts +126 -0
  236. package/node_modules/zod/src/v4/locales/ko.ts +131 -0
  237. package/node_modules/zod/src/v4/locales/mk.ts +127 -0
  238. package/node_modules/zod/src/v4/locales/ms.ts +124 -0
  239. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  240. package/node_modules/zod/src/v4/locales/no.ts +124 -0
  241. package/node_modules/zod/src/v4/locales/ota.ts +125 -0
  242. package/node_modules/zod/src/v4/locales/pl.ts +126 -0
  243. package/node_modules/zod/src/v4/locales/ps.ts +133 -0
  244. package/node_modules/zod/src/v4/locales/pt.ts +123 -0
  245. package/node_modules/zod/src/v4/locales/ru.ts +184 -0
  246. package/node_modules/zod/src/v4/locales/sl.ts +126 -0
  247. package/node_modules/zod/src/v4/locales/sv.ts +127 -0
  248. package/node_modules/zod/src/v4/locales/ta.ts +125 -0
  249. package/node_modules/zod/src/v4/locales/th.ts +126 -0
  250. package/node_modules/zod/src/v4/locales/tr.ts +121 -0
  251. package/node_modules/zod/src/v4/locales/ua.ts +126 -0
  252. package/node_modules/zod/src/v4/locales/ur.ts +126 -0
  253. package/node_modules/zod/src/v4/locales/vi.ts +125 -0
  254. package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  255. package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  256. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  257. package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  258. package/node_modules/zod/src/v4/mini/external.ts +40 -0
  259. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  260. package/node_modules/zod/src/v4/mini/iso.ts +62 -0
  261. package/node_modules/zod/src/v4/mini/parse.ts +1 -0
  262. package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  263. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  264. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  265. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  266. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  267. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  268. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  269. package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  270. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  271. package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  272. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  273. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  274. package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  275. package/node_modules/zod/src/v4-mini/index.ts +1 -0
  276. package/node_modules/zod/{lib/ZodError.js → v3/ZodError.cjs} +9 -8
  277. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  278. package/node_modules/zod/{lib → v3}/ZodError.d.ts +23 -23
  279. package/node_modules/zod/v3/ZodError.js +133 -0
  280. package/node_modules/zod/{lib/errors.js → v3/errors.cjs} +6 -6
  281. package/node_modules/zod/v3/errors.d.cts +5 -0
  282. package/node_modules/zod/{lib → v3}/errors.d.ts +2 -2
  283. package/node_modules/zod/v3/errors.js +9 -0
  284. package/node_modules/zod/v3/external.cjs +22 -0
  285. package/node_modules/zod/v3/external.d.cts +6 -0
  286. package/node_modules/zod/v3/external.d.ts +6 -0
  287. package/node_modules/zod/v3/external.js +6 -0
  288. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  289. package/node_modules/zod/{lib/helpers/errorUtil.js → v3/helpers/errorUtil.cjs} +3 -2
  290. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  291. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  292. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  293. package/node_modules/zod/{lib/helpers/parseUtil.js → v3/helpers/parseUtil.cjs} +10 -11
  294. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  295. package/node_modules/zod/{lib → v3}/helpers/parseUtil.d.ts +15 -15
  296. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  297. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  298. package/node_modules/zod/{lib → v3}/helpers/partialUtil.d.ts +1 -1
  299. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  300. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  301. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  302. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  303. package/node_modules/zod/{lib/helpers/util.js → v3/helpers/util.cjs} +7 -12
  304. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  305. package/node_modules/zod/{lib → v3}/helpers/util.d.ts +9 -6
  306. package/node_modules/zod/v3/helpers/util.js +133 -0
  307. package/node_modules/zod/{lib/index.js → v3/index.cjs} +7 -3
  308. package/node_modules/zod/v3/index.d.cts +4 -0
  309. package/node_modules/zod/v3/index.d.ts +4 -0
  310. package/node_modules/zod/v3/index.js +4 -0
  311. package/node_modules/zod/{lib/locales/en.js → v3/locales/en.cjs} +32 -50
  312. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  313. package/node_modules/zod/{lib → v3}/locales/en.d.ts +1 -1
  314. package/node_modules/zod/v3/locales/en.js +109 -0
  315. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  316. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  317. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  318. package/node_modules/zod/v3/standard-schema.js +1 -0
  319. package/node_modules/zod/{lib/types.js → v3/types.cjs} +661 -563
  320. package/node_modules/zod/{lib/types.d.ts → v3/types.d.cts} +249 -345
  321. package/node_modules/zod/v3/types.d.ts +1031 -0
  322. package/node_modules/zod/{lib/index.mjs → v3/types.js} +357 -900
  323. package/node_modules/zod/v4/classic/checks.cjs +32 -0
  324. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  325. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  326. package/node_modules/zod/v4/classic/checks.js +1 -0
  327. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  328. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  329. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  330. package/node_modules/zod/v4/classic/coerce.js +17 -0
  331. package/node_modules/zod/v4/classic/compat.cjs +57 -0
  332. package/node_modules/zod/v4/classic/compat.d.cts +46 -0
  333. package/node_modules/zod/v4/classic/compat.d.ts +46 -0
  334. package/node_modules/zod/v4/classic/compat.js +27 -0
  335. package/node_modules/zod/v4/classic/errors.cjs +67 -0
  336. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  337. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  338. package/node_modules/zod/v4/classic/errors.js +41 -0
  339. package/node_modules/zod/v4/classic/external.cjs +70 -0
  340. package/node_modules/zod/v4/classic/external.d.cts +13 -0
  341. package/node_modules/zod/v4/classic/external.d.ts +13 -0
  342. package/node_modules/zod/v4/classic/external.js +18 -0
  343. package/node_modules/zod/v4/classic/index.cjs +33 -0
  344. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  345. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  346. package/node_modules/zod/v4/classic/index.js +4 -0
  347. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  348. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  349. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  350. package/node_modules/zod/v4/classic/iso.js +30 -0
  351. package/node_modules/zod/v4/classic/parse.cjs +32 -0
  352. package/node_modules/zod/v4/classic/parse.d.cts +23 -0
  353. package/node_modules/zod/v4/classic/parse.d.ts +23 -0
  354. package/node_modules/zod/v4/classic/parse.js +6 -0
  355. package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  356. package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  357. package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  358. package/node_modules/zod/v4/classic/schemas.js +1006 -0
  359. package/node_modules/zod/v4/core/api.cjs +1039 -0
  360. package/node_modules/zod/v4/core/api.d.cts +284 -0
  361. package/node_modules/zod/v4/core/api.d.ts +284 -0
  362. package/node_modules/zod/v4/core/api.js +906 -0
  363. package/node_modules/zod/v4/core/checks.cjs +591 -0
  364. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  365. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  366. package/node_modules/zod/v4/core/checks.js +565 -0
  367. package/node_modules/zod/v4/core/core.cjs +67 -0
  368. package/node_modules/zod/v4/core/core.d.cts +49 -0
  369. package/node_modules/zod/v4/core/core.d.ts +49 -0
  370. package/node_modules/zod/v4/core/core.js +61 -0
  371. package/node_modules/zod/v4/core/doc.cjs +39 -0
  372. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  373. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  374. package/node_modules/zod/v4/core/doc.js +35 -0
  375. package/node_modules/zod/v4/core/errors.cjs +226 -0
  376. package/node_modules/zod/v4/core/errors.d.cts +208 -0
  377. package/node_modules/zod/v4/core/errors.d.ts +208 -0
  378. package/node_modules/zod/v4/core/errors.js +195 -0
  379. package/node_modules/zod/v4/core/function.cjs +102 -0
  380. package/node_modules/zod/v4/core/function.d.cts +52 -0
  381. package/node_modules/zod/v4/core/function.d.ts +52 -0
  382. package/node_modules/zod/v4/core/function.js +75 -0
  383. package/node_modules/zod/v4/core/index.cjs +44 -0
  384. package/node_modules/zod/v4/core/index.d.cts +15 -0
  385. package/node_modules/zod/v4/core/index.d.ts +15 -0
  386. package/node_modules/zod/v4/core/index.js +15 -0
  387. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  388. package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  389. package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  390. package/node_modules/zod/v4/core/json-schema.js +1 -0
  391. package/node_modules/zod/v4/core/parse.cjs +87 -0
  392. package/node_modules/zod/v4/core/parse.d.cts +25 -0
  393. package/node_modules/zod/v4/core/parse.d.ts +25 -0
  394. package/node_modules/zod/v4/core/parse.js +57 -0
  395. package/node_modules/zod/v4/core/regexes.cjs +103 -0
  396. package/node_modules/zod/v4/core/regexes.d.cts +62 -0
  397. package/node_modules/zod/v4/core/regexes.d.ts +62 -0
  398. package/node_modules/zod/v4/core/regexes.js +95 -0
  399. package/node_modules/zod/v4/core/registries.cjs +56 -0
  400. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  401. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  402. package/node_modules/zod/v4/core/registries.js +51 -0
  403. package/node_modules/zod/v4/core/schemas.cjs +1748 -0
  404. package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  405. package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  406. package/node_modules/zod/v4/core/schemas.js +1717 -0
  407. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  408. package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  409. package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  410. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  411. package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  412. package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  413. package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  414. package/node_modules/zod/v4/core/to-json-schema.js +849 -0
  415. package/node_modules/zod/v4/core/util.cjs +539 -0
  416. package/node_modules/zod/v4/core/util.d.cts +183 -0
  417. package/node_modules/zod/v4/core/util.d.ts +183 -0
  418. package/node_modules/zod/v4/core/util.js +493 -0
  419. package/node_modules/zod/v4/core/versions.cjs +8 -0
  420. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  421. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  422. package/node_modules/zod/v4/core/versions.js +5 -0
  423. package/node_modules/zod/v4/index.cjs +22 -0
  424. package/node_modules/zod/v4/index.d.cts +3 -0
  425. package/node_modules/zod/v4/index.d.ts +3 -0
  426. package/node_modules/zod/v4/index.js +3 -0
  427. package/node_modules/zod/v4/locales/ar.cjs +142 -0
  428. package/node_modules/zod/v4/locales/ar.d.cts +4 -0
  429. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  430. package/node_modules/zod/v4/locales/ar.js +116 -0
  431. package/node_modules/zod/v4/locales/az.cjs +141 -0
  432. package/node_modules/zod/v4/locales/az.d.cts +4 -0
  433. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  434. package/node_modules/zod/v4/locales/az.js +115 -0
  435. package/node_modules/zod/v4/locales/be.cjs +190 -0
  436. package/node_modules/zod/v4/locales/be.d.cts +4 -0
  437. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  438. package/node_modules/zod/v4/locales/be.js +164 -0
  439. package/node_modules/zod/v4/locales/ca.cjs +144 -0
  440. package/node_modules/zod/v4/locales/ca.d.cts +4 -0
  441. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  442. package/node_modules/zod/v4/locales/ca.js +118 -0
  443. package/node_modules/zod/v4/locales/cs.cjs +161 -0
  444. package/node_modules/zod/v4/locales/cs.d.cts +4 -0
  445. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  446. package/node_modules/zod/v4/locales/cs.js +135 -0
  447. package/node_modules/zod/v4/locales/de.cjs +142 -0
  448. package/node_modules/zod/v4/locales/de.d.cts +4 -0
  449. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  450. package/node_modules/zod/v4/locales/de.js +116 -0
  451. package/node_modules/zod/v4/locales/en.cjs +145 -0
  452. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  453. package/node_modules/zod/v4/locales/en.d.ts +5 -0
  454. package/node_modules/zod/v4/locales/en.js +117 -0
  455. package/node_modules/zod/v4/locales/eo.cjs +144 -0
  456. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  457. package/node_modules/zod/v4/locales/eo.d.ts +5 -0
  458. package/node_modules/zod/v4/locales/eo.js +116 -0
  459. package/node_modules/zod/v4/locales/es.cjs +143 -0
  460. package/node_modules/zod/v4/locales/es.d.cts +4 -0
  461. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  462. package/node_modules/zod/v4/locales/es.js +117 -0
  463. package/node_modules/zod/v4/locales/fa.cjs +148 -0
  464. package/node_modules/zod/v4/locales/fa.d.cts +4 -0
  465. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  466. package/node_modules/zod/v4/locales/fa.js +122 -0
  467. package/node_modules/zod/v4/locales/fi.cjs +148 -0
  468. package/node_modules/zod/v4/locales/fi.d.cts +4 -0
  469. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  470. package/node_modules/zod/v4/locales/fi.js +122 -0
  471. package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  472. package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  473. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  474. package/node_modules/zod/v4/locales/fr-CA.js +117 -0
  475. package/node_modules/zod/v4/locales/fr.cjs +142 -0
  476. package/node_modules/zod/v4/locales/fr.d.cts +4 -0
  477. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  478. package/node_modules/zod/v4/locales/fr.js +116 -0
  479. package/node_modules/zod/v4/locales/he.cjs +143 -0
  480. package/node_modules/zod/v4/locales/he.d.cts +4 -0
  481. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  482. package/node_modules/zod/v4/locales/he.js +117 -0
  483. package/node_modules/zod/v4/locales/hu.cjs +143 -0
  484. package/node_modules/zod/v4/locales/hu.d.cts +4 -0
  485. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  486. package/node_modules/zod/v4/locales/hu.js +117 -0
  487. package/node_modules/zod/v4/locales/id.cjs +142 -0
  488. package/node_modules/zod/v4/locales/id.d.cts +4 -0
  489. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  490. package/node_modules/zod/v4/locales/id.js +116 -0
  491. package/node_modules/zod/v4/locales/index.cjs +84 -0
  492. package/node_modules/zod/v4/locales/index.d.cts +39 -0
  493. package/node_modules/zod/v4/locales/index.d.ts +39 -0
  494. package/node_modules/zod/v4/locales/index.js +39 -0
  495. package/node_modules/zod/v4/locales/it.cjs +143 -0
  496. package/node_modules/zod/v4/locales/it.d.cts +4 -0
  497. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  498. package/node_modules/zod/v4/locales/it.js +117 -0
  499. package/node_modules/zod/v4/locales/ja.cjs +141 -0
  500. package/node_modules/zod/v4/locales/ja.d.cts +4 -0
  501. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  502. package/node_modules/zod/v4/locales/ja.js +115 -0
  503. package/node_modules/zod/v4/locales/kh.cjs +143 -0
  504. package/node_modules/zod/v4/locales/kh.d.cts +4 -0
  505. package/node_modules/zod/v4/locales/kh.d.ts +4 -0
  506. package/node_modules/zod/v4/locales/kh.js +117 -0
  507. package/node_modules/zod/v4/locales/ko.cjs +147 -0
  508. package/node_modules/zod/v4/locales/ko.d.cts +4 -0
  509. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  510. package/node_modules/zod/v4/locales/ko.js +121 -0
  511. package/node_modules/zod/v4/locales/mk.cjs +144 -0
  512. package/node_modules/zod/v4/locales/mk.d.cts +4 -0
  513. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  514. package/node_modules/zod/v4/locales/mk.js +118 -0
  515. package/node_modules/zod/v4/locales/ms.cjs +142 -0
  516. package/node_modules/zod/v4/locales/ms.d.cts +4 -0
  517. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  518. package/node_modules/zod/v4/locales/ms.js +116 -0
  519. package/node_modules/zod/v4/locales/nl.cjs +143 -0
  520. package/node_modules/zod/v4/locales/nl.d.cts +4 -0
  521. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  522. package/node_modules/zod/v4/locales/nl.js +117 -0
  523. package/node_modules/zod/v4/locales/no.cjs +142 -0
  524. package/node_modules/zod/v4/locales/no.d.cts +4 -0
  525. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  526. package/node_modules/zod/v4/locales/no.js +116 -0
  527. package/node_modules/zod/v4/locales/ota.cjs +143 -0
  528. package/node_modules/zod/v4/locales/ota.d.cts +4 -0
  529. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  530. package/node_modules/zod/v4/locales/ota.js +117 -0
  531. package/node_modules/zod/v4/locales/pl.cjs +143 -0
  532. package/node_modules/zod/v4/locales/pl.d.cts +4 -0
  533. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  534. package/node_modules/zod/v4/locales/pl.js +117 -0
  535. package/node_modules/zod/v4/locales/ps.cjs +148 -0
  536. package/node_modules/zod/v4/locales/ps.d.cts +4 -0
  537. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  538. package/node_modules/zod/v4/locales/ps.js +122 -0
  539. package/node_modules/zod/v4/locales/pt.cjs +142 -0
  540. package/node_modules/zod/v4/locales/pt.d.cts +4 -0
  541. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  542. package/node_modules/zod/v4/locales/pt.js +116 -0
  543. package/node_modules/zod/v4/locales/ru.cjs +190 -0
  544. package/node_modules/zod/v4/locales/ru.d.cts +4 -0
  545. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  546. package/node_modules/zod/v4/locales/ru.js +164 -0
  547. package/node_modules/zod/v4/locales/sl.cjs +143 -0
  548. package/node_modules/zod/v4/locales/sl.d.cts +4 -0
  549. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  550. package/node_modules/zod/v4/locales/sl.js +117 -0
  551. package/node_modules/zod/v4/locales/sv.cjs +144 -0
  552. package/node_modules/zod/v4/locales/sv.d.cts +4 -0
  553. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  554. package/node_modules/zod/v4/locales/sv.js +118 -0
  555. package/node_modules/zod/v4/locales/ta.cjs +143 -0
  556. package/node_modules/zod/v4/locales/ta.d.cts +4 -0
  557. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  558. package/node_modules/zod/v4/locales/ta.js +117 -0
  559. package/node_modules/zod/v4/locales/th.cjs +143 -0
  560. package/node_modules/zod/v4/locales/th.d.cts +4 -0
  561. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  562. package/node_modules/zod/v4/locales/th.js +117 -0
  563. package/node_modules/zod/v4/locales/tr.cjs +143 -0
  564. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  565. package/node_modules/zod/v4/locales/tr.d.ts +5 -0
  566. package/node_modules/zod/v4/locales/tr.js +115 -0
  567. package/node_modules/zod/v4/locales/ua.cjs +143 -0
  568. package/node_modules/zod/v4/locales/ua.d.cts +4 -0
  569. package/node_modules/zod/v4/locales/ua.d.ts +4 -0
  570. package/node_modules/zod/v4/locales/ua.js +117 -0
  571. package/node_modules/zod/v4/locales/ur.cjs +143 -0
  572. package/node_modules/zod/v4/locales/ur.d.cts +4 -0
  573. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  574. package/node_modules/zod/v4/locales/ur.js +117 -0
  575. package/node_modules/zod/v4/locales/vi.cjs +142 -0
  576. package/node_modules/zod/v4/locales/vi.d.cts +4 -0
  577. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  578. package/node_modules/zod/v4/locales/vi.js +116 -0
  579. package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  580. package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  581. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  582. package/node_modules/zod/v4/locales/zh-CN.js +116 -0
  583. package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  584. package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  585. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  586. package/node_modules/zod/v4/locales/zh-TW.js +117 -0
  587. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  588. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  589. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  590. package/node_modules/zod/v4/mini/checks.js +1 -0
  591. package/node_modules/zod/v4/mini/coerce.cjs +47 -0
  592. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  593. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  594. package/node_modules/zod/v4/mini/coerce.js +17 -0
  595. package/node_modules/zod/v4/mini/external.cjs +62 -0
  596. package/node_modules/zod/v4/mini/external.d.cts +11 -0
  597. package/node_modules/zod/v4/mini/external.d.ts +11 -0
  598. package/node_modules/zod/v4/mini/external.js +13 -0
  599. package/node_modules/zod/v4/mini/index.cjs +32 -0
  600. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  601. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  602. package/node_modules/zod/v4/mini/index.js +3 -0
  603. package/node_modules/zod/v4/mini/iso.cjs +60 -0
  604. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  605. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  606. package/node_modules/zod/v4/mini/iso.js +30 -0
  607. package/node_modules/zod/v4/mini/parse.cjs +8 -0
  608. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  609. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  610. package/node_modules/zod/v4/mini/parse.js +1 -0
  611. package/node_modules/zod/v4/mini/schemas.cjs +839 -0
  612. package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  613. package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  614. package/node_modules/zod/v4/mini/schemas.js +732 -0
  615. package/node_modules/zod/{lib/external.js → v4-mini/index.cjs} +6 -7
  616. package/node_modules/zod/v4-mini/index.d.cts +1 -0
  617. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  618. package/node_modules/zod/v4-mini/index.js +1 -0
  619. package/package.json +6 -4
  620. package/node_modules/zod/lib/__tests__/Mocker.d.ts +0 -17
  621. package/node_modules/zod/lib/__tests__/Mocker.js +0 -57
  622. package/node_modules/zod/lib/benchmarks/datetime.d.ts +0 -5
  623. package/node_modules/zod/lib/benchmarks/datetime.js +0 -54
  624. package/node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts +0 -5
  625. package/node_modules/zod/lib/benchmarks/discriminatedUnion.js +0 -79
  626. package/node_modules/zod/lib/benchmarks/index.js +0 -59
  627. package/node_modules/zod/lib/benchmarks/ipv4.d.ts +0 -5
  628. package/node_modules/zod/lib/benchmarks/ipv4.js +0 -54
  629. package/node_modules/zod/lib/benchmarks/object.d.ts +0 -5
  630. package/node_modules/zod/lib/benchmarks/object.js +0 -70
  631. package/node_modules/zod/lib/benchmarks/primitives.d.ts +0 -5
  632. package/node_modules/zod/lib/benchmarks/primitives.js +0 -170
  633. package/node_modules/zod/lib/benchmarks/realworld.d.ts +0 -5
  634. package/node_modules/zod/lib/benchmarks/realworld.js +0 -56
  635. package/node_modules/zod/lib/benchmarks/string.d.ts +0 -5
  636. package/node_modules/zod/lib/benchmarks/string.js +0 -55
  637. package/node_modules/zod/lib/benchmarks/union.d.ts +0 -5
  638. package/node_modules/zod/lib/benchmarks/union.js +0 -79
  639. package/node_modules/zod/lib/external.d.ts +0 -6
  640. package/node_modules/zod/lib/helpers/errorUtil.d.ts +0 -9
  641. package/node_modules/zod/lib/helpers/typeAliases.d.ts +0 -2
  642. package/node_modules/zod/lib/index.d.ts +0 -4
  643. package/node_modules/zod/lib/index.umd.js +0 -4351
  644. /package/node_modules/zod/{lib/helpers/enumUtil.js → v3/helpers/enumUtil.cjs} +0 -0
  645. /package/node_modules/zod/{lib/helpers/enumUtil.d.ts → v3/helpers/enumUtil.d.cts} +0 -0
  646. /package/node_modules/zod/{lib/benchmarks/index.d.ts → v3/helpers/enumUtil.js} +0 -0
  647. /package/node_modules/zod/{lib/helpers/partialUtil.js → v3/helpers/partialUtil.cjs} +0 -0
  648. /package/node_modules/zod/{lib/helpers/typeAliases.js → v3/helpers/typeAliases.cjs} +0 -0
@@ -8,6 +8,10 @@ on:
8
8
  branches:
9
9
  - 'dev'
10
10
 
11
+ permissions:
12
+ contents: read
13
+ packages: read
14
+
11
15
  jobs:
12
16
  npm-clean-install:
13
17
  runs-on: builder
@@ -21,7 +25,7 @@ jobs:
21
25
  - name: Install
22
26
  uses: ./.github/actions/npm_clean_install
23
27
  with:
24
- npm-token: ${{ secrets.CI_CD }}
28
+ npm-token: ${{ github.token }}
25
29
 
26
30
  static-check:
27
31
  needs: [npm-clean-install]
@@ -37,7 +41,7 @@ jobs:
37
41
  - name: Install
38
42
  uses: ./.github/actions/npm_clean_install
39
43
  with:
40
- npm-token: ${{ secrets.CI_CD }}
44
+ npm-token: ${{ github.token }}
41
45
 
42
46
  - name: Commitlint
43
47
  if: ${{ always() }}
@@ -71,7 +75,7 @@ jobs:
71
75
  - name: Install
72
76
  uses: ./.github/actions/npm_clean_install
73
77
  with:
74
- npm-token: ${{ secrets.CI_CD }}
78
+ npm-token: ${{ github.token }}
75
79
 
76
80
  - name: Unit tests
77
81
  shell: bash
@@ -90,7 +94,7 @@ jobs:
90
94
  - name: Install
91
95
  uses: ./.github/actions/npm_clean_install
92
96
  with:
93
- npm-token: ${{ secrets.CI_CD }}
97
+ npm-token: ${{ github.token }}
94
98
 
95
99
  - name: Build
96
100
  run: make build
@@ -108,7 +112,7 @@ jobs:
108
112
  - name: Install
109
113
  uses: ./.github/actions/npm_clean_install
110
114
  with:
111
- npm-token: ${{ secrets.CI_CD }}
115
+ npm-token: ${{ github.token }}
112
116
 
113
117
  - name: E2E test
114
118
  env:
@@ -128,21 +132,24 @@ jobs:
128
132
  needs: [before-build-test, after-build-test]
129
133
  if: github.event_name == 'push'
130
134
  runs-on: builder
135
+ permissions:
136
+ contents: write
137
+ packages: write
131
138
 
132
139
  steps:
133
140
  - name: Check-out
134
141
  uses: actions/checkout@v4
135
142
  with:
136
- fetch-depth: 1
143
+ fetch-depth: 0
137
144
 
138
145
  - name: Install
139
146
  uses: ./.github/actions/npm_clean_install
140
147
  with:
141
- npm-token: ${{ secrets.CI_CD }}
148
+ npm-token: ${{ github.token }}
142
149
 
143
150
  - name: Release
144
151
  shell: bash
145
152
  env:
146
- GH_TOKEN: ${{secrets.CI_CD}}
147
- NPM_TOKEN: ${{secrets.CI_CD}}
153
+ GH_TOKEN: ${{ github.token }}
154
+ NPM_TOKEN: ${{ github.token }}
148
155
  run: make release
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.setWopeeOptionsDefaults = void 0;
6
+ exports.setWopeeOptionsDefaults = setWopeeOptionsDefaults;
7
7
  const cloneDeep_js_1 = __importDefault(require("lodash/cloneDeep.js"));
8
8
  const merge_js_1 = __importDefault(require("lodash/merge.js"));
9
9
  const DEFAULT_SCREENSHOT_VALIDATION_OPTIONS = {
@@ -16,5 +16,4 @@ function setWopeeOptionsDefaults(options) {
16
16
  const screenshotValidationOptions = setScreenshotValidationOptionsDefaults(options === null || options === void 0 ? void 0 : options.screenshotValidation);
17
17
  return { screenshotValidation: screenshotValidationOptions };
18
18
  }
19
- exports.setWopeeOptionsDefaults = setWopeeOptionsDefaults;
20
19
  //# sourceMappingURL=configDefaults.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"configDefaults.js","sourceRoot":"","sources":["../../../../lib/core/ports/configPort/configDefaults.ts"],"names":[],"mappings":";;;;;;AACA,uEAA4C;AAC5C,+DAAoC;AAEpC,MAAM,qCAAqC,GAAyC;IAClF,2BAA2B,EAAE,IAAI;CAClC,CAAC;AAEF,SAAS,sCAAsC,CAAC,OAAqC;IACnF,OAAO,IAAA,kBAAK,EAAC,IAAA,sBAAS,EAAC,qCAAqC,CAAC,EAAE,OAAO,CAAC,CAAC;AAC1E,CAAC;AAED,SAAgB,uBAAuB,CAAC,OAAsB;IAC5D,MAAM,2BAA2B,GAAG,sCAAsC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,CAAC,CAAC;IAC1G,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,CAAC;AAC/D,CAAC;AAHD,0DAGC","sourcesContent":["import { ScreenshotValidationOptions, WopeeOptions } from '../../domain/configuration/config.interface';\nimport cloneDeep from 'lodash/cloneDeep.js';\nimport merge from 'lodash/merge.js';\n\nconst DEFAULT_SCREENSHOT_VALIDATION_OPTIONS: Partial<ScreenshotValidationOptions> = {\n screenshotValidationEnabled: true,\n};\n\nfunction setScreenshotValidationOptionsDefaults(options?: ScreenshotValidationOptions): ScreenshotValidationOptions {\n return merge(cloneDeep(DEFAULT_SCREENSHOT_VALIDATION_OPTIONS), options);\n}\n\nexport function setWopeeOptionsDefaults(options?: WopeeOptions): WopeeOptions {\n const screenshotValidationOptions = setScreenshotValidationOptionsDefaults(options?.screenshotValidation);\n return { screenshotValidation: screenshotValidationOptions };\n}\n"]}
1
+ {"version":3,"file":"configDefaults.js","sourceRoot":"","sources":["../../../../lib/core/ports/configPort/configDefaults.ts"],"names":[],"mappings":";;;;;AAYA,0DAGC;AAdD,uEAA4C;AAC5C,+DAAoC;AAEpC,MAAM,qCAAqC,GAAyC;IAClF,2BAA2B,EAAE,IAAI;CAClC,CAAC;AAEF,SAAS,sCAAsC,CAAC,OAAqC;IACnF,OAAO,IAAA,kBAAK,EAAC,IAAA,sBAAS,EAAC,qCAAqC,CAAC,EAAE,OAAO,CAAC,CAAC;AAC1E,CAAC;AAED,SAAgB,uBAAuB,CAAC,OAAsB;IAC5D,MAAM,2BAA2B,GAAG,sCAAsC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,CAAC,CAAC;IAC1G,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,CAAC;AAC/D,CAAC","sourcesContent":["import { ScreenshotValidationOptions, WopeeOptions } from '../../domain/configuration/config.interface';\nimport cloneDeep from 'lodash/cloneDeep.js';\nimport merge from 'lodash/merge.js';\n\nconst DEFAULT_SCREENSHOT_VALIDATION_OPTIONS: Partial<ScreenshotValidationOptions> = {\n screenshotValidationEnabled: true,\n};\n\nfunction setScreenshotValidationOptionsDefaults(options?: ScreenshotValidationOptions): ScreenshotValidationOptions {\n return merge(cloneDeep(DEFAULT_SCREENSHOT_VALIDATION_OPTIONS), options);\n}\n\nexport function setWopeeOptionsDefaults(options?: WopeeOptions): WopeeOptions {\n const screenshotValidationOptions = setScreenshotValidationOptionsDefaults(options?.screenshotValidation);\n return { screenshotValidation: screenshotValidationOptions };\n}\n"]}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.logVersionMetadata = void 0;
4
4
  const child_process_1 = require("child_process");
5
5
  const logVersionMetadata = () => {
6
- let version = "4.19.0"
7
- let hash = "3254881359949207b8d4e3f74cd24e852aa4ad19"
6
+ let version = "4.21.1"
7
+ let hash = "16b53c1e9f25fbfb5d32bbe16af79989f2f48c1a"
8
8
  if (version === '__LOCAL__') {
9
9
  version = process.env.npm_package_version || '__LOCAL__';
10
10
  }
@@ -0,0 +1,3 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import 'dotenv/config';
3
+ export declare function buildAxiosConfig(url: string, headers: Record<string, string>): AxiosRequestConfig;
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildAxiosConfig = buildAxiosConfig;
4
+ require("dotenv/config");
5
+ const http_proxy_agent_1 = require("http-proxy-agent");
6
+ const https_proxy_agent_1 = require("https-proxy-agent");
7
+ const proxy_from_env_1 = require("proxy-from-env");
8
+ function isIpv4(value) {
9
+ const parts = value.split('.');
10
+ if (parts.length !== 4)
11
+ return false;
12
+ return parts.every((part) => {
13
+ const num = Number(part);
14
+ return Number.isInteger(num) && num >= 0 && num <= 255;
15
+ });
16
+ }
17
+ function ipv4ToInt(value) {
18
+ return value
19
+ .split('.')
20
+ .map((part) => Number(part))
21
+ .reduce((acc, part) => (acc << 8) + part, 0);
22
+ }
23
+ function isCidrMatch(hostname, cidr) {
24
+ const [range, bitsString] = cidr.split('/');
25
+ if (!range || !bitsString)
26
+ return false;
27
+ if (!isIpv4(hostname) || !isIpv4(range))
28
+ return false;
29
+ const bits = Number(bitsString);
30
+ if (!Number.isInteger(bits) || bits < 0 || bits > 32)
31
+ return false;
32
+ const mask = bits === 0 ? 0 : (~0 << (32 - bits)) >>> 0;
33
+ return (ipv4ToInt(hostname) & mask) === (ipv4ToInt(range) & mask);
34
+ }
35
+ function splitHostPort(entry) {
36
+ const lastColon = entry.lastIndexOf(':');
37
+ if (lastColon > -1 && entry.indexOf(':') === lastColon) {
38
+ const host = entry.slice(0, lastColon);
39
+ const port = entry.slice(lastColon + 1);
40
+ if (host && port) {
41
+ return { host, port };
42
+ }
43
+ }
44
+ return { host: entry, port: '' };
45
+ }
46
+ function isNoProxyMatch(url, noProxy) {
47
+ if (!noProxy)
48
+ return false;
49
+ let hostname = '';
50
+ let port = '';
51
+ try {
52
+ const parsed = new URL(url);
53
+ hostname = parsed.hostname.toLowerCase();
54
+ port = parsed.port;
55
+ }
56
+ catch (_a) {
57
+ return false;
58
+ }
59
+ const entries = noProxy
60
+ .split(',')
61
+ .map((entry) => entry.trim())
62
+ .filter(Boolean);
63
+ for (const entry of entries) {
64
+ if (entry === '*')
65
+ return true;
66
+ if (entry.includes('/')) {
67
+ if (isCidrMatch(hostname, entry))
68
+ return true;
69
+ continue;
70
+ }
71
+ const { host, port: entryPort } = splitHostPort(entry.toLowerCase());
72
+ if (entryPort && port && entryPort !== port) {
73
+ continue;
74
+ }
75
+ if (host.startsWith('.')) {
76
+ if (hostname.endsWith(host))
77
+ return true;
78
+ continue;
79
+ }
80
+ if (hostname === host)
81
+ return true;
82
+ if (hostname.endsWith(`.${host}`))
83
+ return true;
84
+ }
85
+ return false;
86
+ }
87
+ function getProxyDecision(url) {
88
+ const noProxy = process.env['NO_PROXY'] || process.env['no_proxy'] || '';
89
+ if (!url) {
90
+ return { proxyUrl: null, noProxy };
91
+ }
92
+ if (isNoProxyMatch(url, noProxy)) {
93
+ return { proxyUrl: null, noProxy };
94
+ }
95
+ try {
96
+ const proxyUrl = (0, proxy_from_env_1.getProxyForUrl)(url);
97
+ return { proxyUrl: proxyUrl || null, noProxy };
98
+ }
99
+ catch (_a) {
100
+ return { proxyUrl: null, noProxy };
101
+ }
102
+ }
103
+ function buildAxiosConfig(url, headers) {
104
+ const config = {
105
+ headers,
106
+ proxy: false,
107
+ };
108
+ const { proxyUrl } = getProxyDecision(url);
109
+ if (!proxyUrl) {
110
+ return config;
111
+ }
112
+ if (url.startsWith('https:')) {
113
+ config.httpsAgent = new https_proxy_agent_1.HttpsProxyAgent(proxyUrl);
114
+ }
115
+ else {
116
+ config.httpAgent = new http_proxy_agent_1.HttpProxyAgent(proxyUrl);
117
+ }
118
+ return config;
119
+ }
120
+ //# sourceMappingURL=axios-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axios-config.js","sourceRoot":"","sources":["../../../../lib/tools/wopee-reporter/helpers/axios-config.ts"],"names":[],"mappings":";;AAgHA,4CAkBC;AAjID,yBAAuB;AACvB,uDAAkD;AAClD,yDAAoD;AACpD,mDAAgD;AAOhD,SAAS,MAAM,CAAC,KAAa;IAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACrC,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE;QAC1B,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QACzB,OAAO,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC;IACzD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,SAAS,CAAC,KAAa;IAC9B,OAAO,KAAK;SACT,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;SAC3B,MAAM,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AC3C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAI,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7B,MAAM,CAAC,UAAU,GAAG,IAAI,mCAAe,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,SAAS,GAAG,IAAI,iCAAc,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import type { AxiosRequestConfig } from 'axios';\nimport 'dotenv/config';\nimport { HttpProxyAgent } from 'http-proxy-agent';\nimport { HttpsProxyAgent } from 'https-proxy-agent';\nimport { getProxyForUrl } from 'proxy-from-env';\n\ntype ProxyDecision = {\n proxyUrl: string | null;\n noProxy: string;\n};\n\nfunction isIpv4(value: string) {\n const parts = value.split('.');\n if (parts.length !== 4) return false;\n return parts.every((part) => {\n const num = Number(part);\n return Number.isInteger(num) && num >= 0 && num <= 255;\n });\n}\n\nfunction ipv4ToInt(value: string) {\n return value\n .split('.')\n .map((part) => Number(part))\n .reduce((acc, part) => (acc << 8) + part, 0);\n}\n\nfunction isCidrMatch(hostname: string, cidr: string) {\n const [range, bitsString] = cidr.split('/');\n if (!range || !bitsString) return false;\n if (!isIpv4(hostname) || !isIpv4(range)) return false;\n\n const bits = Number(bitsString);\n if (!Number.isInteger(bits) || bits < 0 || bits > 32) return false;\n\n const mask = bits === 0 ? 0 : (~0 << (32 - bits)) >>> 0;\n return (ipv4ToInt(hostname) & mask) === (ipv4ToInt(range) & mask);\n}\n\nfunction splitHostPort(entry: string) {\n const lastColon = entry.lastIndexOf(':');\n if (lastColon > -1 && entry.indexOf(':') === lastColon) {\n const host = entry.slice(0, lastColon);\n const port = entry.slice(lastColon + 1);\n if (host && port) {\n return { host, port };\n }\n }\n return { host: entry, port: '' };\n}\n\nfunction isNoProxyMatch(url: string, noProxy: string) {\n if (!noProxy) return false;\n let hostname = '';\n let port = '';\n try {\n const parsed = new URL(url);\n hostname = parsed.hostname.toLowerCase();\n port = parsed.port;\n } catch {\n return false;\n }\n\n const entries = noProxy\n .split(',')\n .map((entry) => entry.trim())\n .filter(Boolean);\n\n for (const entry of entries) {\n if (entry === '*') return true;\n\n if (entry.includes('/')) {\n if (isCidrMatch(hostname, entry)) return true;\n continue;\n }\n\n const { host, port: entryPort } = splitHostPort(entry.toLowerCase());\n if (entryPort && port && entryPort !== port) {\n continue;\n }\n\n if (host.startsWith('.')) {\n if (hostname.endsWith(host)) return true;\n continue;\n }\n\n if (hostname === host) return true;\n if (hostname.endsWith(`.${host}`)) return true;\n }\n\n return false;\n}\n\nfunction getProxyDecision(url: string): ProxyDecision {\n const noProxy = process.env['NO_PROXY'] || process.env['no_proxy'] || '';\n\n if (!url) {\n return { proxyUrl: null, noProxy };\n }\n\n if (isNoProxyMatch(url, noProxy)) {\n return { proxyUrl: null, noProxy };\n }\n\n try {\n const proxyUrl = getProxyForUrl(url);\n return { proxyUrl: proxyUrl || null, noProxy };\n } catch {\n return { proxyUrl: null, noProxy };\n }\n}\n\nexport function buildAxiosConfig(url: string, headers: Record<string, string>): AxiosRequestConfig {\n const config: AxiosRequestConfig = {\n headers,\n proxy: false,\n };\n\n const { proxyUrl } = getProxyDecision(url);\n if (!proxyUrl) {\n return config;\n }\n\n if (url.startsWith('https:')) {\n config.httpsAgent = new HttpsProxyAgent(proxyUrl);\n } else {\n config.httpAgent = new HttpProxyAgent(proxyUrl);\n }\n\n return config;\n}\n"]}
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateTestRunId = void 0;
3
+ exports.generateTestRunId = generateTestRunId;
4
4
  function generateTestRunId() {
5
5
  return `${Date.now()}-${Math.random().toString(36).substring(2, 10)}`;
6
6
  }
7
- exports.generateTestRunId = generateTestRunId;
8
7
  //# sourceMappingURL=generateTestRunId.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generateTestRunId.js","sourceRoot":"","sources":["../../../../lib/tools/wopee-reporter/helpers/generateTestRunId.ts"],"names":[],"mappings":";;;AAAA,SAAgB,iBAAiB;IAC/B,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;AACxE,CAAC;AAFD,8CAEC","sourcesContent":["export function generateTestRunId() {\n return `${Date.now()}-${Math.random().toString(36).substring(2, 10)}`;\n}\n"]}
1
+ {"version":3,"file":"generateTestRunId.js","sourceRoot":"","sources":["../../../../lib/tools/wopee-reporter/helpers/generateTestRunId.ts"],"names":[],"mappings":";;AAAA,8CAEC;AAFD,SAAgB,iBAAiB;IAC/B,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;AACxE,CAAC","sourcesContent":["export function generateTestRunId() {\n return `${Date.now()}-${Math.random().toString(36).substring(2, 10)}`;\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseError = void 0;
3
+ exports.parseError = parseError;
4
4
  const ansiRegex = new RegExp('([\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~])))', 'g');
5
5
  function stripAnsiEscapes(str) {
6
6
  if (!str)
@@ -14,5 +14,4 @@ function parseError(error) {
14
14
  snippet: stripAnsiEscapes(error.snippet),
15
15
  };
16
16
  }
17
- exports.parseError = parseError;
18
17
  //# sourceMappingURL=parseError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseError.js","sourceRoot":"","sources":["../../../../lib/tools/wopee-reporter/helpers/parseError.ts"],"names":[],"mappings":";;;AAEA,MAAM,SAAS,GAAG,IAAI,MAAM,CAC1B,wJAAwJ,EACxJ,GAAG,CACJ,CAAC;AACF,SAAS,gBAAgB,CAAC,GAAuB;IAC/C,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAC;IACrB,OAAO,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AACpC,CAAC;AAED,SAAgB,UAAU,CAAC,KAAgB;IACzC,OAAO;QACL,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC;QACxC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,CAAC;QACpC,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC;KACzC,CAAC;AACJ,CAAC;AAND,gCAMC","sourcesContent":["import type { TestError } from '@playwright/test/reporter';\n\nconst ansiRegex = new RegExp(\n '([\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:[a-zA-Z\\\\d]*(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)|(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~])))',\n 'g',\n);\nfunction stripAnsiEscapes(str: string | undefined): string | undefined {\n if (!str) return str;\n return str.replace(ansiRegex, '');\n}\n\nexport function parseError(error: TestError) {\n return {\n message: stripAnsiEscapes(error.message),\n stack: stripAnsiEscapes(error.stack),\n snippet: stripAnsiEscapes(error.snippet),\n };\n}\n"]}
1
+ {"version":3,"file":"parseError.js","sourceRoot":"","sources":["../../../../lib/tools/wopee-reporter/helpers/parseError.ts"],"names":[],"mappings":";;AAWA,gCAMC;AAfD,MAAM,SAAS,GAAG,IAAI,MAAM,CAC1B,wJAAwJ,EACxJ,GAAG,CACJ,CAAC;AACF,SAAS,gBAAgB,CAAC,GAAuB;IAC/C,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAC;IACrB,OAAO,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AACpC,CAAC;AAED,SAAgB,UAAU,CAAC,KAAgB;IACzC,OAAO;QACL,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC;QACxC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,CAAC;QACpC,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC;KACzC,CAAC;AACJ,CAAC","sourcesContent":["import type { TestError } from '@playwright/test/reporter';\n\nconst ansiRegex = new RegExp(\n '([\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:[a-zA-Z\\\\d]*(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)|(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~])))',\n 'g',\n);\nfunction stripAnsiEscapes(str: string | undefined): string | undefined {\n if (!str) return str;\n return str.replace(ansiRegex, '');\n}\n\nexport function parseError(error: TestError) {\n return {\n message: stripAnsiEscapes(error.message),\n stack: stripAnsiEscapes(error.stack),\n snippet: stripAnsiEscapes(error.snippet),\n };\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseNestedSteps = void 0;
3
+ exports.parseNestedSteps = parseNestedSteps;
4
4
  const parseError_1 = require("./parseError");
5
5
  function parseNestedSteps(steps) {
6
6
  if (!steps || steps.length === 0) {
@@ -18,5 +18,4 @@ function parseNestedSteps(steps) {
18
18
  steps: parseNestedSteps(step.steps),
19
19
  }));
20
20
  }
21
- exports.parseNestedSteps = parseNestedSteps;
22
21
  //# sourceMappingURL=parseNestedSteps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseNestedSteps.js","sourceRoot":"","sources":["../../../../lib/tools/wopee-reporter/helpers/parseNestedSteps.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAa1C,SAAgB,gBAAgB,CAAC,KAA0B;IACzD,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAc,EAAE,KAAa,EAAE,EAAE,CAAC,CAAC;QACnD,MAAM,EAAE,KAAK,GAAG,CAAC;QACjB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;QACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAA,uBAAU,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK;QACvD,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,KAAK,EAAE,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC;KACpC,CAAC,CAAC,CAAC;AACN,CAAC;AAhBD,4CAgBC","sourcesContent":["import { parseError } from './parseError';\nimport { TestResult, TestStep } from '@playwright/test/reporter';\n\ntype NestedStepT = {\n number: number;\n title: string;\n status: 'passed' | 'failed';\n error: TestStep['error'];\n category: string;\n location: TestStep['location'];\n steps: NestedStepT[];\n};\n\nexport function parseNestedSteps(steps: TestResult['steps']): NestedStepT[] {\n if (!steps || steps.length === 0) {\n return [];\n }\n\n return steps.map((step: TestStep, index: number) => ({\n number: index + 1,\n title: step.title,\n status: step.error ? 'failed' : 'passed',\n error: step.error ? parseError(step.error) : step.error,\n category: step.category,\n location: step.location,\n duration: step.duration,\n startTime: step.startTime,\n steps: parseNestedSteps(step.steps),\n }));\n}\n"]}
1
+ {"version":3,"file":"parseNestedSteps.js","sourceRoot":"","sources":["../../../../lib/tools/wopee-reporter/helpers/parseNestedSteps.ts"],"names":[],"mappings":";;AAaA,4CAgBC;AA7BD,6CAA0C;AAa1C,SAAgB,gBAAgB,CAAC,KAA0B;IACzD,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAc,EAAE,KAAa,EAAE,EAAE,CAAC,CAAC;QACnD,MAAM,EAAE,KAAK,GAAG,CAAC;QACjB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;QACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAA,uBAAU,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK;QACvD,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,KAAK,EAAE,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC;KACpC,CAAC,CAAC,CAAC;AACN,CAAC","sourcesContent":["import { parseError } from './parseError';\nimport { TestResult, TestStep } from '@playwright/test/reporter';\n\ntype NestedStepT = {\n number: number;\n title: string;\n status: 'passed' | 'failed';\n error: TestStep['error'];\n category: string;\n location: TestStep['location'];\n steps: NestedStepT[];\n};\n\nexport function parseNestedSteps(steps: TestResult['steps']): NestedStepT[] {\n if (!steps || steps.length === 0) {\n return [];\n }\n\n return steps.map((step: TestStep, index: number) => ({\n number: index + 1,\n title: step.title,\n status: step.error ? 'failed' : 'passed',\n error: step.error ? parseError(step.error) : step.error,\n category: step.category,\n location: step.location,\n duration: step.duration,\n startTime: step.startTime,\n steps: parseNestedSteps(step.steps),\n }));\n}\n"]}
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.WopeeReporter = void 0;
16
16
  const helpers_1 = require("./helpers");
17
+ const axios_config_js_1 = require("./helpers/axios-config.js");
17
18
  const wopeeReporter_interface_js_1 = require("./types/wopeeReporter.interface.js");
18
19
  const axios_1 = __importDefault(require("axios"));
19
20
  require("dotenv/config");
@@ -93,21 +94,22 @@ class WopeeReporter {
93
94
  };
94
95
  const variables = wopeeReporter_interface_js_1.ExtendIntegrationScenarioPayloadSchema.parse(extendIntegrationScenarioPayload);
95
96
  const uploadPromise = new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
96
- var _c, _d;
97
+ var _a, _b;
97
98
  try {
98
99
  const apiUrl = WOPEE_API_URL || 'https://api.wopee.io';
99
- const response = yield axios_1.default.post(apiUrl, { query, variables }, {
100
- headers: {
101
- api_key: WOPEE_API_KEY,
102
- },
103
- });
100
+ const headers = {
101
+ api_key: WOPEE_API_KEY,
102
+ };
103
+ const config = (0, axios_config_js_1.buildAxiosConfig)(apiUrl, headers);
104
+ const response = yield axios_1.default.post(apiUrl, { query, variables }, config);
104
105
  resolve(response);
105
106
  }
106
107
  catch (error) {
107
108
  if (axios_1.default.isAxiosError(error)) {
108
- const status = (_c = error.response) === null || _c === void 0 ? void 0 : _c.status;
109
- const errorData = (_d = error.response) === null || _d === void 0 ? void 0 : _d.data;
110
- console.error('[WOPEE_REPORTER_ERROR]', errorData);
109
+ const status = (_a = error.response) === null || _a === void 0 ? void 0 : _a.status;
110
+ const errorData = (_b = error.response) === null || _b === void 0 ? void 0 : _b.data;
111
+ const errorMessage = error.message;
112
+ console.error('[WOPEE_REPORTER_ERROR]', errorMessage, errorData);
111
113
  reject(new Error(`API request failed with status code: ${status}.`));
112
114
  }
113
115
  reject(new Error(`[WOPEE_REPORTER_ERROR] Unexpected error occurred during API call: ${error === null || error === void 0 ? void 0 : error.message}`));
@@ -1 +1 @@
1
- {"version":3,"file":"wopeeReporter.js","sourceRoot":"","sources":["../../../lib/tools/wopee-reporter/wopeeReporter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAAsF;AACtF,mFAG4C;AAE5C,kDAA0B;AAC1B,yBAAuB;AACvB,sDAAyB;AAEzB,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;AAEzE,MAAa,aAAa;IAGxB;QACE,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,SAAS,CAAC,IAAc,EAAE,MAAkB;;QAC1C,MAAM,SAAS,GAAG,IAAA,2BAAiB,GAAE,CAAC;QAEtC,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAM,CAAC,WAAW;aACzC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,MAAK,qBAAqB,CAAC,0CAC7C,IAAI,0CAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE5B,MAAM,UAAU,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAE1E,MAAM,YAAY,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QACvF,MAAM,YAAY,GAAG,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAElE,IAAI,gBAAgB,GAA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pC,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;gBACzD,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;gBACxD,CAAC;wBAAS,CAAC;oBACT,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;gBACxB,CAAC;YACH,CAAC;QACH,CAAC;KAAA;IAED,aAAa;QACX,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AArID,sCAqIC","sourcesContent":["import { generateTestRunId, parseError, parseNestedSteps, replacer } from './helpers';\nimport {\n ExtendIntegrationScenarioPayload,\n ExtendIntegrationScenarioPayloadSchema,\n} from './types/wopeeReporter.interface.js';\nimport type { Reporter, TestCase, TestResult } from '@playwright/test/reporter';\nimport axios from 'axios';\nimport 'dotenv/config';\nimport fs from 'node:fs';\n\nconst { WOPEE_API_KEY, WOPEE_API_URL, WOPEE_PROJECT_UUID } = process.env;\n\nexport class WopeeReporter implements Reporter {\n private uploadQueue: Promise<any>[];\n\n constructor() {\n this.uploadQueue = [];\n }\n\n onTestEnd(test: TestCase, result: TestResult) {\n const testRunId = generateTestRunId();\n\n const wopeeScenarioUuid = result.attachments\n .find((a) => a?.name === 'wopee-scenario-uuid')\n ?.body?.toString('utf-8');\n\n const failedStep = [...result.steps].reverse().find((step) => step.error);\n\n const createStepId = (step: any) => `${step.title}-${step.category}-${step.startTime}`;\n const failedStepId = failedStep ? createStepId(failedStep) : null;\n\n let screenshotBase64: string | null = null;\n let videoBase64: string | null = null;\n\n for (const attachment of result.attachments) {\n if (attachment.name === 'screenshot' && attachment.contentType === 'image/png') {\n const filePath = attachment.path;\n if (filePath) {\n try {\n const imageBuffer = fs.readFileSync(filePath);\n screenshotBase64 = imageBuffer.toString('base64');\n } catch (error) {\n console.error('Error reading screenshot:', error);\n }\n }\n }\n\n if (\n attachment.name === 'video' &&\n (attachment.contentType === 'video/webm' ||\n attachment.contentType === 'video/mp4' ||\n attachment.contentType === 'video/avi')\n ) {\n const filePath = attachment.path;\n if (filePath) {\n try {\n const videoBuffer = fs.readFileSync(filePath);\n videoBase64 = videoBuffer.toString('base64');\n } catch (error) {\n console.error('Error reading video:', error);\n }\n }\n }\n }\n\n if (!wopeeScenarioUuid) {\n return console.error(\n '[WOPEE_REPORTER_ERROR]: Scenario UUID is required, please propagate \"testInfo\" as second argument in \"test.beforeEach\" hook and pass it to \"wopee.startScenario(\"scenarioTitle\", testInfo)\" method as second argument if you want to use features of Wopee reporter',\n );\n }\n\n const steps = result.steps.map((step, index) => ({\n testRunId,\n number: index + 1,\n testTitle: test.title,\n title: step.title,\n status: step.error ? 'failed' : 'passed',\n error: step.error ? parseError(step.error) : step.error,\n category: step.category,\n location: step.location,\n duration: step.duration,\n startTime: step.startTime,\n steps: parseNestedSteps(step.steps),\n screenshotBase64: createStepId(step) === failedStepId ? screenshotBase64 : null,\n videoBase64: createStepId(step) === failedStepId ? videoBase64 : null,\n }));\n\n const query = `\n mutation ExtendIntegrationScenario($input: ExtendIntegrationScenarioInput!) {\n extendIntegrationScenario(input: $input)\n }`;\n\n const extendIntegrationScenarioPayload: ExtendIntegrationScenarioPayload = {\n input: {\n projectUuid: WOPEE_PROJECT_UUID,\n scenarioUuid: wopeeScenarioUuid,\n pwSteps: JSON.stringify(steps, replacer),\n },\n };\n const variables = ExtendIntegrationScenarioPayloadSchema.parse(extendIntegrationScenarioPayload);\n\n const uploadPromise = new Promise(async (resolve, reject) => {\n try {\n const apiUrl = WOPEE_API_URL || 'https://api.wopee.io';\n const response = await axios.post(\n apiUrl,\n { query, variables },\n {\n headers: {\n api_key: WOPEE_API_KEY,\n },\n },\n );\n resolve(response);\n } catch (error) {\n if (axios.isAxiosError(error)) {\n const status = error.response?.status;\n const errorData = error.response?.data;\n console.error('[WOPEE_REPORTER_ERROR]', errorData);\n reject(new Error(`API request failed with status code: ${status}.`));\n }\n reject(new Error(`[WOPEE_REPORTER_ERROR] Unexpected error occurred during API call: ${error?.message}`));\n }\n });\n\n this.uploadQueue.push(uploadPromise);\n }\n\n async onExit(): Promise<void> {\n if (this.uploadQueue.length > 0) {\n console.log(`Uploading ${this.uploadQueue.length} remaining test results...`);\n try {\n await Promise.all(this.uploadQueue);\n console.log('Successfully uploaded all test results.');\n } catch (error) {\n console.error('Error uploading test results:', error);\n } finally {\n this.uploadQueue = [];\n }\n }\n }\n\n printsToStdio(): boolean {\n return false;\n }\n}\n"]}
1
+ {"version":3,"file":"wopeeReporter.js","sourceRoot":"","sources":["../../../lib/tools/wopee-reporter/wopeeReporter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAAsF;AACtF,+DAA6D;AAC7D,mFAG4C;AAE5C,kDAA0B;AAC1B,yBAAuB;AACvB,sDAAyB;AAEzB,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;AAEzE,MAAa,aAAa;IAGxB;QACE,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,SAAS,CAAC,IAAc,EAAE,MAAkB;;QAC1C,MAAM,SAAS,GAAG,IAAA,2BAAiB,GAAE,CAAC;QAEtC,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAM,CAAC,WAAW;aACzC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,MAAK,qBAAqB,CAAC,0CAC7C,IAAI,0CAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE5B,MAAM,UAAU,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAE1E,MAAM,YAAY,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,QAAQ,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AC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACvC,CAAC;IAEK,MAAM;;YACV,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChC,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,CAAC,WAAW,CAAC,MAAM,4BAA4B,CAAC,CAAC;gBAC9E,IAAI,CAAC;oBACH,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;oBACpC,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;gBACzD,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;gBACxD,CAAC;wBAAS,CAAC;oBACT,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;gBACxB,CAAC;YACH,CAAC;QACH,CAAC;KAAA;IAED,aAAa;QACX,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAlID,sCAkIC","sourcesContent":["import { generateTestRunId, parseError, parseNestedSteps, replacer } from './helpers';\nimport { buildAxiosConfig } from './helpers/axios-config.js';\nimport {\n ExtendIntegrationScenarioPayload,\n ExtendIntegrationScenarioPayloadSchema,\n} from './types/wopeeReporter.interface.js';\nimport type { Reporter, TestCase, TestResult } from '@playwright/test/reporter';\nimport axios from 'axios';\nimport 'dotenv/config';\nimport fs from 'node:fs';\n\nconst { WOPEE_API_KEY, WOPEE_API_URL, WOPEE_PROJECT_UUID } = process.env;\n\nexport class WopeeReporter implements Reporter {\n private uploadQueue: Promise<any>[];\n\n constructor() {\n this.uploadQueue = [];\n }\n\n onTestEnd(test: TestCase, result: TestResult) {\n const testRunId = generateTestRunId();\n\n const wopeeScenarioUuid = result.attachments\n .find((a) => a?.name === 'wopee-scenario-uuid')\n ?.body?.toString('utf-8');\n\n const failedStep = [...result.steps].reverse().find((step) => step.error);\n\n const createStepId = (step: any) => `${step.title}-${step.category}-${step.startTime}`;\n const failedStepId = failedStep ? createStepId(failedStep) : null;\n\n let screenshotBase64: string | null = null;\n let videoBase64: string | null = null;\n\n for (const attachment of result.attachments) {\n if (attachment.name === 'screenshot' && attachment.contentType === 'image/png') {\n const filePath = attachment.path;\n if (filePath) {\n try {\n const imageBuffer = fs.readFileSync(filePath);\n screenshotBase64 = imageBuffer.toString('base64');\n } catch (error) {\n console.error('Error reading screenshot:', error);\n }\n }\n }\n\n if (\n attachment.name === 'video' &&\n (attachment.contentType === 'video/webm' ||\n attachment.contentType === 'video/mp4' ||\n attachment.contentType === 'video/avi')\n ) {\n const filePath = attachment.path;\n if (filePath) {\n try {\n const videoBuffer = fs.readFileSync(filePath);\n videoBase64 = videoBuffer.toString('base64');\n } catch (error) {\n console.error('Error reading video:', error);\n }\n }\n }\n }\n\n if (!wopeeScenarioUuid) {\n return console.error(\n '[WOPEE_REPORTER_ERROR]: Scenario UUID is required, please propagate \"testInfo\" as second argument in \"test.beforeEach\" hook and pass it to \"wopee.startScenario(\"scenarioTitle\", testInfo)\" method as second argument if you want to use features of Wopee reporter',\n );\n }\n\n const steps = result.steps.map((step, index) => ({\n testRunId,\n number: index + 1,\n testTitle: test.title,\n title: step.title,\n status: step.error ? 'failed' : 'passed',\n error: step.error ? parseError(step.error) : step.error,\n category: step.category,\n location: step.location,\n duration: step.duration,\n startTime: step.startTime,\n steps: parseNestedSteps(step.steps),\n screenshotBase64: createStepId(step) === failedStepId ? screenshotBase64 : null,\n videoBase64: createStepId(step) === failedStepId ? videoBase64 : null,\n }));\n\n const query = `\n mutation ExtendIntegrationScenario($input: ExtendIntegrationScenarioInput!) {\n extendIntegrationScenario(input: $input)\n }`;\n\n const extendIntegrationScenarioPayload: ExtendIntegrationScenarioPayload = {\n input: {\n projectUuid: WOPEE_PROJECT_UUID,\n scenarioUuid: wopeeScenarioUuid,\n pwSteps: JSON.stringify(steps, replacer),\n },\n };\n const variables = ExtendIntegrationScenarioPayloadSchema.parse(extendIntegrationScenarioPayload);\n\n const uploadPromise = new Promise(async (resolve, reject) => {\n try {\n const apiUrl = WOPEE_API_URL || 'https://api.wopee.io';\n const headers = {\n api_key: WOPEE_API_KEY,\n };\n const config = buildAxiosConfig(apiUrl, headers);\n const response = await axios.post(apiUrl, { query, variables }, config);\n resolve(response);\n } catch (error) {\n if (axios.isAxiosError(error)) {\n const status = error.response?.status;\n const errorData = error.response?.data;\n const errorMessage = error.message;\n console.error('[WOPEE_REPORTER_ERROR]', errorMessage, errorData);\n reject(new Error(`API request failed with status code: ${status}.`));\n }\n reject(new Error(`[WOPEE_REPORTER_ERROR] Unexpected error occurred during API call: ${error?.message}`));\n }\n });\n\n this.uploadQueue.push(uploadPromise);\n }\n\n async onExit(): Promise<void> {\n if (this.uploadQueue.length > 0) {\n console.log(`Uploading ${this.uploadQueue.length} remaining test results...`);\n try {\n await Promise.all(this.uploadQueue);\n console.log('Successfully uploaded all test results.');\n } catch (error) {\n console.error('Error uploading test results:', error);\n } finally {\n this.uploadQueue = [];\n }\n }\n }\n\n printsToStdio(): boolean {\n return false;\n }\n}\n"]}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ApolloAdapter = void 0;
7
7
  const core_1 = require("../../../core");
8
8
  const shared_1 = require("../../../shared");
9
+ const axios_config_1 = require("./axios-config");
9
10
  const factories_1 = require("./factories");
10
11
  const interface_1 = require("./interface");
11
12
  const mutations_1 = require("./mutations");
@@ -22,14 +23,15 @@ class ApolloAdapter extends core_1.ApiPort {
22
23
  }
23
24
  async _post(query, variables) {
24
25
  try {
25
- return await axios_1.default.post(this._config.apiUrl, { query, variables }, {
26
- headers: { api_key: this._config.apiKey },
27
- });
26
+ const headers = { api_key: this._config.apiKey };
27
+ const config = (0, axios_config_1.buildAxiosConfig)(this._config.apiUrl, headers);
28
+ return await axios_1.default.post(this._config.apiUrl, { query, variables }, config);
28
29
  }
29
30
  catch (error) {
30
31
  if (axios_1.default.isAxiosError(error)) {
31
32
  const status = error.response?.status;
32
- throw new shared_1.WopeeError(`API request failed with status code: ${status}.`);
33
+ const errorMessage = error.message;
34
+ throw new shared_1.WopeeError(`API request failed with status code: ${status}. ${errorMessage}`);
33
35
  }
34
36
  throw new Error('Unexpected error occurred during API call.');
35
37
  }
@@ -0,0 +1,4 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import 'dotenv/config';
3
+ export declare function buildAxiosConfig(url: string, headers: Record<string, string>): AxiosRequestConfig;
4
+ //# sourceMappingURL=axios-config.d.ts.map
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildAxiosConfig = buildAxiosConfig;
4
+ require("dotenv/config");
5
+ const http_proxy_agent_1 = require("http-proxy-agent");
6
+ const https_proxy_agent_1 = require("https-proxy-agent");
7
+ const proxy_from_env_1 = require("proxy-from-env");
8
+ function isIpv4(value) {
9
+ const parts = value.split('.');
10
+ if (parts.length !== 4)
11
+ return false;
12
+ return parts.every((part) => {
13
+ const num = Number(part);
14
+ return Number.isInteger(num) && num >= 0 && num <= 255;
15
+ });
16
+ }
17
+ function ipv4ToInt(value) {
18
+ return value
19
+ .split('.')
20
+ .map((part) => Number(part))
21
+ .reduce((acc, part) => (acc << 8) + part, 0);
22
+ }
23
+ function isCidrMatch(hostname, cidr) {
24
+ const [range, bitsString] = cidr.split('/');
25
+ if (!range || !bitsString)
26
+ return false;
27
+ if (!isIpv4(hostname) || !isIpv4(range))
28
+ return false;
29
+ const bits = Number(bitsString);
30
+ if (!Number.isInteger(bits) || bits < 0 || bits > 32)
31
+ return false;
32
+ const mask = bits === 0 ? 0 : (~0 << (32 - bits)) >>> 0;
33
+ return (ipv4ToInt(hostname) & mask) === (ipv4ToInt(range) & mask);
34
+ }
35
+ function splitHostPort(entry) {
36
+ const lastColon = entry.lastIndexOf(':');
37
+ if (lastColon > -1 && entry.indexOf(':') === lastColon) {
38
+ const host = entry.slice(0, lastColon);
39
+ const port = entry.slice(lastColon + 1);
40
+ if (host && port) {
41
+ return { host, port };
42
+ }
43
+ }
44
+ return { host: entry, port: '' };
45
+ }
46
+ function isNoProxyMatch(url, noProxy) {
47
+ if (!noProxy)
48
+ return false;
49
+ let hostname = '';
50
+ let port = '';
51
+ try {
52
+ const parsed = new URL(url);
53
+ hostname = parsed.hostname.toLowerCase();
54
+ port = parsed.port;
55
+ }
56
+ catch {
57
+ return false;
58
+ }
59
+ const entries = noProxy
60
+ .split(',')
61
+ .map((entry) => entry.trim())
62
+ .filter(Boolean);
63
+ for (const entry of entries) {
64
+ if (entry === '*')
65
+ return true;
66
+ if (entry.includes('/')) {
67
+ if (isCidrMatch(hostname, entry))
68
+ return true;
69
+ continue;
70
+ }
71
+ const { host, port: entryPort } = splitHostPort(entry.toLowerCase());
72
+ if (entryPort && port && entryPort !== port) {
73
+ continue;
74
+ }
75
+ if (host.startsWith('.')) {
76
+ if (hostname.endsWith(host))
77
+ return true;
78
+ continue;
79
+ }
80
+ if (hostname === host)
81
+ return true;
82
+ if (hostname.endsWith(`.${host}`))
83
+ return true;
84
+ }
85
+ return false;
86
+ }
87
+ function getProxyDecision(url) {
88
+ const noProxy = process.env['NO_PROXY'] || process.env['no_proxy'] || '';
89
+ if (!url) {
90
+ return { proxyUrl: null, noProxy };
91
+ }
92
+ if (isNoProxyMatch(url, noProxy)) {
93
+ return { proxyUrl: null, noProxy };
94
+ }
95
+ try {
96
+ const proxyUrl = (0, proxy_from_env_1.getProxyForUrl)(url);
97
+ return { proxyUrl: proxyUrl || null, noProxy };
98
+ }
99
+ catch {
100
+ return { proxyUrl: null, noProxy };
101
+ }
102
+ }
103
+ function buildAxiosConfig(url, headers) {
104
+ const config = {
105
+ headers,
106
+ proxy: false,
107
+ };
108
+ const { proxyUrl } = getProxyDecision(url);
109
+ if (!proxyUrl) {
110
+ return config;
111
+ }
112
+ if (url.startsWith('https:')) {
113
+ config.httpsAgent = new https_proxy_agent_1.HttpsProxyAgent(proxyUrl);
114
+ }
115
+ else {
116
+ config.httpAgent = new http_proxy_agent_1.HttpProxyAgent(proxyUrl);
117
+ }
118
+ return config;
119
+ }
120
+ //# sourceMappingURL=axios-config.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hash = exports.version = void 0;
4
- exports.version = "3.6.0"
5
- exports.hash = "491c8181f954b65844e6a38969c64cc45e8f5b22"
4
+ exports.version = "3.7.0"
5
+ exports.hash = "86bfd81f90dfa6241022fd2af81849de9d2c2da0"
6
6
  //# sourceMappingURL=versionMetadata.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autonomous-testing/sdk",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "scripts": {
5
5
  "build:win": "rm -rf ./build/ && npx tsc && node utils/addVersionToBuild.mjs"
6
6
  },
@@ -20,6 +20,7 @@
20
20
  "dependencies": {
21
21
  "axios": "0.30.0",
22
22
  "process": "^0.11.10",
23
+ "proxy-from-env": "^1.1.0",
23
24
  "zod": "^3.23.0"
24
25
  },
25
26
  "devDependencies": {
@@ -34,6 +35,7 @@
34
35
  "@types/jest": "^29.5.12",
35
36
  "@types/lodash": "^4.17.0",
36
37
  "@types/node": "^20.12.7",
38
+ "@types/proxy-from-env": "^1.0.4",
37
39
  "@typescript-eslint/eslint-plugin": "^7.6.0",
38
40
  "canvas": "^2.11.2",
39
41
  "copyfiles": "^2.4.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "follow-redirects",
3
- "version": "1.15.9",
3
+ "version": "1.15.11",
4
4
  "description": "HTTP and HTTPS modules that follow redirects.",
5
5
  "license": "MIT",
6
6
  "main": "index.js",