checkly 7.15.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (878) hide show
  1. package/LICENSE +201 -0
  2. package/bin/run +5 -3
  3. package/dist/ai-context/checkly.rules.md +15 -8
  4. package/dist/ai-context/context.js +11 -14
  5. package/dist/ai-context/context.js.map +1 -1
  6. package/dist/ai-context/skills-command/references/configure-api-checks.md +11 -6
  7. package/dist/ai-context/skills-command/references/configure-playwright-checks.md +2 -1
  8. package/dist/ai-context/skills-command/references/configure-supporting-constructs.md +1 -0
  9. package/dist/ai-context/skills-command/references/configure.md +1 -1
  10. package/dist/auth/index.js +17 -56
  11. package/dist/auth/index.js.map +1 -1
  12. package/dist/commands/account/members.d.ts +2 -2
  13. package/dist/commands/account/members.js +21 -60
  14. package/dist/commands/account/members.js.map +1 -1
  15. package/dist/commands/account/plan.d.ts +1 -1
  16. package/dist/commands/account/plan.js +16 -52
  17. package/dist/commands/account/plan.js.map +1 -1
  18. package/dist/commands/authCommand.d.ts +3 -3
  19. package/dist/commands/authCommand.js +11 -51
  20. package/dist/commands/authCommand.js.map +1 -1
  21. package/dist/commands/baseCommand.d.ts +2 -2
  22. package/dist/commands/baseCommand.js +15 -19
  23. package/dist/commands/baseCommand.js.map +1 -1
  24. package/dist/commands/checks/get.d.ts +1 -1
  25. package/dist/commands/checks/get.js +62 -101
  26. package/dist/commands/checks/get.js.map +1 -1
  27. package/dist/commands/checks/list.d.ts +1 -1
  28. package/dist/commands/checks/list.js +25 -64
  29. package/dist/commands/checks/list.js.map +1 -1
  30. package/dist/commands/checks/stats.d.ts +1 -1
  31. package/dist/commands/checks/stats.js +24 -60
  32. package/dist/commands/checks/stats.js.map +1 -1
  33. package/dist/commands/debug/parse-file.js +15 -21
  34. package/dist/commands/debug/parse-file.js.map +1 -1
  35. package/dist/commands/debug/parse-playwright-config.js +10 -16
  36. package/dist/commands/debug/parse-playwright-config.js.map +1 -1
  37. package/dist/commands/debug/parse-project.js +23 -29
  38. package/dist/commands/debug/parse-project.js.map +1 -1
  39. package/dist/commands/deploy.d.ts +1 -1
  40. package/dist/commands/deploy.js +49 -88
  41. package/dist/commands/deploy.js.map +1 -1
  42. package/dist/commands/destroy.d.ts +1 -1
  43. package/dist/commands/destroy.js +16 -55
  44. package/dist/commands/destroy.js.map +1 -1
  45. package/dist/commands/env/add.d.ts +1 -1
  46. package/dist/commands/env/add.js +10 -49
  47. package/dist/commands/env/add.js.map +1 -1
  48. package/dist/commands/env/ls.d.ts +1 -1
  49. package/dist/commands/env/ls.js +5 -41
  50. package/dist/commands/env/ls.js.map +1 -1
  51. package/dist/commands/env/pull.d.ts +1 -1
  52. package/dist/commands/env/pull.js +13 -52
  53. package/dist/commands/env/pull.js.map +1 -1
  54. package/dist/commands/env/rm.d.ts +1 -1
  55. package/dist/commands/env/rm.js +7 -43
  56. package/dist/commands/env/rm.js.map +1 -1
  57. package/dist/commands/env/update.d.ts +1 -1
  58. package/dist/commands/env/update.js +10 -49
  59. package/dist/commands/env/update.js.map +1 -1
  60. package/dist/commands/help.d.ts +1 -1
  61. package/dist/commands/help.js +4 -10
  62. package/dist/commands/help.js.map +1 -1
  63. package/dist/commands/import/apply.d.ts +3 -3
  64. package/dist/commands/import/apply.js +28 -69
  65. package/dist/commands/import/apply.js.map +1 -1
  66. package/dist/commands/import/cancel.d.ts +1 -1
  67. package/dist/commands/import/cancel.js +14 -53
  68. package/dist/commands/import/cancel.js.map +1 -1
  69. package/dist/commands/import/commit.d.ts +3 -3
  70. package/dist/commands/import/commit.js +21 -62
  71. package/dist/commands/import/commit.js.map +1 -1
  72. package/dist/commands/import/plan.d.ts +1 -1
  73. package/dist/commands/import/plan.js +107 -147
  74. package/dist/commands/import/plan.js.map +1 -1
  75. package/dist/commands/incidents/create.d.ts +1 -1
  76. package/dist/commands/incidents/create.js +26 -65
  77. package/dist/commands/incidents/create.js.map +1 -1
  78. package/dist/commands/incidents/list.d.ts +1 -1
  79. package/dist/commands/incidents/list.js +19 -58
  80. package/dist/commands/incidents/list.js.map +1 -1
  81. package/dist/commands/incidents/resolve.d.ts +1 -1
  82. package/dist/commands/incidents/resolve.js +18 -57
  83. package/dist/commands/incidents/resolve.js.map +1 -1
  84. package/dist/commands/incidents/update.d.ts +1 -1
  85. package/dist/commands/incidents/update.js +25 -64
  86. package/dist/commands/incidents/update.js.map +1 -1
  87. package/dist/commands/init.d.ts +1 -1
  88. package/dist/commands/init.js +45 -51
  89. package/dist/commands/init.js.map +1 -1
  90. package/dist/commands/login.d.ts +2 -2
  91. package/dist/commands/login.js +25 -66
  92. package/dist/commands/login.js.map +1 -1
  93. package/dist/commands/logout.d.ts +1 -1
  94. package/dist/commands/logout.js +11 -17
  95. package/dist/commands/logout.js.map +1 -1
  96. package/dist/commands/pw-test.d.ts +4 -3
  97. package/dist/commands/pw-test.js +99 -126
  98. package/dist/commands/pw-test.js.map +1 -1
  99. package/dist/commands/rca/get.d.ts +1 -1
  100. package/dist/commands/rca/get.js +11 -47
  101. package/dist/commands/rca/get.js.map +1 -1
  102. package/dist/commands/rca/run.d.ts +4 -2
  103. package/dist/commands/rca/run.js +67 -69
  104. package/dist/commands/rca/run.js.map +1 -1
  105. package/dist/commands/rules.d.ts +1 -1
  106. package/dist/commands/rules.js +18 -55
  107. package/dist/commands/rules.js.map +1 -1
  108. package/dist/commands/runtimes.d.ts +1 -1
  109. package/dist/commands/runtimes.js +3 -39
  110. package/dist/commands/runtimes.js.map +1 -1
  111. package/dist/commands/skills/index.d.ts +1 -1
  112. package/dist/commands/skills/index.js +22 -23
  113. package/dist/commands/skills/index.js.map +1 -1
  114. package/dist/commands/skills/install.d.ts +1 -1
  115. package/dist/commands/skills/install.js +40 -49
  116. package/dist/commands/skills/install.js.map +1 -1
  117. package/dist/commands/status-pages/get.d.ts +1 -1
  118. package/dist/commands/status-pages/get.js +12 -51
  119. package/dist/commands/status-pages/get.js.map +1 -1
  120. package/dist/commands/status-pages/list.d.ts +1 -1
  121. package/dist/commands/status-pages/list.js +16 -52
  122. package/dist/commands/status-pages/list.js.map +1 -1
  123. package/dist/commands/switch.d.ts +1 -1
  124. package/dist/commands/switch.js +15 -54
  125. package/dist/commands/switch.js.map +1 -1
  126. package/dist/commands/sync-playwright.d.ts +1 -1
  127. package/dist/commands/sync-playwright.js +21 -60
  128. package/dist/commands/sync-playwright.js.map +1 -1
  129. package/dist/commands/test.d.ts +3 -2
  130. package/dist/commands/test.js +96 -122
  131. package/dist/commands/test.js.map +1 -1
  132. package/dist/commands/trigger.d.ts +6 -5
  133. package/dist/commands/trigger.js +67 -93
  134. package/dist/commands/trigger.js.map +1 -1
  135. package/dist/commands/validate.d.ts +1 -1
  136. package/dist/commands/validate.js +16 -55
  137. package/dist/commands/validate.js.map +1 -1
  138. package/dist/commands/whoami.d.ts +1 -1
  139. package/dist/commands/whoami.js +3 -39
  140. package/dist/commands/whoami.js.map +1 -1
  141. package/dist/config.d.ts +2 -2
  142. package/dist/config.js +1 -4
  143. package/dist/config.js.map +1 -1
  144. package/dist/constants.js +3 -6
  145. package/dist/constants.js.map +1 -1
  146. package/dist/constructs/agentic-check-codegen.d.ts +2 -2
  147. package/dist/constructs/agentic-check-codegen.js +6 -10
  148. package/dist/constructs/agentic-check-codegen.js.map +1 -1
  149. package/dist/constructs/agentic-check.d.ts +8 -8
  150. package/dist/constructs/agentic-check.js +10 -14
  151. package/dist/constructs/agentic-check.js.map +1 -1
  152. package/dist/constructs/alert-channel-codegen.d.ts +9 -9
  153. package/dist/constructs/alert-channel-codegen.js +21 -27
  154. package/dist/constructs/alert-channel-codegen.js.map +1 -1
  155. package/dist/constructs/alert-channel-subscription-codegen.d.ts +1 -1
  156. package/dist/constructs/alert-channel-subscription-codegen.js +2 -6
  157. package/dist/constructs/alert-channel-subscription-codegen.js.map +1 -1
  158. package/dist/constructs/alert-channel-subscription.d.ts +2 -2
  159. package/dist/constructs/alert-channel-subscription.js +4 -8
  160. package/dist/constructs/alert-channel-subscription.js.map +1 -1
  161. package/dist/constructs/alert-channel.d.ts +2 -2
  162. package/dist/constructs/alert-channel.js +7 -12
  163. package/dist/constructs/alert-channel.js.map +1 -1
  164. package/dist/constructs/alert-escalation-policy-codegen.d.ts +2 -2
  165. package/dist/constructs/alert-escalation-policy-codegen.js +6 -9
  166. package/dist/constructs/alert-escalation-policy-codegen.js.map +1 -1
  167. package/dist/constructs/alert-escalation-policy.js +1 -5
  168. package/dist/constructs/alert-escalation-policy.js.map +1 -1
  169. package/dist/constructs/api-assertion-codegen.d.ts +2 -2
  170. package/dist/constructs/api-assertion-codegen.js +7 -10
  171. package/dist/constructs/api-assertion-codegen.js.map +1 -1
  172. package/dist/constructs/api-assertion.d.ts +1 -1
  173. package/dist/constructs/api-assertion.js +7 -11
  174. package/dist/constructs/api-assertion.js.map +1 -1
  175. package/dist/constructs/api-check-bundle.d.ts +10 -10
  176. package/dist/constructs/api-check-bundle.js +1 -5
  177. package/dist/constructs/api-check-bundle.js.map +1 -1
  178. package/dist/constructs/api-check-codegen.d.ts +3 -3
  179. package/dist/constructs/api-check-codegen.js +10 -14
  180. package/dist/constructs/api-check-codegen.js.map +1 -1
  181. package/dist/constructs/api-check.d.ts +15 -15
  182. package/dist/constructs/api-check.js +36 -43
  183. package/dist/constructs/api-check.js.map +1 -1
  184. package/dist/constructs/api-request-codegen.d.ts +3 -3
  185. package/dist/constructs/api-request-codegen.js +8 -11
  186. package/dist/constructs/api-request-codegen.js.map +1 -1
  187. package/dist/constructs/api-request.d.ts +5 -5
  188. package/dist/constructs/api-request.js +1 -2
  189. package/dist/constructs/browser-check-bundle.d.ts +11 -11
  190. package/dist/constructs/browser-check-bundle.js +1 -5
  191. package/dist/constructs/browser-check-bundle.js.map +1 -1
  192. package/dist/constructs/browser-check-codegen.d.ts +3 -3
  193. package/dist/constructs/browser-check-codegen.js +9 -13
  194. package/dist/constructs/browser-check-codegen.js.map +1 -1
  195. package/dist/constructs/browser-check.d.ts +14 -14
  196. package/dist/constructs/browser-check.js +29 -36
  197. package/dist/constructs/browser-check.js.map +1 -1
  198. package/dist/constructs/check-codegen.d.ts +16 -16
  199. package/dist/constructs/check-codegen.js +38 -44
  200. package/dist/constructs/check-codegen.js.map +1 -1
  201. package/dist/constructs/check-config.js +1 -4
  202. package/dist/constructs/check-config.js.map +1 -1
  203. package/dist/constructs/check-group-codegen.d.ts +7 -7
  204. package/dist/constructs/check-group-codegen.js +29 -34
  205. package/dist/constructs/check-group-codegen.js.map +1 -1
  206. package/dist/constructs/check-group-ref.d.ts +3 -3
  207. package/dist/constructs/check-group-ref.js +8 -12
  208. package/dist/constructs/check-group-ref.js.map +1 -1
  209. package/dist/constructs/check-group-v1.d.ts +15 -15
  210. package/dist/constructs/check-group-v1.js +37 -44
  211. package/dist/constructs/check-group-v1.js.map +1 -1
  212. package/dist/constructs/check-group-v2.d.ts +8 -8
  213. package/dist/constructs/check-group-v2.js +4 -8
  214. package/dist/constructs/check-group-v2.js.map +1 -1
  215. package/dist/constructs/check-group.d.ts +4 -4
  216. package/dist/constructs/check-group.js +4 -22
  217. package/dist/constructs/check-group.js.map +1 -1
  218. package/dist/constructs/check.d.ts +15 -15
  219. package/dist/constructs/check.js +23 -28
  220. package/dist/constructs/check.js.map +1 -1
  221. package/dist/constructs/construct-codegen.d.ts +13 -13
  222. package/dist/constructs/construct-codegen.js +25 -30
  223. package/dist/constructs/construct-codegen.js.map +1 -1
  224. package/dist/constructs/construct-diagnostics.d.ts +2 -2
  225. package/dist/constructs/construct-diagnostics.js +12 -26
  226. package/dist/constructs/construct-diagnostics.js.map +1 -1
  227. package/dist/constructs/construct.d.ts +3 -3
  228. package/dist/constructs/construct.js +15 -24
  229. package/dist/constructs/construct.js.map +1 -1
  230. package/dist/constructs/dashboard-bundle.d.ts +2 -2
  231. package/dist/constructs/dashboard-bundle.js +1 -5
  232. package/dist/constructs/dashboard-bundle.js.map +1 -1
  233. package/dist/constructs/dashboard-codegen.d.ts +1 -1
  234. package/dist/constructs/dashboard-codegen.js +4 -8
  235. package/dist/constructs/dashboard-codegen.js.map +1 -1
  236. package/dist/constructs/dashboard.d.ts +4 -4
  237. package/dist/constructs/dashboard.js +19 -26
  238. package/dist/constructs/dashboard.js.map +1 -1
  239. package/dist/constructs/diagnostics.js +5 -13
  240. package/dist/constructs/diagnostics.js.map +1 -1
  241. package/dist/constructs/dns-assertion-codegen.d.ts +2 -2
  242. package/dist/constructs/dns-assertion-codegen.js +6 -9
  243. package/dist/constructs/dns-assertion-codegen.js.map +1 -1
  244. package/dist/constructs/dns-assertion.d.ts +1 -1
  245. package/dist/constructs/dns-assertion.js +6 -10
  246. package/dist/constructs/dns-assertion.js.map +1 -1
  247. package/dist/constructs/dns-monitor-codegen.d.ts +3 -3
  248. package/dist/constructs/dns-monitor-codegen.js +8 -12
  249. package/dist/constructs/dns-monitor-codegen.js.map +1 -1
  250. package/dist/constructs/dns-monitor.d.ts +8 -8
  251. package/dist/constructs/dns-monitor.js +9 -13
  252. package/dist/constructs/dns-monitor.js.map +1 -1
  253. package/dist/constructs/dns-request-codegen.d.ts +3 -3
  254. package/dist/constructs/dns-request-codegen.js +5 -8
  255. package/dist/constructs/dns-request-codegen.js.map +1 -1
  256. package/dist/constructs/dns-request.d.ts +1 -1
  257. package/dist/constructs/dns-request.js +1 -2
  258. package/dist/constructs/email-alert-channel-codegen.d.ts +2 -2
  259. package/dist/constructs/email-alert-channel-codegen.js +7 -11
  260. package/dist/constructs/email-alert-channel-codegen.js.map +1 -1
  261. package/dist/constructs/email-alert-channel.d.ts +1 -1
  262. package/dist/constructs/email-alert-channel.js +4 -8
  263. package/dist/constructs/email-alert-channel.js.map +1 -1
  264. package/dist/constructs/environment-variable.d.ts +1 -1
  265. package/dist/constructs/environment-variable.js +1 -2
  266. package/dist/constructs/frequency-codegen.d.ts +1 -1
  267. package/dist/constructs/frequency-codegen.js +21 -24
  268. package/dist/constructs/frequency-codegen.js.map +1 -1
  269. package/dist/constructs/frequency.js +1 -5
  270. package/dist/constructs/frequency.js.map +1 -1
  271. package/dist/constructs/heartbeat-monitor-codegen.d.ts +3 -3
  272. package/dist/constructs/heartbeat-monitor-codegen.js +6 -10
  273. package/dist/constructs/heartbeat-monitor-codegen.js.map +1 -1
  274. package/dist/constructs/heartbeat-monitor.d.ts +1 -1
  275. package/dist/constructs/heartbeat-monitor.js +10 -13
  276. package/dist/constructs/heartbeat-monitor.js.map +1 -1
  277. package/dist/constructs/http-header.d.ts +1 -1
  278. package/dist/constructs/http-header.js +1 -2
  279. package/dist/constructs/http-request.js +1 -2
  280. package/dist/constructs/icmp-assertion-codegen.d.ts +2 -2
  281. package/dist/constructs/icmp-assertion-codegen.js +4 -7
  282. package/dist/constructs/icmp-assertion-codegen.js.map +1 -1
  283. package/dist/constructs/icmp-assertion.d.ts +1 -1
  284. package/dist/constructs/icmp-assertion.js +4 -8
  285. package/dist/constructs/icmp-assertion.js.map +1 -1
  286. package/dist/constructs/icmp-monitor-codegen.d.ts +3 -3
  287. package/dist/constructs/icmp-monitor-codegen.js +8 -12
  288. package/dist/constructs/icmp-monitor-codegen.js.map +1 -1
  289. package/dist/constructs/icmp-monitor.d.ts +8 -8
  290. package/dist/constructs/icmp-monitor.js +4 -8
  291. package/dist/constructs/icmp-monitor.js.map +1 -1
  292. package/dist/constructs/icmp-request-codegen.d.ts +3 -3
  293. package/dist/constructs/icmp-request-codegen.js +5 -8
  294. package/dist/constructs/icmp-request-codegen.js.map +1 -1
  295. package/dist/constructs/icmp-request.d.ts +2 -2
  296. package/dist/constructs/icmp-request.js +1 -2
  297. package/dist/constructs/incident.d.ts +1 -1
  298. package/dist/constructs/incident.js +1 -2
  299. package/dist/constructs/incidentio-alert-channel-codegen.d.ts +2 -2
  300. package/dist/constructs/incidentio-alert-channel-codegen.js +15 -19
  301. package/dist/constructs/incidentio-alert-channel-codegen.js.map +1 -1
  302. package/dist/constructs/incidentio-alert-channel.d.ts +2 -2
  303. package/dist/constructs/incidentio-alert-channel.js +2 -6
  304. package/dist/constructs/incidentio-alert-channel.js.map +1 -1
  305. package/dist/constructs/index.d.ts +51 -51
  306. package/dist/constructs/index.js +51 -67
  307. package/dist/constructs/index.js.map +1 -1
  308. package/dist/constructs/internal/assertion-codegen.d.ts +2 -2
  309. package/dist/constructs/internal/assertion-codegen.js +25 -29
  310. package/dist/constructs/internal/assertion-codegen.js.map +1 -1
  311. package/dist/constructs/internal/assertion.js +2 -7
  312. package/dist/constructs/internal/assertion.js.map +1 -1
  313. package/dist/constructs/internal/codegen/codegen.d.ts +2 -2
  314. package/dist/constructs/internal/codegen/codegen.js +1 -5
  315. package/dist/constructs/internal/codegen/codegen.js.map +1 -1
  316. package/dist/constructs/internal/codegen/context.d.ts +3 -3
  317. package/dist/constructs/internal/codegen/context.js +32 -74
  318. package/dist/constructs/internal/codegen/context.js.map +1 -1
  319. package/dist/constructs/internal/codegen/index.d.ts +4 -4
  320. package/dist/constructs/internal/codegen/index.js +4 -12
  321. package/dist/constructs/internal/codegen/index.js.map +1 -1
  322. package/dist/constructs/internal/codegen/safety.js +1 -5
  323. package/dist/constructs/internal/codegen/safety.js.map +1 -1
  324. package/dist/constructs/internal/codegen/snippet.js +8 -17
  325. package/dist/constructs/internal/codegen/snippet.js.map +1 -1
  326. package/dist/constructs/internal/common-diagnostics.d.ts +2 -2
  327. package/dist/constructs/internal/common-diagnostics.js +19 -27
  328. package/dist/constructs/internal/common-diagnostics.js.map +1 -1
  329. package/dist/constructs/internal/sanitize.d.ts +15 -0
  330. package/dist/constructs/internal/sanitize.js +36 -0
  331. package/dist/constructs/internal/sanitize.js.map +1 -0
  332. package/dist/constructs/ip.js +1 -2
  333. package/dist/constructs/key-value-pair-codegen.d.ts +3 -3
  334. package/dist/constructs/key-value-pair-codegen.js +6 -9
  335. package/dist/constructs/key-value-pair-codegen.js.map +1 -1
  336. package/dist/constructs/key-value-pair.js +1 -2
  337. package/dist/constructs/maintenance-window-codegen.d.ts +1 -1
  338. package/dist/constructs/maintenance-window-codegen.js +7 -11
  339. package/dist/constructs/maintenance-window-codegen.js.map +1 -1
  340. package/dist/constructs/maintenance-window.d.ts +1 -1
  341. package/dist/constructs/maintenance-window.js +4 -8
  342. package/dist/constructs/maintenance-window.js.map +1 -1
  343. package/dist/constructs/monitor-codegen.d.ts +1 -1
  344. package/dist/constructs/monitor-codegen.js +1 -5
  345. package/dist/constructs/monitor-codegen.js.map +1 -1
  346. package/dist/constructs/monitor.d.ts +14 -14
  347. package/dist/constructs/monitor.js +4 -8
  348. package/dist/constructs/monitor.js.map +1 -1
  349. package/dist/constructs/msteams-alert-channel-codegen.d.ts +2 -2
  350. package/dist/constructs/msteams-alert-channel-codegen.js +17 -21
  351. package/dist/constructs/msteams-alert-channel-codegen.js.map +1 -1
  352. package/dist/constructs/msteams-alert-channel.d.ts +2 -2
  353. package/dist/constructs/msteams-alert-channel.js +2 -6
  354. package/dist/constructs/msteams-alert-channel.js.map +1 -1
  355. package/dist/constructs/multi-step-check-bundle.d.ts +10 -10
  356. package/dist/constructs/multi-step-check-bundle.js +1 -5
  357. package/dist/constructs/multi-step-check-bundle.js.map +1 -1
  358. package/dist/constructs/multi-step-check-codegen.d.ts +3 -3
  359. package/dist/constructs/multi-step-check-codegen.js +8 -12
  360. package/dist/constructs/multi-step-check-codegen.js.map +1 -1
  361. package/dist/constructs/multi-step-check.d.ts +14 -14
  362. package/dist/constructs/multi-step-check.js +29 -36
  363. package/dist/constructs/multi-step-check.js.map +1 -1
  364. package/dist/constructs/opsgenie-alert-channel-codegen.d.ts +2 -2
  365. package/dist/constructs/opsgenie-alert-channel-codegen.js +7 -11
  366. package/dist/constructs/opsgenie-alert-channel-codegen.js.map +1 -1
  367. package/dist/constructs/opsgenie-alert-channel.d.ts +1 -1
  368. package/dist/constructs/opsgenie-alert-channel.js +4 -8
  369. package/dist/constructs/opsgenie-alert-channel.js.map +1 -1
  370. package/dist/constructs/pagerduty-alert-channel-codegen.d.ts +2 -2
  371. package/dist/constructs/pagerduty-alert-channel-codegen.js +7 -11
  372. package/dist/constructs/pagerduty-alert-channel-codegen.js.map +1 -1
  373. package/dist/constructs/pagerduty-alert-channel.d.ts +1 -1
  374. package/dist/constructs/pagerduty-alert-channel.js +4 -8
  375. package/dist/constructs/pagerduty-alert-channel.js.map +1 -1
  376. package/dist/constructs/phone-call-alert-channel-codegen.d.ts +2 -2
  377. package/dist/constructs/phone-call-alert-channel-codegen.js +7 -11
  378. package/dist/constructs/phone-call-alert-channel-codegen.js.map +1 -1
  379. package/dist/constructs/phone-call-alert-channel.d.ts +1 -1
  380. package/dist/constructs/phone-call-alert-channel.js +4 -8
  381. package/dist/constructs/phone-call-alert-channel.js.map +1 -1
  382. package/dist/constructs/playwright-check-bundle.d.ts +8 -8
  383. package/dist/constructs/playwright-check-bundle.js +1 -5
  384. package/dist/constructs/playwright-check-bundle.js.map +1 -1
  385. package/dist/constructs/playwright-check.d.ts +11 -11
  386. package/dist/constructs/playwright-check.js +40 -47
  387. package/dist/constructs/playwright-check.js.map +1 -1
  388. package/dist/constructs/playwright-config-codegen.d.ts +2 -2
  389. package/dist/constructs/playwright-config-codegen.js +3 -6
  390. package/dist/constructs/playwright-config-codegen.js.map +1 -1
  391. package/dist/constructs/playwright-config.js +1 -2
  392. package/dist/constructs/private-location-check-assignment-codegen.d.ts +1 -1
  393. package/dist/constructs/private-location-check-assignment-codegen.js +2 -6
  394. package/dist/constructs/private-location-check-assignment-codegen.js.map +1 -1
  395. package/dist/constructs/private-location-check-assignment.d.ts +2 -2
  396. package/dist/constructs/private-location-check-assignment.js +4 -8
  397. package/dist/constructs/private-location-check-assignment.js.map +1 -1
  398. package/dist/constructs/private-location-codegen.d.ts +2 -2
  399. package/dist/constructs/private-location-codegen.js +8 -13
  400. package/dist/constructs/private-location-codegen.js.map +1 -1
  401. package/dist/constructs/private-location-group-assignment-codegen.d.ts +1 -1
  402. package/dist/constructs/private-location-group-assignment-codegen.js +2 -6
  403. package/dist/constructs/private-location-group-assignment-codegen.js.map +1 -1
  404. package/dist/constructs/private-location-group-assignment.d.ts +2 -2
  405. package/dist/constructs/private-location-group-assignment.js +4 -8
  406. package/dist/constructs/private-location-group-assignment.js.map +1 -1
  407. package/dist/constructs/private-location.d.ts +2 -2
  408. package/dist/constructs/private-location.js +10 -15
  409. package/dist/constructs/private-location.js.map +1 -1
  410. package/dist/constructs/project-bundle.d.ts +3 -3
  411. package/dist/constructs/project-bundle.js +1 -5
  412. package/dist/constructs/project-bundle.js.map +1 -1
  413. package/dist/constructs/project.d.ts +13 -13
  414. package/dist/constructs/project.js +32 -87
  415. package/dist/constructs/project.js.map +1 -1
  416. package/dist/constructs/query-param.d.ts +1 -1
  417. package/dist/constructs/query-param.js +1 -2
  418. package/dist/constructs/ref-codegen.d.ts +2 -2
  419. package/dist/constructs/ref-codegen.js +4 -7
  420. package/dist/constructs/ref-codegen.js.map +1 -1
  421. package/dist/constructs/ref.js +1 -5
  422. package/dist/constructs/ref.js.map +1 -1
  423. package/dist/constructs/retry-strategy-codegen.d.ts +2 -2
  424. package/dist/constructs/retry-strategy-codegen.js +14 -17
  425. package/dist/constructs/retry-strategy-codegen.js.map +1 -1
  426. package/dist/constructs/retry-strategy.js +1 -5
  427. package/dist/constructs/retry-strategy.js.map +1 -1
  428. package/dist/constructs/slack-alert-channel-codegen.d.ts +2 -2
  429. package/dist/constructs/slack-alert-channel-codegen.js +7 -11
  430. package/dist/constructs/slack-alert-channel-codegen.js.map +1 -1
  431. package/dist/constructs/slack-alert-channel.d.ts +1 -1
  432. package/dist/constructs/slack-alert-channel.js +4 -8
  433. package/dist/constructs/slack-alert-channel.js.map +1 -1
  434. package/dist/constructs/sms-alert-channel-codegen.d.ts +2 -2
  435. package/dist/constructs/sms-alert-channel-codegen.js +7 -11
  436. package/dist/constructs/sms-alert-channel-codegen.js.map +1 -1
  437. package/dist/constructs/sms-alert-channel.d.ts +1 -1
  438. package/dist/constructs/sms-alert-channel.js +4 -8
  439. package/dist/constructs/sms-alert-channel.js.map +1 -1
  440. package/dist/constructs/status-page-codegen.d.ts +3 -3
  441. package/dist/constructs/status-page-codegen.js +6 -10
  442. package/dist/constructs/status-page-codegen.js.map +1 -1
  443. package/dist/constructs/status-page-service-codegen.d.ts +2 -2
  444. package/dist/constructs/status-page-service-codegen.js +8 -13
  445. package/dist/constructs/status-page-service-codegen.js.map +1 -1
  446. package/dist/constructs/status-page-service.d.ts +2 -2
  447. package/dist/constructs/status-page-service.js +8 -13
  448. package/dist/constructs/status-page-service.js.map +1 -1
  449. package/dist/constructs/status-page.d.ts +2 -2
  450. package/dist/constructs/status-page.js +6 -10
  451. package/dist/constructs/status-page.js.map +1 -1
  452. package/dist/constructs/tcp-monitor-codegen.d.ts +4 -4
  453. package/dist/constructs/tcp-monitor-codegen.js +10 -15
  454. package/dist/constructs/tcp-monitor-codegen.js.map +1 -1
  455. package/dist/constructs/tcp-monitor.d.ts +9 -9
  456. package/dist/constructs/tcp-monitor.js +12 -16
  457. package/dist/constructs/tcp-monitor.js.map +1 -1
  458. package/dist/constructs/telegram-alert-channel-codegen.d.ts +2 -2
  459. package/dist/constructs/telegram-alert-channel-codegen.js +15 -22
  460. package/dist/constructs/telegram-alert-channel-codegen.js.map +1 -1
  461. package/dist/constructs/telegram-alert-channel.d.ts +2 -2
  462. package/dist/constructs/telegram-alert-channel.js +2 -6
  463. package/dist/constructs/telegram-alert-channel.js.map +1 -1
  464. package/dist/constructs/url-assertion-codegen.d.ts +2 -2
  465. package/dist/constructs/url-assertion-codegen.js +3 -6
  466. package/dist/constructs/url-assertion-codegen.js.map +1 -1
  467. package/dist/constructs/url-assertion.d.ts +1 -1
  468. package/dist/constructs/url-assertion.js +3 -7
  469. package/dist/constructs/url-assertion.js.map +1 -1
  470. package/dist/constructs/url-monitor-codegen.d.ts +3 -3
  471. package/dist/constructs/url-monitor-codegen.js +8 -12
  472. package/dist/constructs/url-monitor-codegen.js.map +1 -1
  473. package/dist/constructs/url-monitor.d.ts +10 -10
  474. package/dist/constructs/url-monitor.js +6 -10
  475. package/dist/constructs/url-monitor.js.map +1 -1
  476. package/dist/constructs/url-request-codegen.d.ts +3 -3
  477. package/dist/constructs/url-request-codegen.js +5 -8
  478. package/dist/constructs/url-request-codegen.js.map +1 -1
  479. package/dist/constructs/url-request.d.ts +2 -2
  480. package/dist/constructs/url-request.js +1 -2
  481. package/dist/constructs/validator-error.js +1 -5
  482. package/dist/constructs/validator-error.js.map +1 -1
  483. package/dist/constructs/webhook-alert-channel-codegen.d.ts +8 -8
  484. package/dist/constructs/webhook-alert-channel-codegen.js +20 -25
  485. package/dist/constructs/webhook-alert-channel-codegen.js.map +1 -1
  486. package/dist/constructs/webhook-alert-channel.d.ts +4 -4
  487. package/dist/constructs/webhook-alert-channel.js +4 -8
  488. package/dist/constructs/webhook-alert-channel.js.map +1 -1
  489. package/dist/formatters/account-members.d.ts +2 -2
  490. package/dist/formatters/account-members.js +19 -27
  491. package/dist/formatters/account-members.js.map +1 -1
  492. package/dist/formatters/account-plan.d.ts +2 -2
  493. package/dist/formatters/account-plan.js +34 -47
  494. package/dist/formatters/account-plan.js.map +1 -1
  495. package/dist/formatters/analytics.d.ts +2 -2
  496. package/dist/formatters/analytics.js +25 -36
  497. package/dist/formatters/analytics.js.map +1 -1
  498. package/dist/formatters/batch-stats.d.ts +3 -3
  499. package/dist/formatters/batch-stats.js +28 -35
  500. package/dist/formatters/batch-stats.js.map +1 -1
  501. package/dist/formatters/check-result-detail.d.ts +2 -2
  502. package/dist/formatters/check-result-detail.js +73 -80
  503. package/dist/formatters/check-result-detail.js.map +1 -1
  504. package/dist/formatters/checks.d.ts +6 -6
  505. package/dist/formatters/checks.js +69 -86
  506. package/dist/formatters/checks.js.map +1 -1
  507. package/dist/formatters/incidents.d.ts +2 -2
  508. package/dist/formatters/incidents.js +36 -46
  509. package/dist/formatters/incidents.js.map +1 -1
  510. package/dist/formatters/rca.d.ts +10 -4
  511. package/dist/formatters/rca.js +43 -35
  512. package/dist/formatters/rca.js.map +1 -1
  513. package/dist/formatters/render.js +27 -47
  514. package/dist/formatters/render.js.map +1 -1
  515. package/dist/formatters/status-pages.d.ts +2 -2
  516. package/dist/formatters/status-pages.js +29 -39
  517. package/dist/formatters/status-pages.js.map +1 -1
  518. package/dist/help/examples.js +3 -5
  519. package/dist/help/examples.js.map +1 -1
  520. package/dist/help/help-extension.js +13 -17
  521. package/dist/help/help-extension.js.map +1 -1
  522. package/dist/help/skills.js +2 -5
  523. package/dist/help/skills.js.map +1 -1
  524. package/dist/helpers/cli-mode.js +3 -8
  525. package/dist/helpers/cli-mode.js.map +1 -1
  526. package/dist/helpers/command-preview.js +3 -8
  527. package/dist/helpers/command-preview.js.map +1 -1
  528. package/dist/helpers/command-style.d.ts +1 -1
  529. package/dist/helpers/command-style.js +24 -31
  530. package/dist/helpers/command-style.js.map +1 -1
  531. package/dist/helpers/constants.js +1 -4
  532. package/dist/helpers/constants.js.map +1 -1
  533. package/dist/helpers/flags.d.ts +5 -0
  534. package/dist/helpers/flags.js +29 -12
  535. package/dist/helpers/flags.js.map +1 -1
  536. package/dist/helpers/incidents.d.ts +2 -2
  537. package/dist/helpers/incidents.js +10 -18
  538. package/dist/helpers/incidents.js.map +1 -1
  539. package/dist/helpers/onboarding/boilerplate.js +46 -53
  540. package/dist/helpers/onboarding/boilerplate.js.map +1 -1
  541. package/dist/helpers/onboarding/clipboard.js +6 -9
  542. package/dist/helpers/onboarding/clipboard.js.map +1 -1
  543. package/dist/helpers/onboarding/detect-project.js +13 -16
  544. package/dist/helpers/onboarding/detect-project.js.map +1 -1
  545. package/dist/helpers/onboarding/index.d.ts +7 -7
  546. package/dist/helpers/onboarding/index.js +7 -25
  547. package/dist/helpers/onboarding/index.js.map +1 -1
  548. package/dist/helpers/onboarding/messages.js +47 -57
  549. package/dist/helpers/onboarding/messages.js.map +1 -1
  550. package/dist/helpers/onboarding/prompt-display.js +11 -17
  551. package/dist/helpers/onboarding/prompt-display.js.map +1 -1
  552. package/dist/helpers/onboarding/prompts-helpers.js +4 -11
  553. package/dist/helpers/onboarding/prompts-helpers.js.map +1 -1
  554. package/dist/helpers/onboarding/skill-install.js +28 -35
  555. package/dist/helpers/onboarding/skill-install.js.map +1 -1
  556. package/dist/helpers/onboarding/template-prompt.js +8 -9
  557. package/dist/helpers/onboarding/template-prompt.js.map +1 -1
  558. package/dist/helpers/recast-acorn-parser.js +2 -38
  559. package/dist/helpers/recast-acorn-parser.js.map +1 -1
  560. package/dist/helpers/test-helper.d.ts +3 -3
  561. package/dist/helpers/test-helper.js +10 -16
  562. package/dist/helpers/test-helper.js.map +1 -1
  563. package/dist/helpers/wrap.js +1 -4
  564. package/dist/helpers/wrap.js.map +1 -1
  565. package/dist/helpers/write-config-helpers.js +11 -53
  566. package/dist/helpers/write-config-helpers.js.map +1 -1
  567. package/dist/hooks/command-not-found.d.ts +3 -0
  568. package/dist/hooks/command-not-found.js +22 -0
  569. package/dist/hooks/command-not-found.js.map +1 -0
  570. package/dist/hooks/parse-error.d.ts +3 -0
  571. package/dist/hooks/parse-error.js +15 -0
  572. package/dist/hooks/parse-error.js.map +1 -0
  573. package/dist/index.d.ts +3 -3
  574. package/dist/index.js +2 -39
  575. package/dist/index.js.map +1 -1
  576. package/dist/loader/config.js +4 -9
  577. package/dist/loader/config.js.map +1 -1
  578. package/dist/loader/index.d.ts +5 -6
  579. package/dist/loader/index.js +5 -20
  580. package/dist/loader/index.js.map +1 -1
  581. package/dist/loader/jiti.d.ts +1 -1
  582. package/dist/loader/jiti.js +15 -22
  583. package/dist/loader/jiti.js.map +1 -1
  584. package/dist/loader/loader.d.ts +1 -1
  585. package/dist/loader/loader.js +4 -9
  586. package/dist/loader/loader.js.map +1 -1
  587. package/dist/loader/match.js +3 -7
  588. package/dist/loader/match.js.map +1 -1
  589. package/dist/loader/mixed.d.ts +1 -1
  590. package/dist/loader/mixed.js +4 -8
  591. package/dist/loader/mixed.js.map +1 -1
  592. package/dist/loader/native.d.ts +2 -2
  593. package/dist/loader/native.js +14 -20
  594. package/dist/loader/native.js.map +1 -1
  595. package/dist/messages/common-messages.d.ts +0 -3
  596. package/dist/messages/common-messages.js +1 -6
  597. package/dist/messages/common-messages.js.map +1 -1
  598. package/dist/playwright/playwright-config-loader.js +7 -13
  599. package/dist/playwright/playwright-config-loader.js.map +1 -1
  600. package/dist/playwright/playwright-config-template.d.ts +1 -1
  601. package/dist/playwright/playwright-config-template.js +2 -38
  602. package/dist/playwright/playwright-config-template.js.map +1 -1
  603. package/dist/reporters/abstract-list.d.ts +9 -5
  604. package/dist/reporters/abstract-list.js +76 -48
  605. package/dist/reporters/abstract-list.js.map +1 -1
  606. package/dist/reporters/ci.d.ts +3 -3
  607. package/dist/reporters/ci.js +10 -20
  608. package/dist/reporters/ci.js.map +1 -1
  609. package/dist/reporters/dot.d.ts +2 -2
  610. package/dist/reporters/dot.js +8 -14
  611. package/dist/reporters/dot.js.map +1 -1
  612. package/dist/reporters/github.d.ts +2 -2
  613. package/dist/reporters/github.js +14 -59
  614. package/dist/reporters/github.js.map +1 -1
  615. package/dist/reporters/json.d.ts +2 -2
  616. package/dist/reporters/json.js +11 -52
  617. package/dist/reporters/json.js.map +1 -1
  618. package/dist/reporters/list.d.ts +3 -3
  619. package/dist/reporters/list.js +22 -32
  620. package/dist/reporters/list.js.map +1 -1
  621. package/dist/reporters/reporter.d.ts +4 -2
  622. package/dist/reporters/reporter.js +12 -19
  623. package/dist/reporters/reporter.js.map +1 -1
  624. package/dist/reporters/util.d.ts +2 -1
  625. package/dist/reporters/util.js +56 -95
  626. package/dist/reporters/util.js.map +1 -1
  627. package/dist/rest/account-members.js +1 -3
  628. package/dist/rest/account-members.js.map +1 -1
  629. package/dist/rest/accounts.js +1 -3
  630. package/dist/rest/accounts.js.map +1 -1
  631. package/dist/rest/analytics.js +23 -26
  632. package/dist/rest/analytics.js.map +1 -1
  633. package/dist/rest/api.d.ts +30 -26
  634. package/dist/rest/api.js +76 -82
  635. package/dist/rest/api.js.map +1 -1
  636. package/dist/rest/assets.js +6 -15
  637. package/dist/rest/assets.js.map +1 -1
  638. package/dist/rest/batch-analytics.js +2 -5
  639. package/dist/rest/batch-analytics.js.map +1 -1
  640. package/dist/rest/cancel.d.ts +14 -0
  641. package/dist/rest/cancel.js +28 -0
  642. package/dist/rest/cancel.js.map +1 -0
  643. package/dist/rest/check-groups.js +1 -3
  644. package/dist/rest/check-groups.js.map +1 -1
  645. package/dist/rest/check-results.js +1 -3
  646. package/dist/rest/check-results.js.map +1 -1
  647. package/dist/rest/check-statuses.js +1 -3
  648. package/dist/rest/check-statuses.js.map +1 -1
  649. package/dist/rest/checkly-storage.js +1 -3
  650. package/dist/rest/checkly-storage.js.map +1 -1
  651. package/dist/rest/checks.js +1 -3
  652. package/dist/rest/checks.js.map +1 -1
  653. package/dist/rest/entitlements.js +1 -3
  654. package/dist/rest/entitlements.js.map +1 -1
  655. package/dist/rest/environment-variables.js +8 -13
  656. package/dist/rest/environment-variables.js.map +1 -1
  657. package/dist/rest/error-groups.js +1 -3
  658. package/dist/rest/error-groups.js.map +1 -1
  659. package/dist/rest/errors.js +15 -31
  660. package/dist/rest/errors.js.map +1 -1
  661. package/dist/rest/heartbeat-checks.js +1 -3
  662. package/dist/rest/heartbeat-checks.js.map +1 -1
  663. package/dist/rest/incidents.js +1 -3
  664. package/dist/rest/incidents.js.map +1 -1
  665. package/dist/rest/locations.js +1 -3
  666. package/dist/rest/locations.js.map +1 -1
  667. package/dist/rest/private-locations.js +1 -4
  668. package/dist/rest/private-locations.js.map +1 -1
  669. package/dist/rest/projects.d.ts +2 -2
  670. package/dist/rest/projects.js +20 -28
  671. package/dist/rest/projects.js.map +1 -1
  672. package/dist/rest/rca.d.ts +2 -1
  673. package/dist/rest/rca.js +4 -3
  674. package/dist/rest/rca.js.map +1 -1
  675. package/dist/rest/runtimes.d.ts +1 -1
  676. package/dist/rest/runtimes.js +1 -3
  677. package/dist/rest/runtimes.js.map +1 -1
  678. package/dist/rest/status-pages.js +1 -3
  679. package/dist/rest/status-pages.js.map +1 -1
  680. package/dist/rest/test-session-error-groups.d.ts +18 -0
  681. package/dist/rest/test-session-error-groups.js +11 -0
  682. package/dist/rest/test-session-error-groups.js.map +1 -0
  683. package/dist/rest/test-sessions.d.ts +3 -3
  684. package/dist/rest/test-sessions.js +6 -10
  685. package/dist/rest/test-sessions.js.map +1 -1
  686. package/dist/rest/users.js +1 -3
  687. package/dist/rest/users.js.map +1 -1
  688. package/dist/rest/util.js +5 -11
  689. package/dist/rest/util.js.map +1 -1
  690. package/dist/runtimes/index.d.ts +2 -2
  691. package/dist/runtimes/index.js +1 -5
  692. package/dist/runtimes/index.js.map +1 -1
  693. package/dist/runtimes/runtime.js +1 -2
  694. package/dist/runtimes/snapshot.d.ts +1 -1
  695. package/dist/runtimes/snapshot.js +7 -11
  696. package/dist/runtimes/snapshot.js.map +1 -1
  697. package/dist/services/abstract-check-runner.d.ts +6 -3
  698. package/dist/services/abstract-check-runner.js +62 -61
  699. package/dist/services/abstract-check-runner.js.map +1 -1
  700. package/dist/services/check-parser/bundler.d.ts +2 -2
  701. package/dist/services/check-parser/bundler.js +24 -68
  702. package/dist/services/check-parser/bundler.js.map +1 -1
  703. package/dist/services/check-parser/cache-hash.d.ts +1 -1
  704. package/dist/services/check-parser/cache-hash.js +15 -25
  705. package/dist/services/check-parser/cache-hash.js.map +1 -1
  706. package/dist/services/check-parser/collector.js +3 -7
  707. package/dist/services/check-parser/collector.js.map +1 -1
  708. package/dist/services/check-parser/errors.d.ts +1 -1
  709. package/dist/services/check-parser/errors.js +1 -5
  710. package/dist/services/check-parser/errors.js.map +1 -1
  711. package/dist/services/check-parser/faux-package.d.ts +2 -2
  712. package/dist/services/check-parser/faux-package.js +3 -7
  713. package/dist/services/check-parser/faux-package.js.map +1 -1
  714. package/dist/services/check-parser/package-files/extension.js +14 -23
  715. package/dist/services/check-parser/package-files/extension.js.map +1 -1
  716. package/dist/services/check-parser/package-files/jsconfig-json-file.d.ts +2 -2
  717. package/dist/services/check-parser/package-files/jsconfig-json-file.js +4 -11
  718. package/dist/services/check-parser/package-files/jsconfig-json-file.js.map +1 -1
  719. package/dist/services/check-parser/package-files/json-source-file.d.ts +2 -2
  720. package/dist/services/check-parser/package-files/json-source-file.js +3 -7
  721. package/dist/services/check-parser/package-files/json-source-file.js.map +1 -1
  722. package/dist/services/check-parser/package-files/json-text-source-file-parser.d.ts +2 -2
  723. package/dist/services/check-parser/package-files/json-text-source-file-parser.js +7 -11
  724. package/dist/services/check-parser/package-files/json-text-source-file-parser.js.map +1 -1
  725. package/dist/services/check-parser/package-files/json-text-source-file.d.ts +2 -2
  726. package/dist/services/check-parser/package-files/json-text-source-file.js +5 -9
  727. package/dist/services/check-parser/package-files/json-text-source-file.js.map +1 -1
  728. package/dist/services/check-parser/package-files/loader.js +1 -5
  729. package/dist/services/check-parser/package-files/loader.js.map +1 -1
  730. package/dist/services/check-parser/package-files/lookup.js +10 -14
  731. package/dist/services/check-parser/package-files/lookup.js.map +1 -1
  732. package/dist/services/check-parser/package-files/package-json-file.d.ts +3 -3
  733. package/dist/services/check-parser/package-files/package-json-file.js +16 -23
  734. package/dist/services/check-parser/package-files/package-json-file.js.map +1 -1
  735. package/dist/services/check-parser/package-files/package-manager.d.ts +2 -2
  736. package/dist/services/check-parser/package-files/package-manager.js +65 -88
  737. package/dist/services/check-parser/package-files/package-manager.js.map +1 -1
  738. package/dist/services/check-parser/package-files/paths.js +6 -15
  739. package/dist/services/check-parser/package-files/paths.js.map +1 -1
  740. package/dist/services/check-parser/package-files/resolver.d.ts +8 -8
  741. package/dist/services/check-parser/package-files/resolver.js +37 -44
  742. package/dist/services/check-parser/package-files/resolver.js.map +1 -1
  743. package/dist/services/check-parser/package-files/result.js +2 -6
  744. package/dist/services/check-parser/package-files/result.js.map +1 -1
  745. package/dist/services/check-parser/package-files/source-file-parser.d.ts +1 -1
  746. package/dist/services/check-parser/package-files/source-file-parser.js +2 -7
  747. package/dist/services/check-parser/package-files/source-file-parser.js.map +1 -1
  748. package/dist/services/check-parser/package-files/source-file.js +6 -14
  749. package/dist/services/check-parser/package-files/source-file.js.map +1 -1
  750. package/dist/services/check-parser/package-files/tsconfig-json-file.d.ts +4 -4
  751. package/dist/services/check-parser/package-files/tsconfig-json-file.js +12 -19
  752. package/dist/services/check-parser/package-files/tsconfig-json-file.js.map +1 -1
  753. package/dist/services/check-parser/package-files/walk.js +7 -11
  754. package/dist/services/check-parser/package-files/walk.js.map +1 -1
  755. package/dist/services/check-parser/package-files/workspace.d.ts +2 -2
  756. package/dist/services/check-parser/package-files/workspace.js +9 -14
  757. package/dist/services/check-parser/package-files/workspace.js.map +1 -1
  758. package/dist/services/check-parser/parser.d.ts +3 -3
  759. package/dist/services/check-parser/parser.js +31 -70
  760. package/dist/services/check-parser/parser.js.map +1 -1
  761. package/dist/services/check-parser/playwright-config-expander.d.ts +1 -1
  762. package/dist/services/check-parser/playwright-config-expander.js +10 -50
  763. package/dist/services/check-parser/playwright-config-expander.js.map +1 -1
  764. package/dist/services/checkly-config-codegen.d.ts +3 -3
  765. package/dist/services/checkly-config-codegen.js +22 -25
  766. package/dist/services/checkly-config-codegen.js.map +1 -1
  767. package/dist/services/checkly-config-loader.d.ts +7 -7
  768. package/dist/services/checkly-config-loader.js +21 -63
  769. package/dist/services/checkly-config-loader.js.map +1 -1
  770. package/dist/services/config.js +4 -9
  771. package/dist/services/config.js.map +1 -1
  772. package/dist/services/load-dotenv.d.ts +1 -0
  773. package/dist/services/load-dotenv.js +44 -0
  774. package/dist/services/load-dotenv.js.map +1 -0
  775. package/dist/services/playwright-config.js +3 -41
  776. package/dist/services/playwright-config.js.map +1 -1
  777. package/dist/services/project-parser.d.ts +4 -4
  778. package/dist/services/project-parser.js +61 -100
  779. package/dist/services/project-parser.js.map +1 -1
  780. package/dist/services/proxy.js +8 -11
  781. package/dist/services/proxy.js.map +1 -1
  782. package/dist/services/shell.js +2 -6
  783. package/dist/services/shell.js.map +1 -1
  784. package/dist/services/snapshot-service.js +13 -51
  785. package/dist/services/snapshot-service.js.map +1 -1
  786. package/dist/services/socket-client.js +11 -51
  787. package/dist/services/socket-client.js.map +1 -1
  788. package/dist/services/test-filters.js +3 -8
  789. package/dist/services/test-filters.js.map +1 -1
  790. package/dist/services/test-runner.d.ts +6 -6
  791. package/dist/services/test-runner.js +11 -50
  792. package/dist/services/test-runner.js.map +1 -1
  793. package/dist/services/trigger-runner.d.ts +4 -4
  794. package/dist/services/trigger-runner.js +6 -12
  795. package/dist/services/trigger-runner.js.map +1 -1
  796. package/dist/services/util.d.ts +4 -4
  797. package/dist/services/util.js +66 -121
  798. package/dist/services/util.js.map +1 -1
  799. package/dist/sourcegen/args.d.ts +2 -2
  800. package/dist/sourcegen/args.js +2 -6
  801. package/dist/sourcegen/args.js.map +1 -1
  802. package/dist/sourcegen/argsbuilder.d.ts +5 -5
  803. package/dist/sourcegen/argsbuilder.js +22 -27
  804. package/dist/sourcegen/argsbuilder.js.map +1 -1
  805. package/dist/sourcegen/array.d.ts +2 -2
  806. package/dist/sourcegen/array.js +2 -6
  807. package/dist/sourcegen/array.js.map +1 -1
  808. package/dist/sourcegen/arraybuilder.d.ts +4 -4
  809. package/dist/sourcegen/arraybuilder.js +20 -25
  810. package/dist/sourcegen/arraybuilder.js.map +1 -1
  811. package/dist/sourcegen/boolean.d.ts +2 -2
  812. package/dist/sourcegen/boolean.js +2 -6
  813. package/dist/sourcegen/boolean.js.map +1 -1
  814. package/dist/sourcegen/case.js +8 -18
  815. package/dist/sourcegen/case.js.map +1 -1
  816. package/dist/sourcegen/comment.d.ts +2 -2
  817. package/dist/sourcegen/comment.js +9 -20
  818. package/dist/sourcegen/comment.js.map +1 -1
  819. package/dist/sourcegen/decl.d.ts +4 -4
  820. package/dist/sourcegen/decl.js +6 -15
  821. package/dist/sourcegen/decl.js.map +1 -1
  822. package/dist/sourcegen/declbuilder.d.ts +4 -4
  823. package/dist/sourcegen/declbuilder.js +8 -13
  824. package/dist/sourcegen/declbuilder.js.map +1 -1
  825. package/dist/sourcegen/expr.d.ts +3 -3
  826. package/dist/sourcegen/expr.js +7 -16
  827. package/dist/sourcegen/expr.js.map +1 -1
  828. package/dist/sourcegen/exprbuilder.d.ts +3 -3
  829. package/dist/sourcegen/exprbuilder.js +9 -14
  830. package/dist/sourcegen/exprbuilder.js.map +1 -1
  831. package/dist/sourcegen/identifier.d.ts +3 -3
  832. package/dist/sourcegen/identifier.js +5 -10
  833. package/dist/sourcegen/identifier.js.map +1 -1
  834. package/dist/sourcegen/index.d.ts +22 -22
  835. package/dist/sourcegen/index.js +22 -75
  836. package/dist/sourcegen/index.js.map +1 -1
  837. package/dist/sourcegen/null.d.ts +2 -2
  838. package/dist/sourcegen/null.js +2 -6
  839. package/dist/sourcegen/null.js.map +1 -1
  840. package/dist/sourcegen/number.d.ts +2 -2
  841. package/dist/sourcegen/number.js +2 -6
  842. package/dist/sourcegen/number.js.map +1 -1
  843. package/dist/sourcegen/object.d.ts +3 -3
  844. package/dist/sourcegen/object.js +6 -14
  845. package/dist/sourcegen/object.js.map +1 -1
  846. package/dist/sourcegen/objectbuilder.d.ts +4 -4
  847. package/dist/sourcegen/objectbuilder.js +21 -26
  848. package/dist/sourcegen/objectbuilder.js.map +1 -1
  849. package/dist/sourcegen/output.js +1 -5
  850. package/dist/sourcegen/output.js.map +1 -1
  851. package/dist/sourcegen/program.d.ts +4 -4
  852. package/dist/sourcegen/program.js +24 -64
  853. package/dist/sourcegen/program.js.map +1 -1
  854. package/dist/sourcegen/string.d.ts +2 -2
  855. package/dist/sourcegen/string.js +5 -10
  856. package/dist/sourcegen/string.js.map +1 -1
  857. package/dist/sourcegen/undefined.d.ts +2 -2
  858. package/dist/sourcegen/undefined.js +2 -6
  859. package/dist/sourcegen/undefined.js.map +1 -1
  860. package/dist/sourcegen/unknown.d.ts +1 -1
  861. package/dist/sourcegen/unknown.js +15 -18
  862. package/dist/sourcegen/unknown.js.map +1 -1
  863. package/dist/sourcegen/value.d.ts +1 -1
  864. package/dist/sourcegen/value.js +1 -5
  865. package/dist/sourcegen/value.js.map +1 -1
  866. package/dist/testing/fixture-sandbox.d.ts +20 -33
  867. package/dist/testing/fixture-sandbox.js +91 -75
  868. package/dist/testing/fixture-sandbox.js.map +1 -1
  869. package/dist/testing/global-setup.d.ts +2 -0
  870. package/dist/testing/global-setup.js +14 -0
  871. package/dist/testing/global-setup.js.map +1 -0
  872. package/dist/util/index.js +1 -4
  873. package/dist/util/index.js.map +1 -1
  874. package/oclif.manifest.json +86 -54
  875. package/package.json +46 -58
  876. package/dist/loader/ts-node.d.ts +0 -26
  877. package/dist/loader/ts-node.js +0 -111
  878. package/dist/loader/ts-node.js.map +0 -1
