@overkill-dev/run 0.0.83 → 0.0.85

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 (615) hide show
  1. package/attachments/failure-artifact-stream.js +2 -2
  2. package/attachments/failure-artifact-stream.js.map +1 -1
  3. package/attachments/run-json-artifact.js +1 -1
  4. package/attachments/run-json-artifact.js.map +1 -1
  5. package/baselines/calibration-store.js +2 -2
  6. package/baselines/calibration-store.js.map +1 -1
  7. package/baselines/performance-adapter.d.ts +2 -2
  8. package/baselines/performance-adapter.d.ts.map +1 -1
  9. package/baselines/performance-baseline.d.ts +2 -2
  10. package/baselines/performance-baseline.d.ts.map +1 -1
  11. package/baselines/performance-baseline.js +1 -1
  12. package/baselines/performance-baseline.js.map +1 -1
  13. package/baselines/performance-check.js +2 -2
  14. package/baselines/performance-check.js.map +1 -1
  15. package/baselines/performance-evaluation.js +1 -1
  16. package/baselines/performance-evaluation.js.map +1 -1
  17. package/baselines/performance-observation.js +1 -1
  18. package/baselines/performance-observation.js.map +1 -1
  19. package/baselines/performance-plan.js +3 -3
  20. package/baselines/performance-plan.js.map +1 -1
  21. package/baselines/performance-store.js +2 -2
  22. package/baselines/performance-store.js.map +1 -1
  23. package/baselines/performance-workflow.js +2 -2
  24. package/baselines/performance-workflow.js.map +1 -1
  25. package/bench/benchmark-statistics-schema.d.ts +1 -1
  26. package/bench/benchmark-statistics-schema.d.ts.map +1 -1
  27. package/bench/calibration-evidence.js +1 -1
  28. package/bench/calibration-evidence.js.map +1 -1
  29. package/bench/calibration-report.d.ts +1 -1
  30. package/bench/calibration-report.d.ts.map +1 -1
  31. package/bench/timeline-schema.js +1 -1
  32. package/bench/timeline-schema.js.map +1 -1
  33. package/config/config.js +1 -1
  34. package/config/config.js.map +1 -1
  35. package/config/execution.d.ts +1 -1
  36. package/config/execution.d.ts.map +1 -1
  37. package/config/property-policy.js +1 -1
  38. package/config/property-policy.js.map +1 -1
  39. package/config/schema.d.ts +4 -4
  40. package/config/schema.d.ts.map +1 -1
  41. package/config/schema.js +2 -2
  42. package/config/schema.js.map +1 -1
  43. package/config/types.d.ts +6 -6
  44. package/config/types.d.ts.map +1 -1
  45. package/package.json +4 -28
  46. package/packages/run/run.entry-point.d.ts +3 -3
  47. package/packages/run/run.entry-point.d.ts.map +1 -1
  48. package/packages/run/run.entry-point.js +1 -1
  49. package/packages/run/run.entry-point.js.map +1 -1
  50. package/reporters/human-reporter-rendering.js +2 -2
  51. package/reporters/human-reporter-rendering.js.map +1 -1
  52. package/reporters/line-failure-rendering.js +1 -1
  53. package/reporters/line-failure-rendering.js.map +1 -1
  54. package/reporters/line-reporter.js +2 -2
  55. package/reporters/line-reporter.js.map +1 -1
  56. package/reporters/progress-reporter.js +1 -1
  57. package/reporters/progress-reporter.js.map +1 -1
  58. package/reporters/tree-reporter.js +1 -1
  59. package/reporters/tree-reporter.js.map +1 -1
  60. package/resources/resource-definition-shape.d.ts +1 -1
  61. package/resources/resource-definition-shape.d.ts.map +1 -1
  62. package/resources/resource-workload-binding.js +2 -2
  63. package/resources/resource-workload-binding.js.map +1 -1
  64. package/run/attachment-eligibility.js +1 -1
  65. package/run/attachment-eligibility.js.map +1 -1
  66. package/run/attachment-execution.js +2 -2
  67. package/run/attachment-execution.js.map +1 -1
  68. package/run/attachment-failure.js +1 -1
  69. package/run/attachment-failure.js.map +1 -1
  70. package/run/attachment-protocol.js +1 -1
  71. package/run/attachment-protocol.js.map +1 -1
  72. package/run/attachment-reporter.js +2 -2
  73. package/run/attachment-reporter.js.map +1 -1
  74. package/run/attachment-results.js +3 -3
  75. package/run/attachment-results.js.map +1 -1
  76. package/run/attachment-retention.js +1 -1
  77. package/run/attachment-retention.js.map +1 -1
  78. package/run/attachment-store.js +1 -1
  79. package/run/attachment-store.js.map +1 -1
  80. package/run/benchmark-baseline-commands.js +1 -1
  81. package/run/benchmark-baseline-commands.js.map +1 -1
  82. package/run/benchmark-baseline-finalization.js +1 -1
  83. package/run/benchmark-baseline-finalization.js.map +1 -1
  84. package/run/benchmark-garbage-collection.js +1 -1
  85. package/run/benchmark-garbage-collection.js.map +1 -1
  86. package/run/benchmark-policy-schema.js +1 -1
  87. package/run/benchmark-policy-schema.js.map +1 -1
  88. package/run/benchmark-report-metadata.js +1 -1
  89. package/run/benchmark-report-metadata.js.map +1 -1
  90. package/run/benchmark-result-schema.js +1 -1
  91. package/run/benchmark-result-schema.js.map +1 -1
  92. package/run/calibration-capture-session.js +2 -2
  93. package/run/calibration-capture-session.js.map +1 -1
  94. package/run/calibration-inventory.js +2 -2
  95. package/run/calibration-inventory.js.map +1 -1
  96. package/run/calibration-maintenance.js +1 -1
  97. package/run/calibration-maintenance.js.map +1 -1
  98. package/run/capability-policy-snapshots.d.ts +1 -1
  99. package/run/capability-policy-snapshots.d.ts.map +1 -1
  100. package/run/capability-policy.js +3 -3
  101. package/run/capability-policy.js.map +1 -1
  102. package/run/collected-run-execution.js +1 -1
  103. package/run/collected-run-execution.js.map +1 -1
  104. package/run/collected-run-plan-schema.js +2 -2
  105. package/run/collected-run-plan-schema.js.map +1 -1
  106. package/run/collected-run-plan.js +4 -4
  107. package/run/collected-run-plan.js.map +1 -1
  108. package/run/command-line-command.d.ts +1 -1
  109. package/run/command-line-command.d.ts.map +1 -1
  110. package/run/command-line-command.js +1 -1
  111. package/run/command-line-command.js.map +1 -1
  112. package/run/command-line-config.d.ts +1 -1
  113. package/run/command-line-config.d.ts.map +1 -1
  114. package/run/default-direct-reporter.js +1 -1
  115. package/run/default-direct-reporter.js.map +1 -1
  116. package/run/default-run-engine.js +7 -7
  117. package/run/default-run-engine.js.map +1 -1
  118. package/run/direct-entrypoint-collection.js +3 -3
  119. package/run/direct-entrypoint-collection.js.map +1 -1
  120. package/run/execution-plan-resolution.js +1 -1
  121. package/run/execution-plan-resolution.js.map +1 -1
  122. package/run/execution-session-child.js +1 -1
  123. package/run/execution-session-child.js.map +1 -1
  124. package/run/execution-session-collected.js +1 -1
  125. package/run/execution-session-collected.js.map +1 -1
  126. package/run/execution-session-host.js +1 -1
  127. package/run/execution-session-host.js.map +1 -1
  128. package/run/execution-session-lifecycle.js +2 -2
  129. package/run/execution-session-lifecycle.js.map +1 -1
  130. package/run/execution-session-observation.js +1 -1
  131. package/run/execution-session-observation.js.map +1 -1
  132. package/run/execution-session-schema.js +1 -1
  133. package/run/execution-session-schema.js.map +1 -1
  134. package/run/execution-session-types.d.ts +1 -1
  135. package/run/execution-session-types.d.ts.map +1 -1
  136. package/run/execution-session.js +1 -1
  137. package/run/execution-session.js.map +1 -1
  138. package/run/failure-artifact-retention.js +2 -2
  139. package/run/failure-artifact-retention.js.map +1 -1
  140. package/run/file-module-boundary.d.ts.map +1 -1
  141. package/run/file-module-boundary.js +36 -3
  142. package/run/file-module-boundary.js.map +1 -1
  143. package/run/frozen-run-policy.js +1 -1
  144. package/run/frozen-run-policy.js.map +1 -1
  145. package/run/initialized-run-collection.js +1 -1
  146. package/run/initialized-run-collection.js.map +1 -1
  147. package/run/node-command-line-runner.d.ts +1 -1
  148. package/run/node-command-line-runner.d.ts.map +1 -1
  149. package/run/node-process-policy-observation.js +1 -1
  150. package/run/node-process-policy-observation.js.map +1 -1
  151. package/run/node-run-execution.js +1 -1
  152. package/run/node-run-execution.js.map +1 -1
  153. package/run/node-run-orchestrator-dependencies.js +1 -1
  154. package/run/node-run-orchestrator-dependencies.js.map +1 -1
  155. package/run/permission-denial-runtime-policy.js +3 -3
  156. package/run/permission-denial-runtime-policy.js.map +1 -1
  157. package/run/placement-trace.d.ts +2 -2
  158. package/run/placement-trace.d.ts.map +1 -1
  159. package/run/property-collection.js +1 -1
  160. package/run/property-collection.js.map +1 -1
  161. package/run/recorded-coverage-session.js +1 -1
  162. package/run/recorded-coverage-session.js.map +1 -1
  163. package/run/reporter-event-schema.js +1 -1
  164. package/run/reporter-event-schema.js.map +1 -1
  165. package/run/resource-lifecycle-boundaries.js +1 -1
  166. package/run/resource-lifecycle-boundaries.js.map +1 -1
  167. package/run/resource-lifecycle-cache-identity.js +2 -2
  168. package/run/resource-lifecycle-cache-identity.js.map +1 -1
  169. package/run/resource-lifecycle-composition.d.ts +1 -1
  170. package/run/resource-lifecycle-composition.d.ts.map +1 -1
  171. package/run/resource-lifecycle-error.d.ts +1 -1
  172. package/run/resource-lifecycle-error.d.ts.map +1 -1
  173. package/run/resource-lifecycle-error.js +1 -1
  174. package/run/resource-lifecycle-error.js.map +1 -1
  175. package/run/resource-lifecycle-session-acquirer.js +1 -1
  176. package/run/resource-lifecycle-session-acquirer.js.map +1 -1
  177. package/run/resource-lifecycle-state.d.ts +3 -3
  178. package/run/resource-lifecycle-state.d.ts.map +1 -1
  179. package/run/resource-lifecycle-state.js +2 -2
  180. package/run/resource-lifecycle-state.js.map +1 -1
  181. package/run/resource-ownership-plan.d.ts +2 -2
  182. package/run/resource-ownership-plan.d.ts.map +1 -1
  183. package/run/retry-artifact-retention.js +1 -1
  184. package/run/retry-artifact-retention.js.map +1 -1
  185. package/run/run-artifact-schema.d.ts +1 -1
  186. package/run/run-artifact-schema.d.ts.map +1 -1
  187. package/run/run-case-facts.js +1 -1
  188. package/run/run-case-facts.js.map +1 -1
  189. package/run/run-collection-error-result.js +2 -2
  190. package/run/run-collection-error-result.js.map +1 -1
  191. package/run/run-discovery-types.d.ts +1 -1
  192. package/run/run-discovery-types.d.ts.map +1 -1
  193. package/run/run-engine-primitives.d.ts +8 -8
  194. package/run/run-engine-primitives.d.ts.map +1 -1
  195. package/run/run-engine-selection.d.ts +1 -1
  196. package/run/run-engine-selection.d.ts.map +1 -1
  197. package/run/run-errors.d.ts +2 -2
  198. package/run/run-errors.d.ts.map +1 -1
  199. package/run/run-errors.js +1 -1
  200. package/run/run-errors.js.map +1 -1
  201. package/run/run-if-main-options.d.ts +3 -3
  202. package/run/run-if-main-options.d.ts.map +1 -1
  203. package/run/run-if-main.d.ts +1 -1
  204. package/run/run-if-main.d.ts.map +1 -1
  205. package/run/run-list-renderer.js +2 -2
  206. package/run/run-list-renderer.js.map +1 -1
  207. package/run/run-local-sharding.js +1 -1
  208. package/run/run-local-sharding.js.map +1 -1
  209. package/run/run-local-test-plan.js +21 -17
  210. package/run/run-local-test-plan.js.map +1 -1
  211. package/run/run-record-outcomes.d.ts +5 -5
  212. package/run/run-record-outcomes.d.ts.map +1 -1
  213. package/run/run-record-result.d.ts +1 -1
  214. package/run/run-record-result.d.ts.map +1 -1
  215. package/run/run-record-result.js +2 -2
  216. package/run/run-record-result.js.map +1 -1
  217. package/run/run-record-storage.js +1 -1
  218. package/run/run-record-storage.js.map +1 -1
  219. package/run/run-record-types.d.ts +3 -3
  220. package/run/run-record-types.d.ts.map +1 -1
  221. package/run/run-request-types.d.ts +3 -3
  222. package/run/run-request-types.d.ts.map +1 -1
  223. package/run/run-result-reporting.js +1 -1
  224. package/run/run-result-reporting.js.map +1 -1
  225. package/run/run-result-schema.d.ts +1 -1
  226. package/run/run-result-schema.d.ts.map +1 -1
  227. package/run/run-runtime-schema.js +1 -1
  228. package/run/run-runtime-schema.js.map +1 -1
  229. package/run/run-selection-filters.d.ts +2 -2
  230. package/run/run-selection-filters.d.ts.map +1 -1
  231. package/run/run-selection-filters.js +1 -1
  232. package/run/run-selection-filters.js.map +1 -1
  233. package/run/run-selection.js +2 -2
  234. package/run/run-selection.js.map +1 -1
  235. package/run/run-sharding.js +1 -1
  236. package/run/run-sharding.js.map +1 -1
  237. package/run/run-test-modules.d.ts +3 -3
  238. package/run/run-test-modules.d.ts.map +1 -1
  239. package/run/run-timing-collection.d.ts +2 -2
  240. package/run/run-timing-collection.d.ts.map +1 -1
  241. package/run/run-timing-collection.js +1 -1
  242. package/run/run-timing-collection.js.map +1 -1
  243. package/run/run-types.d.ts +1 -1
  244. package/run/run-types.d.ts.map +1 -1
  245. package/run/run-validation.js +1 -1
  246. package/run/run-validation.js.map +1 -1
  247. package/run/simulation-witness.js +1 -1
  248. package/run/simulation-witness.js.map +1 -1
  249. package/run/supervised-child-execution.js +3 -3
  250. package/run/supervised-child-execution.js.map +1 -1
  251. package/run/supervised-child-test-plan.js +1 -1
  252. package/run/supervised-child-test-plan.js.map +1 -1
  253. package/run/supervised-child.js +1 -1
  254. package/run/supervised-child.js.map +1 -1
  255. package/run/supervised-output-capture.js +1 -1
  256. package/run/supervised-output-capture.js.map +1 -1
  257. package/run/supervised-protocol.js +1 -1
  258. package/run/supervised-protocol.js.map +1 -1
  259. package/run/supervised-run-process-policy.js +2 -2
  260. package/run/supervised-run-process-policy.js.map +1 -1
  261. package/run/supervised-run-runtime.js +1 -1
  262. package/run/supervised-run-runtime.js.map +1 -1
  263. package/run/supervised-run-state.js +3 -3
  264. package/run/supervised-run-state.js.map +1 -1
  265. package/run/work-unit-identity.js +1 -1
  266. package/run/work-unit-identity.js.map +1 -1
  267. package/run/work-unit-planning.js +1 -1
  268. package/run/work-unit-planning.js.map +1 -1
  269. package/run/work-unit-resource-constraints.js +2 -2
  270. package/run/work-unit-resource-constraints.js.map +1 -1
  271. package/run/worker-execution-engine.js +2 -2
  272. package/run/worker-execution-engine.js.map +1 -1
  273. package/run/worker-pool-hedge-dispatch.js +1 -1
  274. package/run/worker-pool-hedge-dispatch.js.map +1 -1
  275. package/run/worker-pool-hedged-arbitration.js +1 -1
  276. package/run/worker-pool-hedged-arbitration.js.map +1 -1
  277. package/run/worker-pool-host.entry-point.js +1 -1
  278. package/run/worker-pool-host.entry-point.js.map +1 -1
  279. package/run/worker-pool-output.js +1 -1
  280. package/run/worker-pool-output.js.map +1 -1
  281. package/run/worker-pool-pending-splitting.js +1 -1
  282. package/run/worker-pool-pending-splitting.js.map +1 -1
  283. package/run/worker-pool-placement-planning.js +1 -1
  284. package/run/worker-pool-placement-planning.js.map +1 -1
  285. package/run/worker-pool-resource-lifecycle-execution.js +1 -1
  286. package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
  287. package/run/worker-pool-results.js +1 -1
  288. package/run/worker-pool-results.js.map +1 -1
  289. package/run/worker-pool-task-events.js +2 -2
  290. package/run/worker-pool-task-events.js.map +1 -1
  291. package/run/worker-pool-warm-lane-affinity.js +1 -1
  292. package/run/worker-pool-warm-lane-affinity.js.map +1 -1
  293. package/run/worker-pool-work-load.js +1 -1
  294. package/run/worker-pool-work-load.js.map +1 -1
  295. package/run/worker-pool-worker-plan.js +2 -2
  296. package/run/worker-pool-worker-plan.js.map +1 -1
  297. package/run/worker-pool-worker-resources.js +1 -1
  298. package/run/worker-pool-worker-resources.js.map +1 -1
  299. package/run/worker-pool-worker.js +1 -1
  300. package/run/worker-pool-worker.js.map +1 -1
  301. package/run/workload-input-validation.js +1 -1
  302. package/run/workload-input-validation.js.map +1 -1
  303. package/software-bill-of-materials.cyclonedx.json +21 -38
  304. package/transcript/http-transcript-artifact.js +1 -1
  305. package/transcript/http-transcript-artifact.js.map +1 -1
  306. package/assertion-protocol/assertion-evaluation.js +0 -6
  307. package/assertion-protocol/assertion-evaluation.js.map +0 -1
  308. package/assertion-protocol/assertion-node-shape.d.ts +0 -81
  309. package/assertion-protocol/assertion-node-shape.d.ts.map +0 -1
  310. package/assertion-protocol/assertion-node.d.ts +0 -82
  311. package/assertion-protocol/assertion-node.d.ts.map +0 -1
  312. package/assertion-protocol/assertion-node.js +0 -33
  313. package/assertion-protocol/assertion-node.js.map +0 -1
  314. package/assertion-protocol/assertion-reference.d.ts +0 -50
  315. package/assertion-protocol/assertion-reference.d.ts.map +0 -1
  316. package/assertion-protocol/assertion-reference.js +0 -22
  317. package/assertion-protocol/assertion-reference.js.map +0 -1
  318. package/assertion-protocol/assertions/boolean.d.ts +0 -4
  319. package/assertion-protocol/assertions/boolean.d.ts.map +0 -1
  320. package/assertion-protocol/assertions/boolean.js +0 -12
  321. package/assertion-protocol/assertions/boolean.js.map +0 -1
  322. package/assertion-protocol/assertions/collection.d.ts +0 -13
  323. package/assertion-protocol/assertions/collection.d.ts.map +0 -1
  324. package/assertion-protocol/assertions/collection.js +0 -21
  325. package/assertion-protocol/assertions/collection.js.map +0 -1
  326. package/assertion-protocol/assertions/dispatch.js +0 -47
  327. package/assertion-protocol/assertions/dispatch.js.map +0 -1
  328. package/assertion-protocol/assertions/equality.d.ts +0 -6
  329. package/assertion-protocol/assertions/equality.d.ts.map +0 -1
  330. package/assertion-protocol/assertions/equality.js +0 -24
  331. package/assertion-protocol/assertions/equality.js.map +0 -1
  332. package/assertion-protocol/assertions/fail.d.ts +0 -8
  333. package/assertion-protocol/assertions/fail.d.ts.map +0 -1
  334. package/assertion-protocol/assertions/fail.js +0 -8
  335. package/assertion-protocol/assertions/fail.js.map +0 -1
  336. package/assertion-protocol/assertions/numeric.d.ts +0 -16
  337. package/assertion-protocol/assertions/numeric.d.ts.map +0 -1
  338. package/assertion-protocol/assertions/numeric.js +0 -43
  339. package/assertion-protocol/assertions/numeric.js.map +0 -1
  340. package/assertion-protocol/assertions/partial.d.ts +0 -5
  341. package/assertion-protocol/assertions/partial.d.ts.map +0 -1
  342. package/assertion-protocol/assertions/partial.js +0 -17
  343. package/assertion-protocol/assertions/partial.js.map +0 -1
  344. package/assertion-protocol/assertions/presence.d.ts +0 -6
  345. package/assertion-protocol/assertions/presence.d.ts.map +0 -1
  346. package/assertion-protocol/assertions/presence.js +0 -20
  347. package/assertion-protocol/assertions/presence.js.map +0 -1
  348. package/assertion-protocol/assertions/string.d.ts +0 -15
  349. package/assertion-protocol/assertions/string.d.ts.map +0 -1
  350. package/assertion-protocol/assertions/string.js +0 -33
  351. package/assertion-protocol/assertions/string.js.map +0 -1
  352. package/assertion-protocol/assertions/type-shape.d.ts +0 -23
  353. package/assertion-protocol/assertions/type-shape.d.ts.map +0 -1
  354. package/assertion-protocol/assertions/type-shape.js +0 -43
  355. package/assertion-protocol/assertions/type-shape.js.map +0 -1
  356. package/assertion-protocol/collection-count.js +0 -42
  357. package/assertion-protocol/collection-count.js.map +0 -1
  358. package/assertion-protocol/evaluation.js +0 -175
  359. package/assertion-protocol/evaluation.js.map +0 -1
  360. package/assertion-protocol/partial-matching.js +0 -13
  361. package/assertion-protocol/partial-matching.js.map +0 -1
  362. package/assertion-protocol/source-location-forwarding.js +0 -32
  363. package/assertion-protocol/source-location-forwarding.js.map +0 -1
  364. package/assertion-protocol/source-location.js +0 -119
  365. package/assertion-protocol/source-location.js.map +0 -1
  366. package/assertion-protocol/thrown-error-record.d.ts +0 -7
  367. package/assertion-protocol/thrown-error-record.d.ts.map +0 -1
  368. package/assertion-protocol/thrown-error-record.js +0 -17
  369. package/assertion-protocol/thrown-error-record.js.map +0 -1
  370. package/assertion-protocol/thrown-matcher.d.ts +0 -34
  371. package/assertion-protocol/thrown-matcher.d.ts.map +0 -1
  372. package/assertion-protocol/thrown-matcher.js +0 -201
  373. package/assertion-protocol/thrown-matcher.js.map +0 -1
  374. package/attachments/json-snapshot.js +0 -125
  375. package/attachments/json-snapshot.js.map +0 -1
  376. package/canonical-identity.js +0 -54
  377. package/canonical-identity.js.map +0 -1
  378. package/compare/comparison-result.js +0 -47
  379. package/compare/comparison-result.js.map +0 -1
  380. package/compare/comparison-state.js +0 -20
  381. package/compare/comparison-state.js.map +0 -1
  382. package/compare/comparison.js +0 -78
  383. package/compare/comparison.js.map +0 -1
  384. package/compare/diff-path.js +0 -37
  385. package/compare/diff-path.js.map +0 -1
  386. package/compare/raw-comparison.js +0 -285
  387. package/compare/raw-comparison.js.map +0 -1
  388. package/compare/serialized-value-classification.js +0 -99
  389. package/compare/serialized-value-classification.js.map +0 -1
  390. package/compare/serialized-value-shape.d.ts +0 -134
  391. package/compare/serialized-value-shape.d.ts.map +0 -1
  392. package/compare/serialized-value-shape.js +0 -12
  393. package/compare/serialized-value-shape.js.map +0 -1
  394. package/compare/serialized-value-state.js +0 -55
  395. package/compare/serialized-value-state.js.map +0 -1
  396. package/compare/serialized-value.d.ts +0 -4
  397. package/compare/serialized-value.d.ts.map +0 -1
  398. package/compare/serialized-value.js +0 -389
  399. package/compare/serialized-value.js.map +0 -1
  400. package/compare/structured-diff.js +0 -382
  401. package/compare/structured-diff.js.map +0 -1
  402. package/compare/value-classification.js +0 -112
  403. package/compare/value-classification.js.map +0 -1
  404. package/diff/binary-diff.js +0 -49
  405. package/diff/binary-diff.js.map +0 -1
  406. package/diff/diff-shape.d.ts +0 -122
  407. package/diff/diff-shape.d.ts.map +0 -1
  408. package/diff/string-diff.js +0 -22
  409. package/diff/string-diff.js.map +0 -1
  410. package/engine/assertion-facade.d.ts +0 -47
  411. package/engine/assertion-facade.d.ts.map +0 -1
  412. package/engine/assertion-facade.js +0 -362
  413. package/engine/assertion-facade.js.map +0 -1
  414. package/engine/assertion-recorder.d.ts +0 -12
  415. package/engine/assertion-recorder.d.ts.map +0 -1
  416. package/engine/assertion-recorder.js +0 -251
  417. package/engine/assertion-recorder.js.map +0 -1
  418. package/engine/async-control.d.ts +0 -7
  419. package/engine/async-control.d.ts.map +0 -1
  420. package/engine/async-control.js +0 -162
  421. package/engine/async-control.js.map +0 -1
  422. package/engine/async-leak-diagnostics.js +0 -188
  423. package/engine/async-leak-diagnostics.js.map +0 -1
  424. package/engine/benchmark-environment.d.ts +0 -8
  425. package/engine/benchmark-environment.d.ts.map +0 -1
  426. package/engine/benchmark-garbage-collection.d.ts +0 -8
  427. package/engine/benchmark-garbage-collection.d.ts.map +0 -1
  428. package/engine/benchmark-garbage-collection.js +0 -4
  429. package/engine/benchmark-garbage-collection.js.map +0 -1
  430. package/engine/benchmark-limits.js +0 -3
  431. package/engine/benchmark-limits.js.map +0 -1
  432. package/engine/benchmark-node.d.ts +0 -37
  433. package/engine/benchmark-node.d.ts.map +0 -1
  434. package/engine/benchmark-node.js +0 -9
  435. package/engine/benchmark-node.js.map +0 -1
  436. package/engine/benchmark-result.d.ts +0 -247
  437. package/engine/benchmark-result.d.ts.map +0 -1
  438. package/engine/benchmark-result.js +0 -2
  439. package/engine/benchmark-result.js.map +0 -1
  440. package/engine/benchmark-timeline.d.ts +0 -12
  441. package/engine/benchmark-timeline.d.ts.map +0 -1
  442. package/engine/case-attempt-execution.js +0 -234
  443. package/engine/case-attempt-execution.js.map +0 -1
  444. package/engine/case-body-execution.js +0 -232
  445. package/engine/case-body-execution.js.map +0 -1
  446. package/engine/case-execution-lifecycle.js +0 -22
  447. package/engine/case-execution-lifecycle.js.map +0 -1
  448. package/engine/case-execution.d.ts +0 -14
  449. package/engine/case-execution.d.ts.map +0 -1
  450. package/engine/case-execution.js +0 -225
  451. package/engine/case-execution.js.map +0 -1
  452. package/engine/case-interruption.js +0 -26
  453. package/engine/case-interruption.js.map +0 -1
  454. package/engine/coverage-artifact.d.ts +0 -36
  455. package/engine/coverage-artifact.d.ts.map +0 -1
  456. package/engine/custom-assertion-recording.js +0 -175
  457. package/engine/custom-assertion-recording.js.map +0 -1
  458. package/engine/engine.d.ts +0 -21
  459. package/engine/engine.d.ts.map +0 -1
  460. package/engine/engine.js +0 -35
  461. package/engine/engine.js.map +0 -1
  462. package/engine/execution-async-leak-policy.d.ts +0 -3
  463. package/engine/execution-async-leak-policy.d.ts.map +0 -1
  464. package/engine/execution-async-leak-policy.js +0 -95
  465. package/engine/execution-async-leak-policy.js.map +0 -1
  466. package/engine/execution-error-ownership.d.ts +0 -6
  467. package/engine/execution-error-ownership.d.ts.map +0 -1
  468. package/engine/execution-error-ownership.js +0 -83
  469. package/engine/execution-error-ownership.js.map +0 -1
  470. package/engine/execution-global-error-observer.d.ts +0 -15
  471. package/engine/execution-global-error-observer.d.ts.map +0 -1
  472. package/engine/execution-global-error-observer.js +0 -276
  473. package/engine/execution-global-error-observer.js.map +0 -1
  474. package/engine/execution-observation.js +0 -212
  475. package/engine/execution-observation.js.map +0 -1
  476. package/engine/execution-options.d.ts +0 -39
  477. package/engine/execution-options.d.ts.map +0 -1
  478. package/engine/execution-options.js +0 -42
  479. package/engine/execution-options.js.map +0 -1
  480. package/engine/execution-preparation.d.ts +0 -13
  481. package/engine/execution-preparation.d.ts.map +0 -1
  482. package/engine/execution-preparation.js +0 -34
  483. package/engine/execution-preparation.js.map +0 -1
  484. package/engine/execution-process-budget-breach.d.ts +0 -8
  485. package/engine/execution-process-budget-breach.d.ts.map +0 -1
  486. package/engine/execution-process-budget-breach.js +0 -30
  487. package/engine/execution-process-budget-breach.js.map +0 -1
  488. package/engine/execution-process-budget-tracking.js +0 -33
  489. package/engine/execution-process-budget-tracking.js.map +0 -1
  490. package/engine/execution-process-tracked-cases.js +0 -40
  491. package/engine/execution-process-tracked-cases.js.map +0 -1
  492. package/engine/execution-result.js +0 -120
  493. package/engine/execution-result.js.map +0 -1
  494. package/engine/execution-supervision-state.js +0 -54
  495. package/engine/execution-supervision-state.js.map +0 -1
  496. package/engine/execution-supervision.d.ts +0 -16
  497. package/engine/execution-supervision.d.ts.map +0 -1
  498. package/engine/execution-supervision.js +0 -345
  499. package/engine/execution-supervision.js.map +0 -1
  500. package/engine/execution-test-plan-cases.js +0 -216
  501. package/engine/execution-test-plan-cases.js.map +0 -1
  502. package/engine/execution-test-plan-process-usage.js +0 -14
  503. package/engine/execution-test-plan-process-usage.js.map +0 -1
  504. package/engine/execution.d.ts +0 -8
  505. package/engine/execution.d.ts.map +0 -1
  506. package/engine/execution.js +0 -71
  507. package/engine/execution.js.map +0 -1
  508. package/engine/identity.d.ts +0 -31
  509. package/engine/identity.d.ts.map +0 -1
  510. package/engine/identity.js +0 -68
  511. package/engine/identity.js.map +0 -1
  512. package/engine/native-resource-observation.js +0 -70
  513. package/engine/native-resource-observation.js.map +0 -1
  514. package/engine/node-assertion-error.js +0 -47
  515. package/engine/node-assertion-error.js.map +0 -1
  516. package/engine/process-usage-growth.js +0 -12
  517. package/engine/process-usage-growth.js.map +0 -1
  518. package/engine/process-usage.d.ts +0 -22
  519. package/engine/process-usage.d.ts.map +0 -1
  520. package/engine/property-node.d.ts +0 -30
  521. package/engine/property-node.d.ts.map +0 -1
  522. package/engine/property-node.js +0 -9
  523. package/engine/property-node.js.map +0 -1
  524. package/engine/recorded-assertion-failure.js +0 -30
  525. package/engine/recorded-assertion-failure.js.map +0 -1
  526. package/engine/reporter-dispatcher.d.ts +0 -17
  527. package/engine/reporter-dispatcher.d.ts.map +0 -1
  528. package/engine/reporter-dispatcher.js +0 -316
  529. package/engine/reporter-dispatcher.js.map +0 -1
  530. package/engine/reporter-disposal.js +0 -13
  531. package/engine/reporter-disposal.js.map +0 -1
  532. package/engine/reporter-error-delivery-tracking.js +0 -33
  533. package/engine/reporter-error-delivery-tracking.js.map +0 -1
  534. package/engine/reporter-event-queue.js +0 -55
  535. package/engine/reporter-event-queue.js.map +0 -1
  536. package/engine/reporter-managed-output.js +0 -105
  537. package/engine/reporter-managed-output.js.map +0 -1
  538. package/engine/reporter-output-scope.js +0 -65
  539. package/engine/reporter-output-scope.js.map +0 -1
  540. package/engine/reporter-output.d.ts +0 -28
  541. package/engine/reporter-output.d.ts.map +0 -1
  542. package/engine/reporter-output.js +0 -17
  543. package/engine/reporter-output.js.map +0 -1
  544. package/engine/reporter.d.ts +0 -197
  545. package/engine/reporter.d.ts.map +0 -1
  546. package/engine/reporter.js +0 -111
  547. package/engine/reporter.js.map +0 -1
  548. package/engine/reporting-context.d.ts +0 -6
  549. package/engine/reporting-context.d.ts.map +0 -1
  550. package/engine/reporting-context.js +0 -74
  551. package/engine/reporting-context.js.map +0 -1
  552. package/engine/require-assertion-facade.d.ts +0 -18
  553. package/engine/require-assertion-facade.d.ts.map +0 -1
  554. package/engine/require-assertion-facade.js +0 -128
  555. package/engine/require-assertion-facade.js.map +0 -1
  556. package/engine/resource-owner-observation.js +0 -143
  557. package/engine/resource-owner-observation.js.map +0 -1
  558. package/engine/retry-policy.d.ts +0 -4
  559. package/engine/retry-policy.d.ts.map +0 -1
  560. package/engine/retry-policy.js +0 -22
  561. package/engine/retry-policy.js.map +0 -1
  562. package/engine/run-artifact.d.ts +0 -45
  563. package/engine/run-artifact.d.ts.map +0 -1
  564. package/engine/run-result.d.ts +0 -215
  565. package/engine/run-result.d.ts.map +0 -1
  566. package/engine/run-result.js +0 -202
  567. package/engine/run-result.js.map +0 -1
  568. package/engine/run-timings.d.ts +0 -57
  569. package/engine/run-timings.d.ts.map +0 -1
  570. package/engine/run-timings.js +0 -120
  571. package/engine/run-timings.js.map +0 -1
  572. package/engine/runner-error-reporting.js +0 -29
  573. package/engine/runner-error-reporting.js.map +0 -1
  574. package/engine/runtime-attachment.d.ts +0 -82
  575. package/engine/runtime-attachment.d.ts.map +0 -1
  576. package/engine/test-attempt-history.js +0 -25
  577. package/engine/test-attempt-history.js.map +0 -1
  578. package/engine/test-body-resource-attachment.d.ts +0 -53
  579. package/engine/test-body-resource-attachment.d.ts.map +0 -1
  580. package/engine/test-body-resource-attachment.js +0 -30
  581. package/engine/test-body-resource-attachment.js.map +0 -1
  582. package/engine/test-body.d.ts +0 -16
  583. package/engine/test-body.d.ts.map +0 -1
  584. package/engine/test-body.js +0 -51
  585. package/engine/test-body.js.map +0 -1
  586. package/engine/test-data.d.ts +0 -25
  587. package/engine/test-data.d.ts.map +0 -1
  588. package/engine/test-data.js +0 -126
  589. package/engine/test-data.js.map +0 -1
  590. package/engine/test-node.d.ts +0 -178
  591. package/engine/test-node.d.ts.map +0 -1
  592. package/engine/test-node.js +0 -226
  593. package/engine/test-node.js.map +0 -1
  594. package/engine/test-plan.d.ts +0 -52
  595. package/engine/test-plan.d.ts.map +0 -1
  596. package/engine/test-plan.js +0 -315
  597. package/engine/test-plan.js.map +0 -1
  598. package/engine/test-scope-lifecycle.js +0 -65
  599. package/engine/test-scope-lifecycle.js.map +0 -1
  600. package/engine/throwing-test-scope.js +0 -27
  601. package/engine/throwing-test-scope.js.map +0 -1
  602. package/engine/workload-input.d.ts +0 -3
  603. package/engine/workload-input.d.ts.map +0 -1
  604. package/engine/workload-input.js +0 -54
  605. package/engine/workload-input.js.map +0 -1
  606. package/engine/workload-parameters.d.ts +0 -3
  607. package/engine/workload-parameters.d.ts.map +0 -1
  608. package/engine/workload-parameters.js +0 -67
  609. package/engine/workload-parameters.js.map +0 -1
  610. package/engine/workload-test-case.d.ts +0 -8
  611. package/engine/workload-test-case.d.ts.map +0 -1
  612. package/engine/workload-test-case.js +0 -33
  613. package/engine/workload-test-case.js.map +0 -1
  614. package/stored-value.js +0 -12
  615. package/stored-value.js.map +0 -1
