@powerlines/plugin-alloy 0.26.191 → 0.26.193

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 (390) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +0 -14
  2. package/dist/core/components/infrastructure-file.cjs +1 -8
  3. package/dist/core/components/infrastructure-file.mjs +1 -3
  4. package/dist/core/components/infrastructure-file.mjs.map +1 -1
  5. package/dist/core/components/output.cjs +1 -9
  6. package/dist/core/components/output.mjs +1 -3
  7. package/dist/core/components/output.mjs.map +1 -1
  8. package/dist/core/components/single-line-comment.cjs +1 -9
  9. package/dist/core/components/single-line-comment.mjs +1 -3
  10. package/dist/core/components/single-line-comment.mjs.map +1 -1
  11. package/dist/core/components/source-file.cjs +1 -8
  12. package/dist/core/components/source-file.mjs +1 -3
  13. package/dist/core/components/source-file.mjs.map +1 -1
  14. package/dist/core/components/spacing.cjs +1 -9
  15. package/dist/core/components/spacing.mjs +1 -3
  16. package/dist/core/components/spacing.mjs.map +1 -1
  17. package/dist/core/contexts/context.cjs +0 -13
  18. package/dist/core/contexts/context.mjs +1 -8
  19. package/dist/core/contexts/context.mjs.map +1 -1
  20. package/dist/core/contexts/meta.cjs +0 -13
  21. package/dist/core/contexts/meta.mjs +1 -8
  22. package/dist/core/contexts/meta.mjs.map +1 -1
  23. package/dist/core/contexts/schema.cjs +0 -13
  24. package/dist/core/contexts/schema.mjs +1 -8
  25. package/dist/core/contexts/schema.mjs.map +1 -1
  26. package/dist/core/helpers/code.cjs +1 -9
  27. package/dist/core/helpers/code.mjs +1 -3
  28. package/dist/core/helpers/code.mjs.map +1 -1
  29. package/dist/hcl/components/block-declaration.cjs +1 -9
  30. package/dist/hcl/components/block-declaration.mjs +1 -3
  31. package/dist/hcl/components/block-declaration.mjs.map +1 -1
  32. package/dist/hcl/components/hcl-file.cjs +1 -12
  33. package/dist/hcl/components/hcl-file.mjs +1 -6
  34. package/dist/hcl/components/hcl-file.mjs.map +1 -1
  35. package/dist/hcl/components/packer-file.cjs +1 -9
  36. package/dist/hcl/components/packer-file.mjs +1 -3
  37. package/dist/hcl/components/packer-file.mjs.map +1 -1
  38. package/dist/hcl/components/terraform-file.cjs +1 -9
  39. package/dist/hcl/components/terraform-file.mjs +1 -3
  40. package/dist/hcl/components/terraform-file.mjs.map +1 -1
  41. package/dist/helpers/capnp.cjs +0 -24
  42. package/dist/helpers/capnp.mjs +1 -20
  43. package/dist/helpers/capnp.mjs.map +1 -1
  44. package/dist/helpers/create-builtin.cjs +1 -9
  45. package/dist/helpers/create-builtin.mjs +1 -3
  46. package/dist/helpers/create-builtin.mjs.map +1 -1
  47. package/dist/helpers/typescript.cjs +1 -9
  48. package/dist/helpers/typescript.mjs +1 -3
  49. package/dist/helpers/typescript.mjs.map +1 -1
  50. package/dist/markdown/components/front-matter.cjs +1 -9
  51. package/dist/markdown/components/front-matter.mjs +1 -3
  52. package/dist/markdown/components/front-matter.mjs.map +1 -1
  53. package/dist/markdown/components/heading.cjs +1 -9
  54. package/dist/markdown/components/heading.mjs +1 -3
  55. package/dist/markdown/components/heading.mjs.map +1 -1
  56. package/dist/markdown/components/markdown-file.cjs +1 -12
  57. package/dist/markdown/components/markdown-file.mjs +1 -6
  58. package/dist/markdown/components/markdown-file.mjs.map +1 -1
  59. package/dist/markdown/components/markdown-table.cjs +1 -13
  60. package/dist/markdown/components/markdown-table.mjs +1 -7
  61. package/dist/markdown/components/markdown-table.mjs.map +1 -1
  62. package/dist/markdown/contexts/markdown-table.cjs +0 -13
  63. package/dist/markdown/contexts/markdown-table.mjs +1 -8
  64. package/dist/markdown/contexts/markdown-table.mjs.map +1 -1
  65. package/dist/typescript/components/builtin-file.cjs +1 -9
  66. package/dist/typescript/components/builtin-file.mjs +1 -3
  67. package/dist/typescript/components/builtin-file.mjs.map +1 -1
  68. package/dist/typescript/components/class-declaration.cjs +1 -16
  69. package/dist/typescript/components/class-declaration.mjs +1 -10
  70. package/dist/typescript/components/class-declaration.mjs.map +1 -1
  71. package/dist/typescript/components/dynamic-import-statement.cjs +1 -9
  72. package/dist/typescript/components/dynamic-import-statement.mjs +1 -3
  73. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -1
  74. package/dist/typescript/components/entry-file.cjs +1 -8
  75. package/dist/typescript/components/entry-file.mjs +1 -3
  76. package/dist/typescript/components/entry-file.mjs.map +1 -1
  77. package/dist/typescript/components/interface-declaration.cjs +1 -14
  78. package/dist/typescript/components/interface-declaration.mjs +1 -8
  79. package/dist/typescript/components/interface-declaration.mjs.map +1 -1
  80. package/dist/typescript/components/object-declaration.cjs +1 -12
  81. package/dist/typescript/components/object-declaration.mjs +1 -6
  82. package/dist/typescript/components/object-declaration.mjs.map +1 -1
  83. package/dist/typescript/components/property-name.cjs +1 -9
  84. package/dist/typescript/components/property-name.mjs +1 -3
  85. package/dist/typescript/components/property-name.mjs.map +1 -1
  86. package/dist/typescript/components/record-expression.cjs +1 -9
  87. package/dist/typescript/components/record-expression.mjs +1 -3
  88. package/dist/typescript/components/record-expression.mjs.map +1 -1
  89. package/dist/typescript/components/tsdoc-schema.cjs +1 -12
  90. package/dist/typescript/components/tsdoc-schema.mjs +1 -6
  91. package/dist/typescript/components/tsdoc-schema.mjs.map +1 -1
  92. package/dist/typescript/components/tsdoc.cjs +1 -32
  93. package/dist/typescript/components/tsdoc.mjs +1 -26
  94. package/dist/typescript/components/tsdoc.mjs.map +1 -1
  95. package/dist/typescript/components/type-declaration.cjs +1 -9
  96. package/dist/typescript/components/type-declaration.mjs +1 -3
  97. package/dist/typescript/components/type-declaration.mjs.map +1 -1
  98. package/dist/typescript/components/type-parameters.cjs +1 -9
  99. package/dist/typescript/components/type-parameters.mjs +1 -3
  100. package/dist/typescript/components/type-parameters.mjs.map +1 -1
  101. package/dist/typescript/components/typescript-file.cjs +1 -13
  102. package/dist/typescript/components/typescript-file.mjs +1 -7
  103. package/dist/typescript/components/typescript-file.mjs.map +1 -1
  104. package/dist/typescript/contexts/lexical-scope.cjs +1 -9
  105. package/dist/typescript/contexts/lexical-scope.mjs +1 -3
  106. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -1
  107. package/dist/typescript/contexts/member-scope.cjs +1 -9
  108. package/dist/typescript/contexts/member-scope.mjs +1 -3
  109. package/dist/typescript/contexts/member-scope.mjs.map +1 -1
  110. package/dist/typescript/helpers/get-call-signature-props.cjs +1 -9
  111. package/dist/typescript/helpers/get-call-signature-props.mjs +1 -3
  112. package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -1
  113. package/dist/typescript/helpers/utilities.cjs +1 -9
  114. package/dist/typescript/helpers/utilities.mjs +1 -4
  115. package/dist/typescript/helpers/utilities.mjs.map +1 -1
  116. package/dist/yaml/components/yaml-file.cjs +1 -12
  117. package/dist/yaml/components/yaml-file.mjs +1 -6
  118. package/dist/yaml/components/yaml-file.mjs.map +1 -1
  119. package/package.json +9 -582
  120. package/dist/_virtual/_rolldown/runtime.mjs +0 -18
  121. package/dist/core/components/infrastructure-file.test.cjs +0 -16
  122. package/dist/core/components/infrastructure-file.test.d.cts +0 -1
  123. package/dist/core/components/infrastructure-file.test.d.mts +0 -1
  124. package/dist/core/components/infrastructure-file.test.mjs +0 -18
  125. package/dist/core/components/infrastructure-file.test.mjs.map +0 -1
  126. package/dist/core/components/output.test.cjs +0 -16
  127. package/dist/core/components/output.test.d.cts +0 -1
  128. package/dist/core/components/output.test.d.mts +0 -1
  129. package/dist/core/components/output.test.mjs +0 -18
  130. package/dist/core/components/output.test.mjs.map +0 -1
  131. package/dist/core/components/single-line-comment.test.cjs +0 -16
  132. package/dist/core/components/single-line-comment.test.d.cts +0 -1
  133. package/dist/core/components/single-line-comment.test.d.mts +0 -1
  134. package/dist/core/components/single-line-comment.test.mjs +0 -18
  135. package/dist/core/components/single-line-comment.test.mjs.map +0 -1
  136. package/dist/core/components/source-file.test.cjs +0 -16
  137. package/dist/core/components/source-file.test.d.cts +0 -1
  138. package/dist/core/components/source-file.test.d.mts +0 -1
  139. package/dist/core/components/source-file.test.mjs +0 -18
  140. package/dist/core/components/source-file.test.mjs.map +0 -1
  141. package/dist/core/components/spacing.test.cjs +0 -16
  142. package/dist/core/components/spacing.test.d.cts +0 -1
  143. package/dist/core/components/spacing.test.d.mts +0 -1
  144. package/dist/core/components/spacing.test.mjs +0 -18
  145. package/dist/core/components/spacing.test.mjs.map +0 -1
  146. package/dist/core/contexts/context.test.cjs +0 -16
  147. package/dist/core/contexts/context.test.d.cts +0 -1
  148. package/dist/core/contexts/context.test.d.mts +0 -1
  149. package/dist/core/contexts/context.test.mjs +0 -18
  150. package/dist/core/contexts/context.test.mjs.map +0 -1
  151. package/dist/core/contexts/meta.test.cjs +0 -16
  152. package/dist/core/contexts/meta.test.d.cts +0 -1
  153. package/dist/core/contexts/meta.test.d.mts +0 -1
  154. package/dist/core/contexts/meta.test.mjs +0 -18
  155. package/dist/core/contexts/meta.test.mjs.map +0 -1
  156. package/dist/core/contexts/schema.test.cjs +0 -16
  157. package/dist/core/contexts/schema.test.d.cts +0 -1
  158. package/dist/core/contexts/schema.test.d.mts +0 -1
  159. package/dist/core/contexts/schema.test.mjs +0 -18
  160. package/dist/core/contexts/schema.test.mjs.map +0 -1
  161. package/dist/core/helpers/code.test.cjs +0 -16
  162. package/dist/core/helpers/code.test.d.cts +0 -1
  163. package/dist/core/helpers/code.test.d.mts +0 -1
  164. package/dist/core/helpers/code.test.mjs +0 -18
  165. package/dist/core/helpers/code.test.mjs.map +0 -1
  166. package/dist/hcl/components/block-declaration.test.cjs +0 -16
  167. package/dist/hcl/components/block-declaration.test.d.cts +0 -1
  168. package/dist/hcl/components/block-declaration.test.d.mts +0 -1
  169. package/dist/hcl/components/block-declaration.test.mjs +0 -18
  170. package/dist/hcl/components/block-declaration.test.mjs.map +0 -1
  171. package/dist/hcl/components/hcl-file.test.cjs +0 -16
  172. package/dist/hcl/components/hcl-file.test.d.cts +0 -1
  173. package/dist/hcl/components/hcl-file.test.d.mts +0 -1
  174. package/dist/hcl/components/hcl-file.test.mjs +0 -18
  175. package/dist/hcl/components/hcl-file.test.mjs.map +0 -1
  176. package/dist/hcl/components/packer-file.test.cjs +0 -16
  177. package/dist/hcl/components/packer-file.test.d.cts +0 -1
  178. package/dist/hcl/components/packer-file.test.d.mts +0 -1
  179. package/dist/hcl/components/packer-file.test.mjs +0 -18
  180. package/dist/hcl/components/packer-file.test.mjs.map +0 -1
  181. package/dist/hcl/components/terraform-file.test.cjs +0 -16
  182. package/dist/hcl/components/terraform-file.test.d.cts +0 -1
  183. package/dist/hcl/components/terraform-file.test.d.mts +0 -1
  184. package/dist/hcl/components/terraform-file.test.mjs +0 -18
  185. package/dist/hcl/components/terraform-file.test.mjs.map +0 -1
  186. package/dist/helpers/capnp.test.cjs +0 -16
  187. package/dist/helpers/capnp.test.d.cts +0 -1
  188. package/dist/helpers/capnp.test.d.mts +0 -1
  189. package/dist/helpers/capnp.test.mjs +0 -18
  190. package/dist/helpers/capnp.test.mjs.map +0 -1
  191. package/dist/helpers/create-builtin.test.cjs +0 -16
  192. package/dist/helpers/create-builtin.test.d.cts +0 -1
  193. package/dist/helpers/create-builtin.test.d.mts +0 -1
  194. package/dist/helpers/create-builtin.test.mjs +0 -18
  195. package/dist/helpers/create-builtin.test.mjs.map +0 -1
  196. package/dist/helpers/refkey.test.cjs +0 -30
  197. package/dist/helpers/refkey.test.d.cts +0 -1
  198. package/dist/helpers/refkey.test.d.mts +0 -1
  199. package/dist/helpers/refkey.test.mjs +0 -32
  200. package/dist/helpers/refkey.test.mjs.map +0 -1
  201. package/dist/helpers/typescript.test.cjs +0 -16
  202. package/dist/helpers/typescript.test.d.cts +0 -1
  203. package/dist/helpers/typescript.test.d.mts +0 -1
  204. package/dist/helpers/typescript.test.mjs +0 -18
  205. package/dist/helpers/typescript.test.mjs.map +0 -1
  206. package/dist/markdown/components/front-matter.test.cjs +0 -16
  207. package/dist/markdown/components/front-matter.test.d.cts +0 -1
  208. package/dist/markdown/components/front-matter.test.d.mts +0 -1
  209. package/dist/markdown/components/front-matter.test.mjs +0 -18
  210. package/dist/markdown/components/front-matter.test.mjs.map +0 -1
  211. package/dist/markdown/components/heading.test.cjs +0 -16
  212. package/dist/markdown/components/heading.test.d.cts +0 -1
  213. package/dist/markdown/components/heading.test.d.mts +0 -1
  214. package/dist/markdown/components/heading.test.mjs +0 -18
  215. package/dist/markdown/components/heading.test.mjs.map +0 -1
  216. package/dist/markdown/components/markdown-file.test.cjs +0 -16
  217. package/dist/markdown/components/markdown-file.test.d.cts +0 -1
  218. package/dist/markdown/components/markdown-file.test.d.mts +0 -1
  219. package/dist/markdown/components/markdown-file.test.mjs +0 -18
  220. package/dist/markdown/components/markdown-file.test.mjs.map +0 -1
  221. package/dist/markdown/components/markdown-table.test.cjs +0 -16
  222. package/dist/markdown/components/markdown-table.test.d.cts +0 -1
  223. package/dist/markdown/components/markdown-table.test.d.mts +0 -1
  224. package/dist/markdown/components/markdown-table.test.mjs +0 -18
  225. package/dist/markdown/components/markdown-table.test.mjs.map +0 -1
  226. package/dist/markdown/contexts/markdown-table.test.cjs +0 -16
  227. package/dist/markdown/contexts/markdown-table.test.d.cts +0 -1
  228. package/dist/markdown/contexts/markdown-table.test.d.mts +0 -1
  229. package/dist/markdown/contexts/markdown-table.test.mjs +0 -18
  230. package/dist/markdown/contexts/markdown-table.test.mjs.map +0 -1
  231. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +0 -78
  232. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -78
  233. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
  234. package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.cjs +0 -1487
  235. package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs +0 -1473
  236. package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs.map +0 -1
  237. package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.cjs +0 -889
  238. package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs +0 -888
  239. package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs.map +0 -1
  240. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs +0 -1614
  241. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs +0 -1594
  242. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs.map +0 -1
  243. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.cjs +0 -1
  244. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.mjs +0 -3
  245. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.cjs +0 -1
  246. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.mjs +0 -3
  247. package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.cjs +0 -923
  248. package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs +0 -922
  249. package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs.map +0 -1
  250. package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.cjs +0 -391
  251. package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs +0 -386
  252. package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs.map +0 -1
  253. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.cjs +0 -82
  254. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs +0 -82
  255. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs.map +0 -1
  256. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.cjs +0 -1358
  257. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs +0 -1357
  258. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs.map +0 -1
  259. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.cjs +0 -561
  260. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs +0 -559
  261. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs.map +0 -1
  262. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.cjs +0 -37
  263. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs +0 -38
  264. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs.map +0 -1
  265. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.cjs +0 -197
  266. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs +0 -181
  267. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs.map +0 -1
  268. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.cjs +0 -29
  269. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs +0 -27
  270. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs.map +0 -1
  271. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.cjs +0 -77
  272. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs +0 -77
  273. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs.map +0 -1
  274. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.cjs +0 -374
  275. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs +0 -374
  276. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs.map +0 -1
  277. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.cjs +0 -38
  278. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs +0 -37
  279. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs.map +0 -1
  280. package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.cjs +0 -2978
  281. package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs +0 -2973
  282. package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs.map +0 -1
  283. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs +0 -939
  284. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +0 -940
  285. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs.map +0 -1
  286. package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.cjs +0 -87
  287. package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs +0 -87
  288. package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs.map +0 -1
  289. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.cjs +0 -6
  290. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs +0 -6
  291. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs.map +0 -1
  292. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.cjs +0 -54
  293. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs +0 -52
  294. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs.map +0 -1
  295. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs +0 -2696
  296. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs +0 -2697
  297. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs.map +0 -1
  298. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.cjs +0 -47
  299. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs +0 -45
  300. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs.map +0 -1
  301. package/dist/typescript/components/builtin-file.test.cjs +0 -16
  302. package/dist/typescript/components/builtin-file.test.d.cts +0 -1
  303. package/dist/typescript/components/builtin-file.test.d.mts +0 -1
  304. package/dist/typescript/components/builtin-file.test.mjs +0 -18
  305. package/dist/typescript/components/builtin-file.test.mjs.map +0 -1
  306. package/dist/typescript/components/class-declaration.test.cjs +0 -16
  307. package/dist/typescript/components/class-declaration.test.d.cts +0 -1
  308. package/dist/typescript/components/class-declaration.test.d.mts +0 -1
  309. package/dist/typescript/components/class-declaration.test.mjs +0 -18
  310. package/dist/typescript/components/class-declaration.test.mjs.map +0 -1
  311. package/dist/typescript/components/dynamic-import-statement.test.cjs +0 -16
  312. package/dist/typescript/components/dynamic-import-statement.test.d.cts +0 -1
  313. package/dist/typescript/components/dynamic-import-statement.test.d.mts +0 -1
  314. package/dist/typescript/components/dynamic-import-statement.test.mjs +0 -18
  315. package/dist/typescript/components/dynamic-import-statement.test.mjs.map +0 -1
  316. package/dist/typescript/components/entry-file.test.cjs +0 -16
  317. package/dist/typescript/components/entry-file.test.d.cts +0 -1
  318. package/dist/typescript/components/entry-file.test.d.mts +0 -1
  319. package/dist/typescript/components/entry-file.test.mjs +0 -18
  320. package/dist/typescript/components/entry-file.test.mjs.map +0 -1
  321. package/dist/typescript/components/interface-declaration.test.cjs +0 -16
  322. package/dist/typescript/components/interface-declaration.test.d.cts +0 -1
  323. package/dist/typescript/components/interface-declaration.test.d.mts +0 -1
  324. package/dist/typescript/components/interface-declaration.test.mjs +0 -18
  325. package/dist/typescript/components/interface-declaration.test.mjs.map +0 -1
  326. package/dist/typescript/components/object-declaration.test.cjs +0 -16
  327. package/dist/typescript/components/object-declaration.test.d.cts +0 -1
  328. package/dist/typescript/components/object-declaration.test.d.mts +0 -1
  329. package/dist/typescript/components/object-declaration.test.mjs +0 -18
  330. package/dist/typescript/components/object-declaration.test.mjs.map +0 -1
  331. package/dist/typescript/components/property-name.test.cjs +0 -16
  332. package/dist/typescript/components/property-name.test.d.cts +0 -1
  333. package/dist/typescript/components/property-name.test.d.mts +0 -1
  334. package/dist/typescript/components/property-name.test.mjs +0 -18
  335. package/dist/typescript/components/property-name.test.mjs.map +0 -1
  336. package/dist/typescript/components/record-expression.test.cjs +0 -16
  337. package/dist/typescript/components/record-expression.test.d.cts +0 -1
  338. package/dist/typescript/components/record-expression.test.d.mts +0 -1
  339. package/dist/typescript/components/record-expression.test.mjs +0 -18
  340. package/dist/typescript/components/record-expression.test.mjs.map +0 -1
  341. package/dist/typescript/components/tsdoc-schema.test.cjs +0 -16
  342. package/dist/typescript/components/tsdoc-schema.test.d.cts +0 -1
  343. package/dist/typescript/components/tsdoc-schema.test.d.mts +0 -1
  344. package/dist/typescript/components/tsdoc-schema.test.mjs +0 -18
  345. package/dist/typescript/components/tsdoc-schema.test.mjs.map +0 -1
  346. package/dist/typescript/components/tsdoc.test.cjs +0 -16
  347. package/dist/typescript/components/tsdoc.test.d.cts +0 -1
  348. package/dist/typescript/components/tsdoc.test.d.mts +0 -1
  349. package/dist/typescript/components/tsdoc.test.mjs +0 -18
  350. package/dist/typescript/components/tsdoc.test.mjs.map +0 -1
  351. package/dist/typescript/components/type-declaration.test.cjs +0 -16
  352. package/dist/typescript/components/type-declaration.test.d.cts +0 -1
  353. package/dist/typescript/components/type-declaration.test.d.mts +0 -1
  354. package/dist/typescript/components/type-declaration.test.mjs +0 -18
  355. package/dist/typescript/components/type-declaration.test.mjs.map +0 -1
  356. package/dist/typescript/components/type-parameters.test.cjs +0 -16
  357. package/dist/typescript/components/type-parameters.test.d.cts +0 -1
  358. package/dist/typescript/components/type-parameters.test.d.mts +0 -1
  359. package/dist/typescript/components/type-parameters.test.mjs +0 -18
  360. package/dist/typescript/components/type-parameters.test.mjs.map +0 -1
  361. package/dist/typescript/components/typescript-file.test.cjs +0 -16
  362. package/dist/typescript/components/typescript-file.test.d.cts +0 -1
  363. package/dist/typescript/components/typescript-file.test.d.mts +0 -1
  364. package/dist/typescript/components/typescript-file.test.mjs +0 -18
  365. package/dist/typescript/components/typescript-file.test.mjs.map +0 -1
  366. package/dist/typescript/contexts/lexical-scope.test.cjs +0 -16
  367. package/dist/typescript/contexts/lexical-scope.test.d.cts +0 -1
  368. package/dist/typescript/contexts/lexical-scope.test.d.mts +0 -1
  369. package/dist/typescript/contexts/lexical-scope.test.mjs +0 -18
  370. package/dist/typescript/contexts/lexical-scope.test.mjs.map +0 -1
  371. package/dist/typescript/contexts/member-scope.test.cjs +0 -16
  372. package/dist/typescript/contexts/member-scope.test.d.cts +0 -1
  373. package/dist/typescript/contexts/member-scope.test.d.mts +0 -1
  374. package/dist/typescript/contexts/member-scope.test.mjs +0 -18
  375. package/dist/typescript/contexts/member-scope.test.mjs.map +0 -1
  376. package/dist/typescript/helpers/get-call-signature-props.test.cjs +0 -16
  377. package/dist/typescript/helpers/get-call-signature-props.test.d.cts +0 -1
  378. package/dist/typescript/helpers/get-call-signature-props.test.d.mts +0 -1
  379. package/dist/typescript/helpers/get-call-signature-props.test.mjs +0 -18
  380. package/dist/typescript/helpers/get-call-signature-props.test.mjs.map +0 -1
  381. package/dist/typescript/helpers/utilities.test.cjs +0 -16
  382. package/dist/typescript/helpers/utilities.test.d.cts +0 -1
  383. package/dist/typescript/helpers/utilities.test.d.mts +0 -1
  384. package/dist/typescript/helpers/utilities.test.mjs +0 -18
  385. package/dist/typescript/helpers/utilities.test.mjs.map +0 -1
  386. package/dist/yaml/components/yaml-file.test.cjs +0 -16
  387. package/dist/yaml/components/yaml-file.test.d.cts +0 -1
  388. package/dist/yaml/components/yaml-file.test.d.mts +0 -1
  389. package/dist/yaml/components/yaml-file.test.mjs +0 -18
  390. package/dist/yaml/components/yaml-file.test.mjs.map +0 -1