@@ -1,16 +1,6 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.stableJsonEncode = stableJsonEncode;
7
- exports.canonicalizePackageJson = canonicalizePackageJson;
8
- exports.composeCacheHash = composeCacheHash;
9
- exports.loadWorkspaceCacheHashInputs = loadWorkspaceCacheHashInputs;
10
- exports.computeWorkspaceCacheHash = computeWorkspaceCacheHash;
11
- const node_crypto_1 = require("node:crypto");
12
- const promises_1 = __importDefault(require("node:fs/promises"));
13
- const node_path_1 = __importDefault(require("node:path"));
1
+ import { createHash } from 'node:crypto';
2
+ import fs from 'node:fs/promises';
3
+ import path from 'node:path';
14
4
  const PACKAGE_JSON_EXCLUDED_FIELDS = ['version'];
15
5
  /**
16
6
  * Encodes a value as JSON in a way that's stable across runs and machines.
@@ -28,7 +18,7 @@ const PACKAGE_JSON_EXCLUDED_FIELDS = ['version'];
28
18
  * other encoders. Package.json content is effectively never numeric
29
19
  * outside config blobs, so this is negligible in practice.
30
20
  */
31
- function stableJsonEncode(value) {
21
+ export function stableJsonEncode(value) {
32
22
  if (value === null) {
33
23
  return 'null';
34
24
  }
@@ -92,7 +82,7 @@ function encodeString(s) {
92
82
  * Parses a package.json, removes the named top-level fields, and re-encodes
93
83
  * the result via {@link stableJsonEncode}.
94
84
  */
95
- function canonicalizePackageJson(raw, excludedFields) {
85
+ export function canonicalizePackageJson(raw, excludedFields) {
96
86
  const obj = JSON.parse(raw.toString('utf8'));
97
87
  if (obj === null || typeof obj !== 'object' || Array.isArray(obj)) {
98
88
  throw new Error('package.json must contain a JSON object at the top level');
@@ -117,8 +107,8 @@ function canonicalizePackageJson(raw, excludedFields) {
117
107
  * `package.json:<relative/path>`, whose content is the canonicalized
118
108
  * package.json bytes.
119
109
  */
120
- function composeCacheHash(input) {
121
- const hash = (0, node_crypto_1.createHash)('sha256');
110
+ export function composeCacheHash(input) {
111
+ const hash = createHash('sha256');
122
112
  const writeRecord = (label, content) => {
123
113
  const labelBytes = Buffer.from(label, 'utf8');
124
114
  hash.update(uint64BE(labelBytes.length));
@@ -154,23 +144,23 @@ function uint64BE(n) {
154
144
  * Paths are normalized to forward slashes and made relative to the
155
145
  * workspace root so that they match what ends up in the bundle archive.
156
146
  */
157
- async function loadWorkspaceCacheHashInputs(workspace) {
147
+ export async function loadWorkspaceCacheHashInputs(workspace) {
158
148
  const allPackages = [workspace.root, ...workspace.packages];
159
149
  const packageJsons = await Promise.all(allPackages.map(async (pkg) => {
160
- const raw = await promises_1.default.readFile(pkg.packageJsonPath);
161
- const rel = node_path_1.default.relative(workspace.root.path, pkg.packageJsonPath);
150
+ const raw = await fs.readFile(pkg.packageJsonPath);
151
+ const rel = path.relative(workspace.root.path, pkg.packageJsonPath);
162
152
  return {
163
- path: rel.split(node_path_1.default.sep).join('/'),
153
+ path: rel.split(path.sep).join('/'),
164
154
  raw,
165
155
  };
166
156
  }));
167
157
  let lockfile;
168
158
  if (workspace.lockfile.isOk()) {
169
159
  const lockfilePath = workspace.lockfile.ok();
170
- const lockfileBytes = await promises_1.default.readFile(lockfilePath);
160
+ const lockfileBytes = await fs.readFile(lockfilePath);
171
161
  lockfile = {
172
- name: node_path_1.default.basename(lockfilePath),
173
- hash: (0, node_crypto_1.createHash)('sha256').update(lockfileBytes).digest(),
162
+ name: path.basename(lockfilePath),
163
+ hash: createHash('sha256').update(lockfileBytes).digest(),
174
164
  };
175
165
  }
176
166
  return { lockfile, packageJsons };
@@ -179,7 +169,7 @@ async function loadWorkspaceCacheHashInputs(workspace) {
179
169
  * Convenience wrapper that loads workspace inputs and composes the cache
180
170
  * hash with the standard set of excluded package.json fields.
181
171
  */
182
- async function computeWorkspaceCacheHash(workspace) {
172
+ export async function computeWorkspaceCacheHash(workspace) {
183
173
  const inputs = await loadWorkspaceCacheHashInputs(workspace);
184
174
  return composeCacheHash({
185
175
  ...inputs,
@@ -1 +1 @@
1
- {"version":3,"file":"cache-hash.js","sourceRoot":"","sources":["../../../src/services/check-parser/cache-hash.ts"],"names":[],"mappings":";;;;;AAmDA,4CA2BC;AAsCD,0DASC;AAiBD,4CA2BC;AAeD,oEAyBC;AAMD,8DAMC;AA7ND,6CAAwC;AACxC,gEAAiC;AACjC,0DAA4B;AA+B5B,MAAM,4BAA4B,GAAG,CAAC,SAAS,CAAC,CAAA;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,gBAAgB,CAAE,KAAc;IAC9C,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACnB,OAAO,MAAM,CAAA;IACf,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;IACjC,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,oCAAoC,KAAK,EAAE,CAAC,CAAA;QAC9D,CAAC;QACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAA;IACtB,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,YAAY,CAAC,KAAK,CAAC,CAA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;QACtB,GAAG,MAAM;QACT,cAAc,EAAE,4BAA4B;KAC7C,CAAC,CAAA;AACJ,CAAC"}
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Collector = void 0;
4
- const errors_1 = require("./errors");
5
- class Collector {
1
+ import { DependencyParseError } from './errors.js';
2
+ export class Collector {
6
3
  entrypoint;
7
4
  entrypointContent;
8
5
  missingFiles = [];
@@ -30,7 +27,7 @@ class Collector {
30
27
  }
31
28
  validate() {
32
29
  if (this.missingFiles.length || this.parseErrors.length || this.unsupportedNpmDependencies.length) {
33
- throw new errors_1.DependencyParseError(this.entrypoint, this.missingFiles, this.unsupportedNpmDependencies, this.parseErrors);
30
+ throw new DependencyParseError(this.entrypoint, this.missingFiles, this.unsupportedNpmDependencies, this.parseErrors);
34
31
  }
35
32
  }
36
33
  getItems() {
@@ -46,5 +43,4 @@ class Collector {
46
43
  };
47
44
  }
48
45
  }
49
- exports.Collector = Collector;
50
46
  //# sourceMappingURL=collector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collector.js","sourceRoot":"","sources":["../../../src/services/check-parser/collector.ts"],"names":[],"mappings":";;;AAAA,qCAA+C;AAY/C,MAAa,SAAS;IACpB,UAAU,CAAQ;IAClB,iBAAiB,CAAQ;IACzB,YAAY,GAAa,EAAE,CAAA;IAC3B,WAAW,GAAiB,EAAE,CAAA;IAC9B,0BAA0B,GAAiC,EAAE,CAAA;IAC7D,YAAY,GAAG,IAAI,GAAG,EAAkB,CAAA;IAExC,YAAa,UAAkB,EAAE,iBAAyB;QACxD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;IAC5C,CAAC;IAED,aAAa,CAAE,IAAY;QACzB,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IACpC,CAAC;IAED,aAAa,CAAE,IAAY,EAAE,OAAe;QAC1C,I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,IAAI,CAAC,WAAW,CACjB,CAAA;QACH,CAAC;IACH,CAAC;IAED,QAAQ;QACN,OAAO;YACL,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI,CAAC,UAAU;gBACzB,OAAO,EAAE,IAAI,CAAC,iBAAiB;aAChC;YACD,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;gBACvE,QAAQ,EAAE,GAAG;gBACb,OAAO,EAAE,KAAK;aACf,CAAC,CAAC;SACJ,CAAA;IACH,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- import { ParseError, UnsupportedNpmDependencies } from './collector';
1
+ import { ParseError, UnsupportedNpmDependencies } from './collector.js';
2
2
  export declare class DependencyParseError extends Error {
3
3
  entrypoint: string;
4
4
  missingFiles: string[];
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DependencyParseError = void 0;
4
- class DependencyParseError extends Error {
1
+ export class DependencyParseError extends Error {
5
2
  entrypoint;
6
3
  missingFiles;
7
4
  unsupportedNpmDependencies;
@@ -46,5 +43,4 @@ class DependencyParseError extends Error {
46
43
  this.parseErrors = parseErrors;
47
44
  }
48
45
  }
49
- exports.DependencyParseError = DependencyParseError;
50
46
  //# sourceMappingURL=errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/services/check-parser/errors.ts"],"names":[],"mappings":";;;AAEA,MAAa,oBAAqB,SAAQ,KAAK;IAC7C,UAAU,CAAQ;IAClB,YAAY,CAAU;IACtB,0BAA0B,CAA8B;IACxD,WAAW,CAAc;IACzB,YACE,UAAkB,EAClB,YAAsB,EACtB,0BAAwD,EACxD,WAAyB;QAEzB,IAAI,OAAO,GAAG,gDAAgD,UAAU,GAAG,CAAA;QAC3E,IAAI,YAAY,CAAC,MAAM,EA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gBACH,CAAC;YACH,CAAC;QACH,CAAC;QACD,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;YACvB,OAAO,IAAI,gDAAgD,CAAA;YAC3D,KAAK,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,WAAW,EAAE,CAAC;gBAC1C,OAAO,IAAI,KAAK,IAAI,MAAM,KAAK,IAAI,CAAA;YACrC,CAAC;QACH,CAAC;QACD,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAA;QAClC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;QAChC,IAAI,CAAC,0BAA0B,GAAG,0BAA0B,CAAA;QAC5D,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;IAChC,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- import { Package } from './package-files/workspace';
2
- import { VirtualFile } from './parser';
1
+ import { Package } from './package-files/workspace.js';
2
+ import { VirtualFile } from './parser.js';
3
3
  export declare const FAUX_PACKAGE_DESCRIPTION: string;
4
4
  export declare function createFauxPackageFiles(pkg: Package): VirtualFile[];
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FAUX_PACKAGE_DESCRIPTION = void 0;
4
- exports.createFauxPackageFiles = createFauxPackageFiles;
5
- exports.FAUX_PACKAGE_DESCRIPTION = `This is a placeholder for an `
1
+ export const FAUX_PACKAGE_DESCRIPTION = `This is a placeholder for an `
6
2
  + `otherwise unused package that Checkly determined to be needed during `
7
3
  + `the installation step.`;
8
- function createFauxPackageFiles(pkg) {
4
+ export function createFauxPackageFiles(pkg) {
9
5
  return [{
10
6
  filePath: pkg.packageJsonPath,
11
7
  physical: false,
12
8
  content: JSON.stringify({
13
9
  name: pkg.name,
14
10
  version: '0.0.0',
15
- description: exports.FAUX_PACKAGE_DESCRIPTION,
11
+ description: FAUX_PACKAGE_DESCRIPTION,
16
12
  private: true,
17
13
  }, undefined, 2),
18
14
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"faux-package.js","sourceRoot":"","sources":["../../../src/services/check-parser/faux-package.ts"],"names":[],"mappings":";;;AAOA,wDAeC;AAnBY,QAAA,wBAAwB,GAAG,+BAA+B;MACnE,uEAAuE;MACvE,wBAAwB,CAAA;AAE5B,SAAgB,sBAAsB,CAAE,GAAY;IAClD,OAAO,CAAC;YACN,QAAQ,EAAE,GAAG,CAAC,eAAe;YAC7B,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,IAAI,CAAC,SAAS,CACrB;gBACE,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,OAAO,EAAE,OAAO;gBAChB,WAAW,EAAE,gCAAwB;gBACrC,OAAO,EAAE,IAAI;aACd,EACD,SAAS,EACT,CAAC,CACF;SACF,CAAC,CAAA;AACJ,CAAC"}
1
+ {"version":3,"file":"faux-package.js","sourceRoot":"","sources":["../../../src/services/check-parser/faux-package.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,wBAAwB,GAAG,+BAA+B;MACnE,uEAAuE;MACvE,wBAAwB,CAAA;AAE5B,MAAM,UAAU,sBAAsB,CAAE,GAAY;IAClD,OAAO,CAAC;YACN,QAAQ,EAAE,GAAG,CAAC,eAAe;YAC7B,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,IAAI,CAAC,SAAS,CACrB;gBACE,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,OAAO,EAAE,OAAO;gBAChB,WAAW,EAAE,wBAAwB;gBACrC,OAAO,EAAE,IAAI;aACd,EACD,SAAS,EACT,CAAC,CACF;SACF,CAAC,CAAA;AACJ,CAAC"}
@@ -1,15 +1,7 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FileExtPath = exports.tsExtensionLookupOrder = exports.TSExtensions = exports.tsCoreExtensionLookupOrder = exports.CoreExtensions = void 0;
7
- exports.isCoreExtension = isCoreExtension;
8
- exports.isTSExtension = isTSExtension;
9
- const node_path_1 = __importDefault(require("node:path"));
10
- exports.CoreExtensions = ['.js', '.mjs', '.cjs', '.json'];
11
- function isCoreExtension(value) {
12
- return exports.CoreExtensions.includes(value);
1
+ import path from 'node:path';
2
+ export const CoreExtensions = ['.js', '.mjs', '.cjs', '.json'];
3
+ export function isCoreExtension(value) {
4
+ return CoreExtensions.includes(value);
13
5
  }
14
6
  /**
15
7
  * Unlike TypeScript's native lookup order, our lookup order prefers
@@ -22,17 +14,17 @@ function isCoreExtension(value) {
22
14
  *
23
15
  * @see https://www.typescriptlang.org/docs/handbook/modules/reference.html#file-extension-substitution
24
16
  */
25
- exports.tsCoreExtensionLookupOrder = {
17
+ export const tsCoreExtensionLookupOrder = {
26
18
  '.js': ['.ts', '.tsx', '.js', '.jsx', '.d.ts'],
27
19
  '.mjs': ['.mts', '.mjs', '.d.mts'],
28
20
  '.cjs': ['.cts', '.cjs', '.d.cts'],
29
21
  '.json': ['.json'],
30
22
  };
31
- exports.TSExtensions = ['.ts', '.mts', '.cts', '.tsx'];
32
- function isTSExtension(value) {
33
- return exports.TSExtensions.includes(value);
23
+ export const TSExtensions = ['.ts', '.mts', '.cts', '.tsx'];
24
+ export function isTSExtension(value) {
25
+ return TSExtensions.includes(value);
34
26
  }
35
- exports.tsExtensionLookupOrder = {
27
+ export const tsExtensionLookupOrder = {
36
28
  '.ts': ['.ts'],
37
29
  '.mts': ['.mts'],
38
30
  '.cts': ['.cts'],
@@ -41,7 +33,7 @@ exports.tsExtensionLookupOrder = {
41
33
  function stripKnownSuffix(value, suffix) {
42
34
  return value.substring(0, value.length - suffix.length);
43
35
  }
44
- class FileExtPath {
36
+ export class FileExtPath {
45
37
  filePath;
46
38
  ext;
47
39
  constructor(filePath, ext) {
@@ -49,14 +41,14 @@ class FileExtPath {
49
41
  this.ext = ext;
50
42
  }
51
43
  static fromFilePath(filePath) {
52
- const ext = node_path_1.default.extname(filePath);
44
+ const ext = path.extname(filePath);
53
45
  return new FileExtPath(filePath, ext);
54
46
  }
55
47
  hasCoreExtension() {
56
- return this.ext in exports.tsCoreExtensionLookupOrder;
48
+ return this.ext in tsCoreExtensionLookupOrder;
57
49
  }
58
50
  hasTypeScriptExtension() {
59
- return this.ext in exports.tsExtensionLookupOrder;
51
+ return this.ext in tsExtensionLookupOrder;
60
52
  }
61
53
  replaceExt(ext) {
62
54
  return stripKnownSuffix(this.filePath, this.ext) + ext;
@@ -65,11 +57,10 @@ class FileExtPath {
65
57
  return this.filePath + ext;
66
58
  }
67
59
  resolve(...paths) {
68
- return node_path_1.default.resolve(this.filePath, ...paths);
60
+ return path.resolve(this.filePath, ...paths);
69
61
  }
70
62
  self() {
71
63
  return this.filePath;
72
64
  }
73
65
  }
74
- exports.FileExtPath = FileExtPath;
75
66
  //# sourceMappingURL=extension.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"extension.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/extension.ts"],"names":[],"mappings":";;;;;;AAMA,0CAEC;AA4BD,sCAEC;AAtCD,0DAA4B;AAIf,QAAA,cAAc,GAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;AAE/E,SAAgB,eAAe,CAAE,KAAa;IAC5C,OAAO,sBAAc,CAAC,QAAQ,CAAC,KAAsB,CAAC,CAAA;AACxD,CAAC;AAMD;;;;;;;;;;GAUG;AACU,QAAA,0BAA0B,GAAyB;IAC9D,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;IAC9C,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;IAClC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;IAClC,OAAO,EAAE,CAAC,OAAO,CAAC;CACnB,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TSConfigFile, Schema } from './tsconfig-json-file.js';
2
+ import { JsonSourceFile } from './json-source-file.js';
3
3
  /**
4
4
  * JSConfigFile is essentially the exact same as TSConfigFile but with
5
5
  * allowJs implicitly enabled.
@@ -1,11 +1,5 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.JSConfigFile = void 0;
7
- const node_path_1 = __importDefault(require("node:path"));
8
- const tsconfig_json_file_1 = require("./tsconfig-json-file");
1
+ import path from 'node:path';
2
+ import { TSConfigFile } from './tsconfig-json-file.js';
9
3
  /**
10
4
  * JSConfigFile is essentially the exact same as TSConfigFile but with
11
5
  * allowJs implicitly enabled.
@@ -14,17 +8,16 @@ const tsconfig_json_file_1 = require("./tsconfig-json-file");
14
8
  * much extra trouble to have a separate wrapper for it and doing it this way
15
9
  * may enable some interesting features later.
16
10
  */
17
- class JSConfigFile extends tsconfig_json_file_1.TSConfigFile {
11
+ export class JSConfigFile extends TSConfigFile {
18
12
  static FILENAME = 'jsconfig.json';
19
13
  static #id = 0;
20
14
  id = ++JSConfigFile.#id;
21
15
  static filePath(dirPath) {
22
- return node_path_1.default.join(dirPath, JSConfigFile.FILENAME);
16
+ return path.join(dirPath, JSConfigFile.FILENAME);
23
17
  }
24
18
  // eslint-disable-next-line require-await
25
19
  static async loadFromJsonSourceFile(jsonFile) {
26
20
  return new JSConfigFile(jsonFile);
27
21
  }
28
22
  }
29
- exports.JSConfigFile = JSConfigFile;
30
23
  //# sourceMappingURL=jsconfig-json-file.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsconfig-json-file.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/jsconfig-json-file.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA4B;AAE5B,6DAA2D;AAG3D;;;;;;;GAOG;AACH,MAAa,YAAa,SAAQ,iCAAY;IAC5C,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAA;IAEjC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAA;IACL,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,CAAA;IAEhC,MAAM,CAAC,QAAQ,CAAE,OAAe;QAC9B,OAAO,mBAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAA;IAClD,CAAC;IAED,yCAAyC;IACzC,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAE,QAAgC;QACnE,OAAO,IAAI,YAAY,CAAC,QAAQ,CAAC,CAAA;IACnC,CAAC;;AAbH,oCAcC"}
1
+ {"version":3,"file":"jsconfig-json-file.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/jsconfig-json-file.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAAE,YAAY,EAAU,MAAM,yBAAyB,CAAA;AAG9D;;;;;;;GAOG;AACH,MAAM,OAAO,YAAa,SAAQ,YAAY;IAC5C,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAA;IAEjC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAA;IACL,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,CAAA;IAEhC,MAAM,CAAC,QAAQ,CAAE,OAAe;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAA;IAClD,CAAC;IAED,yCAAyC;IACzC,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAE,QAAgC;QACnE,OAAO,IAAI,YAAY,CAAC,QAAQ,CAAC,CAAA;IACnC,CAAC"}
@@ -1,11 +1,11 @@
1
- import { SourceFile } from './source-file';
1
+ import { SourceFile } from './source-file.js';
2
2
  export declare class JsonSourceFile<Schema> {
3
3
  #private;
4
4
  readonly id: number;
5
5
  sourceFile: SourceFile;
6
6
  data: Schema;
7
7
  constructor(sourceFile: SourceFile, data: Schema);
8
- get meta(): import("./source-file").FileMeta;
8
+ get meta(): import("./source-file.js").FileMeta;
9
9
  static loadFromSourceFile<Schema>(sourceFile: SourceFile): Promise<JsonSourceFile<Schema> | undefined>;
10
10
  static loadFromFilePath<Schema>(filePath: string): Promise<JsonSourceFile<Schema> | undefined>;
11
11
  }
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JsonSourceFile = void 0;
4
- const source_file_1 = require("./source-file");
5
- class JsonSourceFile {
1
+ import { SourceFile } from './source-file.js';
2
+ export class JsonSourceFile {
6
3
  static #id = 0;
7
4
  id = ++JsonSourceFile.#id;
8
5
  sourceFile;
@@ -25,12 +22,11 @@ class JsonSourceFile {
25
22
  }
26
23
  }
27
24
  static async loadFromFilePath(filePath) {
28
- const sourceFile = await source_file_1.SourceFile.loadFromFilePath(filePath);
25
+ const sourceFile = await SourceFile.loadFromFilePath(filePath);
29
26
  if (!sourceFile) {
30
27
  return;
31
28
  }
32
29
  return JsonSourceFile.loadFromSourceFile(sourceFile);
33
30
  }
34
31
  }
35
- exports.JsonSourceFile = JsonSourceFile;
36
32
  //# sourceMappingURL=json-source-file.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-source-file.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/json-source-file.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAE1C,MAAa,cAAc;IACzB,MAAM,CAAC,GAAG,GAAG,CAAC,CAAA;IACL,EAAE,GAAG,EAAE,cAAc,CAAC,GAAG,CAAA;IAElC,UAAU,CAAY;IACtB,IAAI,CAAQ;IAEZ,YAAa,UAAsB,EAAE,IAAY;QAC/C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAA;IAC7B,CAAC;IAED,yCAAyC;IACzC,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAU,UAAsB;QAC7D,IAAI,CAAC;YACH,MAAM,IAAI,GAAW,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;YAEpD,OAAO,IAAI,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;QAC7C,CAAC;QAAC,MAAM,CAAC;YACP,UAAU;QACZ,CAAC;IACH,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAU,QAAgB;QACrD,MAAM,UAAU,GAAG,MAAM,wBAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAA;QAC9D,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAM;QACR,CAAC;QAED,OAAO,cAAc,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAA;IACtD,CAAC;;AAlCH,wCAmCC"}
1
+ {"version":3,"file":"json-source-file.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/json-source-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,MAAM,OAAO,cAAc;IACzB,MAAM,CAAC,GAAG,GAAG,CAAC,CAAA;IACL,EAAE,GAAG,EAAE,cAAc,CAAC,GAAG,CAAA;IAElC,UAAU,CAAY;IACtB,IAAI,CAAQ;IAEZ,YAAa,UAAsB,EAAE,IAAY;QAC/C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAA;IAC7B,CAAC;IAED,yCAAyC;IACzC,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAU,UAAsB;QAC7D,IAAI,CAAC;YACH,MAAM,IAAI,GAAW,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;YAEpD,OAAO,IAAI,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;QAC7C,CAAC;QAAC,MAAM,CAAC;YACP,UAAU;QACZ,CAAC;IACH,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAU,QAAgB;QACrD,MAAM,UAAU,GAAG,MAAM,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAA;QAC9D,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAM;QACR,CAAC;QAED,OAAO,cAAc,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAA;IACtD,CAAC"}
@@ -1,5 +1,5 @@
1
- import { SourceFile } from './source-file';
2
- import { SourceFileParser } from './source-file-parser';
1
+ import { SourceFile } from './source-file.js';
2
+ import { SourceFileParser } from './source-file-parser.js';
3
3
  export declare class JsonTextSourceFileParser extends SourceFileParser {
4
4
  static state: SourceFileParser;
5
5
  parseSourceFile<T = unknown>(sourceFile: SourceFile): Promise<T>;
@@ -1,26 +1,23 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JsonTextSourceFileParser = void 0;
4
- const source_file_1 = require("./source-file");
5
- const source_file_parser_1 = require("./source-file-parser");
6
- class UninitializedJsonTextSourceFileParserState extends source_file_parser_1.SourceFileParser {
1
+ import { FileMeta, SourceFile } from './source-file.js';
2
+ import { SourceFileParserFuncState, SourceFileParser } from './source-file-parser.js';
3
+ class UninitializedJsonTextSourceFileParserState extends SourceFileParser {
7
4
  static init;
8
5
  async #parser() {
9
6
  try {
10
7
  const typescriptExports = await import('typescript');
11
8
  const { parseJsonText, convertToObject } = typescriptExports.default;
12
- const parser = new source_file_parser_1.SourceFileParserFuncState((sourceFile) => {
9
+ const parser = new SourceFileParserFuncState((sourceFile) => {
13
10
  const errors = [];
14
11
  const parsed = parseJsonText(sourceFile.meta.filePath, sourceFile.contents);
15
12
  const object = convertToObject(parsed, errors);
16
13
  return object;
17
14
  });
18
15
  // Make sure it actually works.
19
- await parser.parseSourceFile(new source_file_1.SourceFile(source_file_1.FileMeta.fromFilePath('x.json'), '{} // Comment'));
16
+ await parser.parseSourceFile(new SourceFile(FileMeta.fromFilePath('x.json'), '{} // Comment'));
20
17
  return parser;
21
18
  }
22
19
  catch {
23
- return new source_file_parser_1.SourceFileParserFuncState((sourceFile) => {
20
+ return new SourceFileParserFuncState((sourceFile) => {
24
21
  const data = JSON.parse(sourceFile.contents);
25
22
  return data;
26
23
  });
@@ -37,7 +34,7 @@ class UninitializedJsonTextSourceFileParserState extends source_file_parser_1.So
37
34
  UninitializedJsonTextSourceFileParserState.init = undefined;
38
35
  }
39
36
  }
40
- class JsonTextSourceFileParser extends source_file_parser_1.SourceFileParser {
37
+ export class JsonTextSourceFileParser extends SourceFileParser {
41
38
  static state = new UninitializedJsonTextSourceFileParserState();
42
39
  async parseSourceFile(sourceFile) {
43
40
  return await JsonTextSourceFileParser.state.parseSourceFile(sourceFile);
@@ -47,5 +44,4 @@ class JsonTextSourceFileParser extends source_file_parser_1.SourceFileParser {
47
44
  UninitializedJsonTextSourceFileParserState.reset();
48
45
  }
49
46
  }
50
- exports.JsonTextSourceFileParser = JsonTextSourceFileParser;
51
47
  //# sourceMappingURL=json-text-source-file-parser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-text-source-file-parser.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/json-text-source-file-parser.ts"],"names":[],"mappings":";;;AAAA,+CAAoD;AACpD,6DAAkF;AAElF,MAAM,0CAA2C,SAAQ,qCAAgB;IAC/D,MAAM,CAAC,IAAI,CAAgB;IAEnC,KAAK,CAAC,OAAO;QACX,IAAI,CAAC;YACH,MAAM,iBAAiB,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,CAAA;YACpD,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAA;YAEpE,MAAM,MAAM,GAAG,IAAI,8CAAyB,CAAC,CAAI,UAAsB,EAAE,EAAE;gBACzE,MAAM,MAAM,GAAU,EAAE,CAAA;gBACxB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AC5E,CAAC;IAED,MAAM,CAAC,KAAK;QACV,wBAAwB,CAAC,KAAK,GAAG,IAAI,0CAA0C,EAAE,CAAA;QACjF,0CAA0C,CAAC,KAAK,EAAE,CAAA;IACpD,CAAC;;AAVH,4DAWC"}
1
+ {"version":3,"file":"json-text-source-file-parser.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/json-text-source-file-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAErF,MAAM,0CAA2C,SAAQ,gBAAgB;IAC/D,MAAM,CAAC,IAAI,CAAgB;IAEnC,KAAK,CAAC,OAAO;QACX,IAAI,CAAC;YACH,MAAM,iBAAiB,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,CAAA;YACpD,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAA;YAEpE,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,CAAI,UAAsB,EAAE,EAAE;gBACzE,MAAM,MAAM,GAAU,EAAE,CAAA;gBACxB,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAA;gBAC3E,MAAM,MAAM,GAAM,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;gBACjD,OAAO,MAAM,CAAA;YACf,CAAC,CAAC,CAAA;YAEF,+BAA+B;YAC/B,MAAM,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CACzC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,EAC/B,eAAe,CAChB,CAAC,CAAA;YAEF,OAAO,MAAM,CAAA;QACf,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,yBAAyB,CAAC,CAAI,UAAsB,EAAE,EAAE;gBACjE,MAAM,IAAI,GAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;gBAC/C,OAAO,IAAI,CAAA;YACb,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,eAAe,CAAe,UAAsB;QACxD,0CAA0C,CAAC,IAAI,KAAK,CAAC,KAAK,IAAI,EAAE;YAC9D,wBAAwB,CAAC,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,CAAA;QACvD,CAAC,CAAC,EAAE,CAAA;QAEJ,MAAM,0CAA0C,CAAC,IAAI,CAAA;QAErD,OAAO,MAAM,wBAAwB,CAAC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAA;IACzE,CAAC;IAED,MAAM,CAAC,KAAK;QACV,0CAA0C,CAAC,IAAI,GAAG,SAAS,CAAA;IAC7D,CAAC;CACF;AAED,MAAM,OAAO,wBAAyB,SAAQ,gBAAgB;IAC5D,MAAM,CAAC,KAAK,GAAqB,IAAI,0CAA0C,EAAE,CAAA;IAEjF,KAAK,CAAC,eAAe,CAAe,UAAsB;QACxD,OAAO,MAAM,wBAAwB,CAAC,KAAK,CAAC,eAAe,CAAI,UAAU,CAAC,CAAA;IAC5E,CAAC;IAED,MAAM,CAAC,KAAK;QACV,wBAAwB,CAAC,KAAK,GAAG,IAAI,0CAA0C,EAAE,CAAA;QACjF,0CAA0C,CAAC,KAAK,EAAE,CAAA;IACpD,CAAC"}
@@ -1,5 +1,5 @@
1
- import { JsonSourceFile } from './json-source-file';
2
- import { SourceFile } from './source-file';
1
+ import { JsonSourceFile } from './json-source-file.js';
2
+ import { SourceFile } from './source-file.js';
3
3
  export declare class JsonTextSourceFile<Schema> extends JsonSourceFile<Schema> {
4
4
  #private;
5
5
  static loadFromSourceFile<Schema>(sourceFile: SourceFile): Promise<JsonTextSourceFile<Schema> | undefined>;
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JsonTextSourceFile = void 0;
4
- const json_source_file_1 = require("./json-source-file");
5
- const json_text_source_file_parser_1 = require("./json-text-source-file-parser");
6
- class JsonTextSourceFile extends json_source_file_1.JsonSourceFile {
7
- static #parser = new json_text_source_file_parser_1.JsonTextSourceFileParser();
1
+ import { JsonSourceFile } from './json-source-file.js';
2
+ import { JsonTextSourceFileParser } from './json-text-source-file-parser.js';
3
+ export class JsonTextSourceFile extends JsonSourceFile {
4
+ static #parser = new JsonTextSourceFileParser();
8
5
  static async loadFromSourceFile(sourceFile) {
9
6
  try {
10
7
  const data = await this.#parser.parseSourceFile(sourceFile);
@@ -15,8 +12,7 @@ class JsonTextSourceFile extends json_source_file_1.JsonSourceFile {
15
12
  }
16
13
  }
17
14
  static reset() {
18
- json_text_source_file_parser_1.JsonTextSourceFileParser.reset();
15
+ JsonTextSourceFileParser.reset();
19
16
  }
20
17
  }
21
- exports.JsonTextSourceFile = JsonTextSourceFile;
22
18
  //# sourceMappingURL=json-text-source-file.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-text-source-file.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/json-text-source-file.ts"],"names":[],"mappings":";;;AAAA,yDAAmD;AACnD,iFAAyE;AAGzE,MAAa,kBAA2B,SAAQ,iCAAsB;IACpE,MAAM,CAAC,OAAO,GAAG,IAAI,uDAAwB,EAAE,CAAA;IAE/C,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAU,UAAsB;QAC7D,IAAI,CAAC;YACH,MAAM,IAAI,GAAW,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAA;YAEnE,OAAO,IAAI,kBAAkB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;QACjD,CAAC;QAAC,MAAM,CAAC;YACP,UAAU;QACZ,CAAC;IACH,CAAC;IAED,MAAM,CAAC,KAAK;QACV,uDAAwB,CAAC,KAAK,EAAE,CAAA;IAClC,CAAC;;AAfH,gDAgBC"}
1
+ {"version":3,"file":"json-text-source-file.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/json-text-source-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAG5E,MAAM,OAAO,kBAA2B,SAAQ,cAAsB;IACpE,MAAM,CAAC,OAAO,GAAG,IAAI,wBAAwB,EAAE,CAAA;IAE/C,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAU,UAAsB;QAC7D,IAAI,CAAC;YACH,MAAM,IAAI,GAAW,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAA;YAEnE,OAAO,IAAI,kBAAkB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;QACjD,CAAC;QAAC,MAAM,CAAC;YACP,UAAU;QACZ,CAAC;IACH,CAAC;IAED,MAAM,CAAC,KAAK;QACV,wBAAwB,CAAC,KAAK,EAAE,CAAA;IAClC,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FileLoader = void 0;
4
- class FileLoader {
1
+ export class FileLoader {
5
2
  loader;
6
3
  cache = new Map();
7
4
  constructor(loader) {
@@ -16,5 +13,4 @@ class FileLoader {
16
13
  return file;
17
14
  }
18
15
  }
19
- exports.FileLoader = FileLoader;
20
16
  //# sourceMappingURL=loader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/loader.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;IACrB,MAAM,CAAa;IACnB,KAAK,GAAG,IAAI,GAAG,EAAyB,CAAA;IAExC,YAAa,MAAmB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,IAAI,CAAE,QAAgB;QAC1B,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;QACjC,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QACxC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QAC9B,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAhBD,gCAgBC"}
1
+ {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../../src/services/check-parser/package-files/loader.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,UAAU;IACrB,MAAM,CAAa;IACnB,KAAK,GAAG,IAAI,GAAG,EAAyB,CAAA;IAExC,YAAa,MAAmB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,IAAI,CAAE,QAAgB;QAC1B,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;QACjC,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QACxC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QAC9B,OAAO,IAAI,CAAA;IACb,CAAC;CACF"}
@@ -1,20 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LookupContext = void 0;
4
- const package_json_file_1 = require("./package-json-file");
5
- const extension_1 = require("./extension");
6
- class LookupContext {
1
+ import { PackageJsonFile } from './package-json-file.js';
2
+ import { FileExtPath, tsCoreExtensionLookupOrder, tsExtensionLookupOrder } from './extension.js';
3
+ export class LookupContext {
7
4
  #plainJs;
8
5
  constructor(options) {
9
6
  this.#plainJs = options.plainJs ?? false;
10
7
  }
11
8
  static forFilePath(filePath) {
12
9
  return new LookupContext({
13
- plainJs: extension_1.FileExtPath.fromFilePath(filePath).hasCoreExtension(),
10
+ plainJs: FileExtPath.fromFilePath(filePath).hasCoreExtension(),
14
11
  });
15
12
  }
16
13
  collectLookupPaths(filePath) {
17
- const extPath = extension_1.FileExtPath.fromFilePath(filePath);
14
+ const extPath = FileExtPath.fromFilePath(filePath);
18
15
  if (this.#plainJs) {
19
16
  if (extPath.hasCoreExtension()) {
20
17
  return [extPath.self()];
@@ -22,11 +19,11 @@ class LookupContext {
22
19
  return this.extlessCoreLookupPaths(extPath);
23
20
  }
24
21
  if (extPath.hasCoreExtension()) {
25
- const extensions = extension_1.tsCoreExtensionLookupOrder[extPath.ext];
22
+ const extensions = tsCoreExtensionLookupOrder[extPath.ext];
26
23
  return extensions.map(ext => extPath.replaceExt(ext));
27
24
  }
28
25
  if (extPath.hasTypeScriptExtension()) {
29
- const extensions = extension_1.tsExtensionLookupOrder[extPath.ext];
26
+ const extensions = tsExtensionLookupOrder[extPath.ext];
30
27
  return extensions.map(ext => extPath.replaceExt(ext));
31
28
  }
32
29
  return this.extlessTSLookupPaths(extPath);
@@ -37,7 +34,7 @@ class LookupContext {
37
34
  extPath.appendExt('.mjs'),
38
35
  extPath.appendExt('.cjs'),
39
36
  extPath.appendExt('.json'),
40
- extPath.resolve(package_json_file_1.PackageJsonFile.FILENAME),
37
+ extPath.resolve(PackageJsonFile.FILENAME),
41
38
  extPath.resolve('index.js'),
42
39
  extPath.resolve('index.mjs'),
43
40
  extPath.resolve('index.cjs'),
@@ -46,11 +43,10 @@ class LookupContext {
46
43
  }
47
44
  extlessTSLookupPaths(extPath) {
48
45
  return this.extlessCoreLookupPaths(extPath).flatMap(filePath => {
49
- const extPath = extension_1.FileExtPath.fromFilePath(filePath);
50
- const extensions = extension_1.tsCoreExtensionLookupOrder[extPath.ext];
46
+ const extPath = FileExtPath.fromFilePath(filePath);
47
+ const extensions = tsCoreExtensionLookupOrder[extPath.ext];
51
48
  return extensions.map(ext => extPath.replaceExt(ext));
52
49
  });
53
50
  }
54
51
  }
55
- exports.LookupContext = LookupContext;
56
52
  //# sourceMappingURL=lookup.js.map