@@ -1,201 +0,0 @@
1
- function assertNonEmptyItems(items, message) {
2
- if (items.length === 0) {
3
- throw new TypeError(message);
4
- }
5
- }
6
- function isExactThrownMatcher(matcher) {
7
- return Object.hasOwn(matcher, 'exact');
8
- }
9
- function expectedAction(kind) {
10
- return kind === 'throws' ? 'throw' : 'reject';
11
- }
12
- function missingThrownValueChild(input) {
13
- return {
14
- actual: false,
15
- check: 'true',
16
- message: `Expected function to ${expectedAction(input.kind)}.`,
17
- source: input.source,
18
- sourceLocations: input.sourceLocations
19
- };
20
- }
21
- function expectedMatcherChild(input) {
22
- if (input.check === 'equal') {
23
- return {
24
- actual: input.actual,
25
- check: input.check,
26
- expected: input.expected,
27
- message: input.message,
28
- source: input.source,
29
- sourceLocations: input.sourceLocations
30
- };
31
- }
32
- return {
33
- actual: input.actual,
34
- check: input.check,
35
- expected: input.expected,
36
- message: input.message,
37
- source: input.source,
38
- sourceLocations: input.sourceLocations
39
- };
40
- }
41
- function matchMatcherChild(input) {
42
- return {
43
- actual: input.actual,
44
- check: input.check,
45
- message: input.message,
46
- pattern: input.pattern,
47
- source: input.source,
48
- sourceLocations: input.sourceLocations
49
- };
50
- }
51
- function errorCode(error) {
52
- return Reflect.get(error, 'code');
53
- }
54
- function matcherHas(matcher, key) {
55
- return Object.hasOwn(matcher, key);
56
- }
57
- function errorInstanceChild(input, value, label) {
58
- return expectedMatcherChild({
59
- actual: value,
60
- check: 'instance-of',
61
- expected: Error,
62
- message: `Expected ${label} to be an Error.`,
63
- source: input.source,
64
- sourceLocations: input.sourceLocations
65
- });
66
- }
67
- function typeMatcherChildren(input, matcher, value, label) {
68
- return matcherHas(matcher, 'type')
69
- ? [
70
- expectedMatcherChild({
71
- actual: value,
72
- check: 'instance-of',
73
- expected: matcher.type,
74
- message: `Expected ${label} to be an instance of the constructor.`,
75
- source: input.source,
76
- sourceLocations: input.sourceLocations
77
- })
78
- ]
79
- : [];
80
- }
81
- function messageMatcherChildren(input, matcher, value, label) {
82
- if (matcherHas(matcher, 'message')) {
83
- return matcher.message instanceof RegExp
84
- ? [
85
- matchMatcherChild({
86
- actual: value.message,
87
- check: 'match',
88
- message: `Expected ${label} message to match the pattern.`,
89
- pattern: matcher.message,
90
- source: input.source,
91
- sourceLocations: input.sourceLocations
92
- })
93
- ]
94
- : [
95
- expectedMatcherChild({
96
- actual: value.message,
97
- check: 'equal',
98
- expected: matcher.message,
99
- message: `Expected ${label} message to equal the string.`,
100
- source: input.source,
101
- sourceLocations: input.sourceLocations
102
- })
103
- ];
104
- }
105
- return [];
106
- }
107
- function codeMatcherChildren(input, matcher, value, label) {
108
- return matcherHas(matcher, 'code')
109
- ? [
110
- expectedMatcherChild({
111
- actual: errorCode(value),
112
- check: 'equal',
113
- expected: matcher.code,
114
- message: `Expected ${label} code to equal the string.`,
115
- source: input.source,
116
- sourceLocations: input.sourceLocations
117
- })
118
- ]
119
- : [];
120
- }
121
- function nameMatcherChildren(input, matcher, value, label) {
122
- return matcherHas(matcher, 'name')
123
- ? [
124
- expectedMatcherChild({
125
- actual: value.name,
126
- check: 'equal',
127
- expected: matcher.name,
128
- message: `Expected ${label} name to equal the string.`,
129
- source: input.source,
130
- sourceLocations: input.sourceLocations
131
- })
132
- ]
133
- : [];
134
- }
135
- function causeMatcherChildren(input) {
136
- return matcherHas(input.matcher, 'cause')
137
- ? input.childrenForMatcher(input.assertion, input.matcher.cause, input.value.cause, `${input.label} cause`)
138
- : [];
139
- }
140
- function structuredErrorChildren(input) {
141
- if (!(input.value instanceof Error)) {
142
- return [errorInstanceChild(input.assertion, input.value, input.label)];
143
- }
144
- const errorInput = {
145
- ...input,
146
- value: input.value
147
- };
148
- return [
149
- errorInstanceChild(input.assertion, input.value, input.label),
150
- ...typeMatcherChildren(input.assertion, input.matcher, input.value, input.label),
151
- ...messageMatcherChildren(input.assertion, input.matcher, input.value, input.label),
152
- ...codeMatcherChildren(input.assertion, input.matcher, input.value, input.label),
153
- ...nameMatcherChildren(input.assertion, input.matcher, input.value, input.label),
154
- ...causeMatcherChildren(errorInput)
155
- ];
156
- }
157
- const matcherChildren = function createMatcherChildren(input, matcher, value, label) {
158
- return isExactThrownMatcher(matcher)
159
- ? [
160
- expectedMatcherChild({
161
- actual: value,
162
- check: 'equal',
163
- expected: matcher.exact,
164
- message: `Expected ${label} to equal the exact matcher.`,
165
- source: input.source,
166
- sourceLocations: input.sourceLocations
167
- })
168
- ]
169
- : structuredErrorChildren({
170
- assertion: input,
171
- childrenForMatcher: createMatcherChildren,
172
- label,
173
- matcher,
174
- value
175
- });
176
- };
177
- export function thrownMatcherChildren(input) {
178
- const expectedStatus = input.kind === 'throws' ? 'threw' : 'rejected';
179
- const children = input.observation.status === expectedStatus
180
- ? matcherChildren(input, input.matcher, input.observation.value, 'thrown value')
181
- : [missingThrownValueChild(input)];
182
- assertNonEmptyItems(children, 'Expected thrown matcher assertion to create children.');
183
- return children;
184
- }
185
- function thrownMatcherSummary(kind) {
186
- return `Expected function to ${expectedAction(kind)} matching value.`;
187
- }
188
- export function createThrownMatcherAssertion(input) {
189
- return {
190
- actual: input.observation,
191
- check: 'composite',
192
- children: thrownMatcherChildren(input),
193
- expected: input.matcher,
194
- message: input.message,
195
- name: input.kind,
196
- source: input.source,
197
- sourceLocations: input.sourceLocations,
198
- summary: thrownMatcherSummary(input.kind)
199
- };
200
- }
201
- //# sourceMappingURL=thrown-matcher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thrown-matcher.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-matcher.ts"],"names":[],"mappings":"AAkHA,SAAS,mBAAmB,CACxB,KAAsB,EACtB,OAAe;IAEf,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;AACL,CAAC;AAED,SAAS,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AmB,CAAC,QAAQ,EAAE,uDAAuD,CAAC,CAAC;IAEvF,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAyB;IACnD,OAAO,wBAAwB,cAAc,CAAC,IAAI,CAAC,kBAAkB,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,4BAA4B,CACxC,KAAmC;IAEnC,OAAO;QACH,MAAM,EAAE,KAAK,CAAC,WAAW;QACzB,KAAK,EAAE,WAAW;QAClB,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC;QACtC,QAAQ,EAAE,KAAK,CAAC,OAAO;QACvB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,eAAe,EAAE,KAAK,CAAC,eAAe;QACtC,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC;KAC5C,CAAC;AACN,CAAC"}
@@ -1,125 +0,0 @@
1
- import { createStoredValue } from "../stored-value.js";
2
- const maxJsonDepth = 64;
3
- const containerBytes = 2;
4
- class JsonByteLimitError extends Error {
5
- constructor() {
6
- super('JSON attachment exceeds its byte limit.');
7
- this.name = 'JsonByteLimitError';
8
- }
9
- }
10
- function createJsonSnapshotBudget(maxBytes) {
11
- const ancestors = new Set();
12
- const remaining = createStoredValue(maxBytes);
13
- return {
14
- reserve(bytes) {
15
- if (bytes > remaining.read()) {
16
- throw new JsonByteLimitError();
17
- }
18
- remaining.write(remaining.read() - bytes);
19
- },
20
- enter(value) {
21
- ancestors.add(value);
22
- },
23
- leave(value) {
24
- ancestors.delete(value);
25
- },
26
- contains(value) {
27
- return ancestors.has(value);
28
- }
29
- };
30
- }
31
- function scalar(value) {
32
- return value === null || typeof value === 'boolean' || typeof value === 'string' ||
33
- typeof value === 'number' && Number.isFinite(value);
34
- }
35
- function descriptorValue(descriptor) {
36
- if (descriptor === undefined || !Object.hasOwn(descriptor, 'value')) {
37
- throw new TypeError('JSON attachments cannot contain sparse arrays or accessors.');
38
- }
39
- return descriptor.value;
40
- }
41
- function arraySnapshot(value, budget, depth, visit) {
42
- const entries = [];
43
- for (let index = 0; index < value.length; index += 1) {
44
- budget.reserve(index === 0 ? 0 : 1);
45
- entries.push(visit(descriptorValue(Object.getOwnPropertyDescriptor(value, String(index))), depth + 1));
46
- }
47
- return Object.freeze(entries);
48
- }
49
- function objectSnapshot(value, budget, depth, visit) {
50
- const entries = {};
51
- const keys = Reflect.ownKeys(value).filter(function enumerableKey(key) {
52
- return Object.getOwnPropertyDescriptor(value, key)?.enumerable === true;
53
- });
54
- for (const [index, key] of keys.entries()) {
55
- if (typeof key !== 'string') {
56
- throw new TypeError('JSON attachments cannot contain symbol keys.');
57
- }
58
- budget.reserve(Buffer.byteLength(JSON.stringify(key)) + 1 + (index === 0 ? 0 : 1));
59
- Object.defineProperty(entries, key, {
60
- enumerable: true,
61
- value: visit(descriptorValue(Object.getOwnPropertyDescriptor(value, key)), depth + 1)
62
- });
63
- }
64
- return Object.freeze(entries);
65
- }
66
- function isContainer(value) {
67
- return typeof value === 'object' && value !== null;
68
- }
69
- function validateContainer(value, budget, depth) {
70
- if (depth > maxJsonDepth || budget.contains(value)) {
71
- throw new TypeError('Attachments require finite, acyclic JSON values with depth at most 64.');
72
- }
73
- const prototype = Object.getPrototypeOf(value);
74
- if (!Array.isArray(value) && prototype !== Object.prototype && prototype !== null) {
75
- throw new TypeError('JSON attachments require plain objects and arrays.');
76
- }
77
- budget.reserve(containerBytes);
78
- budget.enter(value);
79
- }
80
- function containerSnapshot(value, budget, depth, visit) {
81
- return Array.isArray(value)
82
- ? arraySnapshot(value, budget, depth, visit)
83
- : objectSnapshot(value, budget, depth, visit);
84
- }
85
- function createJsonVisit(budget, validate) {
86
- return function visit(value, depth) {
87
- validate(value);
88
- if (scalar(value)) {
89
- budget.reserve(Buffer.byteLength(JSON.stringify(value)));
90
- return value;
91
- }
92
- if (!isContainer(value)) {
93
- throw new TypeError('Attachments require finite JSON values.');
94
- }
95
- validateContainer(value, budget, depth);
96
- try {
97
- return containerSnapshot(value, budget, depth, visit);
98
- }
99
- finally {
100
- budget.leave(value);
101
- }
102
- };
103
- }
104
- function boundedJsonSnapshot(value, maxBytes) {
105
- const copy = createJsonVisit(createJsonSnapshotBudget(maxBytes), function allowJsonValue() {
106
- return undefined;
107
- })(value, 0);
108
- return { value: copy, encoded: JSON.stringify(copy) };
109
- }
110
- export function snapshotValidatedJson(value, validate) {
111
- const copy = createJsonVisit(createJsonSnapshotBudget(Number.POSITIVE_INFINITY), validate)(value, 0);
112
- return { value: copy, encoded: JSON.stringify(copy) };
113
- }
114
- export function snapshotJson(value, maxBytes) {
115
- try {
116
- return boundedJsonSnapshot(value, maxBytes);
117
- }
118
- catch (error) {
119
- if (error instanceof JsonByteLimitError) {
120
- return null;
121
- }
122
- throw error;
123
- }
124
- }
125
- //# sourceMappingURL=json-snapshot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-snapshot.js","sourceRoot":"","sources":["../../../../source/attachments/json-snapshot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAWvD,MAAM,YAAY,GAAG,EAAE,CAAC;AACxB,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,kBAAmB,SAAQ,KAAK;IAClC;QACI,KAAK,CAAC,yCAAyC,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACrC,CAAC;CACJ;AACD,SAAS,wBAAwB,CAAC,QAAgB;IAC9C,MAAM,SAAS,GAAG,IAAI,GAAG,EAAiB,CAAC;IAC3C,MAAM,SAAS,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAC9C,OAAO;QACH,OAAO,CAAC,KAAK;YACT,IAAI,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC;gBAC3B,MAAM,IAAI,kBAAkB,EAAE,CAAC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KAAK,YAAY,kBAAkB,EAAE,CAAC;YACtC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,MAAM,KAAK,CAAC;IAChB,CAAC;AACL,CAAC"}
@@ -1,54 +0,0 @@
1
- function sortedObjectKeys(value) {
2
- return Object.keys(value).toSorted(function compareKeys(left, right) {
3
- return left.localeCompare(right);
4
- });
5
- }
6
- function canonicalNumber(value) {
7
- if (Number.isFinite(value)) {
8
- return value;
9
- }
10
- throw new TypeError('Cannot serialize number value for shard partitioning.');
11
- }
12
- function canonicalScalar(value) {
13
- if (typeof value === 'boolean') {
14
- return value;
15
- }
16
- if (typeof value === 'number') {
17
- return canonicalNumber(value);
18
- }
19
- if (typeof value === 'string') {
20
- return value.normalize('NFC');
21
- }
22
- return undefined;
23
- }
24
- function isRecord(value) {
25
- return value !== null && typeof value === 'object' && !Array.isArray(value);
26
- }
27
- function canonicalArray(value, canonicalize) {
28
- return value.map(canonicalize);
29
- }
30
- function canonicalRecord(value, canonicalize) {
31
- return Object.fromEntries(sortedObjectKeys(value).map(function toCanonicalEntry(key) {
32
- return [key.normalize('NFC'), canonicalize(value[key])];
33
- }));
34
- }
35
- function canonicalJsonValue(value) {
36
- const scalar = canonicalScalar(value);
37
- if (scalar !== undefined) {
38
- return scalar;
39
- }
40
- if (value === null) {
41
- return null;
42
- }
43
- if (Array.isArray(value)) {
44
- return canonicalArray(value, canonicalJsonValue);
45
- }
46
- if (isRecord(value)) {
47
- return canonicalRecord(value, canonicalJsonValue);
48
- }
49
- throw new TypeError(`Cannot serialize ${typeof value} value for shard partitioning.`);
50
- }
51
- export function canonicalIdentityJson(value) {
52
- return JSON.stringify(canonicalJsonValue(value));
53
- }
54
- //# sourceMappingURL=canonical-identity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"canonical-identity.js","sourceRoot":"","sources":["../../../source/canonical-identity.ts"],"names":[],"mappings":"AAIA,SAAS,gBAAgB,CAAC,KAAwC;IAC9D,OAAO,MAAM,CAAC,IAAI,CAAC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CAAC,CAAE,CAAC;IAC9D,CAAC,CAAC,CACL,CAAC;AACN,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAc;IACtC,MAAM,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAEtC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,cAAc,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAClB,OAAO,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,IAAI,SAAS,CAAC,oBAAoB,OAAO,KAAK,gCAAgC,CAAC,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAAc;IAChD,OAAO,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD,CAAC"}
@@ -1,47 +0,0 @@
1
- import { serializeValue } from "./serialized-value.js";
2
- export const emptyPath = [];
3
- function indexSegment(index) {
4
- return { index, kind: 'index' };
5
- }
6
- function operationPath(operation) {
7
- if (operation.operation === 'missing-index') {
8
- return [indexSegment(operation.index)];
9
- }
10
- if (operation.operation === 'missing-entry' || operation.operation === 'missing-member') {
11
- return emptyPath;
12
- }
13
- return operation.path;
14
- }
15
- export function firstDiffPath(diff) {
16
- if (diff === null || diff.kind === 'value' || diff.kind === 'string' || diff.kind === 'binary') {
17
- return emptyPath;
18
- }
19
- const operation = diff.operations[0];
20
- return operation === undefined ? emptyPath : operationPath(operation);
21
- }
22
- export function comparisonResult(input) {
23
- return {
24
- actual: serializeValue(input.actual),
25
- diff: input.diff,
26
- expected: serializeValue(input.expected),
27
- passed: input.passed,
28
- path: input.path
29
- };
30
- }
31
- export function passedResult(actual, expected) {
32
- return comparisonResult({ actual, diff: null, expected, passed: true, path: emptyPath });
33
- }
34
- export function failedResult(actual, expected, diff) {
35
- return comparisonResult({ actual, diff, expected, passed: false, path: firstDiffPath(diff) });
36
- }
37
- export function serializedValueDiff(actual, expected) {
38
- return {
39
- actual: serializeValue(actual),
40
- expected: serializeValue(expected),
41
- kind: 'value'
42
- };
43
- }
44
- export function valueMismatch(actual, expected) {
45
- return failedResult(actual, expected, serializedValueDiff(actual, expected));
46
- }
47
- //# sourceMappingURL=comparison-result.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comparison-result.js","sourceRoot":"","sources":["../../../../source/compare/comparison-result.ts"],"names":[],"mappings":"AAQA,OAAO,EAAwB,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAkB7E,MAAM,CAAC,MAAM,SAAS,GAA+B,EAAE,CAAC;AAExD,SAAS,YAAY,CAAC,KAAa;IAC/B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACpC,CAAC;AAED,SAAS,aAAa,CAClB,SAAyF;IAEzF,IAAI,SAAS,CAAC,SAAS,KAAK,eAAe,EAAE,CAAC;QAC1C,OAAO,CAAE,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAE,CAAC;IAC7C,CAAC;IAED,IAAI,SAAS,CAAC,SAAS,KAAK,eAAe,IAAI,SAAS,CAAC,SAAS,KAAK,gBAAgB,EAAE,CAAC;QACtF,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO,SAAS,CAAC,IAAI,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAiB;IAC3C,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QA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AmB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjF,CAAC"}
@@ -1,20 +0,0 @@
1
- export function createComparisonState() {
2
- return {
3
- actualToExpected: new WeakMap(),
4
- expectedToActual: new WeakMap()
5
- };
6
- }
7
- export function objectPairStatus(actual, expected, state) {
8
- const previousExpected = state.actualToExpected.get(actual);
9
- const previousActual = state.expectedToActual.get(expected);
10
- if (previousExpected === expected && previousActual === actual) {
11
- return 'seen';
12
- }
13
- if (previousExpected !== undefined || previousActual !== undefined) {
14
- return 'topology-mismatch';
15
- }
16
- state.actualToExpected.set(actual, expected);
17
- state.expectedToActual.set(expected, actual);
18
- return 'new';
19
- }
20
- //# sourceMappingURL=comparison-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comparison-state.js","sourceRoot":"","sources":["../../../../source/compare/comparison-state.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,qBAAqB;IACjC,OAAO;QACH,gBAAgB,EAAE,IAAI,OAAO,EAAoB;QACjD,gBAAgB,EAAE,IAAI,OAAO,EAAoB;KACpD,CAAC;AACN,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC5B,MAAe,EACf,QAAiB,EACjB,KAAsB;IAEtB,MAAM,gBAAgB,GAAG,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5D,MAAM,cAAc,GAAG,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE5D,IAAI,gBAAgB,KAAK,QAAQ,IAAI,cAAc,KAAK,MAAM,EAAE,CAAC;QAC7D,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,IAAI,gBAAgB,KAAK,SAAS,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;QACjE,OAAO,mBAAmB,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC7C,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAE7C,OAAO,KAAK,CAAC;AACjB,CAAC"}
@@ -1,78 +0,0 @@
1
- import { createStringHunks } from "../diff/string-diff.js";
2
- import { comparisonResult, emptyPath, failedResult, passedResult, valueMismatch } from "./comparison-result.js";
3
- import { compareExactly, comparePartially } from "./raw-comparison.js";
4
- import { exactStructuredDiff, partialStructuredDiff } from "./structured-diff.js";
5
- import { serializeValue } from "./serialized-value.js";
6
-
7
- export function compareEqualValues(actual, expected) {
8
- return Object.is(actual, expected) ? passedResult(actual, expected) : failedResult(actual, expected, null);
9
- }
10
- export function compareStringEquality(actual, expected) {
11
- if (Object.is(actual, expected)) {
12
- return passedResult(actual, expected);
13
- }
14
- return failedResult(actual, expected, {
15
- actual,
16
- expected,
17
- hunks: createStringHunks(expected, actual),
18
- kind: 'string'
19
- });
20
- }
21
- export function compareDeepValues(actual, expected) {
22
- if (compareExactly(actual, expected)) {
23
- return passedResult(actual, expected);
24
- }
25
- const comparison = exactStructuredDiff(actual, expected);
26
- return comparison.passed ? valueMismatch(actual, expected) : comparison;
27
- }
28
- export function comparePartialValue(actual, expected) {
29
- if (comparePartially(actual, expected)) {
30
- return passedResult(actual, expected);
31
- }
32
- const comparison = partialStructuredDiff(actual, expected);
33
- return comparison.passed ? valueMismatch(actual, expected) : comparison;
34
- }
35
- export function compareArrayContainsPartial(actual, expected) {
36
- if (!Array.isArray(actual)) {
37
- return valueMismatch(actual, expected);
38
- }
39
- const passed = actual.some(function itemMatches(item) {
40
- return comparePartially(item, expected);
41
- });
42
- return passed
43
- ? passedResult(actual, expected)
44
- : failedResult(actual, expected, {
45
- kind: 'array',
46
- operations: [
47
- {
48
- operation: 'missing-member',
49
- value: serializeValue(expected)
50
- }
51
- ]
52
- });
53
- }
54
- export function compareMembersPartialDeepEqual(actual, expected) {
55
- if (!Array.isArray(actual) || !Array.isArray(expected)) {
56
- return valueMismatch(actual, expected);
57
- }
58
- const missingMembers = expected.filter(function missingMember(expectedMember) {
59
- return actual.every(function itemMatches(actualMember) {
60
- return !comparePartially(actualMember, expectedMember);
61
- });
62
- });
63
- return missingMembers.length === 0
64
- ? passedResult(actual, expected)
65
- : failedResult(actual, expected, {
66
- kind: 'array',
67
- operations: missingMembers.map(function toMissingMember(member) {
68
- return {
69
- operation: 'missing-member',
70
- value: serializeValue(member)
71
- };
72
- })
73
- });
74
- }
75
- export function serializedOutcome(actual, expected, passed) {
76
- return comparisonResult({ actual, diff: null, expected, passed, path: emptyPath });
77
- }
78
- //# sourceMappingURL=comparison.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comparison.js","sourceRoot":"","sources":["../../../../source/compare/comparison.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EACH,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,YAAY,EAEZ,aAAa,EAEhB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIoD;AAE3G,MAAM,UAAU,kBAAkB,CAAC,MAAe,EAAE,QAAiB;IACjE,OAAO,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AAC/G,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAc,EAAE,QAAgB;IAClE,IAAI,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC9B,OAAO,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAA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AM,UAAU,iBAAiB,CAAC,MAAe,EAAE,QAAiB,EAAE,MAAe;IACjF,OAAO,gBAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;AACvF,CAAC"}
@@ -1,37 +0,0 @@
1
- import { serializeValue } from "./serialized-value.js";
2
- function serializedKey(key) {
3
- return typeof key === 'symbol'
4
- ? { kind: 'symbol', value: key.toString() }
5
- : { kind: 'string', value: String(key) };
6
- }
7
- export function propertySegment(key) {
8
- return {
9
- key: serializedKey(key),
10
- kind: 'property'
11
- };
12
- }
13
- export function indexSegment(index) {
14
- return { index, kind: 'index' };
15
- }
16
- export function byteSegment(offset) {
17
- return { kind: 'byte', offset };
18
- }
19
- export function mapKeySegment(key) {
20
- return {
21
- key: serializeValue(key),
22
- kind: 'map-key'
23
- };
24
- }
25
- export function mapValueSegment(key) {
26
- return {
27
- key: serializeValue(key),
28
- kind: 'map-value'
29
- };
30
- }
31
- export function setValueSegment(value) {
32
- return {
33
- kind: 'set-value',
34
- value: serializeValue(value)
35
- };
36
- }
37
- //# sourceMappingURL=diff-path.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diff-path.js","sourceRoot":"","sources":["../../../../source/compare/diff-path.ts"],"names":[],"mappings":"AACA,OAAO,EAA8B,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEnF,SAAS,aAAa,CAAC,GAAgB;IACnC,OAAO,OAAO,GAAG,KAAK,QAAQ;QAC1B,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC,QAAQ,EAAE,EAAE;QAC3C,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAgB;IAC5C,OAAO;QACH,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC;QACvB,IAAI,EAAE,UAAU;KACnB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAa;IACtC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,MAAc;IACtC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,GAAY;IACtC,OAAO;QACH,GAAG,EAAE,cAAc,CAAC,GAAG,CAAC;QACxB,IAAI,EAAE,SAAS;KAClB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAY;IACxC,OAAO;QACH,GAAG,EAAE,cAAc,CAAC,GAAG,CAAC;QACxB,IAAI,EAAE,WAAW;KACpB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc;IAC1C,OAAO;QACH,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC;KAC/B,CAAC;AACN,CAAC"}