@@ -1,561 +0,0 @@
1
- const require_index = require('../../../../../@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.cjs');
2
-
3
- //#region ../../../node_modules/.pnpm/@vitest+utils@4.1.7/node_modules/@vitest/utils/dist/display.js
4
- const ansiColors = {
5
- bold: ["1", "22"],
6
- dim: ["2", "22"],
7
- italic: ["3", "23"],
8
- underline: ["4", "24"],
9
- inverse: ["7", "27"],
10
- hidden: ["8", "28"],
11
- strike: ["9", "29"],
12
- black: ["30", "39"],
13
- red: ["31", "39"],
14
- green: ["32", "39"],
15
- yellow: ["33", "39"],
16
- blue: ["34", "39"],
17
- magenta: ["35", "39"],
18
- cyan: ["36", "39"],
19
- white: ["37", "39"],
20
- brightblack: ["30;1", "39"],
21
- brightred: ["31;1", "39"],
22
- brightgreen: ["32;1", "39"],
23
- brightyellow: ["33;1", "39"],
24
- brightblue: ["34;1", "39"],
25
- brightmagenta: ["35;1", "39"],
26
- brightcyan: ["36;1", "39"],
27
- brightwhite: ["37;1", "39"],
28
- grey: ["90", "39"]
29
- };
30
- const styles = {
31
- special: "cyan",
32
- number: "yellow",
33
- bigint: "yellow",
34
- boolean: "yellow",
35
- undefined: "grey",
36
- null: "bold",
37
- string: "green",
38
- symbol: "green",
39
- date: "magenta",
40
- regexp: "red"
41
- };
42
- const truncator = "…";
43
- function colorise(value, styleType) {
44
- const color = ansiColors[styles[styleType]] || ansiColors[styleType] || "";
45
- if (!color) return String(value);
46
- return `\u001b[${color[0]}m${String(value)}\u001b[${color[1]}m`;
47
- }
48
- function normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], truncate = Infinity, stylize = String } = {}, inspect) {
49
- const options = {
50
- showHidden: Boolean(showHidden),
51
- depth: Number(depth),
52
- colors: Boolean(colors),
53
- customInspect: Boolean(customInspect),
54
- showProxy: Boolean(showProxy),
55
- maxArrayLength: Number(maxArrayLength),
56
- breakLength: Number(breakLength),
57
- truncate: Number(truncate),
58
- seen,
59
- inspect,
60
- stylize
61
- };
62
- if (options.colors) options.stylize = colorise;
63
- return options;
64
- }
65
- function isHighSurrogate(char) {
66
- return char >= "\ud800" && char <= "\udbff";
67
- }
68
- function truncate(string, length, tail = truncator) {
69
- string = String(string);
70
- const tailLength = tail.length;
71
- const stringLength = string.length;
72
- if (tailLength > length && stringLength > tailLength) return tail;
73
- if (stringLength > length && stringLength > tailLength) {
74
- let end = length - tailLength;
75
- if (end > 0 && isHighSurrogate(string[end - 1])) end = end - 1;
76
- return `${string.slice(0, end)}${tail}`;
77
- }
78
- return string;
79
- }
80
- function inspectList(list, options, inspectItem, separator = ", ") {
81
- inspectItem = inspectItem || options.inspect;
82
- const size = list.length;
83
- if (size === 0) return "";
84
- const originalLength = options.truncate;
85
- let output = "";
86
- let peek = "";
87
- let truncated = "";
88
- for (let i = 0; i < size; i += 1) {
89
- const last = i + 1 === list.length;
90
- const secondToLast = i + 2 === list.length;
91
- truncated = `${truncator}(${list.length - i})`;
92
- const value = list[i];
93
- options.truncate = originalLength - output.length - (last ? 0 : separator.length);
94
- const string = peek || inspectItem(value, options) + (last ? "" : separator);
95
- const nextLength = output.length + string.length;
96
- const truncatedLength = nextLength + truncated.length;
97
- if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) break;
98
- if (!last && !secondToLast && truncatedLength > originalLength) break;
99
- peek = last ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator);
100
- if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) break;
101
- output += string;
102
- if (!last && !secondToLast && nextLength + peek.length >= originalLength) {
103
- truncated = `${truncator}(${list.length - i - 1})`;
104
- break;
105
- }
106
- truncated = "";
107
- }
108
- return `${output}${truncated}`;
109
- }
110
- function quoteComplexKey(key) {
111
- if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) return key;
112
- return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'");
113
- }
114
- function inspectProperty([key, value], options) {
115
- options.truncate -= 2;
116
- if (typeof key === "string") key = quoteComplexKey(key);
117
- else if (typeof key !== "number") key = `[${options.inspect(key, options)}]`;
118
- options.truncate -= key.length;
119
- value = options.inspect(value, options);
120
- return `${key}: ${value}`;
121
- }
122
- function inspectArray(array, options) {
123
- const nonIndexProperties = Object.keys(array).slice(array.length);
124
- if (!array.length && !nonIndexProperties.length) return "[]";
125
- options.truncate -= 4;
126
- const listContents = inspectList(array, options);
127
- options.truncate -= listContents.length;
128
- let propertyContents = "";
129
- if (nonIndexProperties.length) propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty);
130
- return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
131
- }
132
- const getArrayName = (array) => {
133
- if (typeof Buffer === "function" && array instanceof Buffer) return "Buffer";
134
- if (array[Symbol.toStringTag]) return array[Symbol.toStringTag];
135
- return array.constructor.name;
136
- };
137
- function inspectTypedArray(array, options) {
138
- const name = getArrayName(array);
139
- options.truncate -= name.length + 4;
140
- const nonIndexProperties = Object.keys(array).slice(array.length);
141
- if (!array.length && !nonIndexProperties.length) return `${name}[]`;
142
- let output = "";
143
- for (let i = 0; i < array.length; i++) {
144
- const string = `${options.stylize(truncate(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`;
145
- options.truncate -= string.length;
146
- if (array[i] !== array.length && options.truncate <= 3) {
147
- output += `${truncator}(${array.length - array[i] + 1})`;
148
- break;
149
- }
150
- output += string;
151
- }
152
- let propertyContents = "";
153
- if (nonIndexProperties.length) propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty);
154
- return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
155
- }
156
- function inspectDate(dateObject, options) {
157
- const stringRepresentation = dateObject.toJSON();
158
- if (stringRepresentation === null) return "Invalid Date";
159
- const split = stringRepresentation.split("T");
160
- const date = split[0];
161
- return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
162
- }
163
- function inspectFunction(func, options) {
164
- const functionType = func[Symbol.toStringTag] || "Function";
165
- const name = func.name;
166
- if (!name) return options.stylize(`[${functionType}]`, "special");
167
- return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
168
- }
169
- function inspectMapEntry([key, value], options) {
170
- options.truncate -= 4;
171
- key = options.inspect(key, options);
172
- options.truncate -= key.length;
173
- value = options.inspect(value, options);
174
- return `${key} => ${value}`;
175
- }
176
- function mapToEntries(map) {
177
- const entries = [];
178
- map.forEach((value, key) => {
179
- entries.push([key, value]);
180
- });
181
- return entries;
182
- }
183
- function inspectMap(map, options) {
184
- if (map.size === 0) return "Map{}";
185
- options.truncate -= 7;
186
- return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;
187
- }
188
- const isNaN = Number.isNaN || ((i) => i !== i);
189
- function inspectNumber(number, options) {
190
- if (isNaN(number)) return options.stylize("NaN", "number");
191
- if (number === Infinity) return options.stylize("Infinity", "number");
192
- if (number === -Infinity) return options.stylize("-Infinity", "number");
193
- if (number === 0) return options.stylize(1 / number === Infinity ? "+0" : "-0", "number");
194
- return options.stylize(truncate(String(number), options.truncate), "number");
195
- }
196
- function inspectBigInt(number, options) {
197
- let nums = truncate(number.toString(), options.truncate - 1);
198
- if (nums !== truncator) nums += "n";
199
- return options.stylize(nums, "bigint");
200
- }
201
- function inspectRegExp(value, options) {
202
- const flags = value.toString().split("/")[2];
203
- const sourceLength = options.truncate - (2 + flags.length);
204
- const source = value.source;
205
- return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
206
- }
207
- function arrayFromSet(set) {
208
- const values = [];
209
- set.forEach((value) => {
210
- values.push(value);
211
- });
212
- return values;
213
- }
214
- function inspectSet(set, options) {
215
- if (set.size === 0) return "Set{}";
216
- options.truncate -= 7;
217
- return `Set{ ${inspectList(arrayFromSet(set), options)} }`;
218
- }
219
- const stringEscapeChars = /* @__PURE__ */ new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
220
- const escapeCharacters = {
221
- "\b": "\\b",
222
- " ": "\\t",
223
- "\n": "\\n",
224
- "\f": "\\f",
225
- "\r": "\\r",
226
- "'": "\\'",
227
- "\\": "\\\\"
228
- };
229
- const hex = 16;
230
- function escape(char) {
231
- return escapeCharacters[char] || `\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-4)}`;
232
- }
233
- function inspectString(string, options) {
234
- if (stringEscapeChars.test(string)) string = string.replace(stringEscapeChars, escape);
235
- return options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string");
236
- }
237
- function inspectSymbol(value) {
238
- if ("description" in Symbol.prototype) return value.description ? `Symbol(${value.description})` : "Symbol()";
239
- return value.toString();
240
- }
241
- const getPromiseValue = () => "Promise{…}";
242
- function inspectObject$1(object, options) {
243
- const properties = Object.getOwnPropertyNames(object);
244
- const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
245
- if (properties.length === 0 && symbols.length === 0) return "{}";
246
- options.truncate -= 4;
247
- options.seen = options.seen || [];
248
- if (options.seen.includes(object)) return "[Circular]";
249
- options.seen.push(object);
250
- const propertyContents = inspectList(properties.map((key) => [key, object[key]]), options, inspectProperty);
251
- const symbolContents = inspectList(symbols.map((key) => [key, object[key]]), options, inspectProperty);
252
- options.seen.pop();
253
- let sep = "";
254
- if (propertyContents && symbolContents) sep = ", ";
255
- return `{ ${propertyContents}${sep}${symbolContents} }`;
256
- }
257
- const toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
258
- function inspectClass(value, options) {
259
- let name = "";
260
- if (toStringTag && toStringTag in value) name = value[toStringTag];
261
- name = name || value.constructor.name;
262
- if (!name || name === "_class") name = "<Anonymous Class>";
263
- options.truncate -= name.length;
264
- return `${name}${inspectObject$1(value, options)}`;
265
- }
266
- function inspectArguments(args, options) {
267
- if (args.length === 0) return "Arguments[]";
268
- options.truncate -= 13;
269
- return `Arguments[ ${inspectList(args, options)} ]`;
270
- }
271
- const errorKeys = [
272
- "stack",
273
- "line",
274
- "column",
275
- "name",
276
- "message",
277
- "fileName",
278
- "lineNumber",
279
- "columnNumber",
280
- "number",
281
- "description",
282
- "cause"
283
- ];
284
- function inspectObject(error, options) {
285
- const properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1);
286
- const name = error.name;
287
- options.truncate -= name.length;
288
- let message = "";
289
- if (typeof error.message === "string") message = truncate(error.message, options.truncate);
290
- else properties.unshift("message");
291
- message = message ? `: ${message}` : "";
292
- options.truncate -= message.length + 5;
293
- options.seen = options.seen || [];
294
- if (options.seen.includes(error)) return "[Circular]";
295
- options.seen.push(error);
296
- const propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty);
297
- return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
298
- }
299
- function inspectAttribute([key, value], options) {
300
- options.truncate -= 3;
301
- if (!value) return `${options.stylize(String(key), "yellow")}`;
302
- return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
303
- }
304
- function inspectNodeCollection(collection, options) {
305
- return inspectList(collection, options, inspectNode, "\n");
306
- }
307
- function inspectNode(node, options) {
308
- switch (node.nodeType) {
309
- case 1: return inspectHTML(node, options);
310
- case 3: return options.inspect(node.data, options);
311
- default: return options.inspect(node, options);
312
- }
313
- }
314
- function inspectHTML(element, options) {
315
- const properties = element.getAttributeNames();
316
- const name = element.tagName.toLowerCase();
317
- const head = options.stylize(`<${name}`, "special");
318
- const headClose = options.stylize(`>`, "special");
319
- const tail = options.stylize(`</${name}>`, "special");
320
- options.truncate -= name.length * 2 + 5;
321
- let propertyContents = "";
322
- if (properties.length > 0) {
323
- propertyContents += " ";
324
- propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, " ");
325
- }
326
- options.truncate -= propertyContents.length;
327
- const truncate = options.truncate;
328
- let children = inspectNodeCollection(element.children, options);
329
- if (children && children.length > truncate) children = `${truncator}(${element.children.length})`;
330
- return `${head}${propertyContents}${headClose}${children}${tail}`;
331
- }
332
- const chaiInspect = typeof Symbol === "function" && typeof Symbol.for === "function" ? Symbol.for("chai/inspect") : "@@chai/inspect";
333
- const nodeInspect = Symbol.for("nodejs.util.inspect.custom");
334
- const constructorMap = /* @__PURE__ */ new WeakMap();
335
- const stringTagMap = {};
336
- const baseTypesMap = {
337
- undefined: (value, options) => options.stylize("undefined", "undefined"),
338
- null: (value, options) => options.stylize("null", "null"),
339
- boolean: (value, options) => options.stylize(String(value), "boolean"),
340
- Boolean: (value, options) => options.stylize(String(value), "boolean"),
341
- number: inspectNumber,
342
- Number: inspectNumber,
343
- bigint: inspectBigInt,
344
- BigInt: inspectBigInt,
345
- string: inspectString,
346
- String: inspectString,
347
- function: inspectFunction,
348
- Function: inspectFunction,
349
- symbol: inspectSymbol,
350
- Symbol: inspectSymbol,
351
- Array: inspectArray,
352
- Date: inspectDate,
353
- Map: inspectMap,
354
- Set: inspectSet,
355
- RegExp: inspectRegExp,
356
- Promise: getPromiseValue,
357
- WeakSet: (value, options) => options.stylize("WeakSet{…}", "special"),
358
- WeakMap: (value, options) => options.stylize("WeakMap{…}", "special"),
359
- Arguments: inspectArguments,
360
- Int8Array: inspectTypedArray,
361
- Uint8Array: inspectTypedArray,
362
- Uint8ClampedArray: inspectTypedArray,
363
- Int16Array: inspectTypedArray,
364
- Uint16Array: inspectTypedArray,
365
- Int32Array: inspectTypedArray,
366
- Uint32Array: inspectTypedArray,
367
- Float32Array: inspectTypedArray,
368
- Float64Array: inspectTypedArray,
369
- Generator: () => "",
370
- DataView: () => "",
371
- ArrayBuffer: () => "",
372
- Error: inspectObject,
373
- HTMLCollection: inspectNodeCollection,
374
- NodeList: inspectNodeCollection
375
- };
376
- const inspectCustom = (value, options, type, inspectFn) => {
377
- if (chaiInspect in value && typeof value[chaiInspect] === "function") return value[chaiInspect](options);
378
- if (nodeInspect in value && typeof value[nodeInspect] === "function") return value[nodeInspect](options.depth, options, inspectFn);
379
- if ("inspect" in value && typeof value.inspect === "function") return value.inspect(options.depth, options);
380
- if ("constructor" in value && constructorMap.has(value.constructor)) return constructorMap.get(value.constructor)(value, options);
381
- if (stringTagMap[type]) return stringTagMap[type](value, options);
382
- return "";
383
- };
384
- const toString = Object.prototype.toString;
385
- function inspect$1(value, opts = {}) {
386
- const options = normaliseOptions(opts, inspect$1);
387
- const { customInspect } = options;
388
- let type = value === null ? "null" : typeof value;
389
- if (type === "object") type = toString.call(value).slice(8, -1);
390
- if (type in baseTypesMap) return baseTypesMap[type](value, options);
391
- if (customInspect && value) {
392
- const output = inspectCustom(value, options, type, inspect$1);
393
- if (output) {
394
- if (typeof output === "string") return output;
395
- return inspect$1(output, options);
396
- }
397
- }
398
- const proto = value ? Object.getPrototypeOf(value) : false;
399
- if (proto === Object.prototype || proto === null) return inspectObject$1(value, options);
400
- if (value && typeof HTMLElement === "function" && value instanceof HTMLElement) return inspectHTML(value, options);
401
- if ("constructor" in value) {
402
- if (value.constructor !== Object) return inspectClass(value, options);
403
- return inspectObject$1(value, options);
404
- }
405
- if (value === Object(value)) return inspectObject$1(value, options);
406
- return options.stylize(String(value), type);
407
- }
408
- const { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = require_index.plugins;
409
- const PLUGINS = [
410
- ReactTestComponent,
411
- ReactElement,
412
- DOMElement,
413
- DOMCollection,
414
- Immutable,
415
- AsymmetricMatcher
416
- ];
417
- function stringify(object, maxDepth = 10, { maxLength, filterNode, ...options } = {}) {
418
- const MAX_LENGTH = maxLength ?? 1e4;
419
- let result;
420
- const filterFn = typeof filterNode === "string" ? createNodeFilterFromSelector(filterNode) : filterNode;
421
- const plugins = filterFn ? [
422
- ReactTestComponent,
423
- ReactElement,
424
- require_index.createDOMElementFilter(filterFn),
425
- DOMCollection,
426
- Immutable,
427
- AsymmetricMatcher
428
- ] : PLUGINS;
429
- try {
430
- result = require_index.format(object, {
431
- maxDepth,
432
- escapeString: false,
433
- plugins,
434
- ...options
435
- });
436
- } catch {
437
- result = require_index.format(object, {
438
- callToJSON: false,
439
- maxDepth,
440
- escapeString: false,
441
- plugins,
442
- ...options
443
- });
444
- }
445
- return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(Math.min(maxDepth, Number.MAX_SAFE_INTEGER) / 2), {
446
- maxLength,
447
- filterNode,
448
- ...options
449
- }) : result;
450
- }
451
- function createNodeFilterFromSelector(selector) {
452
- const ELEMENT_NODE = 1;
453
- const COMMENT_NODE = 8;
454
- return (node) => {
455
- if (node.nodeType === COMMENT_NODE) return false;
456
- if (node.nodeType === ELEMENT_NODE && node.matches) try {
457
- return !node.matches(selector);
458
- } catch {
459
- return true;
460
- }
461
- return true;
462
- };
463
- }
464
- const formatRegExp = /%[sdjifoOc%]/g;
465
- function baseFormat(args, options = {}) {
466
- const formatArg = (item, inspecOptions) => {
467
- if (options.prettifyObject) return stringify(item, void 0, {
468
- printBasicPrototype: false,
469
- escapeString: false
470
- });
471
- return inspect(item, inspecOptions);
472
- };
473
- if (typeof args[0] !== "string") {
474
- const objects = [];
475
- for (let i = 0; i < args.length; i++) objects.push(formatArg(args[i], {
476
- depth: 0,
477
- colors: false
478
- }));
479
- return objects.join(" ");
480
- }
481
- const len = args.length;
482
- let i = 1;
483
- const template = args[0];
484
- let str = String(template).replace(formatRegExp, (x) => {
485
- if (x === "%%") return "%";
486
- if (i >= len) return x;
487
- switch (x) {
488
- case "%s": {
489
- const value = args[i++];
490
- if (typeof value === "bigint") return `${value.toString()}n`;
491
- if (typeof value === "number" && value === 0 && 1 / value < 0) return "-0";
492
- if (typeof value === "object" && value !== null) {
493
- if (typeof value.toString === "function" && value.toString !== Object.prototype.toString) return value.toString();
494
- return formatArg(value, {
495
- depth: 0,
496
- colors: false
497
- });
498
- }
499
- return String(value);
500
- }
501
- case "%d": {
502
- const value = args[i++];
503
- if (typeof value === "bigint") return `${value.toString()}n`;
504
- if (typeof value === "symbol") return "NaN";
505
- return Number(value).toString();
506
- }
507
- case "%i": {
508
- const value = args[i++];
509
- if (typeof value === "bigint") return `${value.toString()}n`;
510
- return Number.parseInt(String(value)).toString();
511
- }
512
- case "%f": return Number.parseFloat(String(args[i++])).toString();
513
- case "%o": return formatArg(args[i++], {
514
- showHidden: true,
515
- showProxy: true
516
- });
517
- case "%O": return formatArg(args[i++]);
518
- case "%c":
519
- i++;
520
- return "";
521
- case "%j": try {
522
- return JSON.stringify(args[i++]);
523
- } catch (err) {
524
- const m = err.message;
525
- if (m.includes("circular structure") || m.includes("cyclic structures") || m.includes("cyclic object")) return "[Circular]";
526
- throw err;
527
- }
528
- default: return x;
529
- }
530
- });
531
- for (let x = args[i]; i < len; x = args[++i]) if (x === null || typeof x !== "object") str += ` ${typeof x === "symbol" ? x.toString() : x}`;
532
- else str += ` ${formatArg(x)}`;
533
- return str;
534
- }
535
- function format(...args) {
536
- return baseFormat(args);
537
- }
538
- function inspect(obj, options = {}) {
539
- if (options.truncate === 0) options.truncate = Number.POSITIVE_INFINITY;
540
- return inspect$1(obj, options);
541
- }
542
- function objDisplay(obj, options = {}) {
543
- if (typeof options.truncate === "undefined") options.truncate = 40;
544
- const str = inspect(obj, options);
545
- const type = Object.prototype.toString.call(obj);
546
- if (options.truncate && str.length >= options.truncate) if (type === "[object Function]") {
547
- const fn = obj;
548
- return !fn.name ? "[Function]" : `[Function: ${fn.name}]`;
549
- } else if (type === "[object Array]") return `[ Array(${obj.length}) ]`;
550
- else if (type === "[object Object]") {
551
- const keys = Object.keys(obj);
552
- return `{ Object (${keys.length > 2 ? `${keys.splice(0, 2).join(", ")}, ...` : keys.join(", ")}) }`;
553
- } else return str;
554
- return str;
555
- }
556
-
557
- //#endregion
558
- exports.format = format;
559
- exports.formatRegExp = formatRegExp;
560
- exports.objDisplay = objDisplay;
561
- exports.stringify = stringify;