@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,285 +0,0 @@
1
- import { createComparisonState, objectPairStatus } from "./comparison-state.js";
2
- import { byteSourcePair, isDateValue, isErrorValue, isMapCandidate, isOpaqueIdentityValue, isRegExpValue, isSetCandidate, mapPair, prototypeOf, setPair } from "./value-classification.js";
3
- function keyText(key) {
4
- return typeof key === 'symbol' ? key.toString() : String(key);
5
- }
6
- function safePropertyDescriptor(value, key) {
7
- try {
8
- return Object.getOwnPropertyDescriptor(value, key);
9
- }
10
- catch {
11
- return undefined;
12
- }
13
- }
14
- export function sortedKeys(value) {
15
- try {
16
- const descriptors = Object.getOwnPropertyDescriptors(value);
17
- return Reflect
18
- .ownKeys(descriptors)
19
- .filter(function enumerableDataKey(key) {
20
- const descriptor = Object.getOwnPropertyDescriptor(value, key);
21
- return descriptor?.enumerable === true;
22
- })
23
- .toSorted(function compareKeys(first, second) {
24
- return keyText(first).localeCompare(keyText(second));
25
- });
26
- }
27
- catch {
28
- return null;
29
- }
30
- }
31
- export function rawProperty(value, key) {
32
- const descriptor = safePropertyDescriptor(value, key);
33
- if (descriptor === undefined || !Object.hasOwn(descriptor, 'value')) {
34
- return {
35
- key,
36
- value: { accessor: true }
37
- };
38
- }
39
- return { key, value: descriptor.value };
40
- }
41
- export function bytesFrom(value) {
42
- if (value instanceof ArrayBuffer) {
43
- return Array.from(new Uint8Array(value));
44
- }
45
- return Array.from(new Uint8Array(value.buffer, value.byteOffset, value.byteLength));
46
- }
47
- function compareBytes(actual, expected) {
48
- const actualBytes = bytesFrom(actual);
49
- const expectedBytes = bytesFrom(expected);
50
- return actualBytes.length === expectedBytes.length &&
51
- actualBytes.every(function sameByte(actualByte, index) {
52
- return actualByte === expectedBytes[index];
53
- });
54
- }
55
- export function mapEntries(value) {
56
- return Array.from(value, function toEntry([key, entryValue]) {
57
- return { key, value: entryValue };
58
- });
59
- }
60
- export function setValues(value) {
61
- return Array.from(value);
62
- }
63
- function primitiveOrFunction(value) {
64
- return value === null || typeof value !== 'object';
65
- }
66
- function compareSeenObjects(actual, expected, state) {
67
- const pairStatus = objectPairStatus(actual, expected, state);
68
- if (pairStatus === 'seen') {
69
- return true;
70
- }
71
- return pairStatus === 'topology-mismatch' ? false : null;
72
- }
73
- function objectKeyCountMatches(actualKeys, expectedKeys, mode) {
74
- return mode === 'partial' || actualKeys.length === expectedKeys.length;
75
- }
76
- function compareArrays(actual, expected, context) {
77
- const exactLengthMismatch = context.mode === 'exact' && actual.length !== expected.length;
78
- const partialLengthMismatch = context.mode === 'partial' && actual.length < expected.length;
79
- if (exactLengthMismatch || partialLengthMismatch) {
80
- return false;
81
- }
82
- return Array.from({ length: expected.length }).every(function itemMatches(_unusedValue, index) {
83
- const expectedValue = expected[index];
84
- return Object.hasOwn(actual, index) === Object.hasOwn(expected, index) &&
85
- (!Object.hasOwn(expected, index) ||
86
- context.compare(actual[index], expectedValue, context.state, context.mode));
87
- });
88
- }
89
- function compareObjects(actual, expected, context) {
90
- const actualKeys = sortedKeys(actual);
91
- const expectedKeys = sortedKeys(expected);
92
- if (actualKeys === null || expectedKeys === null) {
93
- return false;
94
- }
95
- return objectKeyCountMatches(actualKeys, expectedKeys, context.mode) &&
96
- expectedKeys.every(function propertyMatches(expectedKey) {
97
- return actualKeys.includes(expectedKey) &&
98
- context.compare(rawProperty(actual, expectedKey).value, rawProperty(expected, expectedKey).value, context.state, context.mode);
99
- });
100
- }
101
- function matchedMapIndex(actualEntries, expectedEntry, matchedActualIndexes, context) {
102
- return actualEntries.findIndex(function matchesEntry(actualEntry, index) {
103
- return !matchedActualIndexes.has(index) &&
104
- context.compare(actualEntry.key, expectedEntry.key, createComparisonState(), 'exact') &&
105
- context.compare(actualEntry.value, expectedEntry.value, createComparisonState(), context.mode);
106
- });
107
- }
108
- function mapSizeMatches(actualEntries, expectedEntries, mode) {
109
- return mode === 'partial' || actualEntries.length === expectedEntries.length;
110
- }
111
- function compareMaps(actual, expected, context) {
112
- const actualEntries = mapEntries(actual);
113
- const expectedEntries = mapEntries(expected);
114
- const matchedActualIndexes = new Set();
115
- return mapSizeMatches(actualEntries, expectedEntries, context.mode) &&
116
- expectedEntries.every(function entryMatches(expectedEntry) {
117
- const matchIndex = matchedMapIndex(actualEntries, expectedEntry, matchedActualIndexes, context);
118
- const actualEntry = actualEntries[matchIndex];
119
- const matched = actualEntry !== undefined &&
120
- context.compare(actualEntry.key, expectedEntry.key, context.state, 'exact') &&
121
- context.compare(actualEntry.value, expectedEntry.value, context.state, context.mode);
122
- if (matched) {
123
- matchedActualIndexes.add(matchIndex);
124
- }
125
- return matched;
126
- });
127
- }
128
- function matchedSetIndex(actualValues, expectedValue, matchedActualIndexes, context) {
129
- return actualValues.findIndex(function matchesValue(actualValue, index) {
130
- return !matchedActualIndexes.has(index) &&
131
- context.compare(actualValue, expectedValue, createComparisonState(), context.mode);
132
- });
133
- }
134
- function setSizeMatches(actualValues, expectedValues, mode) {
135
- return mode === 'partial' || actualValues.length === expectedValues.length;
136
- }
137
- function compareSets(actual, expected, context) {
138
- const actualValues = setValues(actual);
139
- const expectedValues = setValues(expected);
140
- const matchedActualIndexes = new Set();
141
- return setSizeMatches(actualValues, expectedValues, context.mode) &&
142
- expectedValues.every(function valueMatches(expectedValue) {
143
- const matchIndex = matchedSetIndex(actualValues, expectedValue, matchedActualIndexes, context);
144
- const actualValue = actualValues[matchIndex];
145
- const matched = context.compare(actualValue, expectedValue, context.state, context.mode);
146
- if (matched) {
147
- matchedActualIndexes.add(matchIndex);
148
- }
149
- return matched;
150
- });
151
- }
152
- function compareErrors(actual, expected, context) {
153
- return actual.name === expected.name &&
154
- actual.message === expected.message &&
155
- compareObjects(actual, expected, context);
156
- }
157
- function firstReferenceResult(comparisons, actual, expected, context) {
158
- for (const comparison of comparisons) {
159
- const comparisonResult = comparison(actual, expected, context);
160
- if (comparisonResult !== null) {
161
- return comparisonResult;
162
- }
163
- }
164
- return false;
165
- }
166
- const exactReferenceComparisons = [
167
- function compareArrayValues(actual, expected, context) {
168
- if (!Array.isArray(actual) && !Array.isArray(expected)) {
169
- return null;
170
- }
171
- return Array.isArray(actual) && Array.isArray(expected) && compareArrays(actual, expected, context);
172
- },
173
- function compareByteValues(actual, expected) {
174
- const pair = byteSourcePair(actual, expected);
175
- return pair === null ? null : compareBytes(pair.actual, pair.expected);
176
- },
177
- function compareDateValues(actual, expected) {
178
- return isDateValue(actual) || isDateValue(expected)
179
- ? isDateValue(actual) && isDateValue(expected) && Object.is(actual.getTime(), expected.getTime())
180
- : null;
181
- },
182
- function compareRegExpValues(actual, expected) {
183
- if (!isRegExpValue(actual) && !isRegExpValue(expected)) {
184
- return null;
185
- }
186
- return isRegExpValue(actual) && isRegExpValue(expected) &&
187
- actual.source === expected.source &&
188
- actual.flags === expected.flags;
189
- },
190
- function compareErrorValues(actual, expected, context) {
191
- return isErrorValue(actual) || isErrorValue(expected)
192
- ? isErrorValue(actual) && isErrorValue(expected) && compareErrors(actual, expected, context)
193
- : null;
194
- },
195
- function compareOpaqueValues(actual, expected) {
196
- return isOpaqueIdentityValue(actual) || isOpaqueIdentityValue(expected) ? false : null;
197
- },
198
- function compareMapValues(actual, expected, context) {
199
- const pair = mapPair(actual, expected);
200
- return isMapCandidate(actual) || isMapCandidate(expected)
201
- ? pair !== null && compareMaps(pair.actual, pair.expected, context)
202
- : null;
203
- },
204
- function compareSetValues(actual, expected, context) {
205
- const pair = setPair(actual, expected);
206
- return isSetCandidate(actual) || isSetCandidate(expected)
207
- ? pair !== null && compareSets(pair.actual, pair.expected, context)
208
- : null;
209
- },
210
- function compareObjectValues(actual, expected, context) {
211
- return prototypeOf(actual) === prototypeOf(expected) &&
212
- compareObjects(actual, expected, context);
213
- }
214
- ];
215
- const partialReferenceComparisons = [
216
- function compareArrayValues(actual, expected, context) {
217
- return Array.isArray(expected)
218
- ? Array.isArray(actual) && compareArrays(actual, expected, context)
219
- : null;
220
- },
221
- function compareByteValues(actual, expected) {
222
- const pair = byteSourcePair(actual, expected);
223
- return pair === null ? null : compareBytes(pair.actual, pair.expected);
224
- },
225
- function compareDateValues(actual, expected) {
226
- return isDateValue(expected)
227
- ? isDateValue(actual) && Object.is(actual.getTime(), expected.getTime())
228
- : null;
229
- },
230
- function compareRegExpValues(actual, expected) {
231
- return isRegExpValue(expected)
232
- ? isRegExpValue(actual) && actual.source === expected.source && actual.flags === expected.flags
233
- : null;
234
- },
235
- function compareErrorValues(actual, expected, context) {
236
- return isErrorValue(expected)
237
- ? isErrorValue(actual) && compareErrors(actual, expected, context)
238
- : null;
239
- },
240
- function compareOpaqueValues(actual, expected) {
241
- return isOpaqueIdentityValue(actual) || isOpaqueIdentityValue(expected) ? false : null;
242
- },
243
- function compareMapValues(actual, expected, context) {
244
- const pair = mapPair(actual, expected);
245
- return isMapCandidate(expected)
246
- ? pair !== null && compareMaps(pair.actual, pair.expected, context)
247
- : null;
248
- },
249
- function compareSetValues(actual, expected, context) {
250
- const pair = setPair(actual, expected);
251
- return isSetCandidate(expected)
252
- ? pair !== null && compareSets(pair.actual, pair.expected, context)
253
- : null;
254
- },
255
- compareObjects
256
- ];
257
- function isReferenceValue(value) {
258
- return value !== null && typeof value === 'object';
259
- }
260
- function compareReferences(actual, expected, context) {
261
- const seen = compareSeenObjects(actual, expected, context.state);
262
- if (seen !== null) {
263
- return seen;
264
- }
265
- const comparisons = context.mode === 'exact' ? exactReferenceComparisons : partialReferenceComparisons;
266
- return firstReferenceResult(comparisons, actual, expected, context);
267
- }
268
- function compareRaw(actual, expected, state, mode) {
269
- if (Object.is(actual, expected)) {
270
- return true;
271
- }
272
- if (primitiveOrFunction(actual) || primitiveOrFunction(expected)) {
273
- return false;
274
- }
275
- return isReferenceValue(actual) && isReferenceValue(expected)
276
- ? compareReferences(actual, expected, { compare: compareRaw, mode, state })
277
- : false;
278
- }
279
- export function compareExactly(actual, expected) {
280
- return compareRaw(actual, expected, createComparisonState(), 'exact');
281
- }
282
- export function comparePartially(actual, expected) {
283
- return compareRaw(actual, expected, createComparisonState(), 'partial');
284
- }
285
- //# sourceMappingURL=raw-comparison.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"raw-comparison.js","sourceRoot":"","sources":["../../../../source/compare/raw-comparison.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAwB,MAAM,uBAAuB,CAAC;AACtG,OAAO,EACH,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,OAAO,EACP,WAAW,EACX,OAAO,EAEV,MAAM,2BAA2B,CAAC;AAwCnC,SAAS,OAAO,CAAC,GAAgB;IAC7B,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAClE,CAAC;AAED,SAAS,sBAAsB,CAAC,KAAqB,EAAE,GAAgB;IACnE,IAAI,CAAC;QACD,OAAO,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACvD,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,SAAS,CAAC;IACrB,CAAC;AACL,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAqB;IAC5C,IAAI,CAAC;QACD,MAAM,WAAW,GAAG,MAAM,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;QAE5D,OAAO,OAAO;aACT,OAAO,CAAC,WAAW,CAAC;aACpB,MAAM,CAAC,SAAS,iBAAiB,CAAC,GAAG;YAClC,MAAM,UAAU,GAAG,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;YAE/D,OAAO,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;QAC3C,CAAC,CAAC;aACD,QAAQ,CAAC,SAAS,WAAW,CAAC,KAAK,EAAE,MAAM;YACxC,OAAO,OAAO,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descriptor = Object.getOwnPropertyDescriptor(prototype, 'constructor');
6
- const constructorValue = descriptor?.value;
7
- const name = typeof constructorValue === 'function' ? constructorValue.name : 'Object';
8
- return name.length === 0 ? '(anonymous)' : name;
9
- }
10
- export function constructorName(value) {
11
- try {
12
- const prototype = Object.getPrototypeOf(value);
13
- return constructorNameFromPrototype(prototype);
14
- }
15
- catch {
16
- return 'Unavailable';
17
- }
18
- }
19
- export function prototypeIs(value, prototype) {
20
- try {
21
- return Object.getPrototypeOf(value) === prototype;
22
- }
23
- catch {
24
- return false;
25
- }
26
- }
27
- export function isBufferValue(value) {
28
- try {
29
- return Buffer.isBuffer(value);
30
- }
31
- catch {
32
- return false;
33
- }
34
- }
35
- export function isArrayBufferView(value) {
36
- try {
37
- return ArrayBuffer.isView(value);
38
- }
39
- catch {
40
- return false;
41
- }
42
- }
43
- export function isArrayBufferValue(value) {
44
- try {
45
- return value instanceof ArrayBuffer;
46
- }
47
- catch {
48
- return false;
49
- }
50
- }
51
- export function isDateValue(value) {
52
- try {
53
- return value instanceof Date;
54
- }
55
- catch {
56
- return false;
57
- }
58
- }
59
- export function isRegExpValue(value) {
60
- try {
61
- return value instanceof RegExp;
62
- }
63
- catch {
64
- return false;
65
- }
66
- }
67
- export function isErrorValue(value) {
68
- try {
69
- return value instanceof Error;
70
- }
71
- catch {
72
- return false;
73
- }
74
- }
75
- export function isPromiseValue(value) {
76
- try {
77
- return value instanceof Promise;
78
- }
79
- catch {
80
- return false;
81
- }
82
- }
83
- export function isWeakMapValue(value) {
84
- try {
85
- return value instanceof WeakMap;
86
- }
87
- catch {
88
- return false;
89
- }
90
- }
91
- export function isWeakSetValue(value) {
92
- try {
93
- return value instanceof WeakSet;
94
- }
95
- catch {
96
- return false;
97
- }
98
- }
99
- //# sourceMappingURL=serialized-value-classification.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serialized-value-classification.js","sourceRoot":"","sources":["../../../../source/compare/serialized-value-classification.ts"],"names":[],"mappings":"AAAA,S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}
@@ -1,134 +0,0 @@
1
- type CollectionTruncationReason = 'array-entries' | 'object-entries';
2
- type ValueTruncationReason = 'depth' | 'serialized-bytes' | 'string-bytes' | 'visited-nodes';
3
- type SerializationTruncationReason = CollectionTruncationReason | ValueTruncationReason;
4
- export type SerializationTruncation = {
5
- readonly budget: number;
6
- readonly reason: SerializationTruncationReason;
7
- };
8
- type SerializedStringPropertyKey = {
9
- readonly kind: 'string';
10
- readonly value: string;
11
- };
12
- type SerializedSymbolPropertyKey = {
13
- readonly kind: 'symbol';
14
- readonly value: string;
15
- };
16
- export type SerializedPropertyKey = SerializedStringPropertyKey | SerializedSymbolPropertyKey;
17
- export type SerializedProperty = {
18
- readonly key: SerializedPropertyKey;
19
- readonly value: SerializedValue;
20
- };
21
- export type SerializedMapEntry = {
22
- readonly key: SerializedValue;
23
- readonly value: SerializedValue;
24
- };
25
- export type SerializedBytes = {
26
- readonly bytes: readonly number[];
27
- readonly byteLength: number;
28
- readonly truncation: SerializationTruncation | null;
29
- };
30
- type SerializedObjectValue = {
31
- readonly constructorName: string;
32
- readonly entries: readonly SerializedProperty[];
33
- readonly kind: 'object';
34
- readonly truncation: SerializationTruncation | null;
35
- };
36
- type SerializedErrorValue = {
37
- readonly entries: readonly SerializedProperty[];
38
- readonly kind: 'error';
39
- readonly message: string;
40
- readonly name: string;
41
- readonly truncation: SerializationTruncation | null;
42
- };
43
- type SerializedArrayValue = {
44
- readonly entries: readonly SerializedProperty[];
45
- readonly kind: 'array';
46
- readonly length: number;
47
- readonly truncation: SerializationTruncation | null;
48
- };
49
- type SerializedMapValue = {
50
- readonly entries: readonly SerializedMapEntry[];
51
- readonly kind: 'map';
52
- readonly size: number;
53
- readonly truncation: SerializationTruncation | null;
54
- };
55
- type SerializedSetValue = {
56
- readonly kind: 'set';
57
- readonly size: number;
58
- readonly truncation: SerializationTruncation | null;
59
- readonly values: readonly SerializedValue[];
60
- };
61
- type SerializedCollectionValue = SerializedArrayValue | SerializedMapValue | SerializedObjectValue | SerializedSetValue;
62
- type SerializedFunctionValue = {
63
- readonly id: number;
64
- readonly kind: 'function';
65
- readonly name: string | null;
66
- };
67
- type SerializedBigIntValue = {
68
- readonly kind: 'bigint';
69
- readonly value: string;
70
- };
71
- type SerializedBooleanValue = {
72
- readonly kind: 'boolean';
73
- readonly value: boolean;
74
- };
75
- type SerializedNullValue = {
76
- readonly kind: 'null';
77
- };
78
- type SerializedNumberValue = {
79
- readonly kind: 'number';
80
- readonly value: number | '-0' | '-Infinity' | 'Infinity' | 'NaN';
81
- };
82
- type SerializedStringValue = {
83
- readonly kind: 'string';
84
- readonly truncation: SerializationTruncation | null;
85
- readonly value: string;
86
- };
87
- type SerializedSymbolValue = {
88
- readonly kind: 'symbol';
89
- readonly value: string;
90
- };
91
- type SerializedUndefinedValue = {
92
- readonly kind: 'undefined';
93
- };
94
- type SerializedNullishValue = SerializedNullValue | SerializedUndefinedValue;
95
- type SerializedNumericValue = SerializedBigIntValue | SerializedNumberValue;
96
- type SerializedScalarValue = SerializedBooleanValue | SerializedNullishValue | SerializedNumericValue;
97
- type SerializedTextValue = SerializedStringValue | SerializedSymbolValue | SerializedUndefinedValue;
98
- type SerializedPrimitiveValue = SerializedScalarValue | SerializedTextValue;
99
- type SerializedCircularValue = {
100
- readonly kind: 'circular';
101
- readonly reference: number;
102
- };
103
- type SerializedDateValue = {
104
- readonly kind: 'date';
105
- readonly value: string | null;
106
- };
107
- type SerializedOpaqueValue = {
108
- readonly kind: 'opaque';
109
- readonly type: 'promise' | 'weak-map' | 'weak-set';
110
- };
111
- type SerializedRegExpValue = {
112
- readonly kind: 'regexp';
113
- readonly flags: string;
114
- readonly source: string;
115
- };
116
- type SerializedUnavailableValue = {
117
- readonly kind: 'unavailable';
118
- readonly reason: string;
119
- };
120
- type SerializedBuiltInCoreValue = SerializedCircularValue | SerializedDateValue | SerializedOpaqueValue;
121
- type SerializedBuiltInValue = SerializedBuiltInCoreValue | SerializedRegExpValue | SerializedUnavailableValue;
122
- type SerializedTypedArrayValue = SerializedBytes & {
123
- readonly constructorName: string;
124
- readonly kind: 'typed-array';
125
- readonly length: number;
126
- };
127
- type SerializedByteViewValue = SerializedBytes & {
128
- readonly kind: 'array-buffer' | 'data-view';
129
- };
130
- type SerializedReferenceValue = SerializedByteViewValue | SerializedCollectionValue | SerializedTypedArrayValue;
131
- type SerializedRuntimeValue = SerializedBuiltInValue | SerializedErrorValue | SerializedFunctionValue;
132
- export type SerializedValue = SerializedPrimitiveValue | SerializedReferenceValue | SerializedRuntimeValue;
133
- export {};
134
- //# sourceMappingURL=serialized-value-shape.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serialized-value-shape.d.ts","sourceRoot":"","sources":["../../../../source/compare/serialized-value-shape.ts"],"names":[],"mappings":"AAAA,KAAK,0BAA0B,GAAG,eAAe,GAAG,gBAAgB,CAAC;AAErE,KAAK,qBAAqB,GAAG,OAAO,GAAG,kBAAkB,GAAG,cAAc,GAAG,eAAe,CAAC;AAE7F,KAAK,6BAA6B,GAAG,0BAA0B,GAAG,qBAAqB,CAAC;AAExF,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,6BAA6B,CAAC;CAClD,CAAC;AAEF,KAAK,2BAA2B,GAAG;IAC/B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,KAAK,2BAA2B,GAAG;IAC/B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAAG,2BAA2B,CAAC;AAE9F,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,CAAC,GAAG,EAAE,qBAAqB,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,eAA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QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC;AAE7F,KAAK,0BAA0B,GAAG,uBAAuB,GAAG,mBAAmB,GAAG,qBAAqB,CAAC;AACxG,KAAK,sBAAsB,GAAG,0BAA0B,GAAG,qBAAqB,GAAG,0BAA0B,CAAC;AAE9G,KAAK,yBAAyB,GAAG,eAAe,GAAG;IAC/C,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,KAAK,uBAAuB,GAAG,eAAe,GAAG;IAC7C,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,WAAW,CAAC;CAC/C,CAAC;AAEF,KAAK,wBAAwB,GAAG,uBAAuB,GAAG,yBAAyB,GAAG,yBAAyB,CAAC;AAEhH,KAAK,sBAAsB,GAAG,sBAAsB,GAAG,oBAAoB,GAAG,uBAAuB,CAAC;AAEtG,MAAM,MAAM,eAAe,GAAG,wBAAwB,GAAG,wBAAwB,GAAG,sBAAsB,CAAC;AAE3G,MAAM,CAA4B,EAOjC,CAAC"}
@@ -1,12 +0,0 @@
1
- const bytesPerKilobyte = 1024;
2
- const defaultOperandKilobytes = 64;
3
- const defaultStringKilobytes = 8;
4
- export const defaultSerializationBudget = {
5
- arrayEntries: 100,
6
- depth: 8,
7
- objectEntries: 100,
8
- operandBytes: defaultOperandKilobytes * bytesPerKilobyte,
9
- stringBytes: defaultStringKilobytes * bytesPerKilobyte,
10
- visitedNodes: 2000
11
- };
12
- //# sourceMappingURL=serialized-value-shape.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serialized-value-shape.js","sourceRoot":"","sources":["../../../../source/compare/serialized-value-shape.ts"],"names":[],"mappings":"AA4IA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAEjC,MAAM,CAAC,MAAM,0BAA0B,GAAwB;IAC3D,YAAY,EAAE,GAAG;IACjB,KAAK,EAAE,CAAC;IACR,aAAa,EAAE,GAAG;IAClB,YAAY,EAAE,uBAAuB,GAAG,gBAAgB;IACxD,WAAW,EAAE,sBAAsB,GAAG,gBAAgB;IACtD,YAAY,EAAE,IAAI;CACrB,CAAC"}
@@ -1,55 +0,0 @@
1
- const nextReferenceIndex = 0;
2
- const serializedBytesIndex = 1;
3
- const visitedNodesIndex = 2;
4
- function counterValue(state, index) {
5
- return state.counters[index] ?? 0;
6
- }
7
- function setCounterValue(state, index, value) {
8
- const { counters } = state;
9
- counters[index] = value;
10
- }
11
- export function nextReferenceId(state) {
12
- return counterValue(state, nextReferenceIndex);
13
- }
14
- export function truncation(reason, budget) {
15
- return { budget, reason };
16
- }
17
- export function createState(budget) {
18
- return {
19
- budget,
20
- counters: Int32Array.from([1, 0, 0]),
21
- seen: new WeakMap()
22
- };
23
- }
24
- function estimatedBytes(value) {
25
- return Buffer.byteLength(JSON.stringify(value), 'utf8');
26
- }
27
- export function accountValue(state, value) {
28
- const visitedNodes = counterValue(state, visitedNodesIndex) + 1;
29
- setCounterValue(state, visitedNodesIndex, visitedNodes);
30
- if (visitedNodes > state.budget.visitedNodes) {
31
- return {
32
- kind: 'unavailable',
33
- reason: `visited node budget reached: ${state.budget.visitedNodes}`
34
- };
35
- }
36
- const serializedBytes = counterValue(state, serializedBytesIndex) + estimatedBytes(value);
37
- setCounterValue(state, serializedBytesIndex, serializedBytes);
38
- return serializedBytes > state.budget.operandBytes
39
- ? {
40
- kind: 'unavailable',
41
- reason: `serialized byte budget reached: ${state.budget.operandBytes}`
42
- }
43
- : value;
44
- }
45
- export function referenceFor(state, value) {
46
- const existing = state.seen.get(value);
47
- if (existing !== undefined) {
48
- return existing;
49
- }
50
- const nextReference = counterValue(state, nextReferenceIndex);
51
- state.seen.set(value, nextReference);
52
- setCounterValue(state, nextReferenceIndex, nextReference + 1);
53
- return null;
54
- }
55
- //# sourceMappingURL=serialized-value-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serialized-value-state.js","sourceRoot":"","sources":["../../../../source/compare/serialized-value-state.ts"],"names":[],"mappings":"AAMA,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAC7B,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAC/B,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAQ5B,SAAS,YAAY,CAAC,KAAyB,EAAE,KAAa;IAC1D,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,eAAe,CAAC,KAAyB,EAAE,KAAa,EAAE,KAAa;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE3B,QAAQ,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAyB;IACrD,OAAO,YAAY,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAyC,EAAE,MAAc;IAChF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,MAA2B;IACnD,OAAO;QACH,MAAM;QACN,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC,CAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAE,CAAC;QACtC,IAAI,EAAE,IAAI,OAAO,EAAmB;KACvC,CAAC;AACN,CAAC;AAED,SAAS,cAAc,CAAC,KAAsB;IAC1C,OAAO,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAyB,EAAE,KAAsB;IAC1E,MAA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from './serialized-value-shape.ts';
2
- export type SerializedPropertyKey = SerializedPropertyKeyShape;
3
- export type SerializedValue = SerializedValueShape;
4
- //# sourceMappingURL=serialized-value.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serialized-value.d.ts","sourceRoot":"","sources":["../../../../source/compare/serialized-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,qBAKqB,IAAI,0BAA0B,EACxD,KAAK,eAAe,IAAI,oBAAoB,EAC/C,MAAM,6BAA6B,CAAC;AAuBrC,MAAM,MAAM,qBACqB,GAAG,0BAA0B,CAAC;AAC/D,MAAM,MAAM,eAEe,GAAG,oBAAoB,CAAC"}