@goast/core 0.4.1 → 0.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (446) hide show
  1. package/LICENSE +21 -21
  2. package/esm/mod.d.ts +1 -0
  3. package/esm/mod.d.ts.map +1 -1
  4. package/esm/mod.js +1 -0
  5. package/esm/src/codegen/config.d.ts +11 -0
  6. package/esm/src/codegen/config.d.ts.map +1 -1
  7. package/esm/src/codegen/config.js +1 -0
  8. package/esm/src/transform/helpers.d.ts.map +1 -1
  9. package/esm/src/transform/helpers.js +5 -1
  10. package/esm/src/utils/file-system.utils.d.ts +2 -0
  11. package/esm/src/utils/file-system.utils.d.ts.map +1 -1
  12. package/esm/src/utils/file-system.utils.js +11 -1
  13. package/esm/src/utils/schema.utils.d.ts +1 -0
  14. package/esm/src/utils/schema.utils.d.ts.map +1 -1
  15. package/esm/src/utils/schema.utils.js +5 -0
  16. package/esm/src/utils/source-builder.d.ts +2 -0
  17. package/esm/src/utils/source-builder.d.ts.map +1 -1
  18. package/esm/src/utils/source-builder.js +7 -1
  19. package/package.json +2 -5
  20. package/script/mod.d.ts +1 -0
  21. package/script/mod.d.ts.map +1 -1
  22. package/script/mod.js +1 -0
  23. package/script/src/codegen/config.d.ts +11 -0
  24. package/script/src/codegen/config.d.ts.map +1 -1
  25. package/script/src/codegen/config.js +1 -0
  26. package/script/src/transform/helpers.d.ts.map +1 -1
  27. package/script/src/transform/helpers.js +5 -1
  28. package/script/src/utils/file-system.utils.d.ts +2 -0
  29. package/script/src/utils/file-system.utils.d.ts.map +1 -1
  30. package/script/src/utils/file-system.utils.js +11 -0
  31. package/script/src/utils/schema.utils.d.ts +1 -0
  32. package/script/src/utils/schema.utils.d.ts.map +1 -1
  33. package/script/src/utils/schema.utils.js +6 -0
  34. package/script/src/utils/source-builder.d.ts +2 -0
  35. package/script/src/utils/source-builder.d.ts.map +1 -1
  36. package/script/src/utils/source-builder.js +8 -1
  37. package/esm/_dnt.test_polyfills.d.ts +0 -29
  38. package/esm/_dnt.test_polyfills.d.ts.map +0 -1
  39. package/esm/_dnt.test_polyfills.js +0 -31
  40. package/esm/_dnt.test_shims.d.ts +0 -14
  41. package/esm/_dnt.test_shims.d.ts.map +0 -1
  42. package/esm/_dnt.test_shims.js +0 -69
  43. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
  44. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
  45. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -30
  46. package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
  47. package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
  48. package/esm/deps/jsr.io/@std/assert/1.0.11/false.js +0 -22
  49. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
  50. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
  51. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -53
  52. package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
  53. package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
  54. package/esm/deps/jsr.io/@std/assert/1.0.11/match.js +0 -26
  55. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
  56. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
  57. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -29
  58. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
  59. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
  60. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -26
  61. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
  62. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
  63. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -32
  64. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
  65. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
  66. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -57
  67. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +0 -20
  68. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +0 -1
  69. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.js +0 -29
  70. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +0 -14
  71. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +0 -1
  72. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +0 -43
  73. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +0 -17
  74. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +0 -1
  75. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.js +0 -26
  76. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +0 -4
  77. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +0 -1
  78. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.js +0 -13
  79. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +0 -46
  80. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +0 -1
  81. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.js +0 -161
  82. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +0 -6
  83. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +0 -1
  84. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.js +0 -29
  85. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +0 -4
  86. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +0 -1
  87. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.js +0 -11
  88. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +0 -9
  89. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +0 -1
  90. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.js +0 -191
  91. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +0 -4
  92. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +0 -1
  93. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.js +0 -11
  94. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +0 -3
  95. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +0 -1
  96. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.js +0 -12
  97. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +0 -34
  98. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +0 -1
  99. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.js +0 -714
  100. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts +0 -11
  101. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +0 -1
  102. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.js +0 -10
  103. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +0 -4
  104. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +0 -1
  105. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.js +0 -10
  106. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts +0 -843
  107. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +0 -1
  108. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.js +0 -3
  109. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +0 -9
  110. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +0 -1
  111. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.js +0 -218
  112. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +0 -60
  113. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +0 -1
  114. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.js +0 -523
  115. package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +0 -29
  116. package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +0 -1
  117. package/esm/deps/jsr.io/@std/expect/1.0.12/fn.js +0 -85
  118. package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +0 -86
  119. package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +0 -1
  120. package/esm/deps/jsr.io/@std/expect/1.0.12/mod.js +0 -88
  121. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
  122. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
  123. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -199
  124. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
  125. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
  126. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -111
  127. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
  128. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
  129. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -277
  130. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
  131. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
  132. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -180
  133. package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
  134. package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
  135. package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +0 -37
  136. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
  137. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
  138. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -207
  139. package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
  140. package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
  141. package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +0 -2
  142. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
  143. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
  144. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -380
  145. package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
  146. package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
  147. package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -654
  148. package/esm/src/collect/helpers.test.d.ts +0 -2
  149. package/esm/src/collect/helpers.test.d.ts.map +0 -1
  150. package/esm/src/collect/helpers.test.js +0 -77
  151. package/esm/src/transform/helpers.test.d.ts +0 -2
  152. package/esm/src/transform/helpers.test.d.ts.map +0 -1
  153. package/esm/src/transform/helpers.test.js +0 -265
  154. package/esm/src/utils/action-provider.test.d.ts +0 -2
  155. package/esm/src/utils/action-provider.test.d.ts.map +0 -1
  156. package/esm/src/utils/action-provider.test.js +0 -28
  157. package/esm/src/utils/common.utils.test.d.ts +0 -2
  158. package/esm/src/utils/common.utils.test.d.ts.map +0 -1
  159. package/esm/src/utils/common.utils.test.js +0 -18
  160. package/esm/src/utils/condition.test.d.ts +0 -2
  161. package/esm/src/utils/condition.test.d.ts.map +0 -1
  162. package/esm/src/utils/condition.test.js +0 -31
  163. package/esm/src/utils/endpoint.utils.test.d.ts +0 -2
  164. package/esm/src/utils/endpoint.utils.test.d.ts.map +0 -1
  165. package/esm/src/utils/endpoint.utils.test.js +0 -31
  166. package/esm/src/utils/factory.test.d.ts +0 -2
  167. package/esm/src/utils/factory.test.d.ts.map +0 -1
  168. package/esm/src/utils/factory.test.js +0 -34
  169. package/esm/src/utils/generator.utils.test.d.ts +0 -2
  170. package/esm/src/utils/generator.utils.test.d.ts.map +0 -1
  171. package/esm/src/utils/generator.utils.test.js +0 -13
  172. package/esm/src/utils/object.utils.test.d.ts +0 -2
  173. package/esm/src/utils/object.utils.test.d.ts.map +0 -1
  174. package/esm/src/utils/object.utils.test.js +0 -29
  175. package/esm/src/utils/schema.utils.test.d.ts +0 -2
  176. package/esm/src/utils/schema.utils.test.d.ts.map +0 -1
  177. package/esm/src/utils/schema.utils.test.js +0 -70
  178. package/esm/src/utils/source-builder.test.d.ts +0 -2
  179. package/esm/src/utils/source-builder.test.d.ts.map +0 -1
  180. package/esm/src/utils/source-builder.test.js +0 -505
  181. package/esm/src/utils/string-builder/string-builder.test.d.ts +0 -2
  182. package/esm/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
  183. package/esm/src/utils/string-builder/string-builder.test.js +0 -163
  184. package/esm/src/utils/string.utils.test.d.ts +0 -2
  185. package/esm/src/utils/string.utils.test.d.ts.map +0 -1
  186. package/esm/src/utils/string.utils.test.js +0 -528
  187. package/esm/tests/openapi.test.d.ts +0 -2
  188. package/esm/tests/openapi.test.d.ts.map +0 -1
  189. package/esm/tests/openapi.test.js +0 -33
  190. package/esm/tests/schema-factory.d.ts +0 -42
  191. package/esm/tests/schema-factory.d.ts.map +0 -1
  192. package/esm/tests/schema-factory.js +0 -138
  193. package/script/_dnt.test_polyfills.d.ts +0 -29
  194. package/script/_dnt.test_polyfills.d.ts.map +0 -1
  195. package/script/_dnt.test_polyfills.js +0 -32
  196. package/script/_dnt.test_shims.d.ts +0 -14
  197. package/script/_dnt.test_shims.d.ts.map +0 -1
  198. package/script/_dnt.test_shims.js +0 -79
  199. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
  200. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
  201. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -34
  202. package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
  203. package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
  204. package/script/deps/jsr.io/@std/assert/1.0.11/false.js +0 -25
  205. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
  206. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
  207. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -56
  208. package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
  209. package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
  210. package/script/deps/jsr.io/@std/assert/1.0.11/match.js +0 -29
  211. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
  212. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
  213. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -32
  214. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
  215. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
  216. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -29
  217. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
  218. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
  219. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -35
  220. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
  221. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
  222. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -60
  223. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +0 -20
  224. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +0 -1
  225. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.js +0 -32
  226. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +0 -14
  227. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +0 -1
  228. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +0 -46
  229. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +0 -17
  230. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +0 -1
  231. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.js +0 -29
  232. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +0 -4
  233. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +0 -1
  234. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.js +0 -18
  235. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +0 -46
  236. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +0 -1
  237. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.js +0 -183
  238. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +0 -6
  239. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +0 -1
  240. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.js +0 -33
  241. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +0 -4
  242. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +0 -1
  243. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.js +0 -15
  244. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +0 -9
  245. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +0 -1
  246. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.js +0 -194
  247. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +0 -4
  248. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +0 -1
  249. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.js +0 -15
  250. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +0 -3
  251. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +0 -1
  252. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.js +0 -17
  253. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +0 -34
  254. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +0 -1
  255. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.js +0 -748
  256. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts +0 -11
  257. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +0 -1
  258. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.js +0 -14
  259. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +0 -4
  260. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +0 -1
  261. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.js +0 -14
  262. package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts +0 -843
  263. package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +0 -1
  264. package/script/deps/jsr.io/@std/expect/1.0.12/_types.js +0 -4
  265. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +0 -9
  266. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +0 -1
  267. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.js +0 -226
  268. package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +0 -60
  269. package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +0 -1
  270. package/script/deps/jsr.io/@std/expect/1.0.12/expect.js +0 -527
  271. package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +0 -29
  272. package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +0 -1
  273. package/script/deps/jsr.io/@std/expect/1.0.12/fn.js +0 -88
  274. package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +0 -86
  275. package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +0 -1
  276. package/script/deps/jsr.io/@std/expect/1.0.12/mod.js +0 -91
  277. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
  278. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
  279. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -204
  280. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
  281. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
  282. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -116
  283. package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
  284. package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
  285. package/script/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -284
  286. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
  287. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
  288. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -186
  289. package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
  290. package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
  291. package/script/deps/jsr.io/@std/internal/1.0.5/format.js +0 -41
  292. package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
  293. package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
  294. package/script/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -220
  295. package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
  296. package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
  297. package/script/deps/jsr.io/@std/internal/1.0.5/types.js +0 -3
  298. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
  299. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
  300. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -385
  301. package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
  302. package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
  303. package/script/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -665
  304. package/script/src/collect/helpers.test.d.ts +0 -2
  305. package/script/src/collect/helpers.test.d.ts.map +0 -1
  306. package/script/src/collect/helpers.test.js +0 -79
  307. package/script/src/transform/helpers.test.d.ts +0 -2
  308. package/script/src/transform/helpers.test.d.ts.map +0 -1
  309. package/script/src/transform/helpers.test.js +0 -267
  310. package/script/src/utils/action-provider.test.d.ts +0 -2
  311. package/script/src/utils/action-provider.test.d.ts.map +0 -1
  312. package/script/src/utils/action-provider.test.js +0 -30
  313. package/script/src/utils/common.utils.test.d.ts +0 -2
  314. package/script/src/utils/common.utils.test.d.ts.map +0 -1
  315. package/script/src/utils/common.utils.test.js +0 -20
  316. package/script/src/utils/condition.test.d.ts +0 -2
  317. package/script/src/utils/condition.test.d.ts.map +0 -1
  318. package/script/src/utils/condition.test.js +0 -33
  319. package/script/src/utils/endpoint.utils.test.d.ts +0 -2
  320. package/script/src/utils/endpoint.utils.test.d.ts.map +0 -1
  321. package/script/src/utils/endpoint.utils.test.js +0 -33
  322. package/script/src/utils/factory.test.d.ts +0 -2
  323. package/script/src/utils/factory.test.d.ts.map +0 -1
  324. package/script/src/utils/factory.test.js +0 -36
  325. package/script/src/utils/generator.utils.test.d.ts +0 -2
  326. package/script/src/utils/generator.utils.test.d.ts.map +0 -1
  327. package/script/src/utils/generator.utils.test.js +0 -15
  328. package/script/src/utils/object.utils.test.d.ts +0 -2
  329. package/script/src/utils/object.utils.test.d.ts.map +0 -1
  330. package/script/src/utils/object.utils.test.js +0 -31
  331. package/script/src/utils/schema.utils.test.d.ts +0 -2
  332. package/script/src/utils/schema.utils.test.d.ts.map +0 -1
  333. package/script/src/utils/schema.utils.test.js +0 -72
  334. package/script/src/utils/source-builder.test.d.ts +0 -2
  335. package/script/src/utils/source-builder.test.d.ts.map +0 -1
  336. package/script/src/utils/source-builder.test.js +0 -507
  337. package/script/src/utils/string-builder/string-builder.test.d.ts +0 -2
  338. package/script/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
  339. package/script/src/utils/string-builder/string-builder.test.js +0 -165
  340. package/script/src/utils/string.utils.test.d.ts +0 -2
  341. package/script/src/utils/string.utils.test.d.ts.map +0 -1
  342. package/script/src/utils/string.utils.test.js +0 -530
  343. package/script/tests/openapi.test.d.ts +0 -2
  344. package/script/tests/openapi.test.d.ts.map +0 -1
  345. package/script/tests/openapi.test.js +0 -35
  346. package/script/tests/schema-factory.d.ts +0 -42
  347. package/script/tests/schema-factory.d.ts.map +0 -1
  348. package/script/tests/schema-factory.js +0 -162
  349. package/src/_dnt.shims.ts +0 -69
  350. package/src/_dnt.test_polyfills.ts +0 -70
  351. package/src/_dnt.test_shims.ts +0 -72
  352. package/src/deps/jsr.io/@std/assert/1.0.11/assertion_error.ts +0 -31
  353. package/src/deps/jsr.io/@std/assert/1.0.11/false.ts +0 -26
  354. package/src/deps/jsr.io/@std/assert/1.0.11/instance_of.ts +0 -64
  355. package/src/deps/jsr.io/@std/assert/1.0.11/match.ts +0 -30
  356. package/src/deps/jsr.io/@std/assert/1.0.11/not_instance_of.ts +0 -33
  357. package/src/deps/jsr.io/@std/assert/1.0.11/not_match.ts +0 -30
  358. package/src/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.ts +0 -42
  359. package/src/deps/jsr.io/@std/assert/1.0.11/strict_equals.ts +0 -67
  360. package/src/deps/jsr.io/@std/expect/1.0.12/_assert_equals.ts +0 -38
  361. package/src/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.ts +0 -54
  362. package/src/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.ts +0 -35
  363. package/src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts +0 -18
  364. package/src/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.ts +0 -198
  365. package/src/deps/jsr.io/@std/expect/1.0.12/_build_message.ts +0 -51
  366. package/src/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.ts +0 -19
  367. package/src/deps/jsr.io/@std/expect/1.0.12/_equal.ts +0 -230
  368. package/src/deps/jsr.io/@std/expect/1.0.12/_extend.ts +0 -16
  369. package/src/deps/jsr.io/@std/expect/1.0.12/_inspect_args.ts +0 -15
  370. package/src/deps/jsr.io/@std/expect/1.0.12/_matchers.ts +0 -1028
  371. package/src/deps/jsr.io/@std/expect/1.0.12/_mock_util.ts +0 -22
  372. package/src/deps/jsr.io/@std/expect/1.0.12/_serializer.ts +0 -15
  373. package/src/deps/jsr.io/@std/expect/1.0.12/_types.ts +0 -923
  374. package/src/deps/jsr.io/@std/expect/1.0.12/_utils.ts +0 -283
  375. package/src/deps/jsr.io/@std/expect/1.0.12/expect.ts +0 -620
  376. package/src/deps/jsr.io/@std/expect/1.0.12/fn.ts +0 -91
  377. package/src/deps/jsr.io/@std/expect/1.0.12/mod.ts +0 -89
  378. package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +0 -214
  379. package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +0 -134
  380. package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +0 -317
  381. package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +0 -204
  382. package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +0 -39
  383. package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +0 -233
  384. package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +0 -18
  385. package/src/deps/jsr.io/@std/testing/1.0.9/_test_suite.ts +0 -448
  386. package/src/deps/jsr.io/@std/testing/1.0.9/bdd.ts +0 -1288
  387. package/src/mod.ts +0 -33
  388. package/src/src/ast/node.ts +0 -46
  389. package/src/src/codegen/config.ts +0 -28
  390. package/src/src/codegen/endpoints-generator.ts +0 -72
  391. package/src/src/codegen/generator.ts +0 -181
  392. package/src/src/codegen/internal-utils.ts +0 -6
  393. package/src/src/codegen/schemas-generator.ts +0 -87
  394. package/src/src/codegen/services-generator.ts +0 -77
  395. package/src/src/codegen/types.ts +0 -37
  396. package/src/src/collect/collector.ts +0 -142
  397. package/src/src/collect/helpers.test.ts +0 -91
  398. package/src/src/collect/helpers.ts +0 -36
  399. package/src/src/collect/types.ts +0 -21
  400. package/src/src/internal-utils.ts +0 -5
  401. package/src/src/parse/deref-proxy.ts +0 -64
  402. package/src/src/parse/openapi-types.ts +0 -949
  403. package/src/src/parse/parser.ts +0 -220
  404. package/src/src/parse/types.ts +0 -27
  405. package/src/src/transform/api-types.ts +0 -243
  406. package/src/src/transform/helpers.test.ts +0 -316
  407. package/src/src/transform/helpers.ts +0 -211
  408. package/src/src/transform/transform-document.ts +0 -35
  409. package/src/src/transform/transform-endpoint.ts +0 -331
  410. package/src/src/transform/transform-schema.ts +0 -217
  411. package/src/src/transform/transformer.ts +0 -52
  412. package/src/src/transform/types.ts +0 -52
  413. package/src/src/utils/action-provider.test.ts +0 -32
  414. package/src/src/utils/action-provider.ts +0 -58
  415. package/src/src/utils/array.utils.ts +0 -7
  416. package/src/src/utils/asset-manager.ts +0 -51
  417. package/src/src/utils/class.utils.ts +0 -40
  418. package/src/src/utils/common.utils.test.ts +0 -22
  419. package/src/src/utils/common.utils.ts +0 -86
  420. package/src/src/utils/condition.test.ts +0 -36
  421. package/src/src/utils/condition.ts +0 -7
  422. package/src/src/utils/endpoint.utils.test.ts +0 -36
  423. package/src/src/utils/endpoint.utils.ts +0 -10
  424. package/src/src/utils/error.utils.ts +0 -3
  425. package/src/src/utils/factory.test.ts +0 -31
  426. package/src/src/utils/factory.ts +0 -42
  427. package/src/src/utils/file-system.utils.ts +0 -48
  428. package/src/src/utils/generator.utils.test.ts +0 -16
  429. package/src/src/utils/generator.utils.ts +0 -6
  430. package/src/src/utils/object.utils.test.ts +0 -33
  431. package/src/src/utils/object.utils.ts +0 -32
  432. package/src/src/utils/schema.utils.test.ts +0 -88
  433. package/src/src/utils/schema.utils.ts +0 -142
  434. package/src/src/utils/source-builder.test.ts +0 -657
  435. package/src/src/utils/source-builder.ts +0 -589
  436. package/src/src/utils/string-builder/options.ts +0 -19
  437. package/src/src/utils/string-builder/string-builder.test.ts +0 -188
  438. package/src/src/utils/string-builder/string-builder.ts +0 -165
  439. package/src/src/utils/string-builder/utils.ts +0 -69
  440. package/src/src/utils/string.utils.test.ts +0 -691
  441. package/src/src/utils/string.utils.ts +0 -369
  442. package/src/src/utils/string.utils.types.ts +0 -179
  443. package/src/src/utils/type.utils.ts +0 -93
  444. package/src/tests/openapi.test.ts +0 -50
  445. package/src/tests/schema-factory.ts +0 -185
  446. package/test_runner.js +0 -221
