@goast/kotlin 0.4.1 → 0.4.2-beta1

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 (492) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +45 -45
  3. package/assets/client/okhttp3/ApiClient.kt +250 -250
  4. package/esm/src/assets.js +1 -1
  5. package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +26 -26
  6. package/package.json +2 -2
  7. package/script/src/assets.js +1 -1
  8. package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +26 -26
  9. package/esm/_dnt.test_polyfills.d.ts +0 -29
  10. package/esm/_dnt.test_polyfills.d.ts.map +0 -1
  11. package/esm/_dnt.test_polyfills.js +0 -31
  12. package/esm/_dnt.test_shims.d.ts +0 -6
  13. package/esm/_dnt.test_shims.d.ts.map +0 -1
  14. package/esm/_dnt.test_shims.js +0 -61
  15. package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts +0 -26
  16. package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
  17. package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +0 -30
  18. package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
  19. package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
  20. package/esm/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -136
  21. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
  22. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
  23. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -45
  24. package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts +0 -18
  25. package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
  26. package/esm/deps/jsr.io/@std/assert/1.0.6/false.js +0 -22
  27. package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +0 -23
  28. package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
  29. package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.js +0 -53
  30. package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +0 -25
  31. package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
  32. package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.js +0 -54
  33. package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts +0 -18
  34. package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
  35. package/esm/deps/jsr.io/@std/assert/1.0.6/match.js +0 -26
  36. package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +0 -20
  37. package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
  38. package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +0 -29
  39. package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +0 -18
  40. package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
  41. package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.js +0 -26
  42. package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +0 -23
  43. package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
  44. package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +0 -32
  45. package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
  46. package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
  47. package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -159
  48. package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts +0 -42
  49. package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts.map +0 -1
  50. package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.js +0 -53
  51. package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +0 -24
  52. package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
  53. package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +0 -57
  54. package/esm/deps/jsr.io/@std/expect/1.0.6/_assert_equals.d.ts +0 -20
  55. package/esm/deps/jsr.io/@std/expect/1.0.6/_assert_equals.d.ts.map +0 -1
  56. package/esm/deps/jsr.io/@std/expect/1.0.6/_assert_equals.js +0 -29
  57. package/esm/deps/jsr.io/@std/expect/1.0.6/_assert_not_equals.d.ts +0 -17
  58. package/esm/deps/jsr.io/@std/expect/1.0.6/_assert_not_equals.d.ts.map +0 -1
  59. package/esm/deps/jsr.io/@std/expect/1.0.6/_assert_not_equals.js +0 -26
  60. package/esm/deps/jsr.io/@std/expect/1.0.6/_assertion.d.ts +0 -3
  61. package/esm/deps/jsr.io/@std/expect/1.0.6/_assertion.d.ts.map +0 -1
  62. package/esm/deps/jsr.io/@std/expect/1.0.6/_assertion.js +0 -9
  63. package/esm/deps/jsr.io/@std/expect/1.0.6/_asymmetric_matchers.d.ts +0 -41
  64. package/esm/deps/jsr.io/@std/expect/1.0.6/_asymmetric_matchers.d.ts.map +0 -1
  65. package/esm/deps/jsr.io/@std/expect/1.0.6/_asymmetric_matchers.js +0 -143
  66. package/esm/deps/jsr.io/@std/expect/1.0.6/_build_message.d.ts +0 -6
  67. package/esm/deps/jsr.io/@std/expect/1.0.6/_build_message.d.ts.map +0 -1
  68. package/esm/deps/jsr.io/@std/expect/1.0.6/_build_message.js +0 -29
  69. package/esm/deps/jsr.io/@std/expect/1.0.6/_custom_equality_tester.d.ts +0 -4
  70. package/esm/deps/jsr.io/@std/expect/1.0.6/_custom_equality_tester.d.ts.map +0 -1
  71. package/esm/deps/jsr.io/@std/expect/1.0.6/_custom_equality_tester.js +0 -11
  72. package/esm/deps/jsr.io/@std/expect/1.0.6/_equal.d.ts +0 -9
  73. package/esm/deps/jsr.io/@std/expect/1.0.6/_equal.d.ts.map +0 -1
  74. package/esm/deps/jsr.io/@std/expect/1.0.6/_equal.js +0 -191
  75. package/esm/deps/jsr.io/@std/expect/1.0.6/_extend.d.ts +0 -4
  76. package/esm/deps/jsr.io/@std/expect/1.0.6/_extend.d.ts.map +0 -1
  77. package/esm/deps/jsr.io/@std/expect/1.0.6/_extend.js +0 -11
  78. package/esm/deps/jsr.io/@std/expect/1.0.6/_inspect_args.d.ts +0 -3
  79. package/esm/deps/jsr.io/@std/expect/1.0.6/_inspect_args.d.ts.map +0 -1
  80. package/esm/deps/jsr.io/@std/expect/1.0.6/_inspect_args.js +0 -12
  81. package/esm/deps/jsr.io/@std/expect/1.0.6/_matchers.d.ts +0 -34
  82. package/esm/deps/jsr.io/@std/expect/1.0.6/_matchers.d.ts.map +0 -1
  83. package/esm/deps/jsr.io/@std/expect/1.0.6/_matchers.js +0 -564
  84. package/esm/deps/jsr.io/@std/expect/1.0.6/_mock_util.d.ts +0 -11
  85. package/esm/deps/jsr.io/@std/expect/1.0.6/_mock_util.d.ts.map +0 -1
  86. package/esm/deps/jsr.io/@std/expect/1.0.6/_mock_util.js +0 -10
  87. package/esm/deps/jsr.io/@std/expect/1.0.6/_types.d.ts +0 -838
  88. package/esm/deps/jsr.io/@std/expect/1.0.6/_types.d.ts.map +0 -1
  89. package/esm/deps/jsr.io/@std/expect/1.0.6/_types.js +0 -3
  90. package/esm/deps/jsr.io/@std/expect/1.0.6/_utils.d.ts +0 -8
  91. package/esm/deps/jsr.io/@std/expect/1.0.6/_utils.d.ts.map +0 -1
  92. package/esm/deps/jsr.io/@std/expect/1.0.6/_utils.js +0 -159
  93. package/esm/deps/jsr.io/@std/expect/1.0.6/expect.d.ts +0 -52
  94. package/esm/deps/jsr.io/@std/expect/1.0.6/expect.d.ts.map +0 -1
  95. package/esm/deps/jsr.io/@std/expect/1.0.6/expect.js +0 -441
  96. package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
  97. package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
  98. package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -101
  99. package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +0 -82
  100. package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +0 -1
  101. package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.js +0 -111
  102. package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +0 -140
  103. package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +0 -1
  104. package/esm/deps/jsr.io/@std/internal/1.0.4/diff.js +0 -277
  105. package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +0 -99
  106. package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +0 -1
  107. package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.js +0 -180
  108. package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts +0 -2
  109. package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +0 -1
  110. package/esm/deps/jsr.io/@std/internal/1.0.4/format.js +0 -37
  111. package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +0 -159
  112. package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +0 -1
  113. package/esm/deps/jsr.io/@std/internal/1.0.4/styles.js +0 -207
  114. package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts +0 -16
  115. package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +0 -1
  116. package/esm/deps/jsr.io/@std/internal/1.0.4/types.js +0 -2
  117. package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts +0 -74
  118. package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
  119. package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.js +0 -340
  120. package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts +0 -731
  121. package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts.map +0 -1
  122. package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.js +0 -576
  123. package/esm/deps/jsr.io/@std/testing/1.0.3/mock.d.ts +0 -674
  124. package/esm/deps/jsr.io/@std/testing/1.0.3/mock.d.ts.map +0 -1
  125. package/esm/deps/jsr.io/@std/testing/1.0.3/mock.js +0 -1117
  126. package/esm/src/ast/nodes/annotation.test.d.ts +0 -2
  127. package/esm/src/ast/nodes/annotation.test.d.ts.map +0 -1
  128. package/esm/src/ast/nodes/annotation.test.js +0 -56
  129. package/esm/src/ast/nodes/argument.test.d.ts +0 -2
  130. package/esm/src/ast/nodes/argument.test.d.ts.map +0 -1
  131. package/esm/src/ast/nodes/argument.test.js +0 -33
  132. package/esm/src/ast/nodes/call.test.d.ts +0 -2
  133. package/esm/src/ast/nodes/call.test.d.ts.map +0 -1
  134. package/esm/src/ast/nodes/call.test.js +0 -35
  135. package/esm/src/ast/nodes/class.test.d.ts +0 -2
  136. package/esm/src/ast/nodes/class.test.d.ts.map +0 -1
  137. package/esm/src/ast/nodes/class.test.js +0 -219
  138. package/esm/src/ast/nodes/constructor.test.d.ts +0 -2
  139. package/esm/src/ast/nodes/constructor.test.d.ts.map +0 -1
  140. package/esm/src/ast/nodes/constructor.test.js +0 -139
  141. package/esm/src/ast/nodes/doc-tag.test.d.ts +0 -2
  142. package/esm/src/ast/nodes/doc-tag.test.d.ts.map +0 -1
  143. package/esm/src/ast/nodes/doc-tag.test.js +0 -67
  144. package/esm/src/ast/nodes/doc.test.d.ts +0 -2
  145. package/esm/src/ast/nodes/doc.test.d.ts.map +0 -1
  146. package/esm/src/ast/nodes/doc.test.js +0 -33
  147. package/esm/src/ast/nodes/enum-value.test.d.ts +0 -2
  148. package/esm/src/ast/nodes/enum-value.test.d.ts.map +0 -1
  149. package/esm/src/ast/nodes/enum-value.test.js +0 -115
  150. package/esm/src/ast/nodes/enum.test.d.ts +0 -2
  151. package/esm/src/ast/nodes/enum.test.d.ts.map +0 -1
  152. package/esm/src/ast/nodes/enum.test.js +0 -129
  153. package/esm/src/ast/nodes/function.test.d.ts +0 -2
  154. package/esm/src/ast/nodes/function.test.d.ts.map +0 -1
  155. package/esm/src/ast/nodes/function.test.js +0 -160
  156. package/esm/src/ast/nodes/generic-parameter.test.d.ts +0 -2
  157. package/esm/src/ast/nodes/generic-parameter.test.d.ts.map +0 -1
  158. package/esm/src/ast/nodes/generic-parameter.test.js +0 -49
  159. package/esm/src/ast/nodes/init-block.test.d.ts +0 -2
  160. package/esm/src/ast/nodes/init-block.test.d.ts.map +0 -1
  161. package/esm/src/ast/nodes/init-block.test.js +0 -28
  162. package/esm/src/ast/nodes/interface.test.d.ts +0 -2
  163. package/esm/src/ast/nodes/interface.test.d.ts.map +0 -1
  164. package/esm/src/ast/nodes/interface.test.js +0 -121
  165. package/esm/src/ast/nodes/object.test.d.ts +0 -2
  166. package/esm/src/ast/nodes/object.test.d.ts.map +0 -1
  167. package/esm/src/ast/nodes/object.test.js +0 -78
  168. package/esm/src/ast/nodes/parameter.test.d.ts +0 -2
  169. package/esm/src/ast/nodes/parameter.test.d.ts.map +0 -1
  170. package/esm/src/ast/nodes/parameter.test.js +0 -152
  171. package/esm/src/ast/nodes/property.test.d.ts +0 -2
  172. package/esm/src/ast/nodes/property.test.d.ts.map +0 -1
  173. package/esm/src/ast/nodes/property.test.js +0 -206
  174. package/esm/src/ast/nodes/reference.test.d.ts +0 -2
  175. package/esm/src/ast/nodes/reference.test.d.ts.map +0 -1
  176. package/esm/src/ast/nodes/reference.test.js +0 -36
  177. package/esm/src/ast/nodes/string.test.d.ts +0 -2
  178. package/esm/src/ast/nodes/string.test.d.ts.map +0 -1
  179. package/esm/src/ast/nodes/string.test.js +0 -48
  180. package/esm/src/import-collection.test.d.ts +0 -2
  181. package/esm/src/import-collection.test.d.ts.map +0 -1
  182. package/esm/src/import-collection.test.js +0 -99
  183. package/esm/tests/openapi-models.test.d.ts +0 -2
  184. package/esm/tests/openapi-models.test.d.ts.map +0 -1
  185. package/esm/tests/openapi-models.test.js +0 -45
  186. package/script/_dnt.test_polyfills.d.ts +0 -29
  187. package/script/_dnt.test_polyfills.d.ts.map +0 -1
  188. package/script/_dnt.test_polyfills.js +0 -32
  189. package/script/_dnt.test_shims.d.ts +0 -6
  190. package/script/_dnt.test_shims.d.ts.map +0 -1
  191. package/script/_dnt.test_shims.js +0 -65
  192. package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts +0 -26
  193. package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
  194. package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +0 -34
  195. package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
  196. package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
  197. package/script/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -139
  198. package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
  199. package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
  200. package/script/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -48
  201. package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts +0 -18
  202. package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
  203. package/script/deps/jsr.io/@std/assert/1.0.6/false.js +0 -25
  204. package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +0 -23
  205. package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
  206. package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.js +0 -56
  207. package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +0 -25
  208. package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
  209. package/script/deps/jsr.io/@std/assert/1.0.6/is_error.js +0 -57
  210. package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts +0 -18
  211. package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
  212. package/script/deps/jsr.io/@std/assert/1.0.6/match.js +0 -29
  213. package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +0 -20
  214. package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
  215. package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +0 -32
  216. package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +0 -18
  217. package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
  218. package/script/deps/jsr.io/@std/assert/1.0.6/not_match.js +0 -29
  219. package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +0 -23
  220. package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
  221. package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +0 -35
  222. package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
  223. package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
  224. package/script/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -162
  225. package/script/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts +0 -42
  226. package/script/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts.map +0 -1
  227. package/script/deps/jsr.io/@std/assert/1.0.6/rejects.js +0 -56
  228. package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +0 -24
  229. package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
  230. package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +0 -60
  231. package/script/deps/jsr.io/@std/expect/1.0.6/_assert_equals.d.ts +0 -20
  232. package/script/deps/jsr.io/@std/expect/1.0.6/_assert_equals.d.ts.map +0 -1
  233. package/script/deps/jsr.io/@std/expect/1.0.6/_assert_equals.js +0 -32
  234. package/script/deps/jsr.io/@std/expect/1.0.6/_assert_not_equals.d.ts +0 -17
  235. package/script/deps/jsr.io/@std/expect/1.0.6/_assert_not_equals.d.ts.map +0 -1
  236. package/script/deps/jsr.io/@std/expect/1.0.6/_assert_not_equals.js +0 -29
  237. package/script/deps/jsr.io/@std/expect/1.0.6/_assertion.d.ts +0 -3
  238. package/script/deps/jsr.io/@std/expect/1.0.6/_assertion.d.ts.map +0 -1
  239. package/script/deps/jsr.io/@std/expect/1.0.6/_assertion.js +0 -13
  240. package/script/deps/jsr.io/@std/expect/1.0.6/_asymmetric_matchers.d.ts +0 -41
  241. package/script/deps/jsr.io/@std/expect/1.0.6/_asymmetric_matchers.d.ts.map +0 -1
  242. package/script/deps/jsr.io/@std/expect/1.0.6/_asymmetric_matchers.js +0 -161
  243. package/script/deps/jsr.io/@std/expect/1.0.6/_build_message.d.ts +0 -6
  244. package/script/deps/jsr.io/@std/expect/1.0.6/_build_message.d.ts.map +0 -1
  245. package/script/deps/jsr.io/@std/expect/1.0.6/_build_message.js +0 -33
  246. package/script/deps/jsr.io/@std/expect/1.0.6/_custom_equality_tester.d.ts +0 -4
  247. package/script/deps/jsr.io/@std/expect/1.0.6/_custom_equality_tester.d.ts.map +0 -1
  248. package/script/deps/jsr.io/@std/expect/1.0.6/_custom_equality_tester.js +0 -15
  249. package/script/deps/jsr.io/@std/expect/1.0.6/_equal.d.ts +0 -9
  250. package/script/deps/jsr.io/@std/expect/1.0.6/_equal.d.ts.map +0 -1
  251. package/script/deps/jsr.io/@std/expect/1.0.6/_equal.js +0 -194
  252. package/script/deps/jsr.io/@std/expect/1.0.6/_extend.d.ts +0 -4
  253. package/script/deps/jsr.io/@std/expect/1.0.6/_extend.d.ts.map +0 -1
  254. package/script/deps/jsr.io/@std/expect/1.0.6/_extend.js +0 -15
  255. package/script/deps/jsr.io/@std/expect/1.0.6/_inspect_args.d.ts +0 -3
  256. package/script/deps/jsr.io/@std/expect/1.0.6/_inspect_args.d.ts.map +0 -1
  257. package/script/deps/jsr.io/@std/expect/1.0.6/_inspect_args.js +0 -17
  258. package/script/deps/jsr.io/@std/expect/1.0.6/_matchers.d.ts +0 -34
  259. package/script/deps/jsr.io/@std/expect/1.0.6/_matchers.d.ts.map +0 -1
  260. package/script/deps/jsr.io/@std/expect/1.0.6/_matchers.js +0 -598
  261. package/script/deps/jsr.io/@std/expect/1.0.6/_mock_util.d.ts +0 -11
  262. package/script/deps/jsr.io/@std/expect/1.0.6/_mock_util.d.ts.map +0 -1
  263. package/script/deps/jsr.io/@std/expect/1.0.6/_mock_util.js +0 -14
  264. package/script/deps/jsr.io/@std/expect/1.0.6/_types.d.ts +0 -838
  265. package/script/deps/jsr.io/@std/expect/1.0.6/_types.d.ts.map +0 -1
  266. package/script/deps/jsr.io/@std/expect/1.0.6/_types.js +0 -4
  267. package/script/deps/jsr.io/@std/expect/1.0.6/_utils.d.ts +0 -8
  268. package/script/deps/jsr.io/@std/expect/1.0.6/_utils.d.ts.map +0 -1
  269. package/script/deps/jsr.io/@std/expect/1.0.6/_utils.js +0 -166
  270. package/script/deps/jsr.io/@std/expect/1.0.6/expect.d.ts +0 -52
  271. package/script/deps/jsr.io/@std/expect/1.0.6/expect.d.ts.map +0 -1
  272. package/script/deps/jsr.io/@std/expect/1.0.6/expect.js +0 -445
  273. package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
  274. package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
  275. package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -106
  276. package/script/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +0 -82
  277. package/script/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +0 -1
  278. package/script/deps/jsr.io/@std/internal/1.0.4/build_message.js +0 -116
  279. package/script/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +0 -140
  280. package/script/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +0 -1
  281. package/script/deps/jsr.io/@std/internal/1.0.4/diff.js +0 -284
  282. package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +0 -99
  283. package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +0 -1
  284. package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.js +0 -186
  285. package/script/deps/jsr.io/@std/internal/1.0.4/format.d.ts +0 -2
  286. package/script/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +0 -1
  287. package/script/deps/jsr.io/@std/internal/1.0.4/format.js +0 -41
  288. package/script/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +0 -159
  289. package/script/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +0 -1
  290. package/script/deps/jsr.io/@std/internal/1.0.4/styles.js +0 -220
  291. package/script/deps/jsr.io/@std/internal/1.0.4/types.d.ts +0 -16
  292. package/script/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +0 -1
  293. package/script/deps/jsr.io/@std/internal/1.0.4/types.js +0 -3
  294. package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts +0 -74
  295. package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
  296. package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.js +0 -345
  297. package/script/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts +0 -731
  298. package/script/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts.map +0 -1
  299. package/script/deps/jsr.io/@std/testing/1.0.3/bdd.js +0 -587
  300. package/script/deps/jsr.io/@std/testing/1.0.3/mock.d.ts +0 -674
  301. package/script/deps/jsr.io/@std/testing/1.0.3/mock.d.ts.map +0 -1
  302. package/script/deps/jsr.io/@std/testing/1.0.3/mock.js +0 -1136
  303. package/script/src/ast/nodes/annotation.test.d.ts +0 -2
  304. package/script/src/ast/nodes/annotation.test.d.ts.map +0 -1
  305. package/script/src/ast/nodes/annotation.test.js +0 -58
  306. package/script/src/ast/nodes/argument.test.d.ts +0 -2
  307. package/script/src/ast/nodes/argument.test.d.ts.map +0 -1
  308. package/script/src/ast/nodes/argument.test.js +0 -35
  309. package/script/src/ast/nodes/call.test.d.ts +0 -2
  310. package/script/src/ast/nodes/call.test.d.ts.map +0 -1
  311. package/script/src/ast/nodes/call.test.js +0 -37
  312. package/script/src/ast/nodes/class.test.d.ts +0 -2
  313. package/script/src/ast/nodes/class.test.d.ts.map +0 -1
  314. package/script/src/ast/nodes/class.test.js +0 -221
  315. package/script/src/ast/nodes/constructor.test.d.ts +0 -2
  316. package/script/src/ast/nodes/constructor.test.d.ts.map +0 -1
  317. package/script/src/ast/nodes/constructor.test.js +0 -141
  318. package/script/src/ast/nodes/doc-tag.test.d.ts +0 -2
  319. package/script/src/ast/nodes/doc-tag.test.d.ts.map +0 -1
  320. package/script/src/ast/nodes/doc-tag.test.js +0 -69
  321. package/script/src/ast/nodes/doc.test.d.ts +0 -2
  322. package/script/src/ast/nodes/doc.test.d.ts.map +0 -1
  323. package/script/src/ast/nodes/doc.test.js +0 -35
  324. package/script/src/ast/nodes/enum-value.test.d.ts +0 -2
  325. package/script/src/ast/nodes/enum-value.test.d.ts.map +0 -1
  326. package/script/src/ast/nodes/enum-value.test.js +0 -117
  327. package/script/src/ast/nodes/enum.test.d.ts +0 -2
  328. package/script/src/ast/nodes/enum.test.d.ts.map +0 -1
  329. package/script/src/ast/nodes/enum.test.js +0 -131
  330. package/script/src/ast/nodes/function.test.d.ts +0 -2
  331. package/script/src/ast/nodes/function.test.d.ts.map +0 -1
  332. package/script/src/ast/nodes/function.test.js +0 -162
  333. package/script/src/ast/nodes/generic-parameter.test.d.ts +0 -2
  334. package/script/src/ast/nodes/generic-parameter.test.d.ts.map +0 -1
  335. package/script/src/ast/nodes/generic-parameter.test.js +0 -51
  336. package/script/src/ast/nodes/init-block.test.d.ts +0 -2
  337. package/script/src/ast/nodes/init-block.test.d.ts.map +0 -1
  338. package/script/src/ast/nodes/init-block.test.js +0 -30
  339. package/script/src/ast/nodes/interface.test.d.ts +0 -2
  340. package/script/src/ast/nodes/interface.test.d.ts.map +0 -1
  341. package/script/src/ast/nodes/interface.test.js +0 -123
  342. package/script/src/ast/nodes/object.test.d.ts +0 -2
  343. package/script/src/ast/nodes/object.test.d.ts.map +0 -1
  344. package/script/src/ast/nodes/object.test.js +0 -80
  345. package/script/src/ast/nodes/parameter.test.d.ts +0 -2
  346. package/script/src/ast/nodes/parameter.test.d.ts.map +0 -1
  347. package/script/src/ast/nodes/parameter.test.js +0 -154
  348. package/script/src/ast/nodes/property.test.d.ts +0 -2
  349. package/script/src/ast/nodes/property.test.d.ts.map +0 -1
  350. package/script/src/ast/nodes/property.test.js +0 -208
  351. package/script/src/ast/nodes/reference.test.d.ts +0 -2
  352. package/script/src/ast/nodes/reference.test.d.ts.map +0 -1
  353. package/script/src/ast/nodes/reference.test.js +0 -38
  354. package/script/src/ast/nodes/string.test.d.ts +0 -2
  355. package/script/src/ast/nodes/string.test.d.ts.map +0 -1
  356. package/script/src/ast/nodes/string.test.js +0 -50
  357. package/script/src/import-collection.test.d.ts +0 -2
  358. package/script/src/import-collection.test.d.ts.map +0 -1
  359. package/script/src/import-collection.test.js +0 -101
  360. package/script/tests/openapi-models.test.d.ts +0 -2
  361. package/script/tests/openapi-models.test.d.ts.map +0 -1
  362. package/script/tests/openapi-models.test.js +0 -48
  363. package/src/_dnt.test_polyfills.ts +0 -70
  364. package/src/_dnt.test_shims.ts +0 -64
  365. package/src/deps/jsr.io/@std/assert/1.0.6/assertion_error.ts +0 -31
  366. package/src/deps/jsr.io/@std/assert/1.0.6/equal.ts +0 -152
  367. package/src/deps/jsr.io/@std/assert/1.0.6/equals.ts +0 -52
  368. package/src/deps/jsr.io/@std/assert/1.0.6/false.ts +0 -26
  369. package/src/deps/jsr.io/@std/assert/1.0.6/instance_of.ts +0 -64
  370. package/src/deps/jsr.io/@std/assert/1.0.6/is_error.ts +0 -65
  371. package/src/deps/jsr.io/@std/assert/1.0.6/match.ts +0 -30
  372. package/src/deps/jsr.io/@std/assert/1.0.6/not_instance_of.ts +0 -33
  373. package/src/deps/jsr.io/@std/assert/1.0.6/not_match.ts +0 -30
  374. package/src/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.ts +0 -42
  375. package/src/deps/jsr.io/@std/assert/1.0.6/object_match.ts +0 -202
  376. package/src/deps/jsr.io/@std/assert/1.0.6/rejects.ts +0 -123
  377. package/src/deps/jsr.io/@std/assert/1.0.6/strict_equals.ts +0 -67
  378. package/src/deps/jsr.io/@std/expect/1.0.6/_assert_equals.ts +0 -38
  379. package/src/deps/jsr.io/@std/expect/1.0.6/_assert_not_equals.ts +0 -35
  380. package/src/deps/jsr.io/@std/expect/1.0.6/_assertion.ts +0 -13
  381. package/src/deps/jsr.io/@std/expect/1.0.6/_asymmetric_matchers.ts +0 -177
  382. package/src/deps/jsr.io/@std/expect/1.0.6/_build_message.ts +0 -51
  383. package/src/deps/jsr.io/@std/expect/1.0.6/_custom_equality_tester.ts +0 -19
  384. package/src/deps/jsr.io/@std/expect/1.0.6/_equal.ts +0 -229
  385. package/src/deps/jsr.io/@std/expect/1.0.6/_extend.ts +0 -16
  386. package/src/deps/jsr.io/@std/expect/1.0.6/_inspect_args.ts +0 -15
  387. package/src/deps/jsr.io/@std/expect/1.0.6/_matchers.ts +0 -828
  388. package/src/deps/jsr.io/@std/expect/1.0.6/_mock_util.ts +0 -22
  389. package/src/deps/jsr.io/@std/expect/1.0.6/_types.ts +0 -917
  390. package/src/deps/jsr.io/@std/expect/1.0.6/_utils.ts +0 -201
  391. package/src/deps/jsr.io/@std/expect/1.0.6/expect.ts +0 -529
  392. package/src/deps/jsr.io/@std/internal/1.0.4/assertion_state.ts +0 -111
  393. package/src/deps/jsr.io/@std/internal/1.0.4/build_message.ts +0 -134
  394. package/src/deps/jsr.io/@std/internal/1.0.4/diff.ts +0 -317
  395. package/src/deps/jsr.io/@std/internal/1.0.4/diff_str.ts +0 -204
  396. package/src/deps/jsr.io/@std/internal/1.0.4/format.ts +0 -39
  397. package/src/deps/jsr.io/@std/internal/1.0.4/styles.ts +0 -233
  398. package/src/deps/jsr.io/@std/internal/1.0.4/types.ts +0 -18
  399. package/src/deps/jsr.io/@std/testing/1.0.3/_test_suite.ts +0 -389
  400. package/src/deps/jsr.io/@std/testing/1.0.3/bdd.ts +0 -1202
  401. package/src/deps/jsr.io/@std/testing/1.0.3/mock.ts +0 -1839
  402. package/src/mod.ts +0 -8
  403. package/src/src/assets.ts +0 -9
  404. package/src/src/ast/_index.ts +0 -66
  405. package/src/src/ast/common.ts +0 -1
  406. package/src/src/ast/index.ts +0 -1
  407. package/src/src/ast/node.ts +0 -10
  408. package/src/src/ast/nodes/annotation.test.ts +0 -69
  409. package/src/src/ast/nodes/annotation.ts +0 -79
  410. package/src/src/ast/nodes/argument.test.ts +0 -41
  411. package/src/src/ast/nodes/argument.ts +0 -62
  412. package/src/src/ast/nodes/call.test.ts +0 -44
  413. package/src/src/ast/nodes/call.ts +0 -66
  414. package/src/src/ast/nodes/class.test.ts +0 -274
  415. package/src/src/ast/nodes/class.ts +0 -178
  416. package/src/src/ast/nodes/collection-literal.ts +0 -49
  417. package/src/src/ast/nodes/constructor.test.ts +0 -178
  418. package/src/src/ast/nodes/constructor.ts +0 -126
  419. package/src/src/ast/nodes/doc-tag.test.ts +0 -84
  420. package/src/src/ast/nodes/doc-tag.ts +0 -138
  421. package/src/src/ast/nodes/doc.test.ts +0 -42
  422. package/src/src/ast/nodes/doc.ts +0 -111
  423. package/src/src/ast/nodes/enum-value.test.ts +0 -146
  424. package/src/src/ast/nodes/enum-value.ts +0 -100
  425. package/src/src/ast/nodes/enum.test.ts +0 -167
  426. package/src/src/ast/nodes/enum.ts +0 -163
  427. package/src/src/ast/nodes/function.test.ts +0 -194
  428. package/src/src/ast/nodes/function.ts +0 -176
  429. package/src/src/ast/nodes/generic-parameter.test.ts +0 -60
  430. package/src/src/ast/nodes/generic-parameter.ts +0 -54
  431. package/src/src/ast/nodes/init-block.test.ts +0 -36
  432. package/src/src/ast/nodes/init-block.ts +0 -38
  433. package/src/src/ast/nodes/interface.test.ts +0 -151
  434. package/src/src/ast/nodes/interface.ts +0 -133
  435. package/src/src/ast/nodes/lambda-type.ts +0 -68
  436. package/src/src/ast/nodes/lambda.ts +0 -68
  437. package/src/src/ast/nodes/object.test.ts +0 -101
  438. package/src/src/ast/nodes/object.ts +0 -102
  439. package/src/src/ast/nodes/parameter.test.ts +0 -191
  440. package/src/src/ast/nodes/parameter.ts +0 -118
  441. package/src/src/ast/nodes/property.test.ts +0 -253
  442. package/src/src/ast/nodes/property.ts +0 -225
  443. package/src/src/ast/nodes/reference.test.ts +0 -47
  444. package/src/src/ast/nodes/reference.ts +0 -178
  445. package/src/src/ast/nodes/string.test.ts +0 -61
  446. package/src/src/ast/nodes/string.ts +0 -114
  447. package/src/src/ast/nodes/types.ts +0 -23
  448. package/src/src/ast/references/index.ts +0 -8
  449. package/src/src/ast/references/jackson.ts +0 -16
  450. package/src/src/ast/references/jakarta.ts +0 -10
  451. package/src/src/ast/references/java.ts +0 -19
  452. package/src/src/ast/references/kotlin.ts +0 -40
  453. package/src/src/ast/references/okhttp3.ts +0 -5
  454. package/src/src/ast/references/reactor.ts +0 -5
  455. package/src/src/ast/references/spring.ts +0 -58
  456. package/src/src/ast/references/swagger.ts +0 -19
  457. package/src/src/ast/utils/get-kotlin-builder-options.ts +0 -19
  458. package/src/src/ast/utils/to-kt-node.ts +0 -31
  459. package/src/src/ast/utils/write-kt-annotations.ts +0 -15
  460. package/src/src/ast/utils/write-kt-arguments.ts +0 -45
  461. package/src/src/ast/utils/write-kt-enum-values.ts +0 -27
  462. package/src/src/ast/utils/write-kt-generic-parameters.ts +0 -12
  463. package/src/src/ast/utils/write-kt-members.ts +0 -25
  464. package/src/src/ast/utils/write-kt-node.ts +0 -37
  465. package/src/src/ast/utils/write-kt-parameters.ts +0 -25
  466. package/src/src/common-results.ts +0 -4
  467. package/src/src/config.ts +0 -39
  468. package/src/src/file-builder.ts +0 -108
  469. package/src/src/generators/file-generator.ts +0 -29
  470. package/src/src/generators/index.ts +0 -4
  471. package/src/src/generators/models/args.ts +0 -128
  472. package/src/src/generators/models/index.ts +0 -4
  473. package/src/src/generators/models/model-generator.ts +0 -602
  474. package/src/src/generators/models/models-generator.ts +0 -65
  475. package/src/src/generators/models/models.ts +0 -95
  476. package/src/src/generators/services/okhttp3-clients/args.ts +0 -78
  477. package/src/src/generators/services/okhttp3-clients/index.ts +0 -4
  478. package/src/src/generators/services/okhttp3-clients/models.ts +0 -60
  479. package/src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts +0 -557
  480. package/src/src/generators/services/okhttp3-clients/okhttp3-clients-generator.ts +0 -128
  481. package/src/src/generators/services/okhttp3-clients/refs.ts +0 -55
  482. package/src/src/generators/services/spring-controllers/args.ts +0 -71
  483. package/src/src/generators/services/spring-controllers/index.ts +0 -4
  484. package/src/src/generators/services/spring-controllers/models.ts +0 -58
  485. package/src/src/generators/services/spring-controllers/spring-controller-generator.ts +0 -605
  486. package/src/src/generators/services/spring-controllers/spring-controllers-generator.ts +0 -70
  487. package/src/src/import-collection.test.ts +0 -116
  488. package/src/src/import-collection.ts +0 -98
  489. package/src/src/types.ts +0 -3
  490. package/src/src/utils.ts +0 -39
  491. package/src/tests/openapi-models.test.ts +0 -63
  492. package/test_runner.js +0 -227
