@skmtc/core 0.0.226 → 0.0.227

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 (731) hide show
  1. package/package.json +10 -5
  2. package/script/_dnt.polyfills.d.ts +12 -0
  3. package/script/_dnt.polyfills.d.ts.map +1 -0
  4. package/script/_dnt.polyfills.js +16 -0
  5. package/script/_dnt.shims.d.ts +6 -0
  6. package/script/_dnt.shims.d.ts.map +1 -0
  7. package/script/_dnt.shims.js +65 -0
  8. package/script/context/CoreContext.d.ts +81 -0
  9. package/script/context/CoreContext.d.ts.map +1 -0
  10. package/script/context/CoreContext.js +246 -0
  11. package/script/context/GenerateContext.d.ts +92 -0
  12. package/script/context/GenerateContext.d.ts.map +1 -0
  13. package/script/context/GenerateContext.js +177 -0
  14. package/script/context/LogStore.d.ts +25 -0
  15. package/script/context/LogStore.d.ts.map +1 -0
  16. package/script/context/LogStore.js +57 -0
  17. package/script/context/ParseContext.d.ts +15 -0
  18. package/script/context/ParseContext.d.ts.map +1 -0
  19. package/script/context/ParseContext.js +22 -0
  20. package/script/context/RenderContext.d.ts +50 -0
  21. package/script/context/RenderContext.d.ts.map +1 -0
  22. package/script/context/RenderContext.js +253 -0
  23. package/script/context/Trail.d.ts +26 -0
  24. package/script/context/Trail.d.ts.map +1 -0
  25. package/script/context/Trail.js +108 -0
  26. package/script/context/types.d.ts +19 -0
  27. package/script/context/types.d.ts.map +1 -0
  28. package/script/context/types.js +2 -0
  29. package/script/deps/jsr.io/@std/encoding/1.0.1/_validate_binary_like.d.ts +2 -0
  30. package/script/deps/jsr.io/@std/encoding/1.0.1/_validate_binary_like.d.ts.map +1 -0
  31. package/script/deps/jsr.io/@std/encoding/1.0.1/_validate_binary_like.js +29 -0
  32. package/script/deps/jsr.io/@std/encoding/1.0.1/ascii85.d.ts +59 -0
  33. package/script/deps/jsr.io/@std/encoding/1.0.1/ascii85.d.ts.map +1 -0
  34. package/script/deps/jsr.io/@std/encoding/1.0.1/ascii85.js +156 -0
  35. package/script/deps/jsr.io/@std/encoding/1.0.1/base32.d.ts +38 -0
  36. package/script/deps/jsr.io/@std/encoding/1.0.1/base32.d.ts.map +1 -0
  37. package/script/deps/jsr.io/@std/encoding/1.0.1/base32.js +228 -0
  38. package/script/deps/jsr.io/@std/encoding/1.0.1/base58.d.ts +38 -0
  39. package/script/deps/jsr.io/@std/encoding/1.0.1/base58.d.ts.map +1 -0
  40. package/script/deps/jsr.io/@std/encoding/1.0.1/base58.js +135 -0
  41. package/script/deps/jsr.io/@std/encoding/1.0.1/base64.d.ts +38 -0
  42. package/script/deps/jsr.io/@std/encoding/1.0.1/base64.d.ts.map +1 -0
  43. package/script/deps/jsr.io/@std/encoding/1.0.1/base64.js +167 -0
  44. package/script/deps/jsr.io/@std/encoding/1.0.1/base64url.d.ts +38 -0
  45. package/script/deps/jsr.io/@std/encoding/1.0.1/base64url.d.ts.map +1 -0
  46. package/script/deps/jsr.io/@std/encoding/1.0.1/base64url.js +108 -0
  47. package/script/deps/jsr.io/@std/encoding/1.0.1/hex.d.ts +37 -0
  48. package/script/deps/jsr.io/@std/encoding/1.0.1/hex.d.ts.map +1 -0
  49. package/script/deps/jsr.io/@std/encoding/1.0.1/hex.js +113 -0
  50. package/script/deps/jsr.io/@std/encoding/1.0.1/mod.d.ts +22 -0
  51. package/script/deps/jsr.io/@std/encoding/1.0.1/mod.d.ts.map +1 -0
  52. package/script/deps/jsr.io/@std/encoding/1.0.1/mod.js +38 -0
  53. package/script/deps/jsr.io/@std/encoding/1.0.1/varint.d.ts +118 -0
  54. package/script/deps/jsr.io/@std/encoding/1.0.1/varint.d.ts.map +1 -0
  55. package/script/deps/jsr.io/@std/encoding/1.0.1/varint.js +212 -0
  56. package/script/deps/jsr.io/@std/path/1.0.0/_common/assert_path.d.ts +2 -0
  57. package/script/deps/jsr.io/@std/path/1.0.0/_common/assert_path.d.ts.map +1 -0
  58. package/script/deps/jsr.io/@std/path/1.0.0/_common/assert_path.js +10 -0
  59. package/script/deps/jsr.io/@std/path/1.0.0/_common/basename.d.ts +4 -0
  60. package/script/deps/jsr.io/@std/path/1.0.0/_common/basename.d.ts.map +1 -0
  61. package/script/deps/jsr.io/@std/path/1.0.0/_common/basename.js +45 -0
  62. package/script/deps/jsr.io/@std/path/1.0.0/_common/common.d.ts +2 -0
  63. package/script/deps/jsr.io/@std/path/1.0.0/_common/common.d.ts.map +1 -0
  64. package/script/deps/jsr.io/@std/path/1.0.0/_common/common.js +26 -0
  65. package/script/deps/jsr.io/@std/path/1.0.0/_common/constants.d.ts +40 -0
  66. package/script/deps/jsr.io/@std/path/1.0.0/_common/constants.d.ts.map +1 -0
  67. package/script/deps/jsr.io/@std/path/1.0.0/_common/constants.js +49 -0
  68. package/script/deps/jsr.io/@std/path/1.0.0/_common/dirname.d.ts +2 -0
  69. package/script/deps/jsr.io/@std/path/1.0.0/_common/dirname.d.ts.map +1 -0
  70. package/script/deps/jsr.io/@std/path/1.0.0/_common/dirname.js +11 -0
  71. package/script/deps/jsr.io/@std/path/1.0.0/_common/format.d.ts +4 -0
  72. package/script/deps/jsr.io/@std/path/1.0.0/_common/format.d.ts.map +1 -0
  73. package/script/deps/jsr.io/@std/path/1.0.0/_common/format.js +23 -0
  74. package/script/deps/jsr.io/@std/path/1.0.0/_common/from_file_url.d.ts +2 -0
  75. package/script/deps/jsr.io/@std/path/1.0.0/_common/from_file_url.d.ts.map +1 -0
  76. package/script/deps/jsr.io/@std/path/1.0.0/_common/from_file_url.js +12 -0
  77. package/script/deps/jsr.io/@std/path/1.0.0/_common/glob_to_reg_exp.d.ts +35 -0
  78. package/script/deps/jsr.io/@std/path/1.0.0/_common/glob_to_reg_exp.d.ts.map +1 -0
  79. package/script/deps/jsr.io/@std/path/1.0.0/_common/glob_to_reg_exp.js +237 -0
  80. package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize.d.ts +2 -0
  81. package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize.d.ts.map +1 -0
  82. package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize.js +11 -0
  83. package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize_string.d.ts +2 -0
  84. package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize_string.d.ts.map +1 -0
  85. package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize_string.js +80 -0
  86. package/script/deps/jsr.io/@std/path/1.0.0/_common/relative.d.ts +2 -0
  87. package/script/deps/jsr.io/@std/path/1.0.0/_common/relative.d.ts.map +1 -0
  88. package/script/deps/jsr.io/@std/path/1.0.0/_common/relative.js +12 -0
  89. package/script/deps/jsr.io/@std/path/1.0.0/_common/strip_trailing_separators.d.ts +2 -0
  90. package/script/deps/jsr.io/@std/path/1.0.0/_common/strip_trailing_separators.d.ts.map +1 -0
  91. package/script/deps/jsr.io/@std/path/1.0.0/_common/strip_trailing_separators.js +22 -0
  92. package/script/deps/jsr.io/@std/path/1.0.0/_common/to_file_url.d.ts +2 -0
  93. package/script/deps/jsr.io/@std/path/1.0.0/_common/to_file_url.d.ts.map +1 -0
  94. package/script/deps/jsr.io/@std/path/1.0.0/_common/to_file_url.js +18 -0
  95. package/script/deps/jsr.io/@std/path/1.0.0/_os.d.ts +2 -0
  96. package/script/deps/jsr.io/@std/path/1.0.0/_os.d.ts.map +1 -0
  97. package/script/deps/jsr.io/@std/path/1.0.0/_os.js +40 -0
  98. package/script/deps/jsr.io/@std/path/1.0.0/basename.d.ts +25 -0
  99. package/script/deps/jsr.io/@std/path/1.0.0/basename.d.ts.map +1 -0
  100. package/script/deps/jsr.io/@std/path/1.0.0/basename.js +36 -0
  101. package/script/deps/jsr.io/@std/path/1.0.0/common.d.ts +28 -0
  102. package/script/deps/jsr.io/@std/path/1.0.0/common.d.ts.map +1 -0
  103. package/script/deps/jsr.io/@std/path/1.0.0/common.js +36 -0
  104. package/script/deps/jsr.io/@std/path/1.0.0/constants.d.ts +15 -0
  105. package/script/deps/jsr.io/@std/path/1.0.0/constants.d.ts.map +1 -0
  106. package/script/deps/jsr.io/@std/path/1.0.0/constants.js +20 -0
  107. package/script/deps/jsr.io/@std/path/1.0.0/dirname.d.ts +20 -0
  108. package/script/deps/jsr.io/@std/path/1.0.0/dirname.d.ts.map +1 -0
  109. package/script/deps/jsr.io/@std/path/1.0.0/dirname.js +29 -0
  110. package/script/deps/jsr.io/@std/path/1.0.0/extname.d.ts +20 -0
  111. package/script/deps/jsr.io/@std/path/1.0.0/extname.d.ts.map +1 -0
  112. package/script/deps/jsr.io/@std/path/1.0.0/extname.js +29 -0
  113. package/script/deps/jsr.io/@std/path/1.0.0/format.d.ts +22 -0
  114. package/script/deps/jsr.io/@std/path/1.0.0/format.d.ts.map +1 -0
  115. package/script/deps/jsr.io/@std/path/1.0.0/format.js +30 -0
  116. package/script/deps/jsr.io/@std/path/1.0.0/from_file_url.d.ts +22 -0
  117. package/script/deps/jsr.io/@std/path/1.0.0/from_file_url.d.ts.map +1 -0
  118. package/script/deps/jsr.io/@std/path/1.0.0/from_file_url.js +31 -0
  119. package/script/deps/jsr.io/@std/path/1.0.0/glob_to_regexp.d.ts +77 -0
  120. package/script/deps/jsr.io/@std/path/1.0.0/glob_to_regexp.d.ts.map +1 -0
  121. package/script/deps/jsr.io/@std/path/1.0.0/glob_to_regexp.js +86 -0
  122. package/script/deps/jsr.io/@std/path/1.0.0/is_absolute.d.ts +22 -0
  123. package/script/deps/jsr.io/@std/path/1.0.0/is_absolute.d.ts.map +1 -0
  124. package/script/deps/jsr.io/@std/path/1.0.0/is_absolute.js +31 -0
  125. package/script/deps/jsr.io/@std/path/1.0.0/is_glob.d.ts +17 -0
  126. package/script/deps/jsr.io/@std/path/1.0.0/is_glob.d.ts.map +1 -0
  127. package/script/deps/jsr.io/@std/path/1.0.0/is_glob.js +45 -0
  128. package/script/deps/jsr.io/@std/path/1.0.0/join.d.ts +20 -0
  129. package/script/deps/jsr.io/@std/path/1.0.0/join.d.ts.map +1 -0
  130. package/script/deps/jsr.io/@std/path/1.0.0/join.js +29 -0
  131. package/script/deps/jsr.io/@std/path/1.0.0/join_globs.d.ts +28 -0
  132. package/script/deps/jsr.io/@std/path/1.0.0/join_globs.d.ts.map +1 -0
  133. package/script/deps/jsr.io/@std/path/1.0.0/join_globs.js +37 -0
  134. package/script/deps/jsr.io/@std/path/1.0.0/mod.d.ts +51 -0
  135. package/script/deps/jsr.io/@std/path/1.0.0/mod.d.ts.map +1 -0
  136. package/script/deps/jsr.io/@std/path/1.0.0/mod.js +70 -0
  137. package/script/deps/jsr.io/@std/path/1.0.0/normalize.d.ts +24 -0
  138. package/script/deps/jsr.io/@std/path/1.0.0/normalize.d.ts.map +1 -0
  139. package/script/deps/jsr.io/@std/path/1.0.0/normalize.js +33 -0
  140. package/script/deps/jsr.io/@std/path/1.0.0/normalize_glob.d.ts +29 -0
  141. package/script/deps/jsr.io/@std/path/1.0.0/normalize_glob.d.ts.map +1 -0
  142. package/script/deps/jsr.io/@std/path/1.0.0/normalize_glob.js +38 -0
  143. package/script/deps/jsr.io/@std/path/1.0.0/parse.d.ts +35 -0
  144. package/script/deps/jsr.io/@std/path/1.0.0/parse.d.ts.map +1 -0
  145. package/script/deps/jsr.io/@std/path/1.0.0/parse.js +42 -0
  146. package/script/deps/jsr.io/@std/path/1.0.0/posix/_util.d.ts +2 -0
  147. package/script/deps/jsr.io/@std/path/1.0.0/posix/_util.d.ts.map +1 -0
  148. package/script/deps/jsr.io/@std/path/1.0.0/posix/_util.js +11 -0
  149. package/script/deps/jsr.io/@std/path/1.0.0/posix/basename.d.ts +20 -0
  150. package/script/deps/jsr.io/@std/path/1.0.0/posix/basename.d.ts.map +1 -0
  151. package/script/deps/jsr.io/@std/path/1.0.0/posix/basename.js +32 -0
  152. package/script/deps/jsr.io/@std/path/1.0.0/posix/constants.d.ts +13 -0
  153. package/script/deps/jsr.io/@std/path/1.0.0/posix/constants.d.ts.map +1 -0
  154. package/script/deps/jsr.io/@std/path/1.0.0/posix/constants.js +17 -0
  155. package/script/deps/jsr.io/@std/path/1.0.0/posix/dirname.d.ts +17 -0
  156. package/script/deps/jsr.io/@std/path/1.0.0/posix/dirname.d.ts.map +1 -0
  157. package/script/deps/jsr.io/@std/path/1.0.0/posix/dirname.js +50 -0
  158. package/script/deps/jsr.io/@std/path/1.0.0/posix/extname.d.ts +18 -0
  159. package/script/deps/jsr.io/@std/path/1.0.0/posix/extname.d.ts.map +1 -0
  160. package/script/deps/jsr.io/@std/path/1.0.0/posix/extname.js +73 -0
  161. package/script/deps/jsr.io/@std/path/1.0.0/posix/format.d.ts +24 -0
  162. package/script/deps/jsr.io/@std/path/1.0.0/posix/format.d.ts.map +1 -0
  163. package/script/deps/jsr.io/@std/path/1.0.0/posix/format.js +31 -0
  164. package/script/deps/jsr.io/@std/path/1.0.0/posix/from_file_url.d.ts +16 -0
  165. package/script/deps/jsr.io/@std/path/1.0.0/posix/from_file_url.d.ts.map +1 -0
  166. package/script/deps/jsr.io/@std/path/1.0.0/posix/from_file_url.js +24 -0
  167. package/script/deps/jsr.io/@std/path/1.0.0/posix/glob_to_regexp.d.ts +72 -0
  168. package/script/deps/jsr.io/@std/path/1.0.0/posix/glob_to_regexp.d.ts.map +1 -0
  169. package/script/deps/jsr.io/@std/path/1.0.0/posix/glob_to_regexp.js +85 -0
  170. package/script/deps/jsr.io/@std/path/1.0.0/posix/is_absolute.d.ts +17 -0
  171. package/script/deps/jsr.io/@std/path/1.0.0/posix/is_absolute.d.ts.map +1 -0
  172. package/script/deps/jsr.io/@std/path/1.0.0/posix/is_absolute.js +26 -0
  173. package/script/deps/jsr.io/@std/path/1.0.0/posix/join.d.ts +17 -0
  174. package/script/deps/jsr.io/@std/path/1.0.0/posix/join.d.ts.map +1 -0
  175. package/script/deps/jsr.io/@std/path/1.0.0/posix/join.js +29 -0
  176. package/script/deps/jsr.io/@std/path/1.0.0/posix/join_globs.d.ts +20 -0
  177. package/script/deps/jsr.io/@std/path/1.0.0/posix/join_globs.d.ts.map +1 -0
  178. package/script/deps/jsr.io/@std/path/1.0.0/posix/join_globs.js +42 -0
  179. package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize.d.ts +19 -0
  180. package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize.d.ts.map +1 -0
  181. package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize.js +39 -0
  182. package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize_glob.d.ts +20 -0
  183. package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize_glob.d.ts.map +1 -0
  184. package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize_glob.js +34 -0
  185. package/script/deps/jsr.io/@std/path/1.0.0/posix/parse.d.ts +25 -0
  186. package/script/deps/jsr.io/@std/path/1.0.0/posix/parse.d.ts.map +1 -0
  187. package/script/deps/jsr.io/@std/path/1.0.0/posix/parse.js +118 -0
  188. package/script/deps/jsr.io/@std/path/1.0.0/posix/relative.d.ts +20 -0
  189. package/script/deps/jsr.io/@std/path/1.0.0/posix/relative.d.ts.map +1 -0
  190. package/script/deps/jsr.io/@std/path/1.0.0/posix/relative.js +109 -0
  191. package/script/deps/jsr.io/@std/path/1.0.0/posix/resolve.d.ts +17 -0
  192. package/script/deps/jsr.io/@std/path/1.0.0/posix/resolve.d.ts.map +1 -0
  193. package/script/deps/jsr.io/@std/path/1.0.0/posix/resolve.js +85 -0
  194. package/script/deps/jsr.io/@std/path/1.0.0/posix/to_file_url.d.ts +17 -0
  195. package/script/deps/jsr.io/@std/path/1.0.0/posix/to_file_url.d.ts.map +1 -0
  196. package/script/deps/jsr.io/@std/path/1.0.0/posix/to_file_url.js +30 -0
  197. package/script/deps/jsr.io/@std/path/1.0.0/posix/to_namespaced_path.d.ts +16 -0
  198. package/script/deps/jsr.io/@std/path/1.0.0/posix/to_namespaced_path.d.ts.map +1 -0
  199. package/script/deps/jsr.io/@std/path/1.0.0/posix/to_namespaced_path.js +23 -0
  200. package/script/deps/jsr.io/@std/path/1.0.0/relative.d.ts +24 -0
  201. package/script/deps/jsr.io/@std/path/1.0.0/relative.d.ts.map +1 -0
  202. package/script/deps/jsr.io/@std/path/1.0.0/relative.js +33 -0
  203. package/script/deps/jsr.io/@std/path/1.0.0/resolve.d.ts +22 -0
  204. package/script/deps/jsr.io/@std/path/1.0.0/resolve.d.ts.map +1 -0
  205. package/script/deps/jsr.io/@std/path/1.0.0/resolve.js +33 -0
  206. package/script/deps/jsr.io/@std/path/1.0.0/to_file_url.d.ts +22 -0
  207. package/script/deps/jsr.io/@std/path/1.0.0/to_file_url.d.ts.map +1 -0
  208. package/script/deps/jsr.io/@std/path/1.0.0/to_file_url.js +31 -0
  209. package/script/deps/jsr.io/@std/path/1.0.0/to_namespaced_path.d.ts +21 -0
  210. package/script/deps/jsr.io/@std/path/1.0.0/to_namespaced_path.d.ts.map +1 -0
  211. package/script/deps/jsr.io/@std/path/1.0.0/to_namespaced_path.js +32 -0
  212. package/script/deps/jsr.io/@std/path/1.0.0/types.d.ts +38 -0
  213. package/script/deps/jsr.io/@std/path/1.0.0/types.d.ts.map +1 -0
  214. package/script/deps/jsr.io/@std/path/1.0.0/types.js +4 -0
  215. package/script/deps/jsr.io/@std/path/1.0.0/windows/_util.d.ts +4 -0
  216. package/script/deps/jsr.io/@std/path/1.0.0/windows/_util.d.ts.map +1 -0
  217. package/script/deps/jsr.io/@std/path/1.0.0/windows/_util.js +20 -0
  218. package/script/deps/jsr.io/@std/path/1.0.0/windows/basename.d.ts +20 -0
  219. package/script/deps/jsr.io/@std/path/1.0.0/windows/basename.d.ts.map +1 -0
  220. package/script/deps/jsr.io/@std/path/1.0.0/windows/basename.js +44 -0
  221. package/script/deps/jsr.io/@std/path/1.0.0/windows/constants.d.ts +13 -0
  222. package/script/deps/jsr.io/@std/path/1.0.0/windows/constants.d.ts.map +1 -0
  223. package/script/deps/jsr.io/@std/path/1.0.0/windows/constants.js +17 -0
  224. package/script/deps/jsr.io/@std/path/1.0.0/windows/dirname.d.ts +17 -0
  225. package/script/deps/jsr.io/@std/path/1.0.0/windows/dirname.d.ts.map +1 -0
  226. package/script/deps/jsr.io/@std/path/1.0.0/windows/dirname.js +112 -0
  227. package/script/deps/jsr.io/@std/path/1.0.0/windows/extname.d.ts +17 -0
  228. package/script/deps/jsr.io/@std/path/1.0.0/windows/extname.d.ts.map +1 -0
  229. package/script/deps/jsr.io/@std/path/1.0.0/windows/extname.js +81 -0
  230. package/script/deps/jsr.io/@std/path/1.0.0/windows/format.d.ts +24 -0
  231. package/script/deps/jsr.io/@std/path/1.0.0/windows/format.d.ts.map +1 -0
  232. package/script/deps/jsr.io/@std/path/1.0.0/windows/format.js +31 -0
  233. package/script/deps/jsr.io/@std/path/1.0.0/windows/from_file_url.d.ts +18 -0
  234. package/script/deps/jsr.io/@std/path/1.0.0/windows/from_file_url.d.ts.map +1 -0
  235. package/script/deps/jsr.io/@std/path/1.0.0/windows/from_file_url.js +33 -0
  236. package/script/deps/jsr.io/@std/path/1.0.0/windows/glob_to_regexp.d.ts +71 -0
  237. package/script/deps/jsr.io/@std/path/1.0.0/windows/glob_to_regexp.d.ts.map +1 -0
  238. package/script/deps/jsr.io/@std/path/1.0.0/windows/glob_to_regexp.js +85 -0
  239. package/script/deps/jsr.io/@std/path/1.0.0/windows/is_absolute.d.ts +17 -0
  240. package/script/deps/jsr.io/@std/path/1.0.0/windows/is_absolute.d.ts.map +1 -0
  241. package/script/deps/jsr.io/@std/path/1.0.0/windows/is_absolute.js +41 -0
  242. package/script/deps/jsr.io/@std/path/1.0.0/windows/join.d.ts +17 -0
  243. package/script/deps/jsr.io/@std/path/1.0.0/windows/join.d.ts.map +1 -0
  244. package/script/deps/jsr.io/@std/path/1.0.0/windows/join.js +74 -0
  245. package/script/deps/jsr.io/@std/path/1.0.0/windows/join_globs.d.ts +21 -0
  246. package/script/deps/jsr.io/@std/path/1.0.0/windows/join_globs.d.ts.map +1 -0
  247. package/script/deps/jsr.io/@std/path/1.0.0/windows/join_globs.js +43 -0
  248. package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize.d.ts +19 -0
  249. package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize.d.ts.map +1 -0
  250. package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize.js +134 -0
  251. package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize_glob.d.ts +20 -0
  252. package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize_glob.d.ts.map +1 -0
  253. package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize_glob.js +34 -0
  254. package/script/deps/jsr.io/@std/path/1.0.0/windows/parse.d.ts +25 -0
  255. package/script/deps/jsr.io/@std/path/1.0.0/windows/parse.d.ts.map +1 -0
  256. package/script/deps/jsr.io/@std/path/1.0.0/windows/parse.js +179 -0
  257. package/script/deps/jsr.io/@std/path/1.0.0/windows/relative.d.ts +23 -0
  258. package/script/deps/jsr.io/@std/path/1.0.0/windows/relative.d.ts.map +1 -0
  259. package/script/deps/jsr.io/@std/path/1.0.0/windows/relative.js +134 -0
  260. package/script/deps/jsr.io/@std/path/1.0.0/windows/resolve.d.ts +17 -0
  261. package/script/deps/jsr.io/@std/path/1.0.0/windows/resolve.d.ts.map +1 -0
  262. package/script/deps/jsr.io/@std/path/1.0.0/windows/resolve.js +180 -0
  263. package/script/deps/jsr.io/@std/path/1.0.0/windows/to_file_url.d.ts +17 -0
  264. package/script/deps/jsr.io/@std/path/1.0.0/windows/to_file_url.d.ts.map +1 -0
  265. package/script/deps/jsr.io/@std/path/1.0.0/windows/to_file_url.js +37 -0
  266. package/script/deps/jsr.io/@std/path/1.0.0/windows/to_namespaced_path.d.ts +17 -0
  267. package/script/deps/jsr.io/@std/path/1.0.0/windows/to_namespaced_path.d.ts.map +1 -0
  268. package/script/deps/jsr.io/@std/path/1.0.0/windows/to_namespaced_path.js +52 -0
  269. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +6 -0
  270. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +1 -0
  271. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +710 -0
  272. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +73 -0
  273. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +1 -0
  274. package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +152 -0
  275. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +7 -0
  276. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +1 -0
  277. package/script/deps/jsr.io/@std/yaml/0.215.0/_error.js +23 -0
  278. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +5 -0
  279. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +1 -0
  280. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +1324 -0
  281. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +44 -0
  282. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +1 -0
  283. package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +154 -0
  284. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +11 -0
  285. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +1 -0
  286. package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.js +85 -0
  287. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +6 -0
  288. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +1 -0
  289. package/script/deps/jsr.io/@std/yaml/0.215.0/_state.js +19 -0
  290. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +3 -0
  291. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +1 -0
  292. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.js +110 -0
  293. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +3 -0
  294. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +1 -0
  295. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +35 -0
  296. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +3 -0
  297. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +1 -0
  298. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.js +109 -0
  299. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +3 -0
  300. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +1 -0
  301. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +41 -0
  302. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +3 -0
  303. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +1 -0
  304. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.js +171 -0
  305. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +3 -0
  306. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +1 -0
  307. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.js +14 -0
  308. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +3 -0
  309. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +1 -0
  310. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.js +15 -0
  311. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +17 -0
  312. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +1 -0
  313. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +39 -0
  314. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +3 -0
  315. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +1 -0
  316. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +40 -0
  317. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +3 -0
  318. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +1 -0
  319. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +43 -0
  320. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +3 -0
  321. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +1 -0
  322. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +38 -0
  323. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +3 -0
  324. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +1 -0
  325. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.js +40 -0
  326. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +3 -0
  327. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +1 -0
  328. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.js +14 -0
  329. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +3 -0
  330. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +1 -0
  331. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +28 -0
  332. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +3 -0
  333. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +1 -0
  334. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.js +13 -0
  335. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +3 -0
  336. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +1 -0
  337. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.js +81 -0
  338. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +3 -0
  339. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +1 -0
  340. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.js +23 -0
  341. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +20 -0
  342. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +1 -0
  343. package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.js +74 -0
  344. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +49 -0
  345. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +1 -0
  346. package/script/deps/jsr.io/@std/yaml/0.215.0/mod.js +67 -0
  347. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +36 -0
  348. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +1 -0
  349. package/script/deps/jsr.io/@std/yaml/0.215.0/parse.js +22 -0
  350. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +3 -0
  351. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +1 -0
  352. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.js +15 -0
  353. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +3 -0
  354. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +1 -0
  355. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +18 -0
  356. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +31 -0
  357. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +1 -0
  358. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +40 -0
  359. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +3 -0
  360. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +1 -0
  361. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +15 -0
  362. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +3 -0
  363. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +1 -0
  364. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +17 -0
  365. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +6 -0
  366. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +1 -0
  367. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +18 -0
  368. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +23 -0
  369. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +1 -0
  370. package/script/deps/jsr.io/@std/yaml/0.215.0/schema.js +107 -0
  371. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +9 -0
  372. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +1 -0
  373. package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.js +17 -0
  374. package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +29 -0
  375. package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +1 -0
  376. package/script/deps/jsr.io/@std/yaml/0.215.0/type.js +87 -0
  377. package/script/dsl/ContentSettings.d.ts +20 -0
  378. package/script/dsl/ContentSettings.d.ts.map +1 -0
  379. package/script/dsl/ContentSettings.js +44 -0
  380. package/script/dsl/Definition.d.ts +19 -0
  381. package/script/dsl/Definition.d.ts.map +1 -0
  382. package/script/dsl/Definition.js +41 -0
  383. package/script/dsl/GeneratedValueList.d.ts +9 -0
  384. package/script/dsl/GeneratedValueList.d.ts.map +1 -0
  385. package/script/dsl/GeneratedValueList.js +31 -0
  386. package/script/dsl/Identifier.d.ts +21 -0
  387. package/script/dsl/Identifier.d.ts.map +1 -0
  388. package/script/dsl/Identifier.js +56 -0
  389. package/script/dsl/Import.d.ts +22 -0
  390. package/script/dsl/Import.d.ts.map +1 -0
  391. package/script/dsl/Import.js +60 -0
  392. package/script/dsl/ModelCreator.d.ts +54 -0
  393. package/script/dsl/ModelCreator.d.ts.map +1 -0
  394. package/script/dsl/ModelCreator.js +2 -0
  395. package/script/dsl/ModelDriver.d.ts +31 -0
  396. package/script/dsl/ModelDriver.d.ts.map +1 -0
  397. package/script/dsl/ModelDriver.js +133 -0
  398. package/script/dsl/OperationCreator.d.ts +42 -0
  399. package/script/dsl/OperationCreator.d.ts.map +1 -0
  400. package/script/dsl/OperationCreator.js +2 -0
  401. package/script/dsl/OperationDriver.d.ts +31 -0
  402. package/script/dsl/OperationDriver.d.ts.map +1 -0
  403. package/script/dsl/OperationDriver.js +129 -0
  404. package/script/dsl/Stringable.d.ts +4 -0
  405. package/script/dsl/Stringable.d.ts.map +1 -0
  406. package/script/dsl/Stringable.js +2 -0
  407. package/script/dsl/ValueBase.d.ts +16 -0
  408. package/script/dsl/ValueBase.d.ts.map +1 -0
  409. package/script/dsl/ValueBase.js +49 -0
  410. package/script/dsl/base.d.ts +49 -0
  411. package/script/dsl/base.d.ts.map +1 -0
  412. package/script/dsl/base.js +76 -0
  413. package/script/dsl/constants.d.ts +2 -0
  414. package/script/dsl/constants.d.ts.map +1 -0
  415. package/script/dsl/constants.js +4 -0
  416. package/script/dsl/withConfig.d.ts +101 -0
  417. package/script/dsl/withConfig.d.ts.map +1 -0
  418. package/script/dsl/withConfig.js +131 -0
  419. package/script/generate/generate.d.ts +15 -0
  420. package/script/generate/generate.d.ts.map +1 -0
  421. package/script/generate/generate.js +75 -0
  422. package/script/generate/generateModels.d.ts +3 -0
  423. package/script/generate/generateModels.d.ts.map +1 -0
  424. package/script/generate/generateModels.js +56 -0
  425. package/script/generate/generateOperations.d.ts +3 -0
  426. package/script/generate/generateOperations.d.ts.map +1 -0
  427. package/script/generate/generateOperations.js +62 -0
  428. package/script/helpers/logStatus.d.ts +19 -0
  429. package/script/helpers/logStatus.d.ts.map +1 -0
  430. package/script/helpers/logStatus.js +21 -0
  431. package/script/helpers/naming.d.ts +9 -0
  432. package/script/helpers/naming.d.ts.map +1 -0
  433. package/script/helpers/naming.js +33 -0
  434. package/script/helpers/refFns.d.ts +9 -0
  435. package/script/helpers/refFns.d.ts.map +1 -0
  436. package/script/helpers/refFns.js +30 -0
  437. package/script/helpers/strings.d.ts +3 -0
  438. package/script/helpers/strings.d.ts.map +1 -0
  439. package/script/helpers/strings.js +11 -0
  440. package/script/helpers/verifyType.d.ts +4 -0
  441. package/script/helpers/verifyType.d.ts.map +1 -0
  442. package/script/helpers/verifyType.js +15 -0
  443. package/script/mod.d.ts +62 -0
  444. package/script/mod.d.ts.map +1 -0
  445. package/script/mod.js +77 -0
  446. package/script/oas/array/Array.d.ts +34 -0
  447. package/script/oas/array/Array.d.ts.map +1 -0
  448. package/script/oas/array/Array.js +53 -0
  449. package/script/oas/array/array-types.d.ts +13 -0
  450. package/script/oas/array/array-types.d.ts.map +1 -0
  451. package/script/oas/array/array-types.js +20 -0
  452. package/script/oas/array/toArray.d.ts +12 -0
  453. package/script/oas/array/toArray.d.ts.map +1 -0
  454. package/script/oas/array/toArray.js +24 -0
  455. package/script/oas/boolean/Boolean.d.ts +29 -0
  456. package/script/oas/boolean/Boolean.d.ts.map +1 -0
  457. package/script/oas/boolean/Boolean.js +47 -0
  458. package/script/oas/boolean/boolean-types.d.ts +10 -0
  459. package/script/oas/boolean/boolean-types.d.ts.map +1 -0
  460. package/script/oas/boolean/boolean-types.js +11 -0
  461. package/script/oas/boolean/toBoolean.d.ts +12 -0
  462. package/script/oas/boolean/toBoolean.d.ts.map +1 -0
  463. package/script/oas/boolean/toBoolean.js +14 -0
  464. package/script/oas/components/Components.d.ts +50 -0
  465. package/script/oas/components/Components.d.ts.map +1 -0
  466. package/script/oas/components/Components.js +53 -0
  467. package/script/oas/components/toComponentsV3.d.ts +12 -0
  468. package/script/oas/components/toComponentsV3.d.ts.map +1 -0
  469. package/script/oas/components/toComponentsV3.js +48 -0
  470. package/script/oas/contact/contact-types.d.ts +9 -0
  471. package/script/oas/contact/contact-types.d.ts.map +1 -0
  472. package/script/oas/contact/contact-types.js +10 -0
  473. package/script/oas/discriminator/Discriminator.d.ts +20 -0
  474. package/script/oas/discriminator/Discriminator.d.ts.map +1 -0
  475. package/script/oas/discriminator/Discriminator.js +26 -0
  476. package/script/oas/discriminator/discriminator-types.d.ts +8 -0
  477. package/script/oas/discriminator/discriminator-types.d.ts.map +1 -0
  478. package/script/oas/discriminator/discriminator-types.js +9 -0
  479. package/script/oas/discriminator/toDiscriminatorV3.d.ts +12 -0
  480. package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -0
  481. package/script/oas/discriminator/toDiscriminatorV3.js +15 -0
  482. package/script/oas/document/Document.d.ts +40 -0
  483. package/script/oas/document/Document.d.ts.map +1 -0
  484. package/script/oas/document/Document.js +46 -0
  485. package/script/oas/document/toDocumentV3.d.ts +12 -0
  486. package/script/oas/document/toDocumentV3.d.ts.map +1 -0
  487. package/script/oas/document/toDocumentV3.js +28 -0
  488. package/script/oas/example/Example.d.ts +36 -0
  489. package/script/oas/example/Example.d.ts.map +1 -0
  490. package/script/oas/example/Example.js +49 -0
  491. package/script/oas/example/example-types.d.ts +9 -0
  492. package/script/oas/example/example-types.d.ts.map +1 -0
  493. package/script/oas/example/example-types.js +12 -0
  494. package/script/oas/example/toExamplesV3.d.ts +27 -0
  495. package/script/oas/example/toExamplesV3.d.ts.map +1 -0
  496. package/script/oas/example/toExamplesV3.js +51 -0
  497. package/script/oas/header/Header.d.ts +52 -0
  498. package/script/oas/header/Header.d.ts.map +1 -0
  499. package/script/oas/header/Header.js +70 -0
  500. package/script/oas/header/toHeadersV3.d.ts +13 -0
  501. package/script/oas/header/toHeadersV3.d.ts.map +1 -0
  502. package/script/oas/header/toHeadersV3.js +46 -0
  503. package/script/oas/info/Info.d.ts +32 -0
  504. package/script/oas/info/Info.d.ts.map +1 -0
  505. package/script/oas/info/Info.js +41 -0
  506. package/script/oas/info/toInfoV3.d.ts +12 -0
  507. package/script/oas/info/toInfoV3.d.ts.map +1 -0
  508. package/script/oas/info/toInfoV3.js +26 -0
  509. package/script/oas/integer/Integer.d.ts +33 -0
  510. package/script/oas/integer/Integer.d.ts.map +1 -0
  511. package/script/oas/integer/Integer.js +53 -0
  512. package/script/oas/integer/integer-types.d.ts +12 -0
  513. package/script/oas/integer/integer-types.d.ts.map +1 -0
  514. package/script/oas/integer/integer-types.js +21 -0
  515. package/script/oas/integer/toInteger.d.ts +12 -0
  516. package/script/oas/integer/toInteger.d.ts.map +1 -0
  517. package/script/oas/integer/toInteger.js +17 -0
  518. package/script/oas/intersection/Intersection.d.ts +35 -0
  519. package/script/oas/intersection/Intersection.d.ts.map +1 -0
  520. package/script/oas/intersection/Intersection.js +53 -0
  521. package/script/oas/intersection/intersection-types.d.ts +14 -0
  522. package/script/oas/intersection/intersection-types.d.ts.map +1 -0
  523. package/script/oas/intersection/intersection-types.js +15 -0
  524. package/script/oas/intersection/toIntersection.d.ts +13 -0
  525. package/script/oas/intersection/toIntersection.d.ts.map +1 -0
  526. package/script/oas/intersection/toIntersection.js +26 -0
  527. package/script/oas/license/license-types.d.ts +9 -0
  528. package/script/oas/license/license-types.d.ts.map +1 -0
  529. package/script/oas/license/license-types.js +10 -0
  530. package/script/oas/markdown/markdown-types.d.ts +3 -0
  531. package/script/oas/markdown/markdown-types.d.ts.map +1 -0
  532. package/script/oas/markdown/markdown-types.js +5 -0
  533. package/script/oas/mediaType/MediaType.d.ts +27 -0
  534. package/script/oas/mediaType/MediaType.d.ts.map +1 -0
  535. package/script/oas/mediaType/MediaType.js +32 -0
  536. package/script/oas/mediaType/mediaType-types.d.ts +12 -0
  537. package/script/oas/mediaType/mediaType-types.d.ts.map +1 -0
  538. package/script/oas/mediaType/mediaType-types.js +15 -0
  539. package/script/oas/mediaType/toMediaTypeItemV3.d.ts +25 -0
  540. package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
  541. package/script/oas/mediaType/toMediaTypeItemV3.js +43 -0
  542. package/script/oas/null/null-types.d.ts +10 -0
  543. package/script/oas/null/null-types.d.ts.map +1 -0
  544. package/script/oas/null/null-types.js +11 -0
  545. package/script/oas/number/Number.d.ts +29 -0
  546. package/script/oas/number/Number.d.ts.map +1 -0
  547. package/script/oas/number/Number.js +47 -0
  548. package/script/oas/number/number-types.d.ts +10 -0
  549. package/script/oas/number/number-types.d.ts.map +1 -0
  550. package/script/oas/number/number-types.js +17 -0
  551. package/script/oas/number/toNumber.d.ts +12 -0
  552. package/script/oas/number/toNumber.d.ts.map +1 -0
  553. package/script/oas/number/toNumber.js +14 -0
  554. package/script/oas/object/Object.d.ts +42 -0
  555. package/script/oas/object/Object.d.ts.map +1 -0
  556. package/script/oas/object/Object.js +65 -0
  557. package/script/oas/object/object-types.d.ts +15 -0
  558. package/script/oas/object/object-types.d.ts.map +1 -0
  559. package/script/oas/object/object-types.js +30 -0
  560. package/script/oas/object/toAdditionalPropertiesV3.d.ts +13 -0
  561. package/script/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -0
  562. package/script/oas/object/toAdditionalPropertiesV3.js +18 -0
  563. package/script/oas/object/toObject.d.ts +12 -0
  564. package/script/oas/object/toObject.d.ts.map +1 -0
  565. package/script/oas/object/toObject.js +27 -0
  566. package/script/oas/operation/Operation.d.ts +52 -0
  567. package/script/oas/operation/Operation.d.ts.map +1 -0
  568. package/script/oas/operation/Operation.js +73 -0
  569. package/script/oas/operation/toOperationsV3.d.ts +26 -0
  570. package/script/oas/operation/toOperationsV3.d.ts.map +1 -0
  571. package/script/oas/operation/toOperationsV3.js +80 -0
  572. package/script/oas/parameter/Parameter.d.ts +51 -0
  573. package/script/oas/parameter/Parameter.d.ts.map +1 -0
  574. package/script/oas/parameter/Parameter.js +74 -0
  575. package/script/oas/parameter/parameter-types.d.ts +26 -0
  576. package/script/oas/parameter/parameter-types.d.ts.map +1 -0
  577. package/script/oas/parameter/parameter-types.js +41 -0
  578. package/script/oas/parameter/toParameterV3.d.ts +25 -0
  579. package/script/oas/parameter/toParameterV3.d.ts.map +1 -0
  580. package/script/oas/parameter/toParameterV3.js +94 -0
  581. package/script/oas/pathItem/PathItem.d.ts +26 -0
  582. package/script/oas/pathItem/PathItem.d.ts.map +1 -0
  583. package/script/oas/pathItem/PathItem.js +32 -0
  584. package/script/oas/pathItem/toPathItemV3.d.ts +12 -0
  585. package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -0
  586. package/script/oas/pathItem/toPathItemV3.js +19 -0
  587. package/script/oas/ref/Ref.d.ts +41 -0
  588. package/script/oas/ref/Ref.d.ts.map +1 -0
  589. package/script/oas/ref/Ref.js +93 -0
  590. package/script/oas/ref/ref-types.d.ts +52 -0
  591. package/script/oas/ref/ref-types.d.ts.map +1 -0
  592. package/script/oas/ref/ref-types.js +57 -0
  593. package/script/oas/ref/toRefV31.d.ts +14 -0
  594. package/script/oas/ref/toRefV31.d.ts.map +1 -0
  595. package/script/oas/ref/toRefV31.js +15 -0
  596. package/script/oas/requestBody/RequestBody.d.ts +31 -0
  597. package/script/oas/requestBody/RequestBody.d.ts.map +1 -0
  598. package/script/oas/requestBody/RequestBody.js +44 -0
  599. package/script/oas/requestBody/toRequestBodiesV3.d.ts +20 -0
  600. package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -0
  601. package/script/oas/requestBody/toRequestBodiesV3.js +51 -0
  602. package/script/oas/response/Response.d.ts +32 -0
  603. package/script/oas/response/Response.d.ts.map +1 -0
  604. package/script/oas/response/Response.js +44 -0
  605. package/script/oas/response/toResponseV3.d.ts +25 -0
  606. package/script/oas/response/toResponseV3.d.ts.map +1 -0
  607. package/script/oas/response/toResponseV3.js +41 -0
  608. package/script/oas/schema/Schema.d.ts +11 -0
  609. package/script/oas/schema/Schema.d.ts.map +1 -0
  610. package/script/oas/schema/Schema.js +2 -0
  611. package/script/oas/schema/schema-types.d.ts +14 -0
  612. package/script/oas/schema/schema-types.d.ts.map +1 -0
  613. package/script/oas/schema/schema-types.js +26 -0
  614. package/script/oas/schema/toSchemasV3.d.ts +31 -0
  615. package/script/oas/schema/toSchemasV3.d.ts.map +1 -0
  616. package/script/oas/schema/toSchemasV3.js +67 -0
  617. package/script/oas/string/String.d.ts +33 -0
  618. package/script/oas/string/String.d.ts.map +1 -0
  619. package/script/oas/string/String.js +56 -0
  620. package/script/oas/string/string-types.d.ts +13 -0
  621. package/script/oas/string/string-types.d.ts.map +1 -0
  622. package/script/oas/string/string-types.js +32 -0
  623. package/script/oas/string/toString.d.ts +12 -0
  624. package/script/oas/string/toString.d.ts.map +1 -0
  625. package/script/oas/string/toString.js +15 -0
  626. package/script/oas/tag/Tag.d.ts +22 -0
  627. package/script/oas/tag/Tag.d.ts.map +1 -0
  628. package/script/oas/tag/Tag.js +29 -0
  629. package/script/oas/tag/toTagsV3.d.ts +12 -0
  630. package/script/oas/tag/toTagsV3.d.ts.map +1 -0
  631. package/script/oas/tag/toTagsV3.js +18 -0
  632. package/script/oas/union/Union.d.ts +35 -0
  633. package/script/oas/union/Union.d.ts.map +1 -0
  634. package/script/oas/union/Union.js +53 -0
  635. package/script/oas/union/toUnion.d.ts +13 -0
  636. package/script/oas/union/toUnion.d.ts.map +1 -0
  637. package/script/oas/union/toUnion.js +26 -0
  638. package/script/oas/union/union-types.d.ts +14 -0
  639. package/script/oas/union/union-types.d.ts.map +1 -0
  640. package/script/oas/union/union-types.js +15 -0
  641. package/script/oas/unknown/Unknown.d.ts +27 -0
  642. package/script/oas/unknown/Unknown.d.ts.map +1 -0
  643. package/script/oas/unknown/Unknown.js +44 -0
  644. package/script/oas/unknown/toUnknown.d.ts +12 -0
  645. package/script/oas/unknown/toUnknown.d.ts.map +1 -0
  646. package/script/oas/unknown/toUnknown.js +13 -0
  647. package/script/oas/unknown/unknown-types.d.ts +10 -0
  648. package/script/oas/unknown/unknown-types.d.ts.map +1 -0
  649. package/script/oas/unknown/unknown-types.js +11 -0
  650. package/script/oas/void/Void.d.ts +28 -0
  651. package/script/oas/void/Void.d.ts.map +1 -0
  652. package/script/oas/void/Void.js +53 -0
  653. package/script/oas-elements/OasBase.d.ts +15 -0
  654. package/script/oas-elements/OasBase.d.ts.map +1 -0
  655. package/script/oas-elements/OasBase.js +31 -0
  656. package/script/package.json +3 -0
  657. package/script/parse/parse.d.ts +4 -0
  658. package/script/parse/parse.d.ts.map +1 -0
  659. package/script/parse/parse.js +20 -0
  660. package/script/schemas/client.d.ts +240 -0
  661. package/script/schemas/client.d.ts.map +1 -0
  662. package/script/schemas/client.js +176 -0
  663. package/script/server/createServer.d.ts +5 -0
  664. package/script/server/createServer.d.ts.map +1 -0
  665. package/script/server/createServer.js +134 -0
  666. package/script/types/Brand.d.ts +6 -0
  667. package/script/types/Brand.d.ts.map +1 -0
  668. package/script/types/Brand.js +2 -0
  669. package/script/types/CustomValue.d.ts +18 -0
  670. package/script/types/CustomValue.d.ts.map +1 -0
  671. package/script/types/CustomValue.js +33 -0
  672. package/script/types/GeneratedValue.d.ts +6 -0
  673. package/script/types/GeneratedValue.d.ts.map +1 -0
  674. package/script/types/GeneratedValue.js +2 -0
  675. package/script/types/GenerationType.d.ts +16 -0
  676. package/script/types/GenerationType.d.ts.map +1 -0
  677. package/script/types/GenerationType.js +16 -0
  678. package/script/types/GeneratorKeys.d.ts +30 -0
  679. package/script/types/GeneratorKeys.d.ts.map +1 -0
  680. package/script/types/GeneratorKeys.js +19 -0
  681. package/script/types/Method.d.ts +10 -0
  682. package/script/types/Method.d.ts.map +1 -0
  683. package/script/types/Method.js +35 -0
  684. package/script/types/Modifiers.d.ts +6 -0
  685. package/script/types/Modifiers.d.ts.map +1 -0
  686. package/script/types/Modifiers.js +2 -0
  687. package/script/types/RefName.d.ts +3 -0
  688. package/script/types/RefName.d.ts.map +1 -0
  689. package/script/types/RefName.js +2 -0
  690. package/script/types/Settings.d.ts +183 -0
  691. package/script/types/Settings.d.ts.map +1 -0
  692. package/script/types/Settings.js +45 -0
  693. package/script/types/TypeSystem.d.ts +96 -0
  694. package/script/types/TypeSystem.d.ts.map +1 -0
  695. package/script/types/TypeSystem.js +2 -0
  696. package/script/types/prettierConfig.d.ts +27 -0
  697. package/script/types/prettierConfig.d.ts.map +1 -0
  698. package/script/types/prettierConfig.js +49 -0
  699. package/script/typescript/EntityType.d.ts +6 -0
  700. package/script/typescript/EntityType.d.ts.map +1 -0
  701. package/script/typescript/EntityType.js +22 -0
  702. package/script/typescript/FunctionParameter.d.ts +36 -0
  703. package/script/typescript/FunctionParameter.d.ts.map +1 -0
  704. package/script/typescript/FunctionParameter.js +93 -0
  705. package/script/typescript/ReactRouterPathParams.d.ts +20 -0
  706. package/script/typescript/ReactRouterPathParams.d.ts.map +1 -0
  707. package/script/typescript/ReactRouterPathParams.js +53 -0
  708. package/script/typescript/identifiers.d.ts +3 -0
  709. package/script/typescript/identifiers.d.ts.map +1 -0
  710. package/script/typescript/identifiers.js +12 -0
  711. package/script/typescript/keyValues.d.ts +3 -0
  712. package/script/typescript/keyValues.d.ts.map +1 -0
  713. package/script/typescript/keyValues.js +15 -0
  714. package/script/typescript/toDestructuredObject.d.ts +3 -0
  715. package/script/typescript/toDestructuredObject.d.ts.map +1 -0
  716. package/script/typescript/toDestructuredObject.js +20 -0
  717. package/script/typescript/toOperationArg.d.ts +21 -0
  718. package/script/typescript/toOperationArg.d.ts.map +1 -0
  719. package/script/typescript/toOperationArg.js +63 -0
  720. package/script/typescript/toOperationResponse.d.ts +16 -0
  721. package/script/typescript/toOperationResponse.d.ts.map +1 -0
  722. package/script/typescript/toOperationResponse.js +21 -0
  723. package/script/typescript/toParamsObject.d.ts +3 -0
  724. package/script/typescript/toParamsObject.d.ts.map +1 -0
  725. package/script/typescript/toParamsObject.js +16 -0
  726. package/script/typescript/toPathTemplate.d.ts +2 -0
  727. package/script/typescript/toPathTemplate.d.ts.map +1 -0
  728. package/script/typescript/toPathTemplate.js +7 -0
  729. package/script/typescript/withDescription.d.ts +4 -0
  730. package/script/typescript/withDescription.d.ts.map +1 -0
  731. package/script/typescript/withDescription.js +7 -0
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Utilities for encoding and decoding common formats like hex, base64, and varint.
3
+ *
4
+ * ```ts
5
+ * import { encodeBase64, decodeBase64 } from "@std/encoding";
6
+ * import { assertEquals } from "@std/assert";
7
+ *
8
+ * const foobar = new TextEncoder().encode("foobar");
9
+ * assertEquals(encodeBase64(foobar), "Zm9vYmFy");
10
+ * assertEquals(decodeBase64("Zm9vYmFy"), foobar);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ export * from "./ascii85.js";
16
+ export * from "./base32.js";
17
+ export * from "./base58.js";
18
+ export * from "./base64.js";
19
+ export * from "./base64url.js";
20
+ export * from "./hex.js";
21
+ export * from "./varint.js";
22
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.1/mod.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ /**
19
+ * Utilities for encoding and decoding common formats like hex, base64, and varint.
20
+ *
21
+ * ```ts
22
+ * import { encodeBase64, decodeBase64 } from "@std/encoding";
23
+ * import { assertEquals } from "@std/assert";
24
+ *
25
+ * const foobar = new TextEncoder().encode("foobar");
26
+ * assertEquals(encodeBase64(foobar), "Zm9vYmFy");
27
+ * assertEquals(decodeBase64("Zm9vYmFy"), foobar);
28
+ * ```
29
+ *
30
+ * @module
31
+ */
32
+ __exportStar(require("./ascii85.js"), exports);
33
+ __exportStar(require("./base32.js"), exports);
34
+ __exportStar(require("./base58.js"), exports);
35
+ __exportStar(require("./base64.js"), exports);
36
+ __exportStar(require("./base64url.js"), exports);
37
+ __exportStar(require("./hex.js"), exports);
38
+ __exportStar(require("./varint.js"), exports);
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Utilities for {@link https://protobuf.dev/programming-guides/encoding/#varints Varint} encoding
3
+ * of typed integers. Varint encoding represents integers using a variable number of bytes, with
4
+ * smaller values requiring fewer bytes.
5
+ *
6
+ * ```ts
7
+ * import { encodeVarint, decodeVarint } from "@std/encoding/varint";
8
+ * import { assertEquals } from "@std/assert";
9
+ *
10
+ * const buf = new Uint8Array(10);
11
+ * assertEquals(
12
+ * encodeVarint(42n, buf),
13
+ * [new Uint8Array([42]), 1]
14
+ * );
15
+ *
16
+ * assertEquals(
17
+ * decodeVarint(new Uint8Array([42])),
18
+ * [ 42n, 1 ]
19
+ * );
20
+ * ```
21
+ *
22
+ * @module
23
+ */
24
+ /**
25
+ * The maximum value of an unsigned 64-bit integer.
26
+ * Equivalent to `2n**64n - 1n`
27
+ */
28
+ export declare const MaxUint64 = 18446744073709551615n;
29
+ /**
30
+ * The maximum length, in bytes, of a Varint encoded 64-bit integer.
31
+ */
32
+ export declare const MaxVarintLen64 = 10;
33
+ /**
34
+ * The maximum length, in bytes, of a Varint encoded 32-bit integer.
35
+ */
36
+ export declare const MaxVarintLen32 = 5;
37
+ /**
38
+ * Given a non empty `buf`, starting at `offset` (default: 0), begin decoding bytes as
39
+ * Varint encoded bytes, for a maximum of 10 bytes (offset + 10). The returned
40
+ * tuple is of the decoded varint 32-bit number, and the new offset with which
41
+ * to continue decoding other data.
42
+ *
43
+ * If a `bigint` in return is undesired, the `decode32` function will return a
44
+ * `number`, but this should only be used in cases where the varint is
45
+ * _assured_ to be 32-bits. If in doubt, use `decode()`.
46
+ *
47
+ * To know how many bytes the Varint took to encode, simply negate `offset`
48
+ * from the returned new `offset`.
49
+ *
50
+ * @param buf The buffer to decode from.
51
+ * @param offset The offset to start decoding from.
52
+ * @returns A tuple of the decoded varint 64-bit number, and the new offset.
53
+ *
54
+ * @example Usage
55
+ * ```ts
56
+ * import { decodeVarint } from "@std/encoding/varint";
57
+ * import { assertEquals } from "@std/assert";
58
+ *
59
+ * const buf = new Uint8Array([0x8E, 0x02]);
60
+ * assertEquals(decodeVarint(buf), [270n, 2]);
61
+ * ```
62
+ */
63
+ export declare function decodeVarint(buf: Uint8Array, offset?: number): [bigint, number];
64
+ /**
65
+ * Given a `buf`, starting at `offset` (default: 0), begin decoding bytes as
66
+ * Varint encoded bytes, for a maximum of 5 bytes (offset + 5). The returned
67
+ * tuple is of the decoded varint 32-bit number, and the new offset with which
68
+ * to continue decoding other data.
69
+ *
70
+ * Varints are _not 32-bit by default_ so this should only be used in cases
71
+ * where the varint is _assured_ to be 32-bits. If in doubt, use `decode()`.
72
+ *
73
+ * To know how many bytes the Varint took to encode, simply negate `offset`
74
+ * from the returned new `offset`.
75
+ *
76
+ * @param buf The buffer to decode from.
77
+ * @param offset The offset to start decoding from.
78
+ * @returns A tuple of the decoded varint 32-bit number, and the new offset.
79
+ *
80
+ * @example Usage
81
+ * ```ts
82
+ * import { decodeVarint32 } from "@std/encoding/varint";
83
+ * import { assertEquals } from "@std/assert";
84
+ *
85
+ * const buf = new Uint8Array([0x8E, 0x02]);
86
+ * assertEquals(decodeVarint32(buf), [270, 2]);
87
+ * ```
88
+ */
89
+ export declare function decodeVarint32(buf: Uint8Array, offset?: number): [number, number];
90
+ /**
91
+ * Takes unsigned number `num` and converts it into a Varint encoded
92
+ * `Uint8Array`, returning a tuple consisting of a `Uint8Array` slice of the
93
+ * encoded Varint, and an offset where the Varint encoded bytes end within the
94
+ * `Uint8Array`.
95
+ *
96
+ * If `buf` is not given then a Uint8Array will be created.
97
+ * `offset` defaults to `0`.
98
+ *
99
+ * If passed `buf` then that will be written into, starting at `offset`. The
100
+ * resulting returned `Uint8Array` will be a slice of `buf`. The resulting
101
+ * returned number is effectively `offset + bytesWritten`.
102
+ *
103
+ * @param num The number to encode.
104
+ * @param buf The buffer to write into.
105
+ * @param offset The offset to start writing at.
106
+ * @returns A tuple of the encoded Varint `Uint8Array` and the new offset.
107
+ *
108
+ * @example Usage
109
+ * ```ts
110
+ * import { encodeVarint } from "@std/encoding/varint";
111
+ * import { assertEquals } from "@std/assert";
112
+ *
113
+ * const buf = new Uint8Array(10);
114
+ * assertEquals(encodeVarint(42n, buf), [new Uint8Array([42]), 1]);
115
+ * ```
116
+ */
117
+ export declare function encodeVarint(num: bigint | number, buf?: Uint8Array, offset?: number): [Uint8Array, number];
118
+ //# sourceMappingURL=varint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"varint.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.1/varint.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH;;;GAGG;AACH,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC;;GAEG;AACH,eAAO,MAAM,cAAc,IAAI,CAAC;AAahC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA2D1E;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAa5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,GAAG,GAAE,UAA2C,EAChD,MAAM,SAAI,GACT,CAAC,UAAU,EAAE,MAAM,CAAC,CAiBtB"}
@@ -0,0 +1,212 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // Copyright 2020 Keith Cirkel. All rights reserved. MIT license.
4
+ // Copyright 2023 Skye "MierenManz". All rights reserved. MIT license.
5
+ /**
6
+ * Utilities for {@link https://protobuf.dev/programming-guides/encoding/#varints Varint} encoding
7
+ * of typed integers. Varint encoding represents integers using a variable number of bytes, with
8
+ * smaller values requiring fewer bytes.
9
+ *
10
+ * ```ts
11
+ * import { encodeVarint, decodeVarint } from "@std/encoding/varint";
12
+ * import { assertEquals } from "@std/assert";
13
+ *
14
+ * const buf = new Uint8Array(10);
15
+ * assertEquals(
16
+ * encodeVarint(42n, buf),
17
+ * [new Uint8Array([42]), 1]
18
+ * );
19
+ *
20
+ * assertEquals(
21
+ * decodeVarint(new Uint8Array([42])),
22
+ * [ 42n, 1 ]
23
+ * );
24
+ * ```
25
+ *
26
+ * @module
27
+ */
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.MaxVarintLen32 = exports.MaxVarintLen64 = exports.MaxUint64 = void 0;
30
+ exports.decodeVarint = decodeVarint;
31
+ exports.decodeVarint32 = decodeVarint32;
32
+ exports.encodeVarint = encodeVarint;
33
+ // This implementation is a port of https://deno.land/x/varint@v2.0.0 by @keithamus
34
+ // This module is browser compatible.
35
+ /**
36
+ * The maximum value of an unsigned 64-bit integer.
37
+ * Equivalent to `2n**64n - 1n`
38
+ */
39
+ exports.MaxUint64 = 18446744073709551615n;
40
+ /**
41
+ * The maximum length, in bytes, of a Varint encoded 64-bit integer.
42
+ */
43
+ exports.MaxVarintLen64 = 10;
44
+ /**
45
+ * The maximum length, in bytes, of a Varint encoded 32-bit integer.
46
+ */
47
+ exports.MaxVarintLen32 = 5;
48
+ const MSB = 0x80;
49
+ const REST = 0x7f;
50
+ const SHIFT = 7;
51
+ const MSBN = 0x80n;
52
+ const SHIFTN = 7n;
53
+ // ArrayBuffer and TypedArray's for "pointer casting"
54
+ const AB = new ArrayBuffer(8);
55
+ const U32_VIEW = new Uint32Array(AB);
56
+ const U64_VIEW = new BigUint64Array(AB);
57
+ /**
58
+ * Given a non empty `buf`, starting at `offset` (default: 0), begin decoding bytes as
59
+ * Varint encoded bytes, for a maximum of 10 bytes (offset + 10). The returned
60
+ * tuple is of the decoded varint 32-bit number, and the new offset with which
61
+ * to continue decoding other data.
62
+ *
63
+ * If a `bigint` in return is undesired, the `decode32` function will return a
64
+ * `number`, but this should only be used in cases where the varint is
65
+ * _assured_ to be 32-bits. If in doubt, use `decode()`.
66
+ *
67
+ * To know how many bytes the Varint took to encode, simply negate `offset`
68
+ * from the returned new `offset`.
69
+ *
70
+ * @param buf The buffer to decode from.
71
+ * @param offset The offset to start decoding from.
72
+ * @returns A tuple of the decoded varint 64-bit number, and the new offset.
73
+ *
74
+ * @example Usage
75
+ * ```ts
76
+ * import { decodeVarint } from "@std/encoding/varint";
77
+ * import { assertEquals } from "@std/assert";
78
+ *
79
+ * const buf = new Uint8Array([0x8E, 0x02]);
80
+ * assertEquals(decodeVarint(buf), [270n, 2]);
81
+ * ```
82
+ */
83
+ function decodeVarint(buf, offset = 0) {
84
+ // Clear the last result from the Two's complement view
85
+ U64_VIEW[0] = 0n;
86
+ // Setup the initiat state of the function
87
+ let intermediate = 0;
88
+ let position = 0;
89
+ let i = offset;
90
+ // If the buffer is empty Throw
91
+ if (buf.length === 0)
92
+ throw new RangeError("Cannot read empty buffer");
93
+ let byte;
94
+ do {
95
+ // Get a single byte from the buffer
96
+ byte = buf[i];
97
+ // 1. Take the lower 7 bits of the byte.
98
+ // 2. Shift the bits into the correct position.
99
+ // 3. Bitwise OR it with the intermediate value
100
+ // QUIRK: in the 5th (and 10th) iteration of this loop it will overflow on the shift.
101
+ // This causes only the lower 4 bits to be shifted into place and removing the upper 3 bits
102
+ intermediate |= (byte & 0b01111111) << position;
103
+ // If position is 28
104
+ // it means that this iteration needs to be written the the two's complement view
105
+ // This only happens once due to the `-4` in this branch
106
+ if (position === 28) {
107
+ // Write to the view
108
+ U32_VIEW[0] = intermediate;
109
+ // set `intermediate` to the remaining 3 bits
110
+ // We only want the remaining three bits because the other 4 have been "consumed" on line 21
111
+ intermediate = (byte & 0b01110000) >>> 4;
112
+ // set `position` to -4 because later 7 will be added, making it 3
113
+ position = -4;
114
+ }
115
+ // Increment the shift position by 7
116
+ position += 7;
117
+ // Increment the iterator by 1
118
+ i++;
119
+ // Keep going while there is a continuation bit
120
+ } while ((byte & 0b10000000) === 0b10000000);
121
+ // subtract the initial offset from `i` to get the bytes read
122
+ const nRead = i - offset;
123
+ // If 10 bytes have been read and intermediate has overflown
124
+ // it means that the varint is malformed
125
+ // If 11 bytes have been read it means that the varint is malformed
126
+ // If `i` is bigger than the buffer it means we overread the buffer and the varint is malformed
127
+ if ((nRead === 10 && intermediate > -1) || nRead === 11 || i > buf.length) {
128
+ throw new RangeError("malformed or overflow varint");
129
+ }
130
+ // Write the intermediate value to the "empty" slot
131
+ // if the first slot is taken. Take the second slot
132
+ U32_VIEW[Number(nRead > 4)] = intermediate;
133
+ return [U64_VIEW[0], i];
134
+ }
135
+ /**
136
+ * Given a `buf`, starting at `offset` (default: 0), begin decoding bytes as
137
+ * Varint encoded bytes, for a maximum of 5 bytes (offset + 5). The returned
138
+ * tuple is of the decoded varint 32-bit number, and the new offset with which
139
+ * to continue decoding other data.
140
+ *
141
+ * Varints are _not 32-bit by default_ so this should only be used in cases
142
+ * where the varint is _assured_ to be 32-bits. If in doubt, use `decode()`.
143
+ *
144
+ * To know how many bytes the Varint took to encode, simply negate `offset`
145
+ * from the returned new `offset`.
146
+ *
147
+ * @param buf The buffer to decode from.
148
+ * @param offset The offset to start decoding from.
149
+ * @returns A tuple of the decoded varint 32-bit number, and the new offset.
150
+ *
151
+ * @example Usage
152
+ * ```ts
153
+ * import { decodeVarint32 } from "@std/encoding/varint";
154
+ * import { assertEquals } from "@std/assert";
155
+ *
156
+ * const buf = new Uint8Array([0x8E, 0x02]);
157
+ * assertEquals(decodeVarint32(buf), [270, 2]);
158
+ * ```
159
+ */
160
+ function decodeVarint32(buf, offset = 0) {
161
+ let shift = 0;
162
+ let decoded = 0;
163
+ for (let i = offset; i <= Math.min(buf.length, offset + exports.MaxVarintLen32); i += 1, shift += SHIFT) {
164
+ const byte = buf[i];
165
+ decoded += (byte & REST) * Math.pow(2, shift);
166
+ if (!(byte & MSB))
167
+ return [decoded, i + 1];
168
+ }
169
+ throw new RangeError("malformed or overflow varint");
170
+ }
171
+ /**
172
+ * Takes unsigned number `num` and converts it into a Varint encoded
173
+ * `Uint8Array`, returning a tuple consisting of a `Uint8Array` slice of the
174
+ * encoded Varint, and an offset where the Varint encoded bytes end within the
175
+ * `Uint8Array`.
176
+ *
177
+ * If `buf` is not given then a Uint8Array will be created.
178
+ * `offset` defaults to `0`.
179
+ *
180
+ * If passed `buf` then that will be written into, starting at `offset`. The
181
+ * resulting returned `Uint8Array` will be a slice of `buf`. The resulting
182
+ * returned number is effectively `offset + bytesWritten`.
183
+ *
184
+ * @param num The number to encode.
185
+ * @param buf The buffer to write into.
186
+ * @param offset The offset to start writing at.
187
+ * @returns A tuple of the encoded Varint `Uint8Array` and the new offset.
188
+ *
189
+ * @example Usage
190
+ * ```ts
191
+ * import { encodeVarint } from "@std/encoding/varint";
192
+ * import { assertEquals } from "@std/assert";
193
+ *
194
+ * const buf = new Uint8Array(10);
195
+ * assertEquals(encodeVarint(42n, buf), [new Uint8Array([42]), 1]);
196
+ * ```
197
+ */
198
+ function encodeVarint(num, buf = new Uint8Array(exports.MaxVarintLen64), offset = 0) {
199
+ num = BigInt(num);
200
+ if (num < 0n)
201
+ throw new RangeError("signed input given");
202
+ for (let i = offset; i <= Math.min(buf.length, exports.MaxVarintLen64); i += 1) {
203
+ if (num < MSBN) {
204
+ buf[i] = Number(num);
205
+ i += 1;
206
+ return [buf.slice(offset, i), i];
207
+ }
208
+ buf[i] = Number((num & 0xffn) | MSBN);
209
+ num >>= SHIFTN;
210
+ }
211
+ throw new RangeError(`${num} overflows uint64`);
212
+ }
@@ -0,0 +1,2 @@
1
+ export declare function assertPath(path?: string): void;
2
+ //# sourceMappingURL=assert_path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.0/_common/assert_path.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,QAMvC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // Copyright the Browserify authors. MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.assertPath = assertPath;
6
+ function assertPath(path) {
7
+ if (typeof path !== "string") {
8
+ throw new TypeError(`Path must be a string. Received ${JSON.stringify(path)}`);
9
+ }
10
+ }
@@ -0,0 +1,4 @@
1
+ export declare function stripSuffix(name: string, suffix: string): string;
2
+ export declare function lastPathSegment(path: string, isSep: (char: number) => boolean, start?: number): string;
3
+ export declare function assertArgs(path: string, suffix: string): string | undefined;
4
+ //# sourceMappingURL=basename.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.0/_common/basename.ts"],"names":[],"mappings":"AAKA,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAchE;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,EAChC,KAAK,SAAI,GACR,MAAM,CAiBR;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,sBAQtD"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.stripSuffix = stripSuffix;
6
+ exports.lastPathSegment = lastPathSegment;
7
+ exports.assertArgs = assertArgs;
8
+ const assert_path_js_1 = require("./assert_path.js");
9
+ function stripSuffix(name, suffix) {
10
+ if (suffix.length >= name.length) {
11
+ return name;
12
+ }
13
+ const lenDiff = name.length - suffix.length;
14
+ for (let i = suffix.length - 1; i >= 0; --i) {
15
+ if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
16
+ return name;
17
+ }
18
+ }
19
+ return name.slice(0, -suffix.length);
20
+ }
21
+ function lastPathSegment(path, isSep, start = 0) {
22
+ let matchedNonSeparator = false;
23
+ let end = path.length;
24
+ for (let i = path.length - 1; i >= start; --i) {
25
+ if (isSep(path.charCodeAt(i))) {
26
+ if (matchedNonSeparator) {
27
+ start = i + 1;
28
+ break;
29
+ }
30
+ }
31
+ else if (!matchedNonSeparator) {
32
+ matchedNonSeparator = true;
33
+ end = i + 1;
34
+ }
35
+ }
36
+ return path.slice(start, end);
37
+ }
38
+ function assertArgs(path, suffix) {
39
+ (0, assert_path_js_1.assertPath)(path);
40
+ if (path.length === 0)
41
+ return path;
42
+ if (typeof suffix !== "string") {
43
+ throw new TypeError(`Suffix must be a string. Received ${JSON.stringify(suffix)}`);
44
+ }
45
+ }
@@ -0,0 +1,2 @@
1
+ export declare function common(paths: string[], sep: string): string;
2
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.0/_common/common.ts"],"names":[],"mappings":"AAGA,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAsB3D"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.common = common;
6
+ function common(paths, sep) {
7
+ const [first = "", ...remaining] = paths;
8
+ const parts = first.split(sep);
9
+ let endOfPrefix = parts.length;
10
+ let append = "";
11
+ for (const path of remaining) {
12
+ const compare = path.split(sep);
13
+ if (compare.length <= endOfPrefix) {
14
+ endOfPrefix = compare.length;
15
+ append = "";
16
+ }
17
+ for (let i = 0; i < endOfPrefix; i++) {
18
+ if (compare[i] !== parts[i]) {
19
+ endOfPrefix = i;
20
+ append = i === 0 ? "" : sep;
21
+ break;
22
+ }
23
+ }
24
+ }
25
+ return parts.slice(0, endOfPrefix).join(sep) + append;
26
+ }
@@ -0,0 +1,40 @@
1
+ export declare const CHAR_UPPERCASE_A = 65;
2
+ export declare const CHAR_LOWERCASE_A = 97;
3
+ export declare const CHAR_UPPERCASE_Z = 90;
4
+ export declare const CHAR_LOWERCASE_Z = 122;
5
+ export declare const CHAR_DOT = 46;
6
+ export declare const CHAR_FORWARD_SLASH = 47;
7
+ export declare const CHAR_BACKWARD_SLASH = 92;
8
+ export declare const CHAR_VERTICAL_LINE = 124;
9
+ export declare const CHAR_COLON = 58;
10
+ export declare const CHAR_QUESTION_MARK = 63;
11
+ export declare const CHAR_UNDERSCORE = 95;
12
+ export declare const CHAR_LINE_FEED = 10;
13
+ export declare const CHAR_CARRIAGE_RETURN = 13;
14
+ export declare const CHAR_TAB = 9;
15
+ export declare const CHAR_FORM_FEED = 12;
16
+ export declare const CHAR_EXCLAMATION_MARK = 33;
17
+ export declare const CHAR_HASH = 35;
18
+ export declare const CHAR_SPACE = 32;
19
+ export declare const CHAR_NO_BREAK_SPACE = 160;
20
+ export declare const CHAR_ZERO_WIDTH_NOBREAK_SPACE = 65279;
21
+ export declare const CHAR_LEFT_SQUARE_BRACKET = 91;
22
+ export declare const CHAR_RIGHT_SQUARE_BRACKET = 93;
23
+ export declare const CHAR_LEFT_ANGLE_BRACKET = 60;
24
+ export declare const CHAR_RIGHT_ANGLE_BRACKET = 62;
25
+ export declare const CHAR_LEFT_CURLY_BRACKET = 123;
26
+ export declare const CHAR_RIGHT_CURLY_BRACKET = 125;
27
+ export declare const CHAR_HYPHEN_MINUS = 45;
28
+ export declare const CHAR_PLUS = 43;
29
+ export declare const CHAR_DOUBLE_QUOTE = 34;
30
+ export declare const CHAR_SINGLE_QUOTE = 39;
31
+ export declare const CHAR_PERCENT = 37;
32
+ export declare const CHAR_SEMICOLON = 59;
33
+ export declare const CHAR_CIRCUMFLEX_ACCENT = 94;
34
+ export declare const CHAR_GRAVE_ACCENT = 96;
35
+ export declare const CHAR_AT = 64;
36
+ export declare const CHAR_AMPERSAND = 38;
37
+ export declare const CHAR_EQUAL = 61;
38
+ export declare const CHAR_0 = 48;
39
+ export declare const CHAR_9 = 57;
40
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.0/_common/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAGpC,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AACnD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,OAAO,KAAK,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,UAAU,KAAK,CAAC;AAG7B,eAAO,MAAM,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,MAAM,KAAK,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // Copyright the Browserify authors. MIT License.
4
+ // Ported from https://github.com/browserify/path-browserify/
5
+ // This module is browser compatible.
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.CHAR_9 = exports.CHAR_0 = exports.CHAR_EQUAL = exports.CHAR_AMPERSAND = exports.CHAR_AT = exports.CHAR_GRAVE_ACCENT = exports.CHAR_CIRCUMFLEX_ACCENT = exports.CHAR_SEMICOLON = exports.CHAR_PERCENT = exports.CHAR_SINGLE_QUOTE = exports.CHAR_DOUBLE_QUOTE = exports.CHAR_PLUS = exports.CHAR_HYPHEN_MINUS = exports.CHAR_RIGHT_CURLY_BRACKET = exports.CHAR_LEFT_CURLY_BRACKET = exports.CHAR_RIGHT_ANGLE_BRACKET = exports.CHAR_LEFT_ANGLE_BRACKET = exports.CHAR_RIGHT_SQUARE_BRACKET = exports.CHAR_LEFT_SQUARE_BRACKET = exports.CHAR_ZERO_WIDTH_NOBREAK_SPACE = exports.CHAR_NO_BREAK_SPACE = exports.CHAR_SPACE = exports.CHAR_HASH = exports.CHAR_EXCLAMATION_MARK = exports.CHAR_FORM_FEED = exports.CHAR_TAB = exports.CHAR_CARRIAGE_RETURN = exports.CHAR_LINE_FEED = exports.CHAR_UNDERSCORE = exports.CHAR_QUESTION_MARK = exports.CHAR_COLON = exports.CHAR_VERTICAL_LINE = exports.CHAR_BACKWARD_SLASH = exports.CHAR_FORWARD_SLASH = exports.CHAR_DOT = exports.CHAR_LOWERCASE_Z = exports.CHAR_UPPERCASE_Z = exports.CHAR_LOWERCASE_A = exports.CHAR_UPPERCASE_A = void 0;
8
+ // Alphabet chars.
9
+ exports.CHAR_UPPERCASE_A = 65; /* A */
10
+ exports.CHAR_LOWERCASE_A = 97; /* a */
11
+ exports.CHAR_UPPERCASE_Z = 90; /* Z */
12
+ exports.CHAR_LOWERCASE_Z = 122; /* z */
13
+ // Non-alphabetic chars.
14
+ exports.CHAR_DOT = 46; /* . */
15
+ exports.CHAR_FORWARD_SLASH = 47; /* / */
16
+ exports.CHAR_BACKWARD_SLASH = 92; /* \ */
17
+ exports.CHAR_VERTICAL_LINE = 124; /* | */
18
+ exports.CHAR_COLON = 58; /* : */
19
+ exports.CHAR_QUESTION_MARK = 63; /* ? */
20
+ exports.CHAR_UNDERSCORE = 95; /* _ */
21
+ exports.CHAR_LINE_FEED = 10; /* \n */
22
+ exports.CHAR_CARRIAGE_RETURN = 13; /* \r */
23
+ exports.CHAR_TAB = 9; /* \t */
24
+ exports.CHAR_FORM_FEED = 12; /* \f */
25
+ exports.CHAR_EXCLAMATION_MARK = 33; /* ! */
26
+ exports.CHAR_HASH = 35; /* # */
27
+ exports.CHAR_SPACE = 32; /* */
28
+ exports.CHAR_NO_BREAK_SPACE = 160; /* \u00A0 */
29
+ exports.CHAR_ZERO_WIDTH_NOBREAK_SPACE = 65279; /* \uFEFF */
30
+ exports.CHAR_LEFT_SQUARE_BRACKET = 91; /* [ */
31
+ exports.CHAR_RIGHT_SQUARE_BRACKET = 93; /* ] */
32
+ exports.CHAR_LEFT_ANGLE_BRACKET = 60; /* < */
33
+ exports.CHAR_RIGHT_ANGLE_BRACKET = 62; /* > */
34
+ exports.CHAR_LEFT_CURLY_BRACKET = 123; /* { */
35
+ exports.CHAR_RIGHT_CURLY_BRACKET = 125; /* } */
36
+ exports.CHAR_HYPHEN_MINUS = 45; /* - */
37
+ exports.CHAR_PLUS = 43; /* + */
38
+ exports.CHAR_DOUBLE_QUOTE = 34; /* " */
39
+ exports.CHAR_SINGLE_QUOTE = 39; /* ' */
40
+ exports.CHAR_PERCENT = 37; /* % */
41
+ exports.CHAR_SEMICOLON = 59; /* ; */
42
+ exports.CHAR_CIRCUMFLEX_ACCENT = 94; /* ^ */
43
+ exports.CHAR_GRAVE_ACCENT = 96; /* ` */
44
+ exports.CHAR_AT = 64; /* @ */
45
+ exports.CHAR_AMPERSAND = 38; /* & */
46
+ exports.CHAR_EQUAL = 61; /* = */
47
+ // Digits
48
+ exports.CHAR_0 = 48; /* 0 */
49
+ exports.CHAR_9 = 57; /* 9 */
@@ -0,0 +1,2 @@
1
+ export declare function assertArg(path: string): "." | undefined;
2
+ //# sourceMappingURL=dirname.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dirname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.0/_common/dirname.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,mBAGrC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.assertArg = assertArg;
6
+ const assert_path_js_1 = require("./assert_path.js");
7
+ function assertArg(path) {
8
+ (0, assert_path_js_1.assertPath)(path);
9
+ if (path.length === 0)
10
+ return ".";
11
+ }
@@ -0,0 +1,4 @@
1
+ import type { ParsedPath } from "../types.js";
2
+ export declare function _format(sep: string, pathObject: Partial<ParsedPath>): string;
3
+ export declare function assertArg(pathObject: Partial<ParsedPath>): void;
4
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.0/_common/format.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,OAAO,CACrB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAC9B,MAAM,CAQR;AAED,wBAAgB,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,QAMxD"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._format = _format;
6
+ exports.assertArg = assertArg;
7
+ function _format(sep, pathObject) {
8
+ const dir = pathObject.dir || pathObject.root;
9
+ const base = pathObject.base ||
10
+ (pathObject.name || "") + (pathObject.ext || "");
11
+ if (!dir)
12
+ return base;
13
+ if (base === sep)
14
+ return dir;
15
+ if (dir === pathObject.root)
16
+ return dir + base;
17
+ return dir + sep + base;
18
+ }
19
+ function assertArg(pathObject) {
20
+ if (pathObject === null || typeof pathObject !== "object") {
21
+ throw new TypeError(`The "pathObject" argument must be of type Object. Received type ${typeof pathObject}`);
22
+ }
23
+ }