@@ -1,86 +0,0 @@
1
- /**
2
- * This module provides Jest compatible expect assertion functionality.
3
- *
4
- * ```ts no-assert
5
- * import { expect } from "@std/expect";
6
- *
7
- * const x = 6 * 7;
8
- * expect(x).toEqual(42);
9
- * expect(x).not.toEqual(0);
10
- *
11
- * await expect(Promise.resolve(x)).resolves.toEqual(42);
12
- * ```
13
- *
14
- * Currently this module supports the following functions:
15
- * - Common matchers:
16
- * - {@linkcode Expected.toBe | toBe}
17
- * - {@linkcode Expected.toEqual | toEqual}
18
- * - {@linkcode Expected.toStrictEqual | toStrictEqual}
19
- * - {@linkcode Expected.toMatch | toMatch}
20
- * - {@linkcode Expected.toMatchObject | toMatchObject}
21
- * - {@linkcode Expected.toBeDefined | toBeDefined}
22
- * - {@linkcode Expected.toBeUndefined | toBeUndefined}
23
- * - {@linkcode Expected.toBeNull | toBeNull}
24
- * - {@linkcode Expected.toBeNaN | toBeNaN}
25
- * - {@linkcode Expected.toBeTruthy | toBeTruthy}
26
- * - {@linkcode Expected.toBeFalsy | toBeFalsy}
27
- * - {@linkcode Expected.toContain | toContain}
28
- * - {@linkcode Expected.toContainEqual | toContainEqual}
29
- * - {@linkcode Expected.toHaveLength | toHaveLength}
30
- * - {@linkcode Expected.toBeGreaterThan | toBeGreaterThan}
31
- * - {@linkcode Expected.toBeGreaterThanOrEqual | toBeGreaterThanOrEqual}
32
- * - {@linkcode Expected.toBeLessThan | toBeLessThan}
33
- * - {@linkcode Expected.toBeLessThanOrEqual | toBeLessThanOrEqual}
34
- * - {@linkcode Expected.toBeCloseTo | toBeCloseTo}
35
- * - {@linkcode Expected.toBeInstanceOf | toBeInstanceOf}
36
- * - {@linkcode Expected.toThrow | toThrow}
37
- * - {@linkcode Expected.toHaveProperty | toHaveProperty}
38
- * - Mock related matchers:
39
- * - {@linkcode Expected.toHaveBeenCalled | toHaveBeenCalled}
40
- * - {@linkcode Expected.toHaveBeenCalledTimes | toHaveBeenCalledTimes}
41
- * - {@linkcode Expected.toHaveBeenCalledWith | toHaveBeenCalledWith}
42
- * - {@linkcode Expected.toHaveBeenLastCalledWith | toHaveBeenLastCalledWith}
43
- * - {@linkcode Expected.toHaveBeenNthCalledWith | toHaveBeenNthCalledWith}
44
- * - {@linkcode Expected.toHaveReturned | toHaveReturned}
45
- * - {@linkcode Expected.toHaveReturnedTimes | toHaveReturnedTimes}
46
- * - {@linkcode Expected.toHaveReturnedWith | toHaveReturnedWith}
47
- * - {@linkcode Expected.toHaveLastReturnedWith | toHaveLastReturnedWith}
48
- * - {@linkcode Expected.toHaveNthReturnedWith | toHaveNthReturnedWith}
49
- * - Asymmetric matchers:
50
- * - {@linkcode expect.anything}
51
- * - {@linkcode expect.any}
52
- * - {@linkcode expect.arrayContaining}
53
- * - {@linkcode expect.not.arrayContaining}
54
- * - {@linkcode expect.objectContaining}
55
- * - {@linkcode expect.not.objectContaining}
56
- * - {@linkcode expect.closeTo}
57
- * - {@linkcode expect.stringContaining}
58
- * - {@linkcode expect.not.stringContaining}
59
- * - {@linkcode expect.stringMatching}
60
- * - {@linkcode expect.not.stringMatching}
61
- * - Utilities:
62
- * - {@linkcode expect.addSnapshotSerializer}
63
- * - {@linkcode expect.assertions}
64
- * - {@linkcode expect.addEqualityTester}
65
- * - {@linkcode expect.extend}
66
- * - {@linkcode expect.hasAssertions}
67
- *
68
- * Only these functions are still not available:
69
- * - Matchers:
70
- * - `toMatchSnapshot`
71
- * - `toMatchInlineSnapshot`
72
- * - `toThrowErrorMatchingSnapshot`
73
- * - `toThrowErrorMatchingInlineSnapshot`
74
- *
75
- * The tracking issue to add support for unsupported parts of the API is
76
- * {@link https://github.com/denoland/std/issues/3964}.
77
- *
78
- * This module is largely inspired by
79
- * {@link https://github.com/allain/expect | x/expect} module by
80
- * {@link https://github.com/allain | Allain Lalonde}.
81
- *
82
- * @module
83
- */
84
- export * from "./expect.js";
85
- export * from "./fn.js";
86
- //# sourceMappingURL=mod.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/mod.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -1,88 +0,0 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
2
- // Copyright 2019 Allain Lalonde. All rights reserved. ISC License.
3
- // This module is browser compatible.
4
- /**
5
- * This module provides Jest compatible expect assertion functionality.
6
- *
7
- * ```ts no-assert
8
- * import { expect } from "@std/expect";
9
- *
10
- * const x = 6 * 7;
11
- * expect(x).toEqual(42);
12
- * expect(x).not.toEqual(0);
13
- *
14
- * await expect(Promise.resolve(x)).resolves.toEqual(42);
15
- * ```
16
- *
17
- * Currently this module supports the following functions:
18
- * - Common matchers:
19
- * - {@linkcode Expected.toBe | toBe}
20
- * - {@linkcode Expected.toEqual | toEqual}
21
- * - {@linkcode Expected.toStrictEqual | toStrictEqual}
22
- * - {@linkcode Expected.toMatch | toMatch}
23
- * - {@linkcode Expected.toMatchObject | toMatchObject}
24
- * - {@linkcode Expected.toBeDefined | toBeDefined}
25
- * - {@linkcode Expected.toBeUndefined | toBeUndefined}
26
- * - {@linkcode Expected.toBeNull | toBeNull}
27
- * - {@linkcode Expected.toBeNaN | toBeNaN}
28
- * - {@linkcode Expected.toBeTruthy | toBeTruthy}
29
- * - {@linkcode Expected.toBeFalsy | toBeFalsy}
30
- * - {@linkcode Expected.toContain | toContain}
31
- * - {@linkcode Expected.toContainEqual | toContainEqual}
32
- * - {@linkcode Expected.toHaveLength | toHaveLength}
33
- * - {@linkcode Expected.toBeGreaterThan | toBeGreaterThan}
34
- * - {@linkcode Expected.toBeGreaterThanOrEqual | toBeGreaterThanOrEqual}
35
- * - {@linkcode Expected.toBeLessThan | toBeLessThan}
36
- * - {@linkcode Expected.toBeLessThanOrEqual | toBeLessThanOrEqual}
37
- * - {@linkcode Expected.toBeCloseTo | toBeCloseTo}
38
- * - {@linkcode Expected.toBeInstanceOf | toBeInstanceOf}
39
- * - {@linkcode Expected.toThrow | toThrow}
40
- * - {@linkcode Expected.toHaveProperty | toHaveProperty}
41
- * - Mock related matchers:
42
- * - {@linkcode Expected.toHaveBeenCalled | toHaveBeenCalled}
43
- * - {@linkcode Expected.toHaveBeenCalledTimes | toHaveBeenCalledTimes}
44
- * - {@linkcode Expected.toHaveBeenCalledWith | toHaveBeenCalledWith}
45
- * - {@linkcode Expected.toHaveBeenLastCalledWith | toHaveBeenLastCalledWith}
46
- * - {@linkcode Expected.toHaveBeenNthCalledWith | toHaveBeenNthCalledWith}
47
- * - {@linkcode Expected.toHaveReturned | toHaveReturned}
48
- * - {@linkcode Expected.toHaveReturnedTimes | toHaveReturnedTimes}
49
- * - {@linkcode Expected.toHaveReturnedWith | toHaveReturnedWith}
50
- * - {@linkcode Expected.toHaveLastReturnedWith | toHaveLastReturnedWith}
51
- * - {@linkcode Expected.toHaveNthReturnedWith | toHaveNthReturnedWith}
52
- * - Asymmetric matchers:
53
- * - {@linkcode expect.anything}
54
- * - {@linkcode expect.any}
55
- * - {@linkcode expect.arrayContaining}
56
- * - {@linkcode expect.not.arrayContaining}
57
- * - {@linkcode expect.objectContaining}
58
- * - {@linkcode expect.not.objectContaining}
59
- * - {@linkcode expect.closeTo}
60
- * - {@linkcode expect.stringContaining}
61
- * - {@linkcode expect.not.stringContaining}
62
- * - {@linkcode expect.stringMatching}
63
- * - {@linkcode expect.not.stringMatching}
64
- * - Utilities:
65
- * - {@linkcode expect.addSnapshotSerializer}
66
- * - {@linkcode expect.assertions}
67
- * - {@linkcode expect.addEqualityTester}
68
- * - {@linkcode expect.extend}
69
- * - {@linkcode expect.hasAssertions}
70
- *
71
- * Only these functions are still not available:
72
- * - Matchers:
73
- * - `toMatchSnapshot`
74
- * - `toMatchInlineSnapshot`
75
- * - `toThrowErrorMatchingSnapshot`
76
- * - `toThrowErrorMatchingInlineSnapshot`
77
- *
78
- * The tracking issue to add support for unsupported parts of the API is
79
- * {@link https://github.com/denoland/std/issues/3964}.
80
- *
81
- * This module is largely inspired by
82
- * {@link https://github.com/allain/expect | x/expect} module by
83
- * {@link https://github.com/allain | Allain Lalonde}.
84
- *
85
- * @module
86
- */
87
- export * from "./expect.js";
88
- export * from "./fn.js";
@@ -1,160 +0,0 @@
1
- /**
2
- * Check the test suite internal state
3
- *
4
- * @example Usage
5
- * ```ts ignore
6
- * import { AssertionState } from "@std/internal";
7
- *
8
- * const assertionState = new AssertionState();
9
- * ```
10
- */
11
- export declare class AssertionState {
12
- #private;
13
- constructor();
14
- /**
15
- * Get the number that through `expect.assertions` api set.
16
- *
17
- * @returns the number that through `expect.assertions` api set.
18
- *
19
- * @example Usage
20
- * ```ts ignore
21
- * import { AssertionState } from "@std/internal";
22
- *
23
- * const assertionState = new AssertionState();
24
- * assertionState.assertionCount;
25
- * ```
26
- */
27
- get assertionCount(): number | undefined;
28
- /**
29
- * Get a certain number that assertions were called before.
30
- *
31
- * @returns return a certain number that assertions were called before.
32
- *
33
- * @example Usage
34
- * ```ts ignore
35
- * import { AssertionState } from "@std/internal";
36
- *
37
- * const assertionState = new AssertionState();
38
- * assertionState.assertionTriggeredCount;
39
- * ```
40
- */
41
- get assertionTriggeredCount(): number;
42
- /**
43
- * If `expect.hasAssertions` called, then through this method to update #state.assertionCheck value.
44
- *
45
- * @param val Set #state.assertionCheck's value
46
- *
47
- * @example Usage
48
- * ```ts ignore
49
- * import { AssertionState } from "@std/internal";
50
- *
51
- * const assertionState = new AssertionState();
52
- * assertionState.setAssertionCheck(true);
53
- * ```
54
- */
55
- setAssertionCheck(val: boolean): void;
56
- /**
57
- * If any matchers was called, `#state.assertionTriggered` will be set through this method.
58
- *
59
- * @param val Set #state.assertionTriggered's value
60
- *
61
- * @example Usage
62
- * ```ts ignore
63
- * import { AssertionState } from "@std/internal";
64
- *
65
- * const assertionState = new AssertionState();
66
- * assertionState.setAssertionTriggered(true);
67
- * ```
68
- */
69
- setAssertionTriggered(val: boolean): void;
70
- /**
71
- * If `expect.assertions` called, then through this method to update #state.assertionCheck value.
72
- *
73
- * @param num Set #state.assertionCount's value, for example if the value is set 2, that means
74
- * you must have two assertion matchers call in your test suite.
75
- *
76
- * @example Usage
77
- * ```ts ignore
78
- * import { AssertionState } from "@std/internal";
79
- *
80
- * const assertionState = new AssertionState();
81
- * assertionState.setAssertionCount(2);
82
- * ```
83
- */
84
- setAssertionCount(num: number): void;
85
- /**
86
- * If any matchers was called, `#state.assertionTriggeredCount` value will plus one internally.
87
- *
88
- * @example Usage
89
- * ```ts ignore
90
- * import { AssertionState } from "@std/internal";
91
- *
92
- * const assertionState = new AssertionState();
93
- * assertionState.updateAssertionTriggerCount();
94
- * ```
95
- */
96
- updateAssertionTriggerCount(): void;
97
- /**
98
- * Check Assertion internal state, if `#state.assertionCheck` is set true, but
99
- * `#state.assertionTriggered` is still false, then should throw an Assertion Error.
100
- *
101
- * @returns a boolean value, that the test suite is satisfied with the check. If not,
102
- * it should throw an AssertionError.
103
- *
104
- * @example Usage
105
- * ```ts ignore
106
- * import { AssertionState } from "@std/internal";
107
- *
108
- * const assertionState = new AssertionState();
109
- * if (assertionState.checkAssertionErrorState()) {
110
- * // throw AssertionError("");
111
- * }
112
- * ```
113
- */
114
- checkAssertionErrorState(): boolean;
115
- /**
116
- * Reset all assertion state when every test suite function ran completely.
117
- *
118
- * @example Usage
119
- * ```ts ignore
120
- * import { AssertionState } from "@std/internal";
121
- *
122
- * const assertionState = new AssertionState();
123
- * assertionState.resetAssertionState();
124
- * ```
125
- */
126
- resetAssertionState(): void;
127
- /**
128
- * Check Assertion called state, if `#state.assertionCount` is set to a number value, but
129
- * `#state.assertionTriggeredCount` is less then it, then should throw an assertion error.
130
- *
131
- * @returns a boolean value, that the test suite is satisfied with the check. If not,
132
- * it should throw an AssertionError.
133
- *
134
- * @example Usage
135
- * ```ts ignore
136
- * import { AssertionState } from "@std/internal";
137
- *
138
- * const assertionState = new AssertionState();
139
- * if (assertionState.checkAssertionCountSatisfied()) {
140
- * // throw AssertionError("");
141
- * }
142
- * ```
143
- */
144
- checkAssertionCountSatisfied(): boolean;
145
- }
146
- /**
147
- * return an instance of AssertionState
148
- *
149
- * @returns AssertionState
150
- *
151
- * @example Usage
152
- * ```ts ignore
153
- * import { getAssertionState } from "@std/internal";
154
- *
155
- * const assertionState = getAssertionState();
156
- * assertionState.setAssertionTriggered(true);
157
- * ```
158
- */
159
- export declare function getAssertionState(): AssertionState;
160
- //# sourceMappingURL=assertion_state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assertion_state.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,qBAAa,cAAc;;;IAiBzB;;;;;;;;;;;;OAYG;IACH,IAAI,cAAc,IAAI,MAAM,GAAG,SAAS,CAEvC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,uBAAuB,IAAI,MAAM,CAEpC;IAED;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,GAAG,EAAE,OAAO;IAI9B;;;;;;;;;;;;OAYG;IACH,qBAAqB,CAAC,GAAG,EAAE,OAAO;IAIlC;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM;IAI7B;;;;;;;;;;OAUG;IACH,2BAA2B;IAM3B;;;;;;;;;;;;;;;;OAgBG;IACH,wBAAwB,IAAI,OAAO;IAInC;;;;;;;;;;OAUG;IACH,mBAAmB,IAAI,IAAI;IAS3B;;;;;;;;;;;;;;;;OAgBG;IACH,4BAA4B,IAAI,OAAO;CAIxC;AAID;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAElD"}
@@ -1,199 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- var _AssertionState_state;
3
- import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
4
- /**
5
- * Check the test suite internal state
6
- *
7
- * @example Usage
8
- * ```ts ignore
9
- * import { AssertionState } from "@std/internal";
10
- *
11
- * const assertionState = new AssertionState();
12
- * ```
13
- */
14
- export class AssertionState {
15
- constructor() {
16
- _AssertionState_state.set(this, void 0);
17
- __classPrivateFieldSet(this, _AssertionState_state, {
18
- assertionCount: undefined,
19
- assertionCheck: false,
20
- assertionTriggered: false,
21
- assertionTriggeredCount: 0,
22
- }, "f");
23
- }
24
- /**
25
- * Get the number that through `expect.assertions` api set.
26
- *
27
- * @returns the number that through `expect.assertions` api set.
28
- *
29
- * @example Usage
30
- * ```ts ignore
31
- * import { AssertionState } from "@std/internal";
32
- *
33
- * const assertionState = new AssertionState();
34
- * assertionState.assertionCount;
35
- * ```
36
- */
37
- get assertionCount() {
38
- return __classPrivateFieldGet(this, _AssertionState_state, "f").assertionCount;
39
- }
40
- /**
41
- * Get a certain number that assertions were called before.
42
- *
43
- * @returns return a certain number that assertions were called before.
44
- *
45
- * @example Usage
46
- * ```ts ignore
47
- * import { AssertionState } from "@std/internal";
48
- *
49
- * const assertionState = new AssertionState();
50
- * assertionState.assertionTriggeredCount;
51
- * ```
52
- */
53
- get assertionTriggeredCount() {
54
- return __classPrivateFieldGet(this, _AssertionState_state, "f").assertionTriggeredCount;
55
- }
56
- /**
57
- * If `expect.hasAssertions` called, then through this method to update #state.assertionCheck value.
58
- *
59
- * @param val Set #state.assertionCheck's value
60
- *
61
- * @example Usage
62
- * ```ts ignore
63
- * import { AssertionState } from "@std/internal";
64
- *
65
- * const assertionState = new AssertionState();
66
- * assertionState.setAssertionCheck(true);
67
- * ```
68
- */
69
- setAssertionCheck(val) {
70
- __classPrivateFieldGet(this, _AssertionState_state, "f").assertionCheck = val;
71
- }
72
- /**
73
- * If any matchers was called, `#state.assertionTriggered` will be set through this method.
74
- *
75
- * @param val Set #state.assertionTriggered's value
76
- *
77
- * @example Usage
78
- * ```ts ignore
79
- * import { AssertionState } from "@std/internal";
80
- *
81
- * const assertionState = new AssertionState();
82
- * assertionState.setAssertionTriggered(true);
83
- * ```
84
- */
85
- setAssertionTriggered(val) {
86
- __classPrivateFieldGet(this, _AssertionState_state, "f").assertionTriggered = val;
87
- }
88
- /**
89
- * If `expect.assertions` called, then through this method to update #state.assertionCheck value.
90
- *
91
- * @param num Set #state.assertionCount's value, for example if the value is set 2, that means
92
- * you must have two assertion matchers call in your test suite.
93
- *
94
- * @example Usage
95
- * ```ts ignore
96
- * import { AssertionState } from "@std/internal";
97
- *
98
- * const assertionState = new AssertionState();
99
- * assertionState.setAssertionCount(2);
100
- * ```
101
- */
102
- setAssertionCount(num) {
103
- __classPrivateFieldGet(this, _AssertionState_state, "f").assertionCount = num;
104
- }
105
- /**
106
- * If any matchers was called, `#state.assertionTriggeredCount` value will plus one internally.
107
- *
108
- * @example Usage
109
- * ```ts ignore
110
- * import { AssertionState } from "@std/internal";
111
- *
112
- * const assertionState = new AssertionState();
113
- * assertionState.updateAssertionTriggerCount();
114
- * ```
115
- */
116
- updateAssertionTriggerCount() {
117
- if (__classPrivateFieldGet(this, _AssertionState_state, "f").assertionCount !== undefined) {
118
- __classPrivateFieldGet(this, _AssertionState_state, "f").assertionTriggeredCount += 1;
119
- }
120
- }
121
- /**
122
- * Check Assertion internal state, if `#state.assertionCheck` is set true, but
123
- * `#state.assertionTriggered` is still false, then should throw an Assertion Error.
124
- *
125
- * @returns a boolean value, that the test suite is satisfied with the check. If not,
126
- * it should throw an AssertionError.
127
- *
128
- * @example Usage
129
- * ```ts ignore
130
- * import { AssertionState } from "@std/internal";
131
- *
132
- * const assertionState = new AssertionState();
133
- * if (assertionState.checkAssertionErrorState()) {
134
- * // throw AssertionError("");
135
- * }
136
- * ```
137
- */
138
- checkAssertionErrorState() {
139
- return __classPrivateFieldGet(this, _AssertionState_state, "f").assertionCheck && !__classPrivateFieldGet(this, _AssertionState_state, "f").assertionTriggered;
140
- }
141
- /**
142
- * Reset all assertion state when every test suite function ran completely.
143
- *
144
- * @example Usage
145
- * ```ts ignore
146
- * import { AssertionState } from "@std/internal";
147
- *
148
- * const assertionState = new AssertionState();
149
- * assertionState.resetAssertionState();
150
- * ```
151
- */
152
- resetAssertionState() {
153
- __classPrivateFieldSet(this, _AssertionState_state, {
154
- assertionCount: undefined,
155
- assertionCheck: false,
156
- assertionTriggered: false,
157
- assertionTriggeredCount: 0,
158
- }, "f");
159
- }
160
- /**
161
- * Check Assertion called state, if `#state.assertionCount` is set to a number value, but
162
- * `#state.assertionTriggeredCount` is less then it, then should throw an assertion error.
163
- *
164
- * @returns a boolean value, that the test suite is satisfied with the check. If not,
165
- * it should throw an AssertionError.
166
- *
167
- * @example Usage
168
- * ```ts ignore
169
- * import { AssertionState } from "@std/internal";
170
- *
171
- * const assertionState = new AssertionState();
172
- * if (assertionState.checkAssertionCountSatisfied()) {
173
- * // throw AssertionError("");
174
- * }
175
- * ```
176
- */
177
- checkAssertionCountSatisfied() {
178
- return __classPrivateFieldGet(this, _AssertionState_state, "f").assertionCount !== undefined &&
179
- __classPrivateFieldGet(this, _AssertionState_state, "f").assertionCount !== __classPrivateFieldGet(this, _AssertionState_state, "f").assertionTriggeredCount;
180
- }
181
- }
182
- _AssertionState_state = new WeakMap();
183
- const assertionState = new AssertionState();
184
- /**
185
- * return an instance of AssertionState
186
- *
187
- * @returns AssertionState
188
- *
189
- * @example Usage
190
- * ```ts ignore
191
- * import { getAssertionState } from "@std/internal";
192
- *
193
- * const assertionState = getAssertionState();
194
- * assertionState.setAssertionTriggered(true);
195
- * ```
196
- */
197
- export function getAssertionState() {
198
- return assertionState;
199
- }
@@ -1,82 +0,0 @@
1
- import type { DiffResult, DiffType } from "./types.js";
2
- /**
3
- * Colors the output of assertion diffs.
4
- *
5
- * @param diffType Difference type, either added or removed.
6
- * @param background If true, colors the background instead of the text.
7
- *
8
- * @returns A function that colors the input string.
9
- *
10
- * @example Usage
11
- * ```ts
12
- * import { createColor } from "@std/internal";
13
- * import { assertEquals } from "@std/assert";
14
- * import { bold, green, red, white } from "@std/fmt/colors";
15
- *
16
- * assertEquals(createColor("added")("foo"), green(bold("foo")));
17
- * assertEquals(createColor("removed")("foo"), red(bold("foo")));
18
- * assertEquals(createColor("common")("foo"), white("foo"));
19
- * ```
20
- */
21
- export declare function createColor(diffType: DiffType,
22
- /**
23
- * TODO(@littledivy): Remove this when we can detect true color terminals. See
24
- * https://github.com/denoland/deno_std/issues/2575.
25
- */
26
- background?: boolean): (s: string) => string;
27
- /**
28
- * Prefixes `+` or `-` in diff output.
29
- *
30
- * @param diffType Difference type, either added or removed
31
- *
32
- * @returns A string representing the sign.
33
- *
34
- * @example Usage
35
- * ```ts
36
- * import { createSign } from "@std/internal";
37
- * import { assertEquals } from "@std/assert";
38
- *
39
- * assertEquals(createSign("added"), "+ ");
40
- * assertEquals(createSign("removed"), "- ");
41
- * assertEquals(createSign("common"), " ");
42
- * ```
43
- */
44
- export declare function createSign(diffType: DiffType): string;
45
- /** Options for {@linkcode buildMessage}. */
46
- export interface BuildMessageOptions {
47
- /**
48
- * Whether to output the diff as a single string.
49
- *
50
- * @default {false}
51
- */
52
- stringDiff?: boolean;
53
- }
54
- /**
55
- * Builds a message based on the provided diff result.
56
- *
57
- * @param diffResult The diff result array.
58
- * @param options Optional parameters for customizing the message.
59
- *
60
- * @returns An array of strings representing the built message.
61
- *
62
- * @example Usage
63
- * ```ts no-assert
64
- * import { diffStr, buildMessage } from "@std/internal";
65
- *
66
- * const diffResult = diffStr("Hello, world!", "Hello, world");
67
- *
68
- * console.log(buildMessage(diffResult));
69
- * // [
70
- * // "",
71
- * // "",
72
- * // " [Diff] Actual / Expected",
73
- * // "",
74
- * // "",
75
- * // "- Hello, world!",
76
- * // "+ Hello, world",
77
- * // "",
78
- * // ]
79
- * ```
80
- */
81
- export declare function buildMessage(diffResult: ReadonlyArray<DiffResult<string>>, options?: BuildMessageOptions): string[];
82
- //# sourceMappingURL=build_message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/build_message.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ;AAClB;;;GAGG;AACH,UAAU,UAAQ,GACjB,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CASvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CASrD;AAED,4CAA4C;AAC5C,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,mBAAwB,GAChC,MAAM,EAAE,CAsBV"}