@@ -1,180 +0,0 @@
1
- import { diff } from "./diff.js";
2
- /**
3
- * Unescape invisible characters.
4
- *
5
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#escape_sequences}
6
- *
7
- * @param string String to unescape.
8
- *
9
- * @returns Unescaped string.
10
- *
11
- * @example Usage
12
- * ```ts
13
- * import { unescape } from "@std/internal/diff-str";
14
- * import { assertEquals } from "@std/assert";
15
- *
16
- * assertEquals(unescape("Hello\nWorld"), "Hello\\n\nWorld");
17
- * ```
18
- */
19
- export function unescape(string) {
20
- return string
21
- .replaceAll("\b", "\\b")
22
- .replaceAll("\f", "\\f")
23
- .replaceAll("\t", "\\t")
24
- .replaceAll("\v", "\\v")
25
- // This does not remove line breaks
26
- .replaceAll(/\r\n|\r|\n/g, (str) => str === "\r" ? "\\r" : str === "\n" ? "\\n\n" : "\\r\\n\r\n");
27
- }
28
- const WHITESPACE_SYMBOLS = /([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/;
29
- /**
30
- * Tokenizes a string into an array of tokens.
31
- *
32
- * @param string The string to tokenize.
33
- * @param wordDiff If true, performs word-based tokenization. Default is false.
34
- *
35
- * @returns An array of tokens.
36
- *
37
- * @example Usage
38
- * ```ts
39
- * import { tokenize } from "@std/internal/diff-str";
40
- * import { assertEquals } from "@std/assert";
41
- *
42
- * assertEquals(tokenize("Hello\nWorld"), ["Hello\n", "World"]);
43
- * ```
44
- */
45
- export function tokenize(string, wordDiff = false) {
46
- if (wordDiff) {
47
- return string
48
- .split(WHITESPACE_SYMBOLS)
49
- .filter((token) => token);
50
- }
51
- const tokens = [];
52
- const lines = string.split(/(\n|\r\n)/).filter((line) => line);
53
- for (const [i, line] of lines.entries()) {
54
- if (i % 2) {
55
- tokens[tokens.length - 1] += line;
56
- }
57
- else {
58
- tokens.push(line);
59
- }
60
- }
61
- return tokens;
62
- }
63
- /**
64
- * Create details by filtering relevant word-diff for current line and merge
65
- * "space-diff" if surrounded by word-diff for cleaner displays.
66
- *
67
- * @param line Current line
68
- * @param tokens Word-diff tokens
69
- *
70
- * @returns Array of diff results.
71
- *
72
- * @example Usage
73
- * ```ts
74
- * import { createDetails } from "@std/internal/diff-str";
75
- * import { assertEquals } from "@std/assert";
76
- *
77
- * const tokens = [
78
- * { type: "added", value: "a" },
79
- * { type: "removed", value: "b" },
80
- * { type: "common", value: "c" },
81
- * ] as const;
82
- * assertEquals(
83
- * createDetails({ type: "added", value: "a" }, [...tokens]),
84
- * [{ type: "added", value: "a" }, { type: "common", value: "c" }]
85
- * );
86
- * ```
87
- */
88
- export function createDetails(line, tokens) {
89
- return tokens.filter(({ type }) => type === line.type || type === "common")
90
- .map((result, i, t) => {
91
- var _a;
92
- const token = t[i - 1];
93
- if ((result.type === "common") && token &&
94
- (token.type === ((_a = t[i + 1]) === null || _a === void 0 ? void 0 : _a.type)) && /\s+/.test(result.value)) {
95
- return {
96
- ...result,
97
- type: token.type,
98
- };
99
- }
100
- return result;
101
- });
102
- }
103
- const NON_WHITESPACE_REGEXP = /\S/;
104
- /**
105
- * Renders the differences between the actual and expected strings. Partially
106
- * inspired from {@link https://github.com/kpdecker/jsdiff}.
107
- *
108
- * @param A Actual string
109
- * @param B Expected string
110
- *
111
- * @returns Array of diff results.
112
- *
113
- * @example Usage
114
- * ```ts
115
- * import { diffStr } from "@std/internal/diff-str";
116
- * import { assertEquals } from "@std/assert";
117
- *
118
- * assertEquals(diffStr("Hello!", "Hello"), [
119
- * {
120
- * type: "removed",
121
- * value: "Hello!\n",
122
- * details: [
123
- * { type: "common", value: "Hello" },
124
- * { type: "removed", value: "!" },
125
- * { type: "common", value: "\n" }
126
- * ]
127
- * },
128
- * {
129
- * type: "added",
130
- * value: "Hello\n",
131
- * details: [
132
- * { type: "common", value: "Hello" },
133
- * { type: "common", value: "\n" }
134
- * ]
135
- * }
136
- * ]);
137
- * ```
138
- */
139
- export function diffStr(A, B) {
140
- // Compute multi-line diff
141
- const diffResult = diff(tokenize(`${unescape(A)}\n`), tokenize(`${unescape(B)}\n`));
142
- const added = [];
143
- const removed = [];
144
- for (const result of diffResult) {
145
- if (result.type === "added") {
146
- added.push(result);
147
- }
148
- if (result.type === "removed") {
149
- removed.push(result);
150
- }
151
- }
152
- // Compute word-diff
153
- const hasMoreRemovedLines = added.length < removed.length;
154
- const aLines = hasMoreRemovedLines ? added : removed;
155
- const bLines = hasMoreRemovedLines ? removed : added;
156
- for (const a of aLines) {
157
- let tokens = [];
158
- let b;
159
- // Search another diff line with at least one common token
160
- while (bLines.length) {
161
- b = bLines.shift();
162
- const tokenized = [
163
- tokenize(a.value, true),
164
- tokenize(b.value, true),
165
- ];
166
- if (hasMoreRemovedLines)
167
- tokenized.reverse();
168
- tokens = diff(tokenized[0], tokenized[1]);
169
- if (tokens.some(({ type, value }) => type === "common" && NON_WHITESPACE_REGEXP.test(value))) {
170
- break;
171
- }
172
- }
173
- // Register word-diff details
174
- a.details = createDetails(a, tokens);
175
- if (b) {
176
- b.details = createDetails(b, tokens);
177
- }
178
- }
179
- return diffResult;
180
- }
@@ -1,2 +0,0 @@
1
- export declare function format(v: unknown): string;
2
- //# sourceMappingURL=format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.4/format.ts"],"names":[],"mappings":"AAuBA,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAezC"}
@@ -1,37 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- /**
4
- * Converts the input into a string. Objects, Sets and Maps are sorted so as to
5
- * make tests less flaky.
6
- *
7
- * @param v Value to be formatted
8
- *
9
- * @returns The formatted string
10
- *
11
- * @example Usage
12
- * ```ts
13
- * import { format } from "@std/internal/format";
14
- * import { assertEquals } from "@std/assert";
15
- *
16
- * assertEquals(format({ a: 1, b: 2 }), "{\n a: 1,\n b: 2,\n}");
17
- * assertEquals(format(new Set([1, 2])), "Set(2) {\n 1,\n 2,\n}");
18
- * assertEquals(format(new Map([[1, 2]])), "Map(1) {\n 1 => 2,\n}");
19
- * ```
20
- */
21
- import * as dntShim from "../../../../../_dnt.test_shims.js";
22
- export function format(v) {
23
- // deno-lint-ignore no-explicit-any
24
- const { Deno } = dntShim.dntGlobalThis;
25
- return typeof (Deno === null || Deno === void 0 ? void 0 : Deno.inspect) === "function"
26
- ? Deno.inspect(v, {
27
- depth: Infinity,
28
- sorted: true,
29
- trailingComma: true,
30
- compact: false,
31
- iterableLimit: Infinity,
32
- // getters should be true in assertEquals.
33
- getters: true,
34
- strAbbreviateSize: Infinity,
35
- })
36
- : `"${String(v).replace(/(?=["\\])/g, "\\")}"`;
37
- }
@@ -1,159 +0,0 @@
1
- /**
2
- * Sets the style of text to be printed to bold.
3
- *
4
- * Disable by setting the `NO_COLOR` environmental variable.
5
- *
6
- * @param str Text to make bold
7
- *
8
- * @returns Bold text for printing
9
- *
10
- * @example Usage
11
- * ```ts no-assert
12
- * import { bold } from "@std/internal/styles";
13
- *
14
- * console.log(bold("Hello, world!")); // Prints "Hello, world!" in bold
15
- * ```
16
- */
17
- export declare function bold(str: string): string;
18
- /**
19
- * Sets the color of text to be printed to red.
20
- *
21
- * Disable by setting the `NO_COLOR` environmental variable.
22
- *
23
- * @param str Text to make red
24
- *
25
- * @returns Red text for printing
26
- *
27
- * @example Usage
28
- * ```ts no-assert
29
- * import { red } from "@std/internal/styles";
30
- *
31
- * console.log(red("Hello, world!")); // Prints "Hello, world!" in red
32
- * ```
33
- */
34
- export declare function red(str: string): string;
35
- /**
36
- * Sets the color of text to be printed to green.
37
- *
38
- * Disable by setting the `NO_COLOR` environmental variable.
39
- *
40
- * @param str Text to make green
41
- *
42
- * @returns Green text for print
43
- *
44
- * @example Usage
45
- * ```ts no-assert
46
- * import { green } from "@std/internal/styles";
47
- *
48
- * console.log(green("Hello, world!")); // Prints "Hello, world!" in green
49
- * ```
50
- */
51
- export declare function green(str: string): string;
52
- /**
53
- * Sets the color of text to be printed to yellow.
54
- *
55
- * Disable by setting the `NO_COLOR` environmental variable.
56
- *
57
- * @param str Text to make yellow
58
- *
59
- * @returns Yellow text for print
60
- *
61
- * @example Usage
62
- * ```ts no-assert
63
- * import { yellow } from "@std/internal/styles";
64
- *
65
- * console.log(yellow("Hello, world!")); // Prints "Hello, world!" in yellow
66
- * ```
67
- */
68
- export declare function yellow(str: string): string;
69
- /**
70
- * Sets the color of text to be printed to white.
71
- *
72
- * @param str Text to make white
73
- *
74
- * @returns White text for print
75
- *
76
- * @example Usage
77
- * ```ts no-assert
78
- * import { white } from "@std/internal/styles";
79
- *
80
- * console.log(white("Hello, world!")); // Prints "Hello, world!" in white
81
- * ```
82
- */
83
- export declare function white(str: string): string;
84
- /**
85
- * Sets the color of text to be printed to gray.
86
- *
87
- * @param str Text to make gray
88
- *
89
- * @returns Gray text for print
90
- *
91
- * @example Usage
92
- * ```ts no-assert
93
- * import { gray } from "@std/internal/styles";
94
- *
95
- * console.log(gray("Hello, world!")); // Prints "Hello, world!" in gray
96
- * ```
97
- */
98
- export declare function gray(str: string): string;
99
- /**
100
- * Sets the color of text to be printed to bright-black.
101
- *
102
- * @param str Text to make bright-black
103
- *
104
- * @returns Bright-black text for print
105
- *
106
- * @example Usage
107
- * ```ts no-assert
108
- * import { brightBlack } from "@std/internal/styles";
109
- *
110
- * console.log(brightBlack("Hello, world!")); // Prints "Hello, world!" in bright-black
111
- * ```
112
- */
113
- export declare function brightBlack(str: string): string;
114
- /**
115
- * Sets the background color of text to be printed to red.
116
- *
117
- * @param str Text to make its background red
118
- *
119
- * @returns Red background text for print
120
- *
121
- * @example Usage
122
- * ```ts no-assert
123
- * import { bgRed } from "@std/internal/styles";
124
- *
125
- * console.log(bgRed("Hello, world!")); // Prints "Hello, world!" with red background
126
- * ```
127
- */
128
- export declare function bgRed(str: string): string;
129
- /**
130
- * Sets the background color of text to be printed to green.
131
- *
132
- * @param str Text to make its background green
133
- *
134
- * @returns Green background text for print
135
- *
136
- * @example Usage
137
- * ```ts no-assert
138
- * import { bgGreen } from "@std/internal/styles";
139
- *
140
- * console.log(bgGreen("Hello, world!")); // Prints "Hello, world!" with green background
141
- * ```
142
- */
143
- export declare function bgGreen(str: string): string;
144
- /**
145
- * Remove ANSI escape codes from the string.
146
- *
147
- * @param string Text to remove ANSI escape codes from
148
- *
149
- * @returns Text without ANSI escape codes
150
- *
151
- * @example Usage
152
- * ```ts no-assert
153
- * import { red, stripAnsiCode } from "@std/internal/styles";
154
- *
155
- * console.log(stripAnsiCode(red("Hello, world!"))); // Prints "Hello, world!"
156
- * ```
157
- */
158
- export declare function stripAnsiCode(string: string): string;
159
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.4/styles.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
@@ -1,207 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- // A module to print ANSI terminal colors. Inspired by chalk, kleur, and colors
4
- // on npm.
5
- // This code is vendored from `fmt/colors.ts`.
6
- // deno-lint-ignore no-explicit-any
7
- import * as dntShim from "../../../../../_dnt.test_shims.js";
8
- const { Deno } = dntShim.dntGlobalThis;
9
- const noColor = typeof (Deno === null || Deno === void 0 ? void 0 : Deno.noColor) === "boolean"
10
- ? Deno.noColor
11
- : false;
12
- const enabled = !noColor;
13
- function code(open, close) {
14
- return {
15
- open: `\x1b[${open.join(";")}m`,
16
- close: `\x1b[${close}m`,
17
- regexp: new RegExp(`\\x1b\\[${close}m`, "g"),
18
- };
19
- }
20
- function run(str, code) {
21
- return enabled
22
- ? `${code.open}${str.replace(code.regexp, code.open)}${code.close}`
23
- : str;
24
- }
25
- /**
26
- * Sets the style of text to be printed to bold.
27
- *
28
- * Disable by setting the `NO_COLOR` environmental variable.
29
- *
30
- * @param str Text to make bold
31
- *
32
- * @returns Bold text for printing
33
- *
34
- * @example Usage
35
- * ```ts no-assert
36
- * import { bold } from "@std/internal/styles";
37
- *
38
- * console.log(bold("Hello, world!")); // Prints "Hello, world!" in bold
39
- * ```
40
- */
41
- export function bold(str) {
42
- return run(str, code([1], 22));
43
- }
44
- /**
45
- * Sets the color of text to be printed to red.
46
- *
47
- * Disable by setting the `NO_COLOR` environmental variable.
48
- *
49
- * @param str Text to make red
50
- *
51
- * @returns Red text for printing
52
- *
53
- * @example Usage
54
- * ```ts no-assert
55
- * import { red } from "@std/internal/styles";
56
- *
57
- * console.log(red("Hello, world!")); // Prints "Hello, world!" in red
58
- * ```
59
- */
60
- export function red(str) {
61
- return run(str, code([31], 39));
62
- }
63
- /**
64
- * Sets the color of text to be printed to green.
65
- *
66
- * Disable by setting the `NO_COLOR` environmental variable.
67
- *
68
- * @param str Text to make green
69
- *
70
- * @returns Green text for print
71
- *
72
- * @example Usage
73
- * ```ts no-assert
74
- * import { green } from "@std/internal/styles";
75
- *
76
- * console.log(green("Hello, world!")); // Prints "Hello, world!" in green
77
- * ```
78
- */
79
- export function green(str) {
80
- return run(str, code([32], 39));
81
- }
82
- /**
83
- * Sets the color of text to be printed to yellow.
84
- *
85
- * Disable by setting the `NO_COLOR` environmental variable.
86
- *
87
- * @param str Text to make yellow
88
- *
89
- * @returns Yellow text for print
90
- *
91
- * @example Usage
92
- * ```ts no-assert
93
- * import { yellow } from "@std/internal/styles";
94
- *
95
- * console.log(yellow("Hello, world!")); // Prints "Hello, world!" in yellow
96
- * ```
97
- */
98
- export function yellow(str) {
99
- return run(str, code([33], 39));
100
- }
101
- /**
102
- * Sets the color of text to be printed to white.
103
- *
104
- * @param str Text to make white
105
- *
106
- * @returns White text for print
107
- *
108
- * @example Usage
109
- * ```ts no-assert
110
- * import { white } from "@std/internal/styles";
111
- *
112
- * console.log(white("Hello, world!")); // Prints "Hello, world!" in white
113
- * ```
114
- */
115
- export function white(str) {
116
- return run(str, code([37], 39));
117
- }
118
- /**
119
- * Sets the color of text to be printed to gray.
120
- *
121
- * @param str Text to make gray
122
- *
123
- * @returns Gray text for print
124
- *
125
- * @example Usage
126
- * ```ts no-assert
127
- * import { gray } from "@std/internal/styles";
128
- *
129
- * console.log(gray("Hello, world!")); // Prints "Hello, world!" in gray
130
- * ```
131
- */
132
- export function gray(str) {
133
- return brightBlack(str);
134
- }
135
- /**
136
- * Sets the color of text to be printed to bright-black.
137
- *
138
- * @param str Text to make bright-black
139
- *
140
- * @returns Bright-black text for print
141
- *
142
- * @example Usage
143
- * ```ts no-assert
144
- * import { brightBlack } from "@std/internal/styles";
145
- *
146
- * console.log(brightBlack("Hello, world!")); // Prints "Hello, world!" in bright-black
147
- * ```
148
- */
149
- export function brightBlack(str) {
150
- return run(str, code([90], 39));
151
- }
152
- /**
153
- * Sets the background color of text to be printed to red.
154
- *
155
- * @param str Text to make its background red
156
- *
157
- * @returns Red background text for print
158
- *
159
- * @example Usage
160
- * ```ts no-assert
161
- * import { bgRed } from "@std/internal/styles";
162
- *
163
- * console.log(bgRed("Hello, world!")); // Prints "Hello, world!" with red background
164
- * ```
165
- */
166
- export function bgRed(str) {
167
- return run(str, code([41], 49));
168
- }
169
- /**
170
- * Sets the background color of text to be printed to green.
171
- *
172
- * @param str Text to make its background green
173
- *
174
- * @returns Green background text for print
175
- *
176
- * @example Usage
177
- * ```ts no-assert
178
- * import { bgGreen } from "@std/internal/styles";
179
- *
180
- * console.log(bgGreen("Hello, world!")); // Prints "Hello, world!" with green background
181
- * ```
182
- */
183
- export function bgGreen(str) {
184
- return run(str, code([42], 49));
185
- }
186
- // https://github.com/chalk/ansi-regex/blob/02fa893d619d3da85411acc8fd4e2eea0e95a9d9/index.js
187
- const ANSI_PATTERN = new RegExp([
188
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
189
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TXZcf-nq-uy=><~]))",
190
- ].join("|"), "g");
191
- /**
192
- * Remove ANSI escape codes from the string.
193
- *
194
- * @param string Text to remove ANSI escape codes from
195
- *
196
- * @returns Text without ANSI escape codes
197
- *
198
- * @example Usage
199
- * ```ts no-assert
200
- * import { red, stripAnsiCode } from "@std/internal/styles";
201
- *
202
- * console.log(stripAnsiCode(red("Hello, world!"))); // Prints "Hello, world!"
203
- * ```
204
- */
205
- export function stripAnsiCode(string) {
206
- return string.replace(ANSI_PATTERN, "");
207
- }
@@ -1,16 +0,0 @@
1
- /** Ways that lines in a diff can be different. */
2
- export type DiffType = "removed" | "common" | "added";
3
- /**
4
- * Represents the result of a diff operation.
5
- *
6
- * @typeParam T The type of the value in the diff result.
7
- */
8
- export interface DiffResult<T> {
9
- /** The type of the diff. */
10
- type: DiffType;
11
- /** The value of the diff. */
12
- value: T;
13
- /** The details of the diff. */
14
- details?: DiffResult<T>[];
15
- }
16
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.4/types.ts"],"names":[],"mappings":"AAEA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,CAAC,CAAC;IACT,+BAA+B;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B"}
@@ -1,2 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- export {};
@@ -1,74 +0,0 @@
1
- /** The options for creating a test suite with the describe function. */
2
- import * as dntShim from "../../../../../_dnt.test_shims.js";
3
- export interface DescribeDefinition<T> extends Omit<dntShim.Deno.TestDefinition, "fn"> {
4
- /** The body of the test suite */
5
- fn?: () => void | undefined;
6
- /**
7
- * The `describe` function returns a `TestSuite` representing the group of tests.
8
- * If `describe` is called within another `describe` calls `fn`, the suite will default to that parent `describe` calls returned `TestSuite`.
9
- * If `describe` is not called within another `describe` calls `fn`, the suite will default to the `TestSuite` representing the global group of tests.
10
- */
11
- suite?: TestSuite<T>;
12
- /** Run some shared setup before all of the tests in the suite. */
13
- beforeAll?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[];
14
- /** Run some shared teardown after all of the tests in the suite. */
15
- afterAll?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[];
16
- /** Run some shared setup before each test in the suite. */
17
- beforeEach?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[];
18
- /** Run some shared teardown after each test in the suite. */
19
- afterEach?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[];
20
- }
21
- /** The options for creating an individual test case with the it function. */
22
- export interface ItDefinition<T> extends Omit<dntShim.Deno.TestDefinition, "fn"> {
23
- /** The body of the test case */
24
- fn: (this: T, t: dntShim.Deno.TestContext) => void | Promise<void>;
25
- /**
26
- * The `describe` function returns a `TestSuite` representing the group of tests.
27
- * If `it` is called within a `describe` calls `fn`, the suite will default to that parent `describe` calls returned `TestSuite`.
28
- * If `it` is not called within a `describe` calls `fn`, the suite will default to the `TestSuite` representing the global group of tests.
29
- */
30
- suite?: TestSuite<T>;
31
- }
32
- /** The names of all the different types of hooks. */
33
- export type HookNames = "beforeAll" | "afterAll" | "beforeEach" | "afterEach";
34
- /**
35
- * A group of tests.
36
- */
37
- export interface TestSuite<T> {
38
- /** The symbol to use for grouping the test suite */
39
- symbol: symbol;
40
- }
41
- /**
42
- * An internal representation of a group of tests.
43
- */
44
- export declare class TestSuiteInternal<T> implements TestSuite<T> {
45
- symbol: symbol;
46
- protected describe: DescribeDefinition<T>;
47
- protected steps: (TestSuiteInternal<T> | ItDefinition<T>)[];
48
- protected hasOnlyStep: boolean;
49
- constructor(describe: DescribeDefinition<T>);
50
- /** Stores how many test suites are executing. */
51
- static runningCount: number;
52
- /** If a test has been registered yet. Block adding global hooks if a test has been registered. */
53
- static started: boolean;
54
- /** A map of all test suites by symbol. */
55
- static suites: Map<symbol, TestSuiteInternal<any>>;
56
- /** The current test suite being registered. */
57
- static current: TestSuiteInternal<any> | null;
58
- /** The stack of tests that are actively running. */
59
- static active: symbol[];
60
- /** This is used internally for testing this module. */
61
- static reset(): void;
62
- /** This is used internally to register tests. */
63
- static registerTest(options: dntShim.Deno.TestDefinition): void;
64
- /** Updates all steps within top level suite to have ignore set to true if only is not set to true on step. */
65
- static addingOnlyStep<T>(suite: TestSuiteInternal<T>): void;
66
- /** This is used internally to add steps to a test suite. */
67
- static addStep<T>(suite: TestSuiteInternal<T>, step: TestSuiteInternal<T> | ItDefinition<T>): void;
68
- /** This is used internally to add hooks to a test suite. */
69
- static setHook<T>(suite: TestSuiteInternal<T>, name: HookNames, fn: (this: T) => void | Promise<void>): void;
70
- /** This is used internally to run all steps for a test suite. */
71
- static run<T>(suite: TestSuiteInternal<T>, context: T, t: dntShim.Deno.TestContext): Promise<void>;
72
- static runTest<T>(t: dntShim.Deno.TestContext, fn: (this: T, t: dntShim.Deno.TestContext) => void | Promise<void>, context: T, activeIndex?: number): Promise<void>;
73
- }
74
- //# sourceMappingURL=_test_suite.d.ts.map