@serenity-js/serenity-bdd 3.0.0-rc.9 → 3.0.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 (300) hide show
  1. package/CHANGELOG.md +96 -1358
  2. package/README.md +101 -43
  3. package/lib/cli/Argv.d.ts +1 -0
  4. package/lib/cli/Argv.d.ts.map +1 -0
  5. package/lib/cli/Printer.d.ts +1 -0
  6. package/lib/cli/Printer.d.ts.map +1 -0
  7. package/lib/cli/bootstrap.d.ts +2 -1
  8. package/lib/cli/bootstrap.d.ts.map +1 -0
  9. package/lib/cli/commands/run.d.ts +1 -0
  10. package/lib/cli/commands/run.d.ts.map +1 -0
  11. package/lib/cli/commands/run.js +38 -12
  12. package/lib/cli/commands/run.js.map +1 -1
  13. package/lib/cli/commands/update.d.ts +1 -0
  14. package/lib/cli/commands/update.d.ts.map +1 -0
  15. package/lib/cli/commands/update.js +14 -11
  16. package/lib/cli/commands/update.js.map +1 -1
  17. package/lib/cli/defaults.d.ts +1 -0
  18. package/lib/cli/defaults.d.ts.map +1 -0
  19. package/lib/cli/defaults.js +1 -1
  20. package/lib/cli/index.d.ts +1 -0
  21. package/lib/cli/index.d.ts.map +1 -0
  22. package/lib/cli/io/axiosClient.d.ts +2 -1
  23. package/lib/cli/io/axiosClient.d.ts.map +1 -0
  24. package/lib/cli/io/axiosClient.js +30 -5
  25. package/lib/cli/io/axiosClient.js.map +1 -1
  26. package/lib/cli/io/formatError.d.ts +1 -0
  27. package/lib/cli/io/formatError.d.ts.map +1 -0
  28. package/lib/cli/io/formatError.js +3 -1
  29. package/lib/cli/io/formatError.js.map +1 -1
  30. package/lib/cli/io/index.d.ts +1 -0
  31. package/lib/cli/io/index.d.ts.map +1 -0
  32. package/lib/cli/io/index.js +5 -1
  33. package/lib/cli/io/index.js.map +1 -1
  34. package/lib/cli/model/Complaint.d.ts +1 -0
  35. package/lib/cli/model/Complaint.d.ts.map +1 -0
  36. package/lib/cli/model/Credentials.d.ts +1 -0
  37. package/lib/cli/model/Credentials.d.ts.map +1 -0
  38. package/lib/cli/model/Credentials.js +5 -5
  39. package/lib/cli/model/Credentials.js.map +1 -1
  40. package/lib/cli/model/DownloadProgressReport.d.ts +1 -0
  41. package/lib/cli/model/DownloadProgressReport.d.ts.map +1 -0
  42. package/lib/cli/model/ExecutionError.d.ts +1 -2
  43. package/lib/cli/model/ExecutionError.d.ts.map +1 -0
  44. package/lib/cli/model/ExecutionError.js +0 -2
  45. package/lib/cli/model/ExecutionError.js.map +1 -1
  46. package/lib/cli/model/GAV.d.ts +1 -0
  47. package/lib/cli/model/GAV.d.ts.map +1 -0
  48. package/lib/cli/model/GAV.js +9 -9
  49. package/lib/cli/model/GAV.js.map +1 -1
  50. package/lib/cli/model/Notification.d.ts +1 -0
  51. package/lib/cli/model/Notification.d.ts.map +1 -0
  52. package/lib/cli/model/index.d.ts +1 -0
  53. package/lib/cli/model/index.d.ts.map +1 -0
  54. package/lib/cli/model/index.js +5 -1
  55. package/lib/cli/model/index.js.map +1 -1
  56. package/lib/cli/screenplay/abilities/UseFileSystem.d.ts +3 -3
  57. package/lib/cli/screenplay/abilities/UseFileSystem.d.ts.map +1 -0
  58. package/lib/cli/screenplay/abilities/UseFileSystem.js +5 -6
  59. package/lib/cli/screenplay/abilities/UseFileSystem.js.map +1 -1
  60. package/lib/cli/screenplay/abilities/index.d.ts +1 -0
  61. package/lib/cli/screenplay/abilities/index.d.ts.map +1 -0
  62. package/lib/cli/screenplay/abilities/index.js +5 -1
  63. package/lib/cli/screenplay/abilities/index.js.map +1 -1
  64. package/lib/cli/screenplay/index.d.ts +1 -0
  65. package/lib/cli/screenplay/index.d.ts.map +1 -0
  66. package/lib/cli/screenplay/index.js +5 -1
  67. package/lib/cli/screenplay/index.js.map +1 -1
  68. package/lib/cli/screenplay/interactions/CreateDirectory.d.ts +1 -0
  69. package/lib/cli/screenplay/interactions/CreateDirectory.d.ts.map +1 -0
  70. package/lib/cli/screenplay/interactions/Notify.d.ts +1 -0
  71. package/lib/cli/screenplay/interactions/Notify.d.ts.map +1 -0
  72. package/lib/cli/screenplay/interactions/RenameFile.d.ts +1 -0
  73. package/lib/cli/screenplay/interactions/RenameFile.d.ts.map +1 -0
  74. package/lib/cli/screenplay/interactions/Spawn.d.ts +8 -14
  75. package/lib/cli/screenplay/interactions/Spawn.d.ts.map +1 -0
  76. package/lib/cli/screenplay/interactions/Spawn.js +13 -22
  77. package/lib/cli/screenplay/interactions/Spawn.js.map +1 -1
  78. package/lib/cli/screenplay/interactions/StreamResponse.d.ts +7 -13
  79. package/lib/cli/screenplay/interactions/StreamResponse.d.ts.map +1 -0
  80. package/lib/cli/screenplay/interactions/StreamResponse.js +11 -20
  81. package/lib/cli/screenplay/interactions/StreamResponse.js.map +1 -1
  82. package/lib/cli/screenplay/interactions/TerminateFlow.d.ts +1 -0
  83. package/lib/cli/screenplay/interactions/TerminateFlow.d.ts.map +1 -0
  84. package/lib/cli/screenplay/interactions/index.d.ts +1 -0
  85. package/lib/cli/screenplay/interactions/index.d.ts.map +1 -0
  86. package/lib/cli/screenplay/interactions/index.js +5 -1
  87. package/lib/cli/screenplay/interactions/index.js.map +1 -1
  88. package/lib/cli/screenplay/questions/Checksum.d.ts +1 -0
  89. package/lib/cli/screenplay/questions/Checksum.d.ts.map +1 -0
  90. package/lib/cli/screenplay/questions/FileExists.d.ts +1 -0
  91. package/lib/cli/screenplay/questions/FileExists.d.ts.map +1 -0
  92. package/lib/cli/screenplay/questions/JavaExecutable.d.ts +1 -0
  93. package/lib/cli/screenplay/questions/JavaExecutable.d.ts.map +1 -0
  94. package/lib/cli/screenplay/questions/JavaExecutable.js +24 -1
  95. package/lib/cli/screenplay/questions/JavaExecutable.js.map +1 -1
  96. package/lib/cli/screenplay/questions/SerenityBDDArguments.d.ts +1 -0
  97. package/lib/cli/screenplay/questions/SerenityBDDArguments.d.ts.map +1 -0
  98. package/lib/cli/screenplay/questions/SerenityBDDArguments.js +3 -3
  99. package/lib/cli/screenplay/questions/SerenityBDDArguments.js.map +1 -1
  100. package/lib/cli/screenplay/questions/SystemProperties.d.ts +1 -0
  101. package/lib/cli/screenplay/questions/SystemProperties.d.ts.map +1 -0
  102. package/lib/cli/screenplay/questions/index.d.ts +1 -0
  103. package/lib/cli/screenplay/questions/index.d.ts.map +1 -0
  104. package/lib/cli/screenplay/questions/index.js +5 -1
  105. package/lib/cli/screenplay/questions/index.js.map +1 -1
  106. package/lib/cli/screenplay/tasks/DownloadArtifact.d.ts +8 -14
  107. package/lib/cli/screenplay/tasks/DownloadArtifact.d.ts.map +1 -0
  108. package/lib/cli/screenplay/tasks/DownloadArtifact.js +12 -21
  109. package/lib/cli/screenplay/tasks/DownloadArtifact.js.map +1 -1
  110. package/lib/cli/screenplay/tasks/InvokeSerenityBDD.d.ts +8 -14
  111. package/lib/cli/screenplay/tasks/InvokeSerenityBDD.d.ts.map +1 -0
  112. package/lib/cli/screenplay/tasks/InvokeSerenityBDD.js +12 -21
  113. package/lib/cli/screenplay/tasks/InvokeSerenityBDD.js.map +1 -1
  114. package/lib/cli/screenplay/tasks/VerifyChecksum.d.ts +1 -0
  115. package/lib/cli/screenplay/tasks/VerifyChecksum.d.ts.map +1 -0
  116. package/lib/cli/screenplay/tasks/index.d.ts +1 -0
  117. package/lib/cli/screenplay/tasks/index.d.ts.map +1 -0
  118. package/lib/cli/screenplay/tasks/index.js +5 -1
  119. package/lib/cli/screenplay/tasks/index.js.map +1 -1
  120. package/lib/cli/stage/NotificationReporter.d.ts +2 -1
  121. package/lib/cli/stage/NotificationReporter.d.ts.map +1 -0
  122. package/lib/cli/stage/NotificationReporter.js +1 -1
  123. package/lib/cli/stage/ProgressReporter.d.ts +2 -1
  124. package/lib/cli/stage/ProgressReporter.d.ts.map +1 -0
  125. package/lib/cli/stage/ProgressReporter.js +5 -2
  126. package/lib/cli/stage/ProgressReporter.js.map +1 -1
  127. package/lib/cli/stage/RunCommandActors.d.ts +1 -0
  128. package/lib/cli/stage/RunCommandActors.d.ts.map +1 -0
  129. package/lib/cli/stage/UpdateCommandActors.d.ts +1 -0
  130. package/lib/cli/stage/UpdateCommandActors.d.ts.map +1 -0
  131. package/lib/cli/stage/index.d.ts +1 -0
  132. package/lib/cli/stage/index.d.ts.map +1 -0
  133. package/lib/cli/stage/index.js +5 -1
  134. package/lib/cli/stage/index.js.map +1 -1
  135. package/lib/index.d.ts +3 -0
  136. package/lib/index.d.ts.map +1 -0
  137. package/lib/index.js +10 -1
  138. package/lib/index.js.map +1 -1
  139. package/lib/stage/crew/index.d.ts +1 -0
  140. package/lib/stage/crew/index.d.ts.map +1 -0
  141. package/lib/stage/crew/index.js +5 -1
  142. package/lib/stage/crew/index.js.map +1 -1
  143. package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDJsonSchema.d.ts +1 -0
  144. package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDJsonSchema.d.ts.map +1 -0
  145. package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDReporter.d.ts +64 -57
  146. package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDReporter.d.ts.map +1 -0
  147. package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDReporter.js +80 -63
  148. package/lib/stage/crew/serenity-bdd-reporter/SerenityBDDReporter.js.map +1 -1
  149. package/lib/stage/crew/serenity-bdd-reporter/index.d.ts +1 -0
  150. package/lib/stage/crew/serenity-bdd-reporter/index.d.ts.map +1 -0
  151. package/lib/stage/crew/serenity-bdd-reporter/index.js +5 -1
  152. package/lib/stage/crew/serenity-bdd-reporter/index.js.map +1 -1
  153. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessor.d.ts +4 -3
  154. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessor.d.ts.map +1 -0
  155. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessor.js.map +1 -1
  156. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessors.d.ts +3 -2
  157. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessors.d.ts.map +1 -0
  158. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessors.js.map +1 -1
  159. package/lib/stage/crew/serenity-bdd-reporter/processors/LinkedTestStep.d.ts +1 -0
  160. package/lib/stage/crew/serenity-bdd-reporter/processors/LinkedTestStep.d.ts.map +1 -0
  161. package/lib/stage/crew/serenity-bdd-reporter/processors/SerenityBDDReportContext.d.ts +1 -0
  162. package/lib/stage/crew/serenity-bdd-reporter/processors/SerenityBDDReportContext.d.ts.map +1 -0
  163. package/lib/stage/crew/serenity-bdd-reporter/processors/index.d.ts +1 -1
  164. package/lib/stage/crew/serenity-bdd-reporter/processors/index.d.ts.map +1 -0
  165. package/lib/stage/crew/serenity-bdd-reporter/processors/index.js +5 -2
  166. package/lib/stage/crew/serenity-bdd-reporter/processors/index.js.map +1 -1
  167. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/dashify.d.ts +1 -0
  168. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/dashify.d.ts.map +1 -0
  169. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/errorReportFrom.d.ts +1 -0
  170. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/errorReportFrom.d.ts.map +1 -0
  171. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/errorReportFrom.js +7 -4
  172. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/errorReportFrom.js.map +1 -1
  173. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/index.d.ts +1 -0
  174. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/index.d.ts.map +1 -0
  175. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/index.js +5 -1
  176. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/index.js.map +1 -1
  177. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/outcomeReportFrom.d.ts +1 -0
  178. package/lib/stage/crew/serenity-bdd-reporter/processors/mappers/outcomeReportFrom.d.ts.map +1 -0
  179. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/ScenarioParametersDescriptor.d.ts +1 -0
  180. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/ScenarioParametersDescriptor.d.ts.map +1 -0
  181. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceEventQueueProcessor.d.ts +4 -3
  182. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceEventQueueProcessor.d.ts.map +1 -0
  183. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceEventQueueProcessor.js.map +1 -1
  184. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceReportContext.d.ts +1 -0
  185. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceReportContext.d.ts.map +1 -0
  186. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/index.d.ts +1 -0
  187. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/index.d.ts.map +1 -0
  188. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/index.js +5 -1
  189. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/index.js.map +1 -1
  190. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/index.d.ts +1 -0
  191. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/index.d.ts.map +1 -0
  192. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/index.js +5 -1
  193. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/index.js.map +1 -1
  194. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioOutlineOf.d.ts +1 -0
  195. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioOutlineOf.d.ts.map +1 -0
  196. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParameterResult.d.ts +1 -0
  197. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParameterResult.d.ts.map +1 -0
  198. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.d.ts +1 -0
  199. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.d.ts.map +1 -0
  200. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/sceneSequenceOverallResult.d.ts +1 -0
  201. package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/sceneSequenceOverallResult.d.ts.map +1 -0
  202. package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneEventQueueProcessor.d.ts +4 -3
  203. package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneEventQueueProcessor.d.ts.map +1 -0
  204. package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneEventQueueProcessor.js.map +1 -1
  205. package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneReportContext.d.ts +1 -0
  206. package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneReportContext.d.ts.map +1 -0
  207. package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/index.d.ts +1 -0
  208. package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/index.d.ts.map +1 -0
  209. package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/index.js +5 -1
  210. package/lib/stage/crew/serenity-bdd-reporter/processors/single-scene/index.js.map +1 -1
  211. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityFinished.d.ts +3 -1
  212. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityFinished.d.ts.map +1 -0
  213. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityFinished.js +2 -2
  214. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityFinished.js.map +1 -1
  215. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityRelatedArtifact.d.ts +3 -1
  216. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityRelatedArtifact.d.ts.map +1 -0
  217. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityRelatedArtifact.js +3 -10
  218. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityRelatedArtifact.js.map +1 -1
  219. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityStarted.d.ts +3 -1
  220. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityStarted.d.ts.map +1 -0
  221. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/activityStarted.js.map +1 -1
  222. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/archivedActivityRelatedArtifact.d.ts +3 -1
  223. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/archivedActivityRelatedArtifact.d.ts.map +1 -0
  224. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/archivedActivityRelatedArtifact.js.map +1 -1
  225. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.d.ts +1 -0
  226. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.d.ts.map +1 -0
  227. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.d.ts +1 -0
  228. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.d.ts.map +1 -0
  229. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.d.ts +1 -0
  230. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.d.ts.map +1 -0
  231. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedAt.d.ts +2 -1
  232. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedAt.d.ts.map +1 -0
  233. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedAt.js +2 -2
  234. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedAt.js.map +1 -1
  235. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedWith.d.ts +1 -0
  236. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedWith.d.ts.map +1 -0
  237. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionStartedAt.d.ts +2 -1
  238. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/executionStartedAt.d.ts.map +1 -0
  239. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.d.ts +1 -0
  240. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.d.ts.map +1 -0
  241. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/index.d.ts +1 -0
  242. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/index.d.ts.map +1 -0
  243. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/index.js +5 -1
  244. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/index.js.map +1 -1
  245. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/reportIdIncluding.d.ts +1 -0
  246. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/reportIdIncluding.d.ts.map +1 -0
  247. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/scenarioDetailsOf.d.ts +1 -0
  248. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/scenarioDetailsOf.d.ts.map +1 -0
  249. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/scenarioDetailsOf.js +7 -4
  250. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/scenarioDetailsOf.js.map +1 -1
  251. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/tagOf.d.ts +1 -0
  252. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/tagOf.d.ts.map +1 -0
  253. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/tagOf.js +3 -9
  254. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/tagOf.js.map +1 -1
  255. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/testRunnerCalled.d.ts +1 -0
  256. package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/testRunnerCalled.d.ts.map +1 -0
  257. package/lib/stage/index.d.ts +1 -0
  258. package/lib/stage/index.d.ts.map +1 -0
  259. package/lib/stage/index.js +5 -1
  260. package/lib/stage/index.js.map +1 -1
  261. package/package.json +27 -50
  262. package/src/cli/commands/run.ts +23 -21
  263. package/src/cli/commands/update.ts +27 -25
  264. package/src/cli/defaults.ts +1 -1
  265. package/src/cli/io/axiosClient.ts +1 -2
  266. package/src/cli/io/formatError.ts +8 -1
  267. package/src/cli/model/ExecutionError.ts +0 -2
  268. package/src/cli/screenplay/abilities/UseFileSystem.ts +3 -6
  269. package/src/cli/screenplay/interactions/Spawn.ts +12 -22
  270. package/src/cli/screenplay/interactions/StreamResponse.ts +8 -18
  271. package/src/cli/screenplay/tasks/DownloadArtifact.ts +8 -18
  272. package/src/cli/screenplay/tasks/InvokeSerenityBDD.ts +8 -18
  273. package/src/cli/stage/NotificationReporter.ts +1 -1
  274. package/src/cli/stage/ProgressReporter.ts +1 -1
  275. package/src/index.ts +8 -0
  276. package/src/stage/crew/serenity-bdd-reporter/SerenityBDDReporter.ts +103 -75
  277. package/src/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessor.ts +4 -13
  278. package/src/stage/crew/serenity-bdd-reporter/processors/EventQueueProcessors.ts +2 -2
  279. package/src/stage/crew/serenity-bdd-reporter/processors/index.ts +0 -1
  280. package/src/stage/crew/serenity-bdd-reporter/processors/mappers/errorReportFrom.ts +4 -4
  281. package/src/stage/crew/serenity-bdd-reporter/processors/scene-sequence/SceneSequenceEventQueueProcessor.ts +3 -3
  282. package/src/stage/crew/serenity-bdd-reporter/processors/single-scene/SingleSceneEventQueueProcessor.ts +3 -3
  283. package/src/stage/crew/serenity-bdd-reporter/processors/transformations/activityFinished.ts +2 -1
  284. package/src/stage/crew/serenity-bdd-reporter/processors/transformations/activityRelatedArtifact.ts +6 -20
  285. package/src/stage/crew/serenity-bdd-reporter/processors/transformations/activityStarted.ts +2 -1
  286. package/src/stage/crew/serenity-bdd-reporter/processors/transformations/archivedActivityRelatedArtifact.ts +2 -1
  287. package/src/stage/crew/serenity-bdd-reporter/processors/transformations/executionFinishedAt.ts +1 -1
  288. package/src/stage/crew/serenity-bdd-reporter/processors/transformations/executionStartedAt.ts +1 -1
  289. package/src/stage/crew/serenity-bdd-reporter/processors/transformations/scenarioDetailsOf.ts +8 -4
  290. package/src/stage/crew/serenity-bdd-reporter/processors/transformations/tagOf.ts +4 -13
  291. package/tsconfig.build.json +10 -0
  292. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueue.d.ts +0 -24
  293. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueue.js +0 -33
  294. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueue.js.map +0 -1
  295. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueues.d.ts +0 -18
  296. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueues.js +0 -61
  297. package/lib/stage/crew/serenity-bdd-reporter/processors/EventQueues.js.map +0 -1
  298. package/src/stage/crew/serenity-bdd-reporter/processors/EventQueue.ts +0 -40
  299. package/src/stage/crew/serenity-bdd-reporter/processors/EventQueues.ts +0 -74
  300. package/tsconfig.eslint.json +0 -10
