@mtkruto/node 0.1.112 → 0.1.114

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 (513) hide show
  1. package/esm/0_deps.d.ts +3 -2
  2. package/esm/0_deps.js +3 -2
  3. package/esm/1_utilities.d.ts +1 -0
  4. package/esm/1_utilities.js +1 -0
  5. package/esm/3_types.d.ts +0 -1
  6. package/esm/3_types.js +0 -1
  7. package/esm/4_constants.d.ts +1 -1
  8. package/esm/4_constants.js +1 -1
  9. package/esm/5_client.d.ts +2 -1
  10. package/esm/5_client.js +2 -1
  11. package/esm/client/0_utilities.d.ts +6 -0
  12. package/esm/client/0_utilities.js +53 -0
  13. package/esm/client/3_types.d.ts +76 -8
  14. package/esm/client/3_types.js +1 -1
  15. package/esm/client/4_composer.d.ts +22 -0
  16. package/esm/client/4_composer.js +81 -0
  17. package/esm/client/{4_client.d.ts → 5_client.d.ts} +87 -12
  18. package/esm/client/{4_client.js → 5_client.js} +367 -107
  19. package/esm/client/6_composer.d.ts +4 -0
  20. package/esm/client/6_composer.js +3 -0
  21. package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.d.ts +2 -2
  22. package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.js +2 -2
  23. package/{script/deps/deno.land/std@0.204.0 → esm/deps/deno.land/std@0.207.0}/fmt/colors.d.ts +1 -1
  24. package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/fmt/colors.js +1 -1
  25. package/esm/deps/deno.land/std@0.207.0/path/_common/assert_path.d.ts +1 -0
  26. package/esm/deps/deno.land/std@0.207.0/path/_common/assert_path.js +7 -0
  27. package/esm/deps/deno.land/std@0.207.0/path/_common/basename.d.ts +3 -0
  28. package/esm/deps/deno.land/std@0.207.0/path/_common/basename.js +40 -0
  29. package/esm/deps/deno.land/std@0.207.0/path/_common/common.d.ts +1 -0
  30. package/esm/deps/deno.land/std@0.207.0/path/_common/common.js +23 -0
  31. package/esm/deps/deno.land/std@0.207.0/path/_common/constants.d.ts +39 -0
  32. package/esm/deps/deno.land/std@0.207.0/path/_common/constants.js +46 -0
  33. package/esm/deps/deno.land/std@0.207.0/path/_common/dirname.d.ts +1 -0
  34. package/esm/deps/deno.land/std@0.207.0/path/_common/dirname.js +8 -0
  35. package/esm/deps/deno.land/std@0.207.0/path/_common/format.d.ts +3 -0
  36. package/esm/deps/deno.land/std@0.207.0/path/_common/format.js +19 -0
  37. package/esm/deps/deno.land/std@0.207.0/path/_common/from_file_url.d.ts +1 -0
  38. package/esm/deps/deno.land/std@0.207.0/path/_common/from_file_url.js +9 -0
  39. package/esm/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.d.ts +27 -0
  40. package/esm/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.js +235 -0
  41. package/esm/deps/deno.land/std@0.207.0/path/_common/normalize.d.ts +1 -0
  42. package/esm/deps/deno.land/std@0.207.0/path/_common/normalize.js +8 -0
  43. package/esm/deps/deno.land/std@0.207.0/path/_common/normalize_string.d.ts +1 -0
  44. package/esm/deps/deno.land/std@0.207.0/path/_common/normalize_string.js +77 -0
  45. package/esm/deps/deno.land/std@0.207.0/path/_common/relative.d.ts +1 -0
  46. package/esm/deps/deno.land/std@0.207.0/path/_common/relative.js +9 -0
  47. package/esm/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.d.ts +1 -0
  48. package/esm/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.js +19 -0
  49. package/esm/deps/deno.land/std@0.207.0/path/_common/to_file_url.d.ts +1 -0
  50. package/esm/deps/deno.land/std@0.207.0/path/_common/to_file_url.js +15 -0
  51. package/esm/deps/deno.land/std@0.207.0/path/_interface.d.ts +26 -0
  52. package/esm/deps/deno.land/std@0.207.0/path/_interface.js +3 -0
  53. package/esm/deps/deno.land/std@0.207.0/path/_os.d.ts +3 -0
  54. package/esm/deps/deno.land/std@0.207.0/path/_os.js +18 -0
  55. package/esm/deps/deno.land/std@0.207.0/path/basename.d.ts +8 -0
  56. package/esm/deps/deno.land/std@0.207.0/path/basename.js +17 -0
  57. package/esm/deps/deno.land/std@0.207.0/path/common.d.ts +13 -0
  58. package/esm/deps/deno.land/std@0.207.0/path/common.js +19 -0
  59. package/esm/deps/deno.land/std@0.207.0/path/dirname.d.ts +5 -0
  60. package/esm/deps/deno.land/std@0.207.0/path/dirname.js +12 -0
  61. package/esm/deps/deno.land/std@0.207.0/path/extname.d.ts +6 -0
  62. package/esm/deps/deno.land/std@0.207.0/path/extname.js +13 -0
  63. package/esm/deps/deno.land/std@0.207.0/path/format.d.ts +6 -0
  64. package/esm/deps/deno.land/std@0.207.0/path/format.js +12 -0
  65. package/esm/deps/deno.land/std@0.207.0/path/from_file_url.d.ts +17 -0
  66. package/esm/deps/deno.land/std@0.207.0/path/from_file_url.js +24 -0
  67. package/esm/deps/deno.land/std@0.207.0/path/glob_to_regexp.d.ts +61 -0
  68. package/esm/deps/deno.land/std@0.207.0/path/glob_to_regexp.js +65 -0
  69. package/esm/deps/deno.land/std@0.207.0/path/is_absolute.d.ts +5 -0
  70. package/esm/deps/deno.land/std@0.207.0/path/is_absolute.js +12 -0
  71. package/esm/deps/deno.land/std@0.207.0/path/is_glob.d.ts +2 -0
  72. package/esm/deps/deno.land/std@0.207.0/path/is_glob.js +28 -0
  73. package/esm/deps/deno.land/std@0.207.0/path/join.d.ts +5 -0
  74. package/esm/deps/deno.land/std@0.207.0/path/join.js +12 -0
  75. package/esm/deps/deno.land/std@0.207.0/path/join_globs.d.ts +3 -0
  76. package/esm/deps/deno.land/std@0.207.0/path/join_globs.js +11 -0
  77. package/esm/deps/deno.land/std@0.207.0/path/mod.d.ts +28 -0
  78. package/esm/deps/deno.land/std@0.207.0/path/mod.js +63 -0
  79. package/esm/deps/deno.land/std@0.207.0/path/normalize.d.ts +7 -0
  80. package/esm/deps/deno.land/std@0.207.0/path/normalize.js +14 -0
  81. package/esm/deps/deno.land/std@0.207.0/path/normalize_glob.d.ts +3 -0
  82. package/esm/deps/deno.land/std@0.207.0/path/normalize_glob.js +11 -0
  83. package/esm/deps/deno.land/std@0.207.0/path/parse.d.ts +6 -0
  84. package/esm/deps/deno.land/std@0.207.0/path/parse.js +12 -0
  85. package/esm/deps/deno.land/std@0.207.0/path/posix/_util.d.ts +1 -0
  86. package/esm/deps/deno.land/std@0.207.0/path/posix/_util.js +8 -0
  87. package/esm/deps/deno.land/std@0.207.0/path/posix/basename.d.ts +8 -0
  88. package/esm/deps/deno.land/std@0.207.0/path/posix/basename.js +18 -0
  89. package/esm/deps/deno.land/std@0.207.0/path/posix/common.d.ts +13 -0
  90. package/esm/deps/deno.land/std@0.207.0/path/posix/common.js +19 -0
  91. package/esm/deps/deno.land/std@0.207.0/path/posix/dirname.d.ts +5 -0
  92. package/esm/deps/deno.land/std@0.207.0/path/posix/dirname.js +36 -0
  93. package/esm/deps/deno.land/std@0.207.0/path/posix/extname.d.ts +6 -0
  94. package/esm/deps/deno.land/std@0.207.0/path/posix/extname.js +59 -0
  95. package/esm/deps/deno.land/std@0.207.0/path/posix/format.d.ts +6 -0
  96. package/esm/deps/deno.land/std@0.207.0/path/posix/format.js +11 -0
  97. package/esm/deps/deno.land/std@0.207.0/path/posix/from_file_url.d.ts +11 -0
  98. package/esm/deps/deno.land/std@0.207.0/path/posix/from_file_url.js +17 -0
  99. package/esm/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.d.ts +57 -0
  100. package/esm/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.js +69 -0
  101. package/esm/deps/deno.land/std@0.207.0/path/posix/is_absolute.d.ts +5 -0
  102. package/esm/deps/deno.land/std@0.207.0/path/posix/is_absolute.js +12 -0
  103. package/esm/deps/deno.land/std@0.207.0/path/posix/is_glob.d.ts +1 -0
  104. package/esm/deps/deno.land/std@0.207.0/path/posix/is_glob.js +3 -0
  105. package/esm/deps/deno.land/std@0.207.0/path/posix/join.d.ts +5 -0
  106. package/esm/deps/deno.land/std@0.207.0/path/posix/join.js +26 -0
  107. package/esm/deps/deno.land/std@0.207.0/path/posix/join_globs.d.ts +3 -0
  108. package/esm/deps/deno.land/std@0.207.0/path/posix/join_globs.js +26 -0
  109. package/esm/deps/deno.land/std@0.207.0/path/posix/mod.d.ts +40 -0
  110. package/esm/deps/deno.land/std@0.207.0/path/posix/mod.js +44 -0
  111. package/esm/deps/deno.land/std@0.207.0/path/posix/normalize.d.ts +7 -0
  112. package/esm/deps/deno.land/std@0.207.0/path/posix/normalize.js +25 -0
  113. package/esm/deps/deno.land/std@0.207.0/path/posix/normalize_glob.d.ts +3 -0
  114. package/esm/deps/deno.land/std@0.207.0/path/posix/normalize_glob.js +16 -0
  115. package/esm/deps/deno.land/std@0.207.0/path/posix/parse.d.ts +6 -0
  116. package/esm/deps/deno.land/std@0.207.0/path/posix/parse.js +98 -0
  117. package/esm/deps/deno.land/std@0.207.0/path/posix/relative.d.ts +7 -0
  118. package/esm/deps/deno.land/std@0.207.0/path/posix/relative.js +94 -0
  119. package/esm/deps/deno.land/std@0.207.0/path/posix/resolve.d.ts +5 -0
  120. package/esm/deps/deno.land/std@0.207.0/path/posix/resolve.js +48 -0
  121. package/esm/deps/deno.land/std@0.207.0/path/posix/separator.d.ts +2 -0
  122. package/esm/deps/deno.land/std@0.207.0/path/posix/separator.js +4 -0
  123. package/esm/deps/deno.land/std@0.207.0/path/posix/to_file_url.d.ts +11 -0
  124. package/esm/deps/deno.land/std@0.207.0/path/posix/to_file_url.js +22 -0
  125. package/esm/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.d.ts +5 -0
  126. package/esm/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.js +10 -0
  127. package/esm/deps/deno.land/std@0.207.0/path/relative.d.ts +12 -0
  128. package/esm/deps/deno.land/std@0.207.0/path/relative.js +19 -0
  129. package/esm/deps/deno.land/std@0.207.0/path/resolve.d.ts +5 -0
  130. package/esm/deps/deno.land/std@0.207.0/path/resolve.js +14 -0
  131. package/esm/deps/deno.land/std@0.207.0/path/separator.d.ts +2 -0
  132. package/esm/deps/deno.land/std@0.207.0/path/separator.js +5 -0
  133. package/esm/deps/deno.land/std@0.207.0/path/to_file_url.d.ts +17 -0
  134. package/esm/deps/deno.land/std@0.207.0/path/to_file_url.js +24 -0
  135. package/esm/deps/deno.land/std@0.207.0/path/to_namespaced_path.d.ts +5 -0
  136. package/esm/deps/deno.land/std@0.207.0/path/to_namespaced_path.js +14 -0
  137. package/esm/deps/deno.land/std@0.207.0/path/windows/_util.d.ts +3 -0
  138. package/esm/deps/deno.land/std@0.207.0/path/windows/_util.js +15 -0
  139. package/esm/deps/deno.land/std@0.207.0/path/windows/basename.d.ts +8 -0
  140. package/esm/deps/deno.land/std@0.207.0/path/windows/basename.js +30 -0
  141. package/esm/deps/deno.land/std@0.207.0/path/windows/common.d.ts +13 -0
  142. package/esm/deps/deno.land/std@0.207.0/path/windows/common.js +19 -0
  143. package/esm/deps/deno.land/std@0.207.0/path/windows/dirname.d.ts +5 -0
  144. package/esm/deps/deno.land/std@0.207.0/path/windows/dirname.js +98 -0
  145. package/esm/deps/deno.land/std@0.207.0/path/windows/extname.d.ts +6 -0
  146. package/esm/deps/deno.land/std@0.207.0/path/windows/extname.js +68 -0
  147. package/esm/deps/deno.land/std@0.207.0/path/windows/format.d.ts +6 -0
  148. package/esm/deps/deno.land/std@0.207.0/path/windows/format.js +11 -0
  149. package/esm/deps/deno.land/std@0.207.0/path/windows/from_file_url.d.ts +13 -0
  150. package/esm/deps/deno.land/std@0.207.0/path/windows/from_file_url.js +26 -0
  151. package/esm/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.d.ts +57 -0
  152. package/esm/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.js +69 -0
  153. package/esm/deps/deno.land/std@0.207.0/path/windows/is_absolute.d.ts +5 -0
  154. package/esm/deps/deno.land/std@0.207.0/path/windows/is_absolute.js +27 -0
  155. package/esm/deps/deno.land/std@0.207.0/path/windows/is_glob.d.ts +1 -0
  156. package/esm/deps/deno.land/std@0.207.0/path/windows/is_glob.js +3 -0
  157. package/esm/deps/deno.land/std@0.207.0/path/windows/join.d.ts +5 -0
  158. package/esm/deps/deno.land/std@0.207.0/path/windows/join.js +72 -0
  159. package/esm/deps/deno.land/std@0.207.0/path/windows/join_globs.d.ts +3 -0
  160. package/esm/deps/deno.land/std@0.207.0/path/windows/join_globs.js +26 -0
  161. package/esm/deps/deno.land/std@0.207.0/path/windows/mod.d.ts +40 -0
  162. package/esm/deps/deno.land/std@0.207.0/path/windows/mod.js +44 -0
  163. package/esm/deps/deno.land/std@0.207.0/path/windows/normalize.d.ts +7 -0
  164. package/esm/deps/deno.land/std@0.207.0/path/windows/normalize.js +130 -0
  165. package/esm/deps/deno.land/std@0.207.0/path/windows/normalize_glob.d.ts +3 -0
  166. package/esm/deps/deno.land/std@0.207.0/path/windows/normalize_glob.js +16 -0
  167. package/esm/deps/deno.land/std@0.207.0/path/windows/parse.d.ts +6 -0
  168. package/esm/deps/deno.land/std@0.207.0/path/windows/parse.js +159 -0
  169. package/esm/deps/deno.land/std@0.207.0/path/windows/relative.d.ts +12 -0
  170. package/esm/deps/deno.land/std@0.207.0/path/windows/relative.js +121 -0
  171. package/esm/deps/deno.land/std@0.207.0/path/windows/resolve.d.ts +5 -0
  172. package/esm/deps/deno.land/std@0.207.0/path/windows/resolve.js +143 -0
  173. package/esm/deps/deno.land/std@0.207.0/path/windows/separator.d.ts +2 -0
  174. package/esm/deps/deno.land/std@0.207.0/path/windows/separator.js +4 -0
  175. package/esm/deps/deno.land/std@0.207.0/path/windows/to_file_url.d.ts +13 -0
  176. package/esm/deps/deno.land/std@0.207.0/path/windows/to_file_url.js +31 -0
  177. package/esm/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.d.ts +5 -0
  178. package/esm/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.js +38 -0
  179. package/esm/mod.d.ts +1 -1
  180. package/esm/mod.js +1 -1
  181. package/esm/tl/0_tl_raw_reader.d.ts +1 -0
  182. package/esm/tl/0_tl_raw_reader.js +3 -0
  183. package/esm/tl/3_deserialize.js +7 -2
  184. package/esm/types/1_chat.d.ts +2 -3
  185. package/esm/types/1_chat.js +4 -5
  186. package/esm/types/1_user.d.ts +2 -3
  187. package/esm/types/1_user.js +2 -3
  188. package/esm/types/5_inline_query_result.js +7 -0
  189. package/esm/utilities/0_color.d.ts +3 -0
  190. package/esm/utilities/0_color.js +55 -0
  191. package/package.json +1 -1
  192. package/script/0_deps.d.ts +3 -2
  193. package/script/0_deps.js +18 -5
  194. package/script/1_utilities.d.ts +1 -0
  195. package/script/1_utilities.js +1 -0
  196. package/script/3_types.d.ts +0 -1
  197. package/script/3_types.js +0 -1
  198. package/script/4_constants.d.ts +1 -1
  199. package/script/4_constants.js +1 -1
  200. package/script/5_client.d.ts +2 -1
  201. package/script/5_client.js +2 -1
  202. package/script/client/0_utilities.d.ts +6 -0
  203. package/script/client/0_utilities.js +79 -1
  204. package/script/client/3_types.d.ts +76 -8
  205. package/script/client/3_types.js +0 -3
  206. package/script/client/4_composer.d.ts +22 -0
  207. package/script/client/4_composer.js +88 -0
  208. package/script/client/{4_client.d.ts → 5_client.d.ts} +87 -12
  209. package/script/client/{4_client.js → 5_client.js} +369 -108
  210. package/script/client/6_composer.d.ts +4 -0
  211. package/script/client/6_composer.js +7 -0
  212. package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.d.ts +2 -2
  213. package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.js +2 -2
  214. package/{esm/deps/deno.land/std@0.204.0 → script/deps/deno.land/std@0.207.0}/fmt/colors.d.ts +1 -1
  215. package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/fmt/colors.js +1 -1
  216. package/script/deps/deno.land/std@0.207.0/path/_common/assert_path.d.ts +1 -0
  217. package/script/deps/deno.land/std@0.207.0/path/_common/assert_path.js +11 -0
  218. package/script/deps/deno.land/std@0.207.0/path/_common/basename.d.ts +3 -0
  219. package/script/deps/deno.land/std@0.207.0/path/_common/basename.js +46 -0
  220. package/script/deps/deno.land/std@0.207.0/path/_common/common.d.ts +1 -0
  221. package/script/deps/deno.land/std@0.207.0/path/_common/common.js +27 -0
  222. package/script/deps/deno.land/std@0.207.0/path/_common/constants.d.ts +39 -0
  223. package/script/deps/deno.land/std@0.207.0/path/_common/constants.js +49 -0
  224. package/script/deps/deno.land/std@0.207.0/path/_common/dirname.d.ts +1 -0
  225. package/script/deps/deno.land/std@0.207.0/path/_common/dirname.js +12 -0
  226. package/script/deps/deno.land/std@0.207.0/path/_common/format.d.ts +3 -0
  227. package/script/deps/deno.land/std@0.207.0/path/_common/format.js +24 -0
  228. package/script/deps/deno.land/std@0.207.0/path/_common/from_file_url.d.ts +1 -0
  229. package/script/deps/deno.land/std@0.207.0/path/_common/from_file_url.js +13 -0
  230. package/script/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.d.ts +27 -0
  231. package/script/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.js +239 -0
  232. package/script/deps/deno.land/std@0.207.0/path/_common/normalize.d.ts +1 -0
  233. package/script/deps/deno.land/std@0.207.0/path/_common/normalize.js +12 -0
  234. package/script/deps/deno.land/std@0.207.0/path/_common/normalize_string.d.ts +1 -0
  235. package/script/deps/deno.land/std@0.207.0/path/_common/normalize_string.js +81 -0
  236. package/script/deps/deno.land/std@0.207.0/path/_common/relative.d.ts +1 -0
  237. package/script/deps/deno.land/std@0.207.0/path/_common/relative.js +13 -0
  238. package/script/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.d.ts +1 -0
  239. package/script/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.js +23 -0
  240. package/script/deps/deno.land/std@0.207.0/path/_common/to_file_url.d.ts +1 -0
  241. package/script/deps/deno.land/std@0.207.0/path/_common/to_file_url.js +19 -0
  242. package/script/deps/deno.land/std@0.207.0/path/_interface.d.ts +26 -0
  243. package/script/deps/deno.land/std@0.207.0/path/_interface.js +4 -0
  244. package/script/deps/deno.land/std@0.207.0/path/_os.d.ts +3 -0
  245. package/script/deps/deno.land/std@0.207.0/path/_os.js +44 -0
  246. package/script/deps/deno.land/std@0.207.0/path/basename.d.ts +8 -0
  247. package/script/deps/deno.land/std@0.207.0/path/basename.js +21 -0
  248. package/script/deps/deno.land/std@0.207.0/path/common.d.ts +13 -0
  249. package/script/deps/deno.land/std@0.207.0/path/common.js +23 -0
  250. package/script/deps/deno.land/std@0.207.0/path/dirname.d.ts +5 -0
  251. package/script/deps/deno.land/std@0.207.0/path/dirname.js +16 -0
  252. package/script/deps/deno.land/std@0.207.0/path/extname.d.ts +6 -0
  253. package/script/deps/deno.land/std@0.207.0/path/extname.js +17 -0
  254. package/script/deps/deno.land/std@0.207.0/path/format.d.ts +6 -0
  255. package/script/deps/deno.land/std@0.207.0/path/format.js +16 -0
  256. package/script/deps/deno.land/std@0.207.0/path/from_file_url.d.ts +17 -0
  257. package/script/deps/deno.land/std@0.207.0/path/from_file_url.js +28 -0
  258. package/script/deps/deno.land/std@0.207.0/path/glob_to_regexp.d.ts +61 -0
  259. package/script/deps/deno.land/std@0.207.0/path/glob_to_regexp.js +69 -0
  260. package/script/deps/deno.land/std@0.207.0/path/is_absolute.d.ts +5 -0
  261. package/script/deps/deno.land/std@0.207.0/path/is_absolute.js +16 -0
  262. package/script/deps/deno.land/std@0.207.0/path/is_glob.d.ts +2 -0
  263. package/script/deps/deno.land/std@0.207.0/path/is_glob.js +32 -0
  264. package/script/deps/deno.land/std@0.207.0/path/join.d.ts +5 -0
  265. package/script/deps/deno.land/std@0.207.0/path/join.js +16 -0
  266. package/script/deps/deno.land/std@0.207.0/path/join_globs.d.ts +3 -0
  267. package/script/deps/deno.land/std@0.207.0/path/join_globs.js +15 -0
  268. package/script/deps/deno.land/std@0.207.0/path/mod.d.ts +28 -0
  269. package/script/deps/deno.land/std@0.207.0/path/mod.js +92 -0
  270. package/script/deps/deno.land/std@0.207.0/path/normalize.d.ts +7 -0
  271. package/script/deps/deno.land/std@0.207.0/path/normalize.js +18 -0
  272. package/script/deps/deno.land/std@0.207.0/path/normalize_glob.d.ts +3 -0
  273. package/script/deps/deno.land/std@0.207.0/path/normalize_glob.js +15 -0
  274. package/script/deps/deno.land/std@0.207.0/path/parse.d.ts +6 -0
  275. package/script/deps/deno.land/std@0.207.0/path/parse.js +16 -0
  276. package/script/deps/deno.land/std@0.207.0/path/posix/_util.d.ts +1 -0
  277. package/script/deps/deno.land/std@0.207.0/path/posix/_util.js +12 -0
  278. package/script/deps/deno.land/std@0.207.0/path/posix/basename.d.ts +8 -0
  279. package/script/deps/deno.land/std@0.207.0/path/posix/basename.js +22 -0
  280. package/script/deps/deno.land/std@0.207.0/path/posix/common.d.ts +13 -0
  281. package/script/deps/deno.land/std@0.207.0/path/posix/common.js +23 -0
  282. package/script/deps/deno.land/std@0.207.0/path/posix/dirname.d.ts +5 -0
  283. package/script/deps/deno.land/std@0.207.0/path/posix/dirname.js +40 -0
  284. package/script/deps/deno.land/std@0.207.0/path/posix/extname.d.ts +6 -0
  285. package/script/deps/deno.land/std@0.207.0/path/posix/extname.js +63 -0
  286. package/script/deps/deno.land/std@0.207.0/path/posix/format.d.ts +6 -0
  287. package/script/deps/deno.land/std@0.207.0/path/posix/format.js +15 -0
  288. package/script/deps/deno.land/std@0.207.0/path/posix/from_file_url.d.ts +11 -0
  289. package/script/deps/deno.land/std@0.207.0/path/posix/from_file_url.js +21 -0
  290. package/script/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.d.ts +57 -0
  291. package/script/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.js +73 -0
  292. package/script/deps/deno.land/std@0.207.0/path/posix/is_absolute.d.ts +5 -0
  293. package/script/deps/deno.land/std@0.207.0/path/posix/is_absolute.js +16 -0
  294. package/script/deps/deno.land/std@0.207.0/path/posix/is_glob.d.ts +1 -0
  295. package/script/deps/deno.land/std@0.207.0/path/posix/is_glob.js +7 -0
  296. package/script/deps/deno.land/std@0.207.0/path/posix/join.d.ts +5 -0
  297. package/script/deps/deno.land/std@0.207.0/path/posix/join.js +30 -0
  298. package/script/deps/deno.land/std@0.207.0/path/posix/join_globs.d.ts +3 -0
  299. package/script/deps/deno.land/std@0.207.0/path/posix/join_globs.js +30 -0
  300. package/script/deps/deno.land/std@0.207.0/path/posix/mod.d.ts +40 -0
  301. package/script/deps/deno.land/std@0.207.0/path/posix/mod.js +61 -0
  302. package/script/deps/deno.land/std@0.207.0/path/posix/normalize.d.ts +7 -0
  303. package/script/deps/deno.land/std@0.207.0/path/posix/normalize.js +29 -0
  304. package/script/deps/deno.land/std@0.207.0/path/posix/normalize_glob.d.ts +3 -0
  305. package/script/deps/deno.land/std@0.207.0/path/posix/normalize_glob.js +20 -0
  306. package/script/deps/deno.land/std@0.207.0/path/posix/parse.d.ts +6 -0
  307. package/script/deps/deno.land/std@0.207.0/path/posix/parse.js +102 -0
  308. package/script/deps/deno.land/std@0.207.0/path/posix/relative.d.ts +7 -0
  309. package/script/deps/deno.land/std@0.207.0/path/posix/relative.js +98 -0
  310. package/script/deps/deno.land/std@0.207.0/path/posix/resolve.d.ts +5 -0
  311. package/script/deps/deno.land/std@0.207.0/path/posix/resolve.js +75 -0
  312. package/script/deps/deno.land/std@0.207.0/path/posix/separator.d.ts +2 -0
  313. package/script/deps/deno.land/std@0.207.0/path/posix/separator.js +7 -0
  314. package/script/deps/deno.land/std@0.207.0/path/posix/to_file_url.d.ts +11 -0
  315. package/script/deps/deno.land/std@0.207.0/path/posix/to_file_url.js +26 -0
  316. package/script/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.d.ts +5 -0
  317. package/script/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.js +14 -0
  318. package/script/deps/deno.land/std@0.207.0/path/relative.d.ts +12 -0
  319. package/script/deps/deno.land/std@0.207.0/path/relative.js +23 -0
  320. package/script/deps/deno.land/std@0.207.0/path/resolve.d.ts +5 -0
  321. package/script/deps/deno.land/std@0.207.0/path/resolve.js +18 -0
  322. package/script/deps/deno.land/std@0.207.0/path/separator.d.ts +2 -0
  323. package/script/deps/deno.land/std@0.207.0/path/separator.js +8 -0
  324. package/script/deps/deno.land/std@0.207.0/path/to_file_url.d.ts +17 -0
  325. package/script/deps/deno.land/std@0.207.0/path/to_file_url.js +28 -0
  326. package/script/deps/deno.land/std@0.207.0/path/to_namespaced_path.d.ts +5 -0
  327. package/script/deps/deno.land/std@0.207.0/path/to_namespaced_path.js +18 -0
  328. package/script/deps/deno.land/std@0.207.0/path/windows/_util.d.ts +3 -0
  329. package/script/deps/deno.land/std@0.207.0/path/windows/_util.js +21 -0
  330. package/script/deps/deno.land/std@0.207.0/path/windows/basename.d.ts +8 -0
  331. package/script/deps/deno.land/std@0.207.0/path/windows/basename.js +34 -0
  332. package/script/deps/deno.land/std@0.207.0/path/windows/common.d.ts +13 -0
  333. package/script/deps/deno.land/std@0.207.0/path/windows/common.js +23 -0
  334. package/script/deps/deno.land/std@0.207.0/path/windows/dirname.d.ts +5 -0
  335. package/script/deps/deno.land/std@0.207.0/path/windows/dirname.js +102 -0
  336. package/script/deps/deno.land/std@0.207.0/path/windows/extname.d.ts +6 -0
  337. package/script/deps/deno.land/std@0.207.0/path/windows/extname.js +72 -0
  338. package/script/deps/deno.land/std@0.207.0/path/windows/format.d.ts +6 -0
  339. package/script/deps/deno.land/std@0.207.0/path/windows/format.js +15 -0
  340. package/script/deps/deno.land/std@0.207.0/path/windows/from_file_url.d.ts +13 -0
  341. package/script/deps/deno.land/std@0.207.0/path/windows/from_file_url.js +30 -0
  342. package/script/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.d.ts +57 -0
  343. package/script/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.js +73 -0
  344. package/script/deps/deno.land/std@0.207.0/path/windows/is_absolute.d.ts +5 -0
  345. package/script/deps/deno.land/std@0.207.0/path/windows/is_absolute.js +31 -0
  346. package/script/deps/deno.land/std@0.207.0/path/windows/is_glob.d.ts +1 -0
  347. package/script/deps/deno.land/std@0.207.0/path/windows/is_glob.js +7 -0
  348. package/script/deps/deno.land/std@0.207.0/path/windows/join.d.ts +5 -0
  349. package/script/deps/deno.land/std@0.207.0/path/windows/join.js +76 -0
  350. package/script/deps/deno.land/std@0.207.0/path/windows/join_globs.d.ts +3 -0
  351. package/script/deps/deno.land/std@0.207.0/path/windows/join_globs.js +30 -0
  352. package/script/deps/deno.land/std@0.207.0/path/windows/mod.d.ts +40 -0
  353. package/script/deps/deno.land/std@0.207.0/path/windows/mod.js +61 -0
  354. package/script/deps/deno.land/std@0.207.0/path/windows/normalize.d.ts +7 -0
  355. package/script/deps/deno.land/std@0.207.0/path/windows/normalize.js +134 -0
  356. package/script/deps/deno.land/std@0.207.0/path/windows/normalize_glob.d.ts +3 -0
  357. package/script/deps/deno.land/std@0.207.0/path/windows/normalize_glob.js +20 -0
  358. package/script/deps/deno.land/std@0.207.0/path/windows/parse.d.ts +6 -0
  359. package/script/deps/deno.land/std@0.207.0/path/windows/parse.js +163 -0
  360. package/script/deps/deno.land/std@0.207.0/path/windows/relative.d.ts +12 -0
  361. package/script/deps/deno.land/std@0.207.0/path/windows/relative.js +125 -0
  362. package/script/deps/deno.land/std@0.207.0/path/windows/resolve.d.ts +5 -0
  363. package/script/deps/deno.land/std@0.207.0/path/windows/resolve.js +170 -0
  364. package/script/deps/deno.land/std@0.207.0/path/windows/separator.d.ts +2 -0
  365. package/script/deps/deno.land/std@0.207.0/path/windows/separator.js +7 -0
  366. package/script/deps/deno.land/std@0.207.0/path/windows/to_file_url.d.ts +13 -0
  367. package/script/deps/deno.land/std@0.207.0/path/windows/to_file_url.js +35 -0
  368. package/script/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.d.ts +5 -0
  369. package/script/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.js +42 -0
  370. package/script/mod.d.ts +1 -1
  371. package/script/mod.js +3 -1
  372. package/script/tl/0_tl_raw_reader.d.ts +1 -0
  373. package/script/tl/0_tl_raw_reader.js +3 -0
  374. package/script/tl/3_deserialize.js +7 -2
  375. package/script/types/1_chat.d.ts +2 -3
  376. package/script/types/1_chat.js +4 -5
  377. package/script/types/1_user.d.ts +2 -3
  378. package/script/types/1_user.js +1 -2
  379. package/script/types/5_inline_query_result.js +7 -0
  380. package/script/utilities/0_color.d.ts +3 -0
  381. package/script/utilities/0_color.js +60 -0
  382. package/esm/types/0_color.d.ts +0 -3
  383. package/esm/types/0_color.js +0 -36
  384. package/script/types/0_color.d.ts +0 -3
  385. package/script/types/0_color.js +0 -41
  386. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.d.ts +0 -0
  387. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.js +0 -0
  388. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.d.ts +0 -0
  389. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.js +0 -0
  390. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.d.ts +0 -0
  391. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.js +0 -0
  392. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.d.ts +0 -0
  393. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.js +0 -0
  394. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.d.ts +0 -0
  395. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.js +0 -0
  396. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.d.ts +0 -0
  397. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.js +0 -0
  398. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.d.ts +0 -0
  399. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.js +0 -0
  400. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.d.ts +0 -0
  401. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.js +0 -0
  402. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.d.ts +0 -0
  403. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.js +0 -0
  404. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.d.ts +0 -0
  405. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.js +0 -0
  406. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.d.ts +0 -0
  407. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.js +0 -0
  408. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.d.ts +0 -0
  409. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.js +0 -0
  410. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.d.ts +0 -0
  411. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.js +0 -0
  412. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.d.ts +0 -0
  413. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.js +0 -0
  414. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.d.ts +0 -0
  415. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.js +0 -0
  416. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.d.ts +0 -0
  417. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.js +0 -0
  418. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.d.ts +0 -0
  419. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.js +0 -0
  420. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.d.ts +0 -0
  421. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.js +0 -0
  422. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.d.ts +0 -0
  423. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.js +0 -0
  424. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.d.ts +0 -0
  425. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.js +0 -0
  426. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.d.ts +0 -0
  427. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.js +0 -0
  428. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.d.ts +0 -0
  429. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.js +0 -0
  430. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.d.ts +0 -0
  431. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.js +0 -0
  432. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.d.ts +0 -0
  433. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.js +0 -0
  434. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.d.ts +0 -0
  435. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.js +0 -0
  436. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.d.ts +0 -0
  437. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.js +0 -0
  438. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.d.ts +0 -0
  439. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.js +0 -0
  440. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.d.ts +0 -0
  441. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.js +0 -0
  442. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.d.ts +0 -0
  443. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.js +0 -0
  444. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.d.ts +0 -0
  445. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.js +0 -0
  446. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.d.ts +0 -0
  447. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.js +0 -0
  448. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.d.ts +0 -0
  449. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.js +0 -0
  450. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.d.ts +0 -0
  451. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.js +0 -0
  452. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.d.ts +0 -0
  453. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.js +0 -0
  454. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.d.ts +0 -0
  455. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.js +0 -0
  456. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.d.ts +0 -0
  457. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.js +0 -0
  458. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.d.ts +0 -0
  459. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.js +0 -0
  460. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.d.ts +0 -0
  461. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.js +0 -0
  462. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.d.ts +0 -0
  463. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.js +0 -0
  464. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.d.ts +0 -0
  465. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.js +0 -0
  466. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.d.ts +0 -0
  467. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.js +0 -0
  468. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.d.ts +0 -0
  469. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.js +0 -0
  470. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.d.ts +0 -0
  471. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.js +0 -0
  472. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.d.ts +0 -0
  473. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.js +0 -0
  474. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.d.ts +0 -0
  475. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.js +0 -0
  476. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.d.ts +0 -0
  477. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.js +0 -0
  478. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.d.ts +0 -0
  479. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.js +0 -0
  480. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.js +0 -0
  482. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.js +0 -0
  484. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.js +0 -0
  486. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.js +0 -0
  488. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.js +0 -0
  490. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.js +0 -0
  492. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.js +0 -0
  494. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.js +0 -0
  496. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.d.ts +0 -0
  497. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.js +0 -0
  498. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.d.ts +0 -0
  499. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.js +0 -0
  500. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.js +0 -0
  502. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.js +0 -0
  504. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.js +0 -0
  506. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.js +0 -0
  508. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.js +0 -0
  510. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.js +0 -0
  512. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.js +0 -0
@@ -0,0 +1,19 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // Copyright the Browserify authors. MIT License.
3
+ // Ported from https://github.com/browserify/path-browserify/
4
+ // This module is browser compatible.
5
+ export function stripTrailingSeparators(segment, isSep) {
6
+ if (segment.length <= 1) {
7
+ return segment;
8
+ }
9
+ let end = segment.length;
10
+ for (let i = segment.length - 1; i > 0; i--) {
11
+ if (isSep(segment.charCodeAt(i))) {
12
+ end = i;
13
+ }
14
+ else {
15
+ break;
16
+ }
17
+ }
18
+ return segment.slice(0, end);
19
+ }
@@ -0,0 +1 @@
1
+ export declare function encodeWhitespace(string: string): string;
@@ -0,0 +1,15 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ const WHITESPACE_ENCODINGS = {
4
+ "\u0009": "%09",
5
+ "\u000A": "%0A",
6
+ "\u000B": "%0B",
7
+ "\u000C": "%0C",
8
+ "\u000D": "%0D",
9
+ "\u0020": "%20",
10
+ };
11
+ export function encodeWhitespace(string) {
12
+ return string.replaceAll(/[\s]/g, (c) => {
13
+ return WHITESPACE_ENCODINGS[c] ?? c;
14
+ });
15
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * A parsed path object generated by path.parse() or consumed by path.format().
3
+ */
4
+ export interface ParsedPath {
5
+ /**
6
+ * The root of the path such as '/' or 'c:\'
7
+ */
8
+ root: string;
9
+ /**
10
+ * The full directory path such as '/home/user/dir' or 'c:\path\dir'
11
+ */
12
+ dir: string;
13
+ /**
14
+ * The file name including extension (if any) such as 'index.html'
15
+ */
16
+ base: string;
17
+ /**
18
+ * The file extension (if any) such as '.html'
19
+ */
20
+ ext: string;
21
+ /**
22
+ * The file name without extension (if any) such as 'index'
23
+ */
24
+ name: string;
25
+ }
26
+ export type FormatInputPathObject = Partial<ParsedPath>;
@@ -0,0 +1,3 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ export {};
@@ -0,0 +1,3 @@
1
+ export type OSType = "darwin" | "linux" | "windows" | "freebsd" | "netbsd" | "aix" | "solaris" | "illumos";
2
+ export declare const osType: OSType;
3
+ export declare const isWindows: boolean;
@@ -0,0 +1,18 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ // Keep this up-to-date with Deno.build.os
4
+ import * as dntShim from "../../../../_dnt.shims.js";
5
+ export const osType = (() => {
6
+ // deno-lint-ignore no-explicit-any
7
+ const { Deno } = dntShim.dntGlobalThis;
8
+ if (typeof Deno?.build?.os === "string") {
9
+ return Deno.build.os;
10
+ }
11
+ // deno-lint-ignore no-explicit-any
12
+ const { navigator } = dntShim.dntGlobalThis;
13
+ if (navigator?.appVersion?.includes?.("Win")) {
14
+ return "windows";
15
+ }
16
+ return "linux";
17
+ })();
18
+ export const isWindows = osType === "windows";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Return the last portion of a `path`.
3
+ * Trailing directory separators are ignored, and optional suffix is removed.
4
+ *
5
+ * @param path - path to extract the name from.
6
+ * @param [suffix] - suffix to remove from extracted name.
7
+ */
8
+ export declare function basename(path: string, suffix?: string): string;
@@ -0,0 +1,17 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { basename as posixBasename } from "./posix/basename.js";
5
+ import { basename as windowsBasename } from "./windows/basename.js";
6
+ /**
7
+ * Return the last portion of a `path`.
8
+ * Trailing directory separators are ignored, and optional suffix is removed.
9
+ *
10
+ * @param path - path to extract the name from.
11
+ * @param [suffix] - suffix to remove from extracted name.
12
+ */
13
+ export function basename(path, suffix = "") {
14
+ return isWindows
15
+ ? windowsBasename(path, suffix)
16
+ : posixBasename(path, suffix);
17
+ }
@@ -0,0 +1,13 @@
1
+ /** Determines the common path from a set of paths, using an optional separator,
2
+ * which defaults to the OS default separator.
3
+ *
4
+ * ```ts
5
+ * import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
6
+ * const p = common([
7
+ * "./deno/std/path/mod.ts",
8
+ * "./deno/std/fs/mod.ts",
9
+ * ]);
10
+ * console.log(p); // "./deno/std/"
11
+ * ```
12
+ */
13
+ export declare function common(paths: string[], sep?: string): string;
@@ -0,0 +1,19 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { _common } from "./_common/common.js";
4
+ import { SEP } from "./separator.js";
5
+ /** Determines the common path from a set of paths, using an optional separator,
6
+ * which defaults to the OS default separator.
7
+ *
8
+ * ```ts
9
+ * import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
10
+ * const p = common([
11
+ * "./deno/std/path/mod.ts",
12
+ * "./deno/std/fs/mod.ts",
13
+ * ]);
14
+ * console.log(p); // "./deno/std/"
15
+ * ```
16
+ */
17
+ export function common(paths, sep = SEP) {
18
+ return _common(paths, sep);
19
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Return the directory path of a `path`.
3
+ * @param path - path to extract the directory from.
4
+ */
5
+ export declare function dirname(path: string): string;
@@ -0,0 +1,12 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { dirname as posixDirname } from "./posix/dirname.js";
5
+ import { dirname as windowsDirname } from "./windows/dirname.js";
6
+ /**
7
+ * Return the directory path of a `path`.
8
+ * @param path - path to extract the directory from.
9
+ */
10
+ export function dirname(path) {
11
+ return isWindows ? windowsDirname(path) : posixDirname(path);
12
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Return the extension of the `path` with leading period.
3
+ * @param path with extension
4
+ * @returns extension (ex. for `file.ts` returns `.ts`)
5
+ */
6
+ export declare function extname(path: string): string;
@@ -0,0 +1,13 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { extname as posixExtname } from "./posix/extname.js";
5
+ import { extname as windowsExtname } from "./posix/extname.js";
6
+ /**
7
+ * Return the extension of the `path` with leading period.
8
+ * @param path with extension
9
+ * @returns extension (ex. for `file.ts` returns `.ts`)
10
+ */
11
+ export function extname(path) {
12
+ return isWindows ? windowsExtname(path) : posixExtname(path);
13
+ }
@@ -0,0 +1,6 @@
1
+ import { FormatInputPathObject } from "./_interface.js";
2
+ /**
3
+ * Generate a path from `FormatInputPathObject` object.
4
+ * @param pathObject with path
5
+ */
6
+ export declare function format(pathObject: FormatInputPathObject): string;
@@ -0,0 +1,12 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { format as posixFormat } from "./posix/format.js";
5
+ import { format as windowsFormat } from "./windows/format.js";
6
+ /**
7
+ * Generate a path from `FormatInputPathObject` object.
8
+ * @param pathObject with path
9
+ */
10
+ export function format(pathObject) {
11
+ return isWindows ? windowsFormat(pathObject) : posixFormat(pathObject);
12
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Converts a file URL to a path string.
3
+ *
4
+ * ```ts
5
+ * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/from_file_url.ts";
6
+ *
7
+ * // posix
8
+ * fromFileUrl("file:///home/foo"); // "/home/foo"
9
+ *
10
+ * // win32
11
+ * fromFileUrl("file:///home/foo"); // "\\home\\foo"
12
+ * fromFileUrl("file:///C:/Users/foo"); // "C:\\Users\\foo"
13
+ * fromFileUrl("file://localhost/home/foo"); // "\\\\localhost\\home\\foo"
14
+ * ```
15
+ * @param url of a file URL
16
+ */
17
+ export declare function fromFileUrl(url: string | URL): string;
@@ -0,0 +1,24 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { fromFileUrl as posixFromFileUrl } from "./posix/from_file_url.js";
5
+ import { fromFileUrl as windowsFromFileUrl } from "./windows/from_file_url.js";
6
+ /**
7
+ * Converts a file URL to a path string.
8
+ *
9
+ * ```ts
10
+ * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/from_file_url.ts";
11
+ *
12
+ * // posix
13
+ * fromFileUrl("file:///home/foo"); // "/home/foo"
14
+ *
15
+ * // win32
16
+ * fromFileUrl("file:///home/foo"); // "\\home\\foo"
17
+ * fromFileUrl("file:///C:/Users/foo"); // "C:\\Users\\foo"
18
+ * fromFileUrl("file://localhost/home/foo"); // "\\\\localhost\\home\\foo"
19
+ * ```
20
+ * @param url of a file URL
21
+ */
22
+ export function fromFileUrl(url) {
23
+ return isWindows ? windowsFromFileUrl(url) : posixFromFileUrl(url);
24
+ }
@@ -0,0 +1,61 @@
1
+ import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
+ import { OSType } from "./_os.js";
3
+ export type GlobToRegExpOptions = GlobOptions & {
4
+ os?: OSType;
5
+ };
6
+ /** Convert a glob string to a regular expression.
7
+ *
8
+ * Tries to match bash glob expansion as closely as possible.
9
+ *
10
+ * Basic glob syntax:
11
+ * - `*` - Matches everything without leaving the path segment.
12
+ * - `?` - Matches any single character.
13
+ * - `{foo,bar}` - Matches `foo` or `bar`.
14
+ * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
15
+ * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
16
+ * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
17
+ * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
18
+ * - `[[:alnum:]]` - Matches any digit or letter.
19
+ * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
20
+ * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
21
+ * for a complete list of supported character classes.
22
+ * - `\` - Escapes the next character for an `os` other than `"windows"`.
23
+ * - \` - Escapes the next character for `os` set to `"windows"`.
24
+ * - `/` - Path separator.
25
+ * - `\` - Additional path separator only for `os` set to `"windows"`.
26
+ *
27
+ * Extended syntax:
28
+ * - Requires `{ extended: true }`.
29
+ * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
30
+ * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
31
+ * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
32
+ * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
33
+ * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
34
+ * - See https://www.linuxjournal.com/content/bash-extended-globbing.
35
+ *
36
+ * Globstar syntax:
37
+ * - Requires `{ globstar: true }`.
38
+ * - `**` - Matches any number of any path segments.
39
+ * - Must comprise its entire path segment in the provided glob.
40
+ * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
41
+ *
42
+ * Note the following properties:
43
+ * - The generated `RegExp` is anchored at both start and end.
44
+ * - Repeating and trailing separators are tolerated. Trailing separators in the
45
+ * provided glob have no meaning and are discarded.
46
+ * - Absolute globs will only match absolute paths, etc.
47
+ * - Empty globs will match nothing.
48
+ * - Any special glob syntax must be contained to one path segment. For example,
49
+ * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
50
+ * first segment ends with an unclosed group.
51
+ * - If a path segment ends with unclosed groups or a dangling escape prefix, a
52
+ * parse error has occurred. Every character for that segment is taken
53
+ * literally in this event.
54
+ *
55
+ * Limitations:
56
+ * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
57
+ * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
58
+ * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
59
+ * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
60
+ * the group occurs not nested at the end of the segment. */
61
+ export declare function globToRegExp(glob: string, options?: GlobToRegExpOptions): RegExp;
@@ -0,0 +1,65 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { globToRegExp as posixGlobToRegExp } from "./posix/glob_to_regexp.js";
5
+ import { globToRegExp as windowsGlobToRegExp, } from "./windows/glob_to_regexp.js";
6
+ /** Convert a glob string to a regular expression.
7
+ *
8
+ * Tries to match bash glob expansion as closely as possible.
9
+ *
10
+ * Basic glob syntax:
11
+ * - `*` - Matches everything without leaving the path segment.
12
+ * - `?` - Matches any single character.
13
+ * - `{foo,bar}` - Matches `foo` or `bar`.
14
+ * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
15
+ * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
16
+ * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
17
+ * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
18
+ * - `[[:alnum:]]` - Matches any digit or letter.
19
+ * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
20
+ * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
21
+ * for a complete list of supported character classes.
22
+ * - `\` - Escapes the next character for an `os` other than `"windows"`.
23
+ * - \` - Escapes the next character for `os` set to `"windows"`.
24
+ * - `/` - Path separator.
25
+ * - `\` - Additional path separator only for `os` set to `"windows"`.
26
+ *
27
+ * Extended syntax:
28
+ * - Requires `{ extended: true }`.
29
+ * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
30
+ * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
31
+ * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
32
+ * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
33
+ * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
34
+ * - See https://www.linuxjournal.com/content/bash-extended-globbing.
35
+ *
36
+ * Globstar syntax:
37
+ * - Requires `{ globstar: true }`.
38
+ * - `**` - Matches any number of any path segments.
39
+ * - Must comprise its entire path segment in the provided glob.
40
+ * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
41
+ *
42
+ * Note the following properties:
43
+ * - The generated `RegExp` is anchored at both start and end.
44
+ * - Repeating and trailing separators are tolerated. Trailing separators in the
45
+ * provided glob have no meaning and are discarded.
46
+ * - Absolute globs will only match absolute paths, etc.
47
+ * - Empty globs will match nothing.
48
+ * - Any special glob syntax must be contained to one path segment. For example,
49
+ * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
50
+ * first segment ends with an unclosed group.
51
+ * - If a path segment ends with unclosed groups or a dangling escape prefix, a
52
+ * parse error has occurred. Every character for that segment is taken
53
+ * literally in this event.
54
+ *
55
+ * Limitations:
56
+ * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
57
+ * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
58
+ * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
59
+ * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
60
+ * the group occurs not nested at the end of the segment. */
61
+ export function globToRegExp(glob, options = {}) {
62
+ return options.os === "windows" || (!options.os && isWindows)
63
+ ? windowsGlobToRegExp(glob, options)
64
+ : posixGlobToRegExp(glob, options);
65
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Verifies whether provided path is absolute
3
+ * @param path to be verified as absolute
4
+ */
5
+ export declare function isAbsolute(path: string): boolean;
@@ -0,0 +1,12 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { isAbsolute as posixIsAbsolute } from "./posix/is_absolute.js";
5
+ import { isAbsolute as windowsIsAbsolute } from "./windows/is_absolute.js";
6
+ /**
7
+ * Verifies whether provided path is absolute
8
+ * @param path to be verified as absolute
9
+ */
10
+ export function isAbsolute(path) {
11
+ return isWindows ? windowsIsAbsolute(path) : posixIsAbsolute(path);
12
+ }
@@ -0,0 +1,2 @@
1
+ /** Test whether the given string is a glob */
2
+ export declare function isGlob(str: string): boolean;
@@ -0,0 +1,28 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ /** Test whether the given string is a glob */
4
+ export function isGlob(str) {
5
+ const chars = { "{": "}", "(": ")", "[": "]" };
6
+ const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
7
+ if (str === "") {
8
+ return false;
9
+ }
10
+ let match;
11
+ while ((match = regex.exec(str))) {
12
+ if (match[2])
13
+ return true;
14
+ let idx = match.index + match[0].length;
15
+ // if an open bracket/brace/paren is escaped,
16
+ // set the index to the next closing character
17
+ const open = match[1];
18
+ const close = open ? chars[open] : null;
19
+ if (open && close) {
20
+ const n = str.indexOf(close, idx);
21
+ if (n !== -1) {
22
+ idx = n + 1;
23
+ }
24
+ }
25
+ str = str.slice(idx);
26
+ }
27
+ return false;
28
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Join all given a sequence of `paths`,then normalizes the resulting path.
3
+ * @param paths to be joined and normalized
4
+ */
5
+ export declare function join(...paths: string[]): string;
@@ -0,0 +1,12 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { join as posixJoin } from "./posix/join.js";
5
+ import { join as windowsJoin } from "./windows/join.js";
6
+ /**
7
+ * Join all given a sequence of `paths`,then normalizes the resulting path.
8
+ * @param paths to be joined and normalized
9
+ */
10
+ export function join(...paths) {
11
+ return isWindows ? windowsJoin(...paths) : posixJoin(...paths);
12
+ }
@@ -0,0 +1,3 @@
1
+ import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
+ /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
3
+ export declare function joinGlobs(globs: string[], options?: GlobOptions): string;
@@ -0,0 +1,11 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { joinGlobs as posixJoinGlobs } from "./posix/join_globs.js";
5
+ import { joinGlobs as windowsJoinGlobs } from "./windows/join_globs.js";
6
+ /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
7
+ export function joinGlobs(globs, options = {}) {
8
+ return isWindows
9
+ ? windowsJoinGlobs(globs, options)
10
+ : posixJoinGlobs(globs, options);
11
+ }
@@ -0,0 +1,28 @@
1
+ import * as _windows from "./windows/mod.js";
2
+ import * as _posix from "./posix/mod.js";
3
+ /** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/path/windows/mod.ts} instead. */
4
+ export declare const win32: typeof _windows;
5
+ /** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/posix/mod.ts} instead. */
6
+ export declare const posix: typeof _posix;
7
+ export declare const sep: string;
8
+ export declare const delimiter: string;
9
+ export * from "./basename.js";
10
+ export * from "./dirname.js";
11
+ export * from "./extname.js";
12
+ export * from "./format.js";
13
+ export * from "./from_file_url.js";
14
+ export * from "./is_absolute.js";
15
+ export * from "./join.js";
16
+ export * from "./normalize.js";
17
+ export * from "./parse.js";
18
+ export * from "./relative.js";
19
+ export * from "./resolve.js";
20
+ export * from "./to_file_url.js";
21
+ export * from "./to_namespaced_path.js";
22
+ export * from "./common.js";
23
+ export * from "./separator.js";
24
+ export * from "./_interface.js";
25
+ export * from "./glob_to_regexp.js";
26
+ export * from "./is_glob.js";
27
+ export * from "./join_globs.js";
28
+ export * from "./normalize_glob.js";
@@ -0,0 +1,63 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // Copyright the Browserify authors. MIT License.
3
+ // Ported mostly from https://github.com/browserify/path-browserify/
4
+ // This module is browser compatible.
5
+ /**
6
+ * Utilities for working with OS-specific file paths.
7
+ *
8
+ * Functions from this module will automatically switch to support the path style
9
+ * of the current OS, either `windows` for Microsoft Windows, or `posix` for
10
+ * every other operating system, eg. Linux, MacOS, BSD etc.
11
+ *
12
+ * To use functions for a specific path style regardless of the current OS
13
+ * import the modules from the platform sub directory instead.
14
+ *
15
+ * Example, for `posix`:
16
+ *
17
+ * ```ts
18
+ * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix/from_file_url.ts";
19
+ * const p = fromFileUrl("file:///home/foo");
20
+ * console.log(p); // "/home/foo"
21
+ * ```
22
+ *
23
+ * or, for `windows`:
24
+ *
25
+ * ```ts
26
+ * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/windows/from_file_url.ts";
27
+ * const p = fromFileUrl("file:///home/foo");
28
+ * console.log(p); // "\\home\\foo"
29
+ * ```
30
+ *
31
+ * This module is browser compatible.
32
+ *
33
+ * @module
34
+ */
35
+ import { isWindows } from "./_os.js";
36
+ import * as _windows from "./windows/mod.js";
37
+ import * as _posix from "./posix/mod.js";
38
+ /** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/path/windows/mod.ts} instead. */
39
+ export const win32 = _windows;
40
+ /** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/posix/mod.ts} instead. */
41
+ export const posix = _posix;
42
+ export const sep = isWindows ? _windows.sep : _posix.sep;
43
+ export const delimiter = isWindows ? _windows.delimiter : _posix.delimiter;
44
+ export * from "./basename.js";
45
+ export * from "./dirname.js";
46
+ export * from "./extname.js";
47
+ export * from "./format.js";
48
+ export * from "./from_file_url.js";
49
+ export * from "./is_absolute.js";
50
+ export * from "./join.js";
51
+ export * from "./normalize.js";
52
+ export * from "./parse.js";
53
+ export * from "./relative.js";
54
+ export * from "./resolve.js";
55
+ export * from "./to_file_url.js";
56
+ export * from "./to_namespaced_path.js";
57
+ export * from "./common.js";
58
+ export * from "./separator.js";
59
+ export * from "./_interface.js";
60
+ export * from "./glob_to_regexp.js";
61
+ export * from "./is_glob.js";
62
+ export * from "./join_globs.js";
63
+ export * from "./normalize_glob.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Normalize the `path`, resolving `'..'` and `'.'` segments.
3
+ * Note that resolving these segments does not necessarily mean that all will be eliminated.
4
+ * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
5
+ * @param path to be normalized
6
+ */
7
+ export declare function normalize(path: string): string;
@@ -0,0 +1,14 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { normalize as posixNormalize } from "./posix/normalize.js";
5
+ import { normalize as windowsNormalize } from "./windows/normalize.js";
6
+ /**
7
+ * Normalize the `path`, resolving `'..'` and `'.'` segments.
8
+ * Note that resolving these segments does not necessarily mean that all will be eliminated.
9
+ * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
10
+ * @param path to be normalized
11
+ */
12
+ export function normalize(path) {
13
+ return isWindows ? windowsNormalize(path) : posixNormalize(path);
14
+ }
@@ -0,0 +1,3 @@
1
+ import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
+ /** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
3
+ export declare function normalizeGlob(glob: string, options?: GlobOptions): string;
@@ -0,0 +1,11 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "./_os.js";
4
+ import { normalizeGlob as posixNormalizeGlob } from "./posix/normalize_glob.js";
5
+ import { normalizeGlob as windowsNormalizeGlob, } from "./windows/normalize_glob.js";
6
+ /** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
7
+ export function normalizeGlob(glob, options = {}) {
8
+ return isWindows
9
+ ? windowsNormalizeGlob(glob, options)
10
+ : posixNormalizeGlob(glob, options);
11
+ }
@@ -0,0 +1,6 @@
1
+ import type { ParsedPath } from "./_interface.js";
2
+ /**
3
+ * Return a `ParsedPath` object of the `path`.
4
+ * @param path to process
5
+ */
6
+ export declare function parse(path: string): ParsedPath;