package/README.md CHANGED
@@ -1,18 +1,16 @@
1
1
  # Serenity/JS
2
2
 
3
- [Serenity/JS](https://serenity-js.org) is a framework designed to make acceptance and regression testing
4
- of modern full-stack applications faster, more collaborative and easier to scale.
3
+ [![Follow Serenity/JS on LinkedIn](https://img.shields.io/badge/Follow-Serenity%2FJS%20-0077B5?logo=linkedin)](https://www.linkedin.com/company/serenity-js)
4
+ [![Watch Serenity/JS on YouTube](https://img.shields.io/badge/Watch-@serenity--js-E62117?logo=youtube)](https://www.youtube.com/@serenity-js)
5
+ [![Join Serenity/JS Community Chat](https://img.shields.io/badge/Chat-Serenity%2FJS%20Community-FBD30B?logo=matrix)](https://matrix.to/#/#serenity-js:gitter.im)
6
+ [![Support Serenity/JS on GitHub](https://img.shields.io/badge/Support-@serenity--js-703EC8?logo=github)](https://github.com/sponsors/serenity-js)
5
7
 
6
- Visit [serenity-js.org](https://serenity-js.org/) for the [latest tutorials](https://serenity-js.org/handbook/)
7
- and [API docs](https://serenity-js.org/modules/), and follow [@SerenityJS](https://twitter.com/SerenityJS) and [@JanMolak](https://twitter.com/JanMolak) on Twitter for project updates.
8
+ [Serenity/JS](https://serenity-js.org) is an innovative framework designed to make acceptance and regression testing
9
+ of complex software systems faster, more collaborative and easier to scale.
8
10
 
9
- ### Learning Serenity/JS
11
+ To get started, check out the comprehensive [Serenity/JS Handbook](https://serenity-js.org/handbook), [API documentation](https://serenity-js.org/api/core), and [Serenity/JS project templates on GitHub](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates).
10
12
 
11
- To learn more about Serenity/JS, check out the video below, read the [tutorial](https://serenity-js.org/handbook/thinking-in-serenity-js/index.html), review the [examples](https://github.com/serenity-js/serenity-js/tree/master/examples), and create your own test suite with [Serenity/JS template projects](https://github.com/serenity-js).
12
-
13
- If you have any questions, join us on [Serenity/JS Community Chat](https://gitter.im/serenity-js/Lobby).
14
-
15
- [![Full-Stack Acceptance Testing with Serenity/JS and the Screenplay Pattern](https://img.youtube.com/vi/djPMf-n93Rw/0.jpg)](https://www.youtube.com/watch?v=djPMf-n93Rw)
13
+ If you have any questions or just want to say hello, join the [Serenity/JS Community Chat](https://matrix.to/#/#serenity-js:gitter.im).
16
14
 
17
15
  ## Serenity BDD
18
16
 
@@ -34,31 +32,69 @@ npm install --save-dev @serenity-js/{core,serenity-bdd}
34
32
  To allow Serenity/JS to produce Serenity BDD-standard JSON reports, assign the `SerenityBDDReporter` to the `Stage`
35
33
  and configure the `ArtifactArchiver` to store the reports at the location where Serenity BDD expects to find them.
36
34
 
37
- This can be done in your `protractor.conf.js` file if you're using Protractor, or programmatically.
35
+ This can be done:
36
+ - via `playwright.config.ts`, if you're using Serenity/JS with [Playwright Test](https://serenity-js.org/api/playwright-test)
37
+ - via `wdio.conf.ts`, if you're using Serenity/JS with [WebdriverIO](https://serenity-js.org/api/playwright-test)
38
+ - via `protractor.conf.js`, if you're using Serenity/JS with [Protractor](https://serenity-js.org/api/protractor)
39
+ - or programmatically.
38
40
 
39
- #### Programmatic configuration
41
+ #### Usage with Playwright Test
40
42
 
41
- ```typescript
42
- import { ArtifactArchiver, serenity } from '@serenity-js/core';
43
- import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
43
+ Learn more about using [Serenity/JS with Playwright Test](https://serenity-js.org/api/playwright-test).
44
44
 
45
- serenity.configure({
46
- crew: [
47
- ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
48
- new SerenityBDDReporter()
45
+ ```typescript
46
+ // playwright.config.ts
47
+ import type { PlaywrightTestConfig } from '@serenity-js/playwright-test';
48
+
49
+ const config: PlaywrightTestConfig = {
50
+ reporter: [
51
+ [ '@serenity-js/playwright-test', {
52
+ crew: [
53
+ '@serenity-js/serenity-bdd',
54
+ [ '@serenity-js/core:ArtifactArchiver', { outputDirectory: 'target/site/serenity' } ],
55
+ ]
56
+ }]
49
57
  ],
50
- });
58
+
59
+ // Other configuration omitted for brevity
60
+ // For details, see https://playwright.dev/docs/test-configuration
61
+ };
62
+
63
+ export default config;
64
+ ```
65
+
66
+ #### Usage with WebdriverIO
67
+
68
+ Learn more about using [Serenity/JS with WebdriverIO](https://serenity-js.org/api/webdriverio).
69
+
70
+ ```typescript
71
+ // wdio.conf.ts
72
+
73
+ import { WebdriverIOConfig } from '@serenity-js/webdriverio';
74
+
75
+ export const config: WebdriverIOConfig = {
76
+
77
+ framework: '@serenity-js/webdriverio',
78
+
79
+ serenity: {
80
+ crew: [
81
+ '@serenity-js/serenity-bdd',
82
+ [ '@serenity-js/core:ArtifactArchiver', { outputDirectory: 'target/site/serenity' } ],
83
+ ]
84
+ },
85
+
86
+ // Other configuration omitted for brevity
87
+ // For details, see https://webdriver.io/docs/options
88
+ };
51
89
  ```
52
90
 
53
- #### Protractor
91
+ #### Usage with Protractor
92
+
93
+ Learn more about using [Serenity/JS with Protractor](https://serenity-js.org/api/protractor).
54
94
 
55
95
  ```javascript
56
96
  // protractor.conf.js
57
97
 
58
- const
59
- { ArtifactArchiver } = require('@serenity-js/core'),
60
- { SerenityBDDReporter } = require('@serenity-js/serenity-bdd'),
61
-
62
98
  exports.config = {
63
99
 
64
100
  framework: 'custom',
@@ -66,8 +102,8 @@ exports.config = {
66
102
 
67
103
  serenity: {
68
104
  crew: [
69
- ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
70
- new SerenityBDDReporter(),
105
+ '@serenity-js/serenity-bdd',
106
+ [ '@serenity-js/core:ArtifactArchiver', { outputDirectory: 'target/site/serenity' } ],
71
107
  ]
72
108
  },
73
109
 
@@ -75,6 +111,22 @@ exports.config = {
75
111
  }
76
112
  ```
77
113
 
114
+ #### Programmatic configuration
115
+
116
+ Learn more about [configuring Serenity/JS programmatically](https://serenity-js.org/api/core/class/SerenityConfig).
117
+
118
+ ```typescript
119
+ import { ArtifactArchiver, configure } from '@serenity-js/core';
120
+ import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
121
+
122
+ configure({
123
+ crew: [
124
+ ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
125
+ new SerenityBDDReporter()
126
+ ],
127
+ });
128
+ ```
129
+
78
130
  ### Serenity BDD Living Documentation
79
131
 
80
132
  To turn the Serenity BDD-standard JSON reports produced by the `SerenityBDDReporter` into Serenity BDD test reports,
@@ -103,7 +155,7 @@ serenity.project.name=My awesome project
103
155
  ```
104
156
 
105
157
  Please note that the reporting CLI considers only those properties that are related to producing test reports.
106
- Learn more about configuring [`serenity.properties`](https://serenity-bdd.github.io/theserenitybook/latest/serenity-system-properties.html).
158
+ Learn more about configuring [`serenity.properties`](https://serenity-bdd.github.io/docs/reference/serenity-properties).
107
159
 
108
160
  #### Downloading the Serenity BDD reporting CLI
109
161
 
@@ -237,23 +289,29 @@ npx serenity-bdd --help run
237
289
 
238
290
  ### Using NPM scripts
239
291
 
240
- The easiest way to ensure that the Serenity BDD reporting CLI is up to date
241
- and that the Serenity BDD test report is produced after each test run is to
242
- add the following entries to the scripts section of the `package.json` file:
292
+ [Serenity BDD reports](https://serenity-js.org/handbook/reporting/serenity-bdd-reporter) are generated by [Serenity BDD CLI](https://github.com/serenity-bdd/serenity-core/tree/main/serenity-cli),
293
+ a Java program downloaded and managed by the [`@serenity-js/serenity-bdd`](https://serenity-js.org/api/serenity-bdd) module.
294
+
295
+ In general, to produce Serenity BDD reports, your test suite must:
296
+ - download the Serenity BDD CLI, by calling `serenity-bdd update`
297
+ - produce intermediate Serenity BDD `.json` reports, by registering [`SerenityBDDReporter`](https://serenity-js.org/api/serenity-bdd/class/SerenityBDDReporter)
298
+ - invoke the Serenity BDD CLI when you want to produce the report, by calling `serenity-bdd run`
243
299
 
244
- ```json
300
+ The pattern used by all the [Serenity/JS Project Templates](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates) relies
301
+ on using:
302
+ - an NPM [`postinstall`](https://docs.npmjs.com/cli/v9/using-npm/scripts#life-cycle-operation-order) script to download the Serenity BDD CLI
303
+ - [`npm-failsafe`](https://www.npmjs.com/package/npm-failsafe) to run the reporting process even if the test suite itself has failed (which is precisely when you need test reports the most...).
304
+ - [`rimraf`](https://www.npmjs.com/package/rimraf) as a convenience method to remove any test reports left over from the previous run
305
+
306
+ ```json title="package.json"
245
307
  {
246
308
  "scripts": {
247
- "test:update-serenity": "serenity-bdd update",
248
- "test:acceptance": "/* invoke the test runner */",
249
- "test:report": "serenity-bdd run",
250
- "test": "failsafe test:acceptance test:update-serenity test:report",
251
- // ... other scripts
252
- },
253
- // ... other config
309
+ "postinstall": "serenity-bdd update",
310
+ "clean": "rimraf target",
311
+ "test": "failsafe clean test:execute test:report",
312
+ "test:execute": "cucumber-js",
313
+ "test:report": "serenity-bdd run --features ./features ",
314
+ }
254
315
  }
255
316
  ```
256
-
257
- In the above example, the [`npm-failsafe`](https://www.npmjs.com/package/npm-failsafe) module is used to invoke
258
- each of the `test:update-serenity`, `test:acceptance` and `test:report` scripts when `npm test` is executed.
259
- This is to ensure that the Serenity BDD report is produced even when there is a test failure.
317
+ Note that in the above code sample, you should configure `test:execute` to invoke [your test runner of choice](https://serenity-js.org/handbook/test-runners/).
package/lib/cli/Argv.d.ts CHANGED
@@ -4,3 +4,4 @@
4
4
  export interface Argv {
5
5
  [key: string]: string;
6
6
  }
7
+ //# sourceMappingURL=Argv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Argv.d.ts","sourceRoot":"","sources":["../../src/cli/Argv.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,CAAE,GAAG,EAAE,MAAM,GAAI,MAAM,CAAC;CAC3B"}
@@ -9,3 +9,4 @@ export declare class Printer {
9
9
  info(message: string): void;
10
10
  error(message: string): void;
11
11
  }
12
+ //# sourceMappingURL=Printer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Printer.d.ts","sourceRoot":"","sources":["../../src/cli/Printer.ts"],"names":[],"mappings":";AAEA;;GAEG;AACH,qBAAa,OAAO;aAGI,GAAG,EAAE,MAAM,CAAC,cAAc;aAC1B,GAAG,EAAE,MAAM,CAAC,cAAc;gBAD1B,GAAG,EAAE,MAAM,CAAC,cAAc,EAC1B,GAAG,EAAE,MAAM,CAAC,cAAc;IAI9C,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAG/B"}
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @package
8
8
  */
9
- export declare type Interceptor = (error: Error, parsed: {
9
+ export type Interceptor = (error: Error, parsed: {
10
10
  [key: string]: string | number;
11
11
  }, output: string) => void;
12
12
  /**
@@ -20,3 +20,4 @@ export declare type Interceptor = (error: Error, parsed: {
20
20
  * @package
21
21
  */
22
22
  export declare function bootstrap(argv: string[], interceptor?: Interceptor): void;
23
+ //# sourceMappingURL=bootstrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/cli/bootstrap.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;AAE7G;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAYzE"}
@@ -50,3 +50,4 @@ declare const _default: {
50
50
  handler: (argv: Argv) => Promise<void>;
51
51
  };
52
52
  export = _default;
53
+ //# sourceMappingURL=run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/run.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA0DL,IAAI,KAAG,QAAQ,IAAI,CAAC;;AAhD9C,kBAmFE"}
@@ -1,7 +1,30 @@
1
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 (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  const core_1 = require("@serenity-js/core");
3
26
  const io_1 = require("@serenity-js/core/lib/io");
4
- const path = require("path"); // eslint-disable-line unicorn/import-style
27
+ const path = __importStar(require("path")); // eslint-disable-line unicorn/import-style
5
28
  const defaults_1 = require("../defaults");
6
29
  const io_2 = require("../io");
7
30
  const model_1 = require("../model");
@@ -57,7 +80,7 @@ module.exports = {
57
80
  describe: `A Logback log level to pass to the Serenity BDD CLI jar`,
58
81
  },
59
82
  },
60
- handler: (argv) => {
83
+ handler: async (argv) => {
61
84
  const printer = new Printer_1.Printer(process.stdout, process.stderr), artifactGAV = model_1.GAV.fromString(argv.artifact), pathToArtifact = new io_1.Path(argv.cacheDir).join(artifactGAV.toPath()), moduleRoot = path.resolve(__dirname, '../../../');
62
85
  (0, core_1.configure)({
63
86
  actors: new stage_1.RunCommandActors(new io_1.Path(process.cwd())),
@@ -66,18 +89,21 @@ module.exports = {
66
89
  new stage_1.ProgressReporter(printer),
67
90
  ],
68
91
  });
69
- return Promise.resolve()
70
- .then(() => (0, core_1.actorCalled)('Serenity/JS Updater').attemptsTo(screenplay_1.InvokeSerenityBDD.at(pathToArtifact)
71
- .withProperties(screenplay_1.SystemProperties.of({
72
- 'serenity.compress.filenames': `${argv.shortFilenames}`,
73
- 'LOG_LEVEL': argv.log,
74
- 'logback.configurationFile': path.resolve(moduleRoot, './resources/logback.config.xml'),
75
- }))
76
- .withArguments(screenplay_1.SerenityBDDArguments.from(argv))))
77
- .catch(error => {
92
+ const actor = (0, core_1.actorCalled)('Serenity/JS Reporter');
93
+ try {
94
+ await actor.attemptsTo(screenplay_1.InvokeSerenityBDD.at(pathToArtifact)
95
+ .withProperties(screenplay_1.SystemProperties.of({
96
+ 'serenity.compress.filenames': `${argv.shortFilenames}`,
97
+ 'LOG_LEVEL': argv.log,
98
+ 'logback.configurationFile': path.resolve(moduleRoot, './resources/logback.config.xml'),
99
+ }))
100
+ .withArguments(screenplay_1.SerenityBDDArguments.from(argv)));
101
+ await actor.dismiss();
102
+ }
103
+ catch (error) {
78
104
  printer.error((0, io_2.formatError)(error));
79
105
  yargs.exit(1, error.message);
80
- });
106
+ }
81
107
  },
82
108
  };
83
109
  //# sourceMappingURL=run.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/cli/commands/run.ts"],"names":[],"mappings":";AAAA,4CAA2D;AAC3D,iDAAgD;AAChD,6BAA6B,CAAG,2CAA2C;AAG3E,0CAAuC;AACvC,8BAAoC;AACpC,oCAA+B;AAC/B,wCAAqC;AACrC,8CAA0F;AAC1F,oCAAoF;AAEpF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,yDAAyD;AAEzF,iBAAS;IACL,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,0GAA0G;IAChH,OAAO,EAAE;QACL,QAAQ,EAAE;YACN,OAAO,EAAI,mBAAQ,CAAC,QAAQ;YAC5B,QAAQ,EAAE,kEAAkE;SAC/E;QACD,WAAW,EAAE;YACT,OAAO,EAAI,mBAAQ,CAAC,SAAS;YAC7B,QAAQ,EAAE,mFAAmF;SAChG;QACD,QAAQ,EAAE;YACN,OAAO,EAAI,mBAAQ,CAAC,WAAW;YAC/B,QAAQ,EAAE,2EAA2E;SACxF;QACD,QAAQ,EAAE;YACN,OAAO,EAAI,mBAAQ,CAAC,QAAQ;YAC5B,QAAQ,EAAE,oIAAoI;SACjJ;QACD,MAAM,EAAE;YACJ,OAAO,EAAI,mBAAQ,CAAC,SAAS;YAC7B,QAAQ,EAAE,0EAA0E;S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AAC,GAAG,EAAE,CAAC,CAAC;YACrD,IAAI,EAAE;gBACF,IAAI,4BAAoB,CAAC,OAAO,CAAC;gBACjC,IAAI,wBAAgB,CAAC,OAAO,CAAC;aAChC;SACJ,CAAC,CAAC;QAEH,MAAM,KAAK,GAAG,IAAA,kBAAW,EAAC,sBAAsB,CAAC,CAAC;QAElD,IAAI;YACA,MAAM,KAAK,CAAC,UAAU,CAClB,8BAAiB,CAAC,EAAE,CAAC,cAAc,CAAC;iBAC/B,cAAc,CAAC,6BAAgB,CAAC,EAAE,CAAC;gBAChC,6BAA6B,EAAE,GAAI,IAAI,CAAC,cAAe,EAAE;gBACzD,WAAW,EAAE,IAAI,CAAC,GAAG;gBACrB,2BAA2B,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,gCAAgC,CAAC;aAC1F,CAAC,CAAC;iBACF,aAAa,CAAC,iCAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CACtD,CAAC;YACF,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;SACzB;QACD,OAAO,KAAK,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,IAAA,gBAAW,EAAC,KAAK,CAAC,CAAC,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;SAChC;IACL,CAAC;CACJ,CAAC"}
@@ -27,3 +27,4 @@ declare const _default: {
27
27
  handler: (argv: Argv) => Promise<void>;
28
28
  };
29
29
  export = _default;
30
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/update.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;oBAmCL,IAAI,KAAG,QAAQ,IAAI,CAAC;;AAzB9C,kBAkEE"}
@@ -35,26 +35,29 @@ module.exports = {
35
35
  describe: `The GAV identifier of the Serenity BDD CLI artifact to use; You're best off with the default option unless you want to experiment.`,
36
36
  },
37
37
  },
38
- handler: (argv) => {
38
+ handler: async (argv) => {
39
39
  const printer = new Printer_1.Printer(process.stdout, process.stderr), artifactGAV = model_1.GAV.fromString(argv.artifact), pathToArtifact = new io_1.Path(argv.cacheDir).join(artifactGAV.toPath()), repository = new url_1.URL(argv.repository);
40
40
  (0, core_1.configure)({
41
- actors: new stage_1.UpdateCommandActors(new io_1.Path(process.cwd()), () => (0, io_2.axiosClient)(repository, !!argv.ignoreSSL, process.env, model_1.Credentials.fromString(argv.auth))),
41
+ actors: new stage_1.UpdateCommandActors(new io_1.Path(process.cwd()), () => (0, io_2.axiosClient)(repository, Boolean(argv.ignoreSSL), process.env, model_1.Credentials.fromString(argv.auth))),
42
42
  crew: [
43
43
  new stage_1.NotificationReporter(printer),
44
44
  new stage_1.ProgressReporter(printer),
45
45
  ],
46
46
  });
47
- return Promise.resolve()
48
- .then(() => (0, core_1.actorCalled)('Serenity/JS Updater').attemptsTo(core_1.Check.whether(screenplay_1.FileExists.at(pathToArtifact), (0, assertions_1.isTrue)())
49
- .andIfSo(screenplay_1.Notify.that(`Looks like you're good to go! Serenity BDD CLI is already at ${pathToArtifact.value}`))
50
- .otherwise(screenplay_1.DownloadArtifact
51
- .identifiedBy(artifactGAV)
52
- .availableFrom(repository)
53
- .to(pathToArtifact.directory()))))
54
- .catch(error => {
47
+ const actor = (0, core_1.actorCalled)('Serenity/JS Updater');
48
+ try {
49
+ await (0, core_1.actorCalled)('Serenity/JS Updater').attemptsTo(core_1.Check.whether(screenplay_1.FileExists.at(pathToArtifact), (0, assertions_1.isTrue)())
50
+ .andIfSo(screenplay_1.Notify.that(`Looks like you're good to go! Serenity BDD CLI is already at ${pathToArtifact.value}`))
51
+ .otherwise(screenplay_1.DownloadArtifact
52
+ .identifiedBy(artifactGAV)
53
+ .availableFrom(repository)
54
+ .to(pathToArtifact.directory())));
55
+ await actor.dismiss();
56
+ }
57
+ catch (error) {
55
58
  printer.error((0, io_2.formatError)(error));
56
59
  yargs.exit(1, error.message);
57
- });
60
+ }
58
61
  },
59
62
  };
60
63
  //# sourceMappingURL=update.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/cli/commands/update.ts"],"names":[],"mappings":";AAAA,wDAAiD;AACjD,4CAAkE;AAClE,iDAAgD;AAChD,6BAA0B;AAG1B,0CAAuC;AACvC,8BAAiD;AACjD,oCAA4C;AAC5C,wCAAqC;AACrC,8CAAqE;AACrE,oCAAuF;AAEvF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,yDAAyD;AAEzF,iBAAS;IACL,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,sEAAsE;IAC5E,OAAO,EAAE;QACL,QAAQ,EAAE;YACN,OAAO,EAAI,mBAAQ,CAAC,QAAQ;YAC5B,QAAQ,EAAE,yEAAyE;SACtF;QACD,SAAS,EAAE;YACP,OAAO,EAAI,KAAK;YAChB,IAAI,EAAM,SAAS;YACnB,QAAQ,EAAE,yBAAyB;SACtC;QACD,UAAU,EAAE;YACR,OAAO,EAAI,mBAAQ,CAAC,UAAU;YAC9B,QAAQ,EAAE,6EAA6E;SAC1F;QACD,IAAI,EAAE;YACF,QAAQ,EAAE,4EAA4E;SACzF;QACD,QAAQ,EAAE;YACN,OAAO,EAAI,mBAAQ,CAAC,QAAQ;YAC5B,QAAQ,EAAE,oIAAoI;SACjJ;KACJ;IACD,OAAO,EAAE,CAAC,IAAU,EAAiB,EAAE;QAEnC,MACI,OAAO,GAAW,IAAI,iBAAO,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,EAC7D,WAAW,GAAO,WAAG,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAC/C,cAAc,GAAI,IAAI,SAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,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GAAG,EAAE,CAAC,IAAA,gBAAW,EAAC,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,GAAG,EAAE,mBAAW,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CACzG;YACD,IAAI,EAAE;gBACF,IAAI,4BAAoB,CAAC,OAAO,CAAC;gBACjC,IAAI,wBAAgB,CAAC,OAAO,CAAC;aAChC;SACJ,CAAC,CAAC;QAEH,MAAM,KAAK,GAAG,IAAA,kBAAW,EAAC,qBAAqB,CAAC,CAAC;QAEjD,IAAI;YACA,MAAM,IAAA,kBAAW,EAAC,qBAAqB,CAAC,CAAC,UAAU,CAC/C,YAAK,CAAC,OAAO,CAAC,uBAAU,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,IAAA,mBAAM,GAAE,CAAC;iBACjD,OAAO,CACJ,mBAAM,CAAC,IAAI,CAAC,gEAAiE,cAAc,CAAC,KAAM,EAAE,CAAC,CACxG;iBACA,SAAS,CACN,6BAAgB;iBACX,YAAY,CAAC,WAAW,CAAC;iBACzB,aAAa,CAAC,UAAU,CAAC;iBACzB,EAAE,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CACtC,CACR,CAAC;YACF,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;SACzB;QACD,OAAO,KAAK,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,IAAA,gBAAW,EAAC,KAAK,CAAC,CAAC,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;SAChC;IACL,CAAC;CACJ,CAAC"}
@@ -23,3 +23,4 @@ export declare const defaults: {
23
23
  featuresDir: string;
24
24
  log: string;
25
25
  };
26
+ //# sourceMappingURL=defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/cli/defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;CAQpB,CAAC"}
@@ -18,7 +18,7 @@ exports.defaults = void 0;
18
18
  * @public
19
19
  */
20
20
  exports.defaults = {
21
- artifact: 'net.serenity-bdd:serenity-cli:jar:2.6.0',
21
+ artifact: 'net.serenity-bdd:serenity-cli:jar:3.1.0',
22
22
  repository: 'https://repo1.maven.org/maven2/',
23
23
  cacheDir: 'node_modules/@serenity-js/serenity-bdd/cache',
24
24
  sourceDir: 'target/site/serenity',
@@ -1,2 +1,3 @@
1
1
  import { bootstrap } from './bootstrap';
2
2
  export = bootstrap;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,SAAS,SAAS,CAAC"}
@@ -12,8 +12,9 @@ export declare function axiosClient(repository: URL, ignoreSsl: boolean, env: {
12
12
  * @package
13
13
  */
14
14
  export declare function shouldProxy(url: URL, configuredProxy: EnvVar, configuredNoProxy: EnvVar): boolean;
15
- declare type EnvVar = {
15
+ type EnvVar = {
16
16
  name?: string;
17
17
  value?: string;
18
18
  };
19
19
  export {};
20
+ //# sourceMappingURL=axiosClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axiosClient.d.ts","sourceRoot":"","sources":["../../../src/cli/io/axiosClient.ts"],"names":[],"mappings":";AACA,OAAc,EAAE,aAAa,EAAwC,MAAM,OAAO,CAAC;AAGnF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC;;GAEG;AACH,wBAAgB,WAAW,CACvB,UAAU,EAAE,GAAG,EACf,SAAS,EAAE,OAAO,EAClB,GAAG,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EAC9B,cAAc,CAAC,EAAE,WAAW,GAC7B,aAAa,CAmCf;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAuBjG;AAkED,KAAK,MAAM,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -1,11 +1,36 @@
1
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 (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
2
28
  Object.defineProperty(exports, "__esModule", { value: true });
3
29
  exports.shouldProxy = exports.axiosClient = void 0;
4
30
  const core_1 = require("@serenity-js/core");
5
- const axios_1 = require("axios");
6
- const http_1 = require("axios/lib/adapters/http");
7
- const fs = require("fs");
8
- const https = require("https");
31
+ const axios_1 = __importDefault(require("axios"));
32
+ const fs = __importStar(require("fs"));
33
+ const https = __importStar(require("https"));
9
34
  const url_1 = require("url");
10
35
  const HttpsProxyAgent = require('https-proxy-agent'); // eslint-disable-line @typescript-eslint/no-var-requires
11
36
  /**
@@ -20,7 +45,7 @@ function axiosClient(repository, ignoreSsl, env, repositoryAuth) {
20
45
  const rejectUnauthorized = shouldRejectUnauthorizedCertificates(env, ignoreSsl);
21
46
  const options = {
22
47
  baseURL: repository.toString(),
23
- adapter: http_1.httpAdapter,
48
+ adapter: ['http'],
24
49
  auth: repositoryAuth,
25
50
  };
26
51
  if (isHttps(repository.protocol)) {
@@ -1 +1 @@
1
- {"version":3,"file":"axiosClient.js","sourceRoot":"","sources":["../../../src/cli/io/axiosClient.ts"],"names":[],"mappings":";;;AAAA,4CAAuD;AACvD,iCAAmF;AACnF,kDAAsD;AACtD,yBAAyB;AACzB,+BAA+B;AAC/B,6BAA0B;AAI1B,MAAM,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAG,yDAAyD;AAEjH;;GAEG;AACH,SAAgB,WAAW,CACvB,UAAe,EACf,SAAkB,EAClB,GAA8B,EAC9B,cAA4B;IAG5B,MAAM,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;QAChD,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,wBAAwB,EAAE,aAAa,EAAE,aAAa,CAAC;QAC5E,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IAElG,MAAM,iBAAiB,GAAG,aAAa,CAAC,GAAG,EAAE,oBAAoB,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IAE3F,MAAM,YAAY,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAC;IAEjD,MAAM,kBAAkB,GAAG,oCAAoC,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAEhF,MAAM,OAAO,GAAuB;QAChC,OAAO,EAAK,UAAU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;SACzG;KACJ;IAED,OAAO,SAAS,CAAC;AACrB,CAAC;AAID,SAAS,aAAa,CAAC,GAA8B,EAAE,GAAG,kBAA4B;IAClF,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IAE9D,OAAO,KAAK;QACR,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE;QACpC,CAAC,CAAC,EAAE,CAAC;AACb,CAAC;AAED,SAAS,mBAAmB,CAAC,QAAgB;IACzC,OAAO,CAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAE;SAC7C,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC;AACnD,CAAC;AAED,SAAS,OAAO,CAAC,aAAqB;IAClC,OAAO,aAAa;WACb,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC9C,CAAC"}
@@ -3,3 +3,4 @@ import { RuntimeError } from '@serenity-js/core';
3
3
  * @package
4
4
  */
5
5
  export declare function formatError(error: RuntimeError | Error): string;
6
+ //# sourceMappingURL=formatError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatError.d.ts","sourceRoot":"","sources":["../../../src/cli/io/formatError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,GAAG,KAAK,GAAG,MAAM,CAwC/D"}
@@ -6,12 +6,14 @@ const core_1 = require("@serenity-js/core");
6
6
  * @package
7
7
  */
8
8
  function formatError(error) {
9
- const learnMore = `Learn more at https://serenity-js.org/modules/serenity-bdd`;
9
+ const learnMore = `Learn more at https://serenity-js.org/handbook/reporting/serenity-bdd-reporter`;
10
10
  switch (true) {
11
11
  case /ETIMEDOUT/.test(error.message):
12
12
  return lines(`Are you behind a proxy or a firewall that needs to be configured?`, ...messages(error), '', learnMore);
13
13
  case /self signed certificate in certificate chain/.test(error.message):
14
14
  return lines(`If you're using a self-signed certificate please check if it's configured correctly or use the --ignoreSSL option.`, '', learnMore);
15
+ case /"path" argument must be of type string/.test(error.message):
16
+ return lines(`Serenity BDD requires a Java Runtime Environment, please make sure you have Java installed.`, '', learnMore);
15
17
  case error instanceof core_1.RuntimeError:
16
18
  return lines(...messages(error), '', learnMore);
17
19
  default:
@@ -1 +1 @@
1
- {"version":3,"file":"formatError.js","sourceRoot":"","sources":["../../../src/cli/io/formatError.ts"],"names":[],"mappings":";;;AAAA,4CAAiD;AAEjD;;GAEG;AACH,SAAgB,WAAW,CAAC,KAA2B;IAEnD,MAAM,SAAS,GAAG,4DAA4D,CAAC;IAE/E,QAAQ,IAAI,EAAE;QACV,KAAK,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YAChC,OAAO,KAAK,CACR,mEAAmE,EACnE,GAAG,QAAQ,CAAC,KAAK,CAAC,EAClB,EAAE,EACF,SAAS,CACZ,CAAC;QAEN,KAAK,8CAA8C,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YACnE,OAAO,KAAK,CACR,oHAAoH,EACpH,EAAE,EACF,SAAS,CACZ,CAAC;QAEN,KAAK,KAAK,YAAY,mBAAY;YAC9B,OAAO,KAAK,CACR,GAAG,QAAQ,CAAC,KAAK,CAAC,EAClB,EAAE,EACF,SAAS,CACZ,CAAC;QAEN;YACI,OAAO,KAAK,CACR,gEAAgE,EAChE,GAAG,QAAQ,CAAC,KAAK,CAAC,CACrB,CAAC;KACT;AACL,CAAC;AAjCD,kCAiCC;AAED,SAAS,QAAQ,CAAC,KAA2B,EAAE,MAAgB,EAAE;IAC7D,OAAO,KAAK,CAAC,OAAO,IAAK,KAAsB,CAAC,KAAK;QACjD,CAAC,CAAC,QAAQ,CAAE,KAAs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AAS,QAAQ,CAAC,KAA2B,EAAE,MAAgB,EAAE;IAC7D,OAAO,KAAK,CAAC,OAAO,IAAK,KAAsB,CAAC,KAAK;QACjD,CAAC,CAAC,QAAQ,CAAE,KAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACpE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,IAAI,GAAI,KAAM,EAAE,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,KAAK,CAAC,GAAG,OAAiB;IAC/B,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './axiosClient';
2
2
  export * from './formatError';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/io/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/io/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/io/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B"}
@@ -12,3 +12,4 @@ export declare class Complaint extends JSONData {
12
12
  stack?: string;
13
13
  }): Complaint;
14
14
  }
15
+ //# sourceMappingURL=Complaint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Complaint.d.ts","sourceRoot":"","sources":["../../../src/cli/model/Complaint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,QAAQ;IACnC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS;CAK9F"}
@@ -8,3 +8,4 @@ export declare class Credentials extends TinyType {
8
8
  static fromString(value: string): Credentials;
9
9
  constructor(username: string, password: string);
10
10
  }
11
+ //# sourceMappingURL=Credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Credentials.d.ts","sourceRoot":"","sources":["../../../src/cli/model/Credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEzD;;GAEG;AACH,qBAAa,WAAY,SAAQ,QAAQ;aAkBjB,QAAQ,EAAE,MAAM;aAChB,QAAQ,EAAE,MAAM;IAjBpC,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW;gBAgBzB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM;CAIvC"}