@mtkruto/node 0.1.113 → 0.1.115

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 (491) 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/client/0_utilities.d.ts +6 -0
  10. package/esm/client/0_utilities.js +53 -0
  11. package/esm/client/3_types.d.ts +60 -2
  12. package/esm/client/5_client.d.ts +44 -6
  13. package/esm/client/5_client.js +170 -42
  14. package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.d.ts +2 -2
  15. package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.js +2 -2
  16. package/{script/deps/deno.land/std@0.204.0 → esm/deps/deno.land/std@0.207.0}/fmt/colors.d.ts +1 -1
  17. package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/fmt/colors.js +1 -1
  18. package/esm/deps/deno.land/std@0.207.0/path/_common/assert_path.d.ts +1 -0
  19. package/esm/deps/deno.land/std@0.207.0/path/_common/assert_path.js +7 -0
  20. package/esm/deps/deno.land/std@0.207.0/path/_common/basename.d.ts +3 -0
  21. package/esm/deps/deno.land/std@0.207.0/path/_common/basename.js +40 -0
  22. package/esm/deps/deno.land/std@0.207.0/path/_common/common.d.ts +1 -0
  23. package/esm/deps/deno.land/std@0.207.0/path/_common/common.js +23 -0
  24. package/esm/deps/deno.land/std@0.207.0/path/_common/constants.d.ts +39 -0
  25. package/esm/deps/deno.land/std@0.207.0/path/_common/constants.js +46 -0
  26. package/esm/deps/deno.land/std@0.207.0/path/_common/dirname.d.ts +1 -0
  27. package/esm/deps/deno.land/std@0.207.0/path/_common/dirname.js +8 -0
  28. package/esm/deps/deno.land/std@0.207.0/path/_common/format.d.ts +3 -0
  29. package/esm/deps/deno.land/std@0.207.0/path/_common/format.js +19 -0
  30. package/esm/deps/deno.land/std@0.207.0/path/_common/from_file_url.d.ts +1 -0
  31. package/esm/deps/deno.land/std@0.207.0/path/_common/from_file_url.js +9 -0
  32. package/esm/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.d.ts +27 -0
  33. package/esm/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.js +235 -0
  34. package/esm/deps/deno.land/std@0.207.0/path/_common/normalize.d.ts +1 -0
  35. package/esm/deps/deno.land/std@0.207.0/path/_common/normalize.js +8 -0
  36. package/esm/deps/deno.land/std@0.207.0/path/_common/normalize_string.d.ts +1 -0
  37. package/esm/deps/deno.land/std@0.207.0/path/_common/normalize_string.js +77 -0
  38. package/esm/deps/deno.land/std@0.207.0/path/_common/relative.d.ts +1 -0
  39. package/esm/deps/deno.land/std@0.207.0/path/_common/relative.js +9 -0
  40. package/esm/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.d.ts +1 -0
  41. package/esm/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.js +19 -0
  42. package/esm/deps/deno.land/std@0.207.0/path/_common/to_file_url.d.ts +1 -0
  43. package/esm/deps/deno.land/std@0.207.0/path/_common/to_file_url.js +15 -0
  44. package/esm/deps/deno.land/std@0.207.0/path/_interface.d.ts +26 -0
  45. package/esm/deps/deno.land/std@0.207.0/path/_interface.js +3 -0
  46. package/esm/deps/deno.land/std@0.207.0/path/_os.d.ts +3 -0
  47. package/esm/deps/deno.land/std@0.207.0/path/_os.js +18 -0
  48. package/esm/deps/deno.land/std@0.207.0/path/basename.d.ts +8 -0
  49. package/esm/deps/deno.land/std@0.207.0/path/basename.js +17 -0
  50. package/esm/deps/deno.land/std@0.207.0/path/common.d.ts +13 -0
  51. package/esm/deps/deno.land/std@0.207.0/path/common.js +19 -0
  52. package/esm/deps/deno.land/std@0.207.0/path/dirname.d.ts +5 -0
  53. package/esm/deps/deno.land/std@0.207.0/path/dirname.js +12 -0
  54. package/esm/deps/deno.land/std@0.207.0/path/extname.d.ts +6 -0
  55. package/esm/deps/deno.land/std@0.207.0/path/extname.js +13 -0
  56. package/esm/deps/deno.land/std@0.207.0/path/format.d.ts +6 -0
  57. package/esm/deps/deno.land/std@0.207.0/path/format.js +12 -0
  58. package/esm/deps/deno.land/std@0.207.0/path/from_file_url.d.ts +17 -0
  59. package/esm/deps/deno.land/std@0.207.0/path/from_file_url.js +24 -0
  60. package/esm/deps/deno.land/std@0.207.0/path/glob_to_regexp.d.ts +61 -0
  61. package/esm/deps/deno.land/std@0.207.0/path/glob_to_regexp.js +65 -0
  62. package/esm/deps/deno.land/std@0.207.0/path/is_absolute.d.ts +5 -0
  63. package/esm/deps/deno.land/std@0.207.0/path/is_absolute.js +12 -0
  64. package/esm/deps/deno.land/std@0.207.0/path/is_glob.d.ts +2 -0
  65. package/esm/deps/deno.land/std@0.207.0/path/is_glob.js +28 -0
  66. package/esm/deps/deno.land/std@0.207.0/path/join.d.ts +5 -0
  67. package/esm/deps/deno.land/std@0.207.0/path/join.js +12 -0
  68. package/esm/deps/deno.land/std@0.207.0/path/join_globs.d.ts +3 -0
  69. package/esm/deps/deno.land/std@0.207.0/path/join_globs.js +11 -0
  70. package/esm/deps/deno.land/std@0.207.0/path/mod.d.ts +28 -0
  71. package/esm/deps/deno.land/std@0.207.0/path/mod.js +63 -0
  72. package/esm/deps/deno.land/std@0.207.0/path/normalize.d.ts +7 -0
  73. package/esm/deps/deno.land/std@0.207.0/path/normalize.js +14 -0
  74. package/esm/deps/deno.land/std@0.207.0/path/normalize_glob.d.ts +3 -0
  75. package/esm/deps/deno.land/std@0.207.0/path/normalize_glob.js +11 -0
  76. package/esm/deps/deno.land/std@0.207.0/path/parse.d.ts +6 -0
  77. package/esm/deps/deno.land/std@0.207.0/path/parse.js +12 -0
  78. package/esm/deps/deno.land/std@0.207.0/path/posix/_util.d.ts +1 -0
  79. package/esm/deps/deno.land/std@0.207.0/path/posix/_util.js +8 -0
  80. package/esm/deps/deno.land/std@0.207.0/path/posix/basename.d.ts +8 -0
  81. package/esm/deps/deno.land/std@0.207.0/path/posix/basename.js +18 -0
  82. package/esm/deps/deno.land/std@0.207.0/path/posix/common.d.ts +13 -0
  83. package/esm/deps/deno.land/std@0.207.0/path/posix/common.js +19 -0
  84. package/esm/deps/deno.land/std@0.207.0/path/posix/dirname.d.ts +5 -0
  85. package/esm/deps/deno.land/std@0.207.0/path/posix/dirname.js +36 -0
  86. package/esm/deps/deno.land/std@0.207.0/path/posix/extname.d.ts +6 -0
  87. package/esm/deps/deno.land/std@0.207.0/path/posix/extname.js +59 -0
  88. package/esm/deps/deno.land/std@0.207.0/path/posix/format.d.ts +6 -0
  89. package/esm/deps/deno.land/std@0.207.0/path/posix/format.js +11 -0
  90. package/esm/deps/deno.land/std@0.207.0/path/posix/from_file_url.d.ts +11 -0
  91. package/esm/deps/deno.land/std@0.207.0/path/posix/from_file_url.js +17 -0
  92. package/esm/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.d.ts +57 -0
  93. package/esm/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.js +69 -0
  94. package/esm/deps/deno.land/std@0.207.0/path/posix/is_absolute.d.ts +5 -0
  95. package/esm/deps/deno.land/std@0.207.0/path/posix/is_absolute.js +12 -0
  96. package/esm/deps/deno.land/std@0.207.0/path/posix/is_glob.d.ts +1 -0
  97. package/esm/deps/deno.land/std@0.207.0/path/posix/is_glob.js +3 -0
  98. package/esm/deps/deno.land/std@0.207.0/path/posix/join.d.ts +5 -0
  99. package/esm/deps/deno.land/std@0.207.0/path/posix/join.js +26 -0
  100. package/esm/deps/deno.land/std@0.207.0/path/posix/join_globs.d.ts +3 -0
  101. package/esm/deps/deno.land/std@0.207.0/path/posix/join_globs.js +26 -0
  102. package/esm/deps/deno.land/std@0.207.0/path/posix/mod.d.ts +40 -0
  103. package/esm/deps/deno.land/std@0.207.0/path/posix/mod.js +44 -0
  104. package/esm/deps/deno.land/std@0.207.0/path/posix/normalize.d.ts +7 -0
  105. package/esm/deps/deno.land/std@0.207.0/path/posix/normalize.js +25 -0
  106. package/esm/deps/deno.land/std@0.207.0/path/posix/normalize_glob.d.ts +3 -0
  107. package/esm/deps/deno.land/std@0.207.0/path/posix/normalize_glob.js +16 -0
  108. package/esm/deps/deno.land/std@0.207.0/path/posix/parse.d.ts +6 -0
  109. package/esm/deps/deno.land/std@0.207.0/path/posix/parse.js +98 -0
  110. package/esm/deps/deno.land/std@0.207.0/path/posix/relative.d.ts +7 -0
  111. package/esm/deps/deno.land/std@0.207.0/path/posix/relative.js +94 -0
  112. package/esm/deps/deno.land/std@0.207.0/path/posix/resolve.d.ts +5 -0
  113. package/esm/deps/deno.land/std@0.207.0/path/posix/resolve.js +48 -0
  114. package/esm/deps/deno.land/std@0.207.0/path/posix/separator.d.ts +2 -0
  115. package/esm/deps/deno.land/std@0.207.0/path/posix/separator.js +4 -0
  116. package/esm/deps/deno.land/std@0.207.0/path/posix/to_file_url.d.ts +11 -0
  117. package/esm/deps/deno.land/std@0.207.0/path/posix/to_file_url.js +22 -0
  118. package/esm/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.d.ts +5 -0
  119. package/esm/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.js +10 -0
  120. package/esm/deps/deno.land/std@0.207.0/path/relative.d.ts +12 -0
  121. package/esm/deps/deno.land/std@0.207.0/path/relative.js +19 -0
  122. package/esm/deps/deno.land/std@0.207.0/path/resolve.d.ts +5 -0
  123. package/esm/deps/deno.land/std@0.207.0/path/resolve.js +14 -0
  124. package/esm/deps/deno.land/std@0.207.0/path/separator.d.ts +2 -0
  125. package/esm/deps/deno.land/std@0.207.0/path/separator.js +5 -0
  126. package/esm/deps/deno.land/std@0.207.0/path/to_file_url.d.ts +17 -0
  127. package/esm/deps/deno.land/std@0.207.0/path/to_file_url.js +24 -0
  128. package/esm/deps/deno.land/std@0.207.0/path/to_namespaced_path.d.ts +5 -0
  129. package/esm/deps/deno.land/std@0.207.0/path/to_namespaced_path.js +14 -0
  130. package/esm/deps/deno.land/std@0.207.0/path/windows/_util.d.ts +3 -0
  131. package/esm/deps/deno.land/std@0.207.0/path/windows/_util.js +15 -0
  132. package/esm/deps/deno.land/std@0.207.0/path/windows/basename.d.ts +8 -0
  133. package/esm/deps/deno.land/std@0.207.0/path/windows/basename.js +30 -0
  134. package/esm/deps/deno.land/std@0.207.0/path/windows/common.d.ts +13 -0
  135. package/esm/deps/deno.land/std@0.207.0/path/windows/common.js +19 -0
  136. package/esm/deps/deno.land/std@0.207.0/path/windows/dirname.d.ts +5 -0
  137. package/esm/deps/deno.land/std@0.207.0/path/windows/dirname.js +98 -0
  138. package/esm/deps/deno.land/std@0.207.0/path/windows/extname.d.ts +6 -0
  139. package/esm/deps/deno.land/std@0.207.0/path/windows/extname.js +68 -0
  140. package/esm/deps/deno.land/std@0.207.0/path/windows/format.d.ts +6 -0
  141. package/esm/deps/deno.land/std@0.207.0/path/windows/format.js +11 -0
  142. package/esm/deps/deno.land/std@0.207.0/path/windows/from_file_url.d.ts +13 -0
  143. package/esm/deps/deno.land/std@0.207.0/path/windows/from_file_url.js +26 -0
  144. package/esm/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.d.ts +57 -0
  145. package/esm/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.js +69 -0
  146. package/esm/deps/deno.land/std@0.207.0/path/windows/is_absolute.d.ts +5 -0
  147. package/esm/deps/deno.land/std@0.207.0/path/windows/is_absolute.js +27 -0
  148. package/esm/deps/deno.land/std@0.207.0/path/windows/is_glob.d.ts +1 -0
  149. package/esm/deps/deno.land/std@0.207.0/path/windows/is_glob.js +3 -0
  150. package/esm/deps/deno.land/std@0.207.0/path/windows/join.d.ts +5 -0
  151. package/esm/deps/deno.land/std@0.207.0/path/windows/join.js +72 -0
  152. package/esm/deps/deno.land/std@0.207.0/path/windows/join_globs.d.ts +3 -0
  153. package/esm/deps/deno.land/std@0.207.0/path/windows/join_globs.js +26 -0
  154. package/esm/deps/deno.land/std@0.207.0/path/windows/mod.d.ts +40 -0
  155. package/esm/deps/deno.land/std@0.207.0/path/windows/mod.js +44 -0
  156. package/esm/deps/deno.land/std@0.207.0/path/windows/normalize.d.ts +7 -0
  157. package/esm/deps/deno.land/std@0.207.0/path/windows/normalize.js +130 -0
  158. package/esm/deps/deno.land/std@0.207.0/path/windows/normalize_glob.d.ts +3 -0
  159. package/esm/deps/deno.land/std@0.207.0/path/windows/normalize_glob.js +16 -0
  160. package/esm/deps/deno.land/std@0.207.0/path/windows/parse.d.ts +6 -0
  161. package/esm/deps/deno.land/std@0.207.0/path/windows/parse.js +159 -0
  162. package/esm/deps/deno.land/std@0.207.0/path/windows/relative.d.ts +12 -0
  163. package/esm/deps/deno.land/std@0.207.0/path/windows/relative.js +121 -0
  164. package/esm/deps/deno.land/std@0.207.0/path/windows/resolve.d.ts +5 -0
  165. package/esm/deps/deno.land/std@0.207.0/path/windows/resolve.js +143 -0
  166. package/esm/deps/deno.land/std@0.207.0/path/windows/separator.d.ts +2 -0
  167. package/esm/deps/deno.land/std@0.207.0/path/windows/separator.js +4 -0
  168. package/esm/deps/deno.land/std@0.207.0/path/windows/to_file_url.d.ts +13 -0
  169. package/esm/deps/deno.land/std@0.207.0/path/windows/to_file_url.js +31 -0
  170. package/esm/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.d.ts +5 -0
  171. package/esm/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.js +38 -0
  172. package/esm/mod.d.ts +1 -1
  173. package/esm/mod.js +1 -1
  174. package/esm/types/1_chat.d.ts +2 -3
  175. package/esm/types/1_chat.js +4 -5
  176. package/esm/types/1_user.d.ts +2 -3
  177. package/esm/types/1_user.js +2 -3
  178. package/esm/utilities/0_color.d.ts +3 -0
  179. package/esm/utilities/0_color.js +55 -0
  180. package/package.json +1 -1
  181. package/script/0_deps.d.ts +3 -2
  182. package/script/0_deps.js +18 -5
  183. package/script/1_utilities.d.ts +1 -0
  184. package/script/1_utilities.js +1 -0
  185. package/script/3_types.d.ts +0 -1
  186. package/script/3_types.js +0 -1
  187. package/script/4_constants.d.ts +1 -1
  188. package/script/4_constants.js +1 -1
  189. package/script/client/0_utilities.d.ts +6 -0
  190. package/script/client/0_utilities.js +79 -1
  191. package/script/client/3_types.d.ts +60 -2
  192. package/script/client/5_client.d.ts +44 -6
  193. package/script/client/5_client.js +169 -41
  194. package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.d.ts +2 -2
  195. package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.js +2 -2
  196. package/{esm/deps/deno.land/std@0.204.0 → script/deps/deno.land/std@0.207.0}/fmt/colors.d.ts +1 -1
  197. package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/fmt/colors.js +1 -1
  198. package/script/deps/deno.land/std@0.207.0/path/_common/assert_path.d.ts +1 -0
  199. package/script/deps/deno.land/std@0.207.0/path/_common/assert_path.js +11 -0
  200. package/script/deps/deno.land/std@0.207.0/path/_common/basename.d.ts +3 -0
  201. package/script/deps/deno.land/std@0.207.0/path/_common/basename.js +46 -0
  202. package/script/deps/deno.land/std@0.207.0/path/_common/common.d.ts +1 -0
  203. package/script/deps/deno.land/std@0.207.0/path/_common/common.js +27 -0
  204. package/script/deps/deno.land/std@0.207.0/path/_common/constants.d.ts +39 -0
  205. package/script/deps/deno.land/std@0.207.0/path/_common/constants.js +49 -0
  206. package/script/deps/deno.land/std@0.207.0/path/_common/dirname.d.ts +1 -0
  207. package/script/deps/deno.land/std@0.207.0/path/_common/dirname.js +12 -0
  208. package/script/deps/deno.land/std@0.207.0/path/_common/format.d.ts +3 -0
  209. package/script/deps/deno.land/std@0.207.0/path/_common/format.js +24 -0
  210. package/script/deps/deno.land/std@0.207.0/path/_common/from_file_url.d.ts +1 -0
  211. package/script/deps/deno.land/std@0.207.0/path/_common/from_file_url.js +13 -0
  212. package/script/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.d.ts +27 -0
  213. package/script/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.js +239 -0
  214. package/script/deps/deno.land/std@0.207.0/path/_common/normalize.d.ts +1 -0
  215. package/script/deps/deno.land/std@0.207.0/path/_common/normalize.js +12 -0
  216. package/script/deps/deno.land/std@0.207.0/path/_common/normalize_string.d.ts +1 -0
  217. package/script/deps/deno.land/std@0.207.0/path/_common/normalize_string.js +81 -0
  218. package/script/deps/deno.land/std@0.207.0/path/_common/relative.d.ts +1 -0
  219. package/script/deps/deno.land/std@0.207.0/path/_common/relative.js +13 -0
  220. package/script/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.d.ts +1 -0
  221. package/script/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.js +23 -0
  222. package/script/deps/deno.land/std@0.207.0/path/_common/to_file_url.d.ts +1 -0
  223. package/script/deps/deno.land/std@0.207.0/path/_common/to_file_url.js +19 -0
  224. package/script/deps/deno.land/std@0.207.0/path/_interface.d.ts +26 -0
  225. package/script/deps/deno.land/std@0.207.0/path/_interface.js +4 -0
  226. package/script/deps/deno.land/std@0.207.0/path/_os.d.ts +3 -0
  227. package/script/deps/deno.land/std@0.207.0/path/_os.js +44 -0
  228. package/script/deps/deno.land/std@0.207.0/path/basename.d.ts +8 -0
  229. package/script/deps/deno.land/std@0.207.0/path/basename.js +21 -0
  230. package/script/deps/deno.land/std@0.207.0/path/common.d.ts +13 -0
  231. package/script/deps/deno.land/std@0.207.0/path/common.js +23 -0
  232. package/script/deps/deno.land/std@0.207.0/path/dirname.d.ts +5 -0
  233. package/script/deps/deno.land/std@0.207.0/path/dirname.js +16 -0
  234. package/script/deps/deno.land/std@0.207.0/path/extname.d.ts +6 -0
  235. package/script/deps/deno.land/std@0.207.0/path/extname.js +17 -0
  236. package/script/deps/deno.land/std@0.207.0/path/format.d.ts +6 -0
  237. package/script/deps/deno.land/std@0.207.0/path/format.js +16 -0
  238. package/script/deps/deno.land/std@0.207.0/path/from_file_url.d.ts +17 -0
  239. package/script/deps/deno.land/std@0.207.0/path/from_file_url.js +28 -0
  240. package/script/deps/deno.land/std@0.207.0/path/glob_to_regexp.d.ts +61 -0
  241. package/script/deps/deno.land/std@0.207.0/path/glob_to_regexp.js +69 -0
  242. package/script/deps/deno.land/std@0.207.0/path/is_absolute.d.ts +5 -0
  243. package/script/deps/deno.land/std@0.207.0/path/is_absolute.js +16 -0
  244. package/script/deps/deno.land/std@0.207.0/path/is_glob.d.ts +2 -0
  245. package/script/deps/deno.land/std@0.207.0/path/is_glob.js +32 -0
  246. package/script/deps/deno.land/std@0.207.0/path/join.d.ts +5 -0
  247. package/script/deps/deno.land/std@0.207.0/path/join.js +16 -0
  248. package/script/deps/deno.land/std@0.207.0/path/join_globs.d.ts +3 -0
  249. package/script/deps/deno.land/std@0.207.0/path/join_globs.js +15 -0
  250. package/script/deps/deno.land/std@0.207.0/path/mod.d.ts +28 -0
  251. package/script/deps/deno.land/std@0.207.0/path/mod.js +92 -0
  252. package/script/deps/deno.land/std@0.207.0/path/normalize.d.ts +7 -0
  253. package/script/deps/deno.land/std@0.207.0/path/normalize.js +18 -0
  254. package/script/deps/deno.land/std@0.207.0/path/normalize_glob.d.ts +3 -0
  255. package/script/deps/deno.land/std@0.207.0/path/normalize_glob.js +15 -0
  256. package/script/deps/deno.land/std@0.207.0/path/parse.d.ts +6 -0
  257. package/script/deps/deno.land/std@0.207.0/path/parse.js +16 -0
  258. package/script/deps/deno.land/std@0.207.0/path/posix/_util.d.ts +1 -0
  259. package/script/deps/deno.land/std@0.207.0/path/posix/_util.js +12 -0
  260. package/script/deps/deno.land/std@0.207.0/path/posix/basename.d.ts +8 -0
  261. package/script/deps/deno.land/std@0.207.0/path/posix/basename.js +22 -0
  262. package/script/deps/deno.land/std@0.207.0/path/posix/common.d.ts +13 -0
  263. package/script/deps/deno.land/std@0.207.0/path/posix/common.js +23 -0
  264. package/script/deps/deno.land/std@0.207.0/path/posix/dirname.d.ts +5 -0
  265. package/script/deps/deno.land/std@0.207.0/path/posix/dirname.js +40 -0
  266. package/script/deps/deno.land/std@0.207.0/path/posix/extname.d.ts +6 -0
  267. package/script/deps/deno.land/std@0.207.0/path/posix/extname.js +63 -0
  268. package/script/deps/deno.land/std@0.207.0/path/posix/format.d.ts +6 -0
  269. package/script/deps/deno.land/std@0.207.0/path/posix/format.js +15 -0
  270. package/script/deps/deno.land/std@0.207.0/path/posix/from_file_url.d.ts +11 -0
  271. package/script/deps/deno.land/std@0.207.0/path/posix/from_file_url.js +21 -0
  272. package/script/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.d.ts +57 -0
  273. package/script/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.js +73 -0
  274. package/script/deps/deno.land/std@0.207.0/path/posix/is_absolute.d.ts +5 -0
  275. package/script/deps/deno.land/std@0.207.0/path/posix/is_absolute.js +16 -0
  276. package/script/deps/deno.land/std@0.207.0/path/posix/is_glob.d.ts +1 -0
  277. package/script/deps/deno.land/std@0.207.0/path/posix/is_glob.js +7 -0
  278. package/script/deps/deno.land/std@0.207.0/path/posix/join.d.ts +5 -0
  279. package/script/deps/deno.land/std@0.207.0/path/posix/join.js +30 -0
  280. package/script/deps/deno.land/std@0.207.0/path/posix/join_globs.d.ts +3 -0
  281. package/script/deps/deno.land/std@0.207.0/path/posix/join_globs.js +30 -0
  282. package/script/deps/deno.land/std@0.207.0/path/posix/mod.d.ts +40 -0
  283. package/script/deps/deno.land/std@0.207.0/path/posix/mod.js +61 -0
  284. package/script/deps/deno.land/std@0.207.0/path/posix/normalize.d.ts +7 -0
  285. package/script/deps/deno.land/std@0.207.0/path/posix/normalize.js +29 -0
  286. package/script/deps/deno.land/std@0.207.0/path/posix/normalize_glob.d.ts +3 -0
  287. package/script/deps/deno.land/std@0.207.0/path/posix/normalize_glob.js +20 -0
  288. package/script/deps/deno.land/std@0.207.0/path/posix/parse.d.ts +6 -0
  289. package/script/deps/deno.land/std@0.207.0/path/posix/parse.js +102 -0
  290. package/script/deps/deno.land/std@0.207.0/path/posix/relative.d.ts +7 -0
  291. package/script/deps/deno.land/std@0.207.0/path/posix/relative.js +98 -0
  292. package/script/deps/deno.land/std@0.207.0/path/posix/resolve.d.ts +5 -0
  293. package/script/deps/deno.land/std@0.207.0/path/posix/resolve.js +75 -0
  294. package/script/deps/deno.land/std@0.207.0/path/posix/separator.d.ts +2 -0
  295. package/script/deps/deno.land/std@0.207.0/path/posix/separator.js +7 -0
  296. package/script/deps/deno.land/std@0.207.0/path/posix/to_file_url.d.ts +11 -0
  297. package/script/deps/deno.land/std@0.207.0/path/posix/to_file_url.js +26 -0
  298. package/script/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.d.ts +5 -0
  299. package/script/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.js +14 -0
  300. package/script/deps/deno.land/std@0.207.0/path/relative.d.ts +12 -0
  301. package/script/deps/deno.land/std@0.207.0/path/relative.js +23 -0
  302. package/script/deps/deno.land/std@0.207.0/path/resolve.d.ts +5 -0
  303. package/script/deps/deno.land/std@0.207.0/path/resolve.js +18 -0
  304. package/script/deps/deno.land/std@0.207.0/path/separator.d.ts +2 -0
  305. package/script/deps/deno.land/std@0.207.0/path/separator.js +8 -0
  306. package/script/deps/deno.land/std@0.207.0/path/to_file_url.d.ts +17 -0
  307. package/script/deps/deno.land/std@0.207.0/path/to_file_url.js +28 -0
  308. package/script/deps/deno.land/std@0.207.0/path/to_namespaced_path.d.ts +5 -0
  309. package/script/deps/deno.land/std@0.207.0/path/to_namespaced_path.js +18 -0
  310. package/script/deps/deno.land/std@0.207.0/path/windows/_util.d.ts +3 -0
  311. package/script/deps/deno.land/std@0.207.0/path/windows/_util.js +21 -0
  312. package/script/deps/deno.land/std@0.207.0/path/windows/basename.d.ts +8 -0
  313. package/script/deps/deno.land/std@0.207.0/path/windows/basename.js +34 -0
  314. package/script/deps/deno.land/std@0.207.0/path/windows/common.d.ts +13 -0
  315. package/script/deps/deno.land/std@0.207.0/path/windows/common.js +23 -0
  316. package/script/deps/deno.land/std@0.207.0/path/windows/dirname.d.ts +5 -0
  317. package/script/deps/deno.land/std@0.207.0/path/windows/dirname.js +102 -0
  318. package/script/deps/deno.land/std@0.207.0/path/windows/extname.d.ts +6 -0
  319. package/script/deps/deno.land/std@0.207.0/path/windows/extname.js +72 -0
  320. package/script/deps/deno.land/std@0.207.0/path/windows/format.d.ts +6 -0
  321. package/script/deps/deno.land/std@0.207.0/path/windows/format.js +15 -0
  322. package/script/deps/deno.land/std@0.207.0/path/windows/from_file_url.d.ts +13 -0
  323. package/script/deps/deno.land/std@0.207.0/path/windows/from_file_url.js +30 -0
  324. package/script/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.d.ts +57 -0
  325. package/script/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.js +73 -0
  326. package/script/deps/deno.land/std@0.207.0/path/windows/is_absolute.d.ts +5 -0
  327. package/script/deps/deno.land/std@0.207.0/path/windows/is_absolute.js +31 -0
  328. package/script/deps/deno.land/std@0.207.0/path/windows/is_glob.d.ts +1 -0
  329. package/script/deps/deno.land/std@0.207.0/path/windows/is_glob.js +7 -0
  330. package/script/deps/deno.land/std@0.207.0/path/windows/join.d.ts +5 -0
  331. package/script/deps/deno.land/std@0.207.0/path/windows/join.js +76 -0
  332. package/script/deps/deno.land/std@0.207.0/path/windows/join_globs.d.ts +3 -0
  333. package/script/deps/deno.land/std@0.207.0/path/windows/join_globs.js +30 -0
  334. package/script/deps/deno.land/std@0.207.0/path/windows/mod.d.ts +40 -0
  335. package/script/deps/deno.land/std@0.207.0/path/windows/mod.js +61 -0
  336. package/script/deps/deno.land/std@0.207.0/path/windows/normalize.d.ts +7 -0
  337. package/script/deps/deno.land/std@0.207.0/path/windows/normalize.js +134 -0
  338. package/script/deps/deno.land/std@0.207.0/path/windows/normalize_glob.d.ts +3 -0
  339. package/script/deps/deno.land/std@0.207.0/path/windows/normalize_glob.js +20 -0
  340. package/script/deps/deno.land/std@0.207.0/path/windows/parse.d.ts +6 -0
  341. package/script/deps/deno.land/std@0.207.0/path/windows/parse.js +163 -0
  342. package/script/deps/deno.land/std@0.207.0/path/windows/relative.d.ts +12 -0
  343. package/script/deps/deno.land/std@0.207.0/path/windows/relative.js +125 -0
  344. package/script/deps/deno.land/std@0.207.0/path/windows/resolve.d.ts +5 -0
  345. package/script/deps/deno.land/std@0.207.0/path/windows/resolve.js +170 -0
  346. package/script/deps/deno.land/std@0.207.0/path/windows/separator.d.ts +2 -0
  347. package/script/deps/deno.land/std@0.207.0/path/windows/separator.js +7 -0
  348. package/script/deps/deno.land/std@0.207.0/path/windows/to_file_url.d.ts +13 -0
  349. package/script/deps/deno.land/std@0.207.0/path/windows/to_file_url.js +35 -0
  350. package/script/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.d.ts +5 -0
  351. package/script/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.js +42 -0
  352. package/script/mod.d.ts +1 -1
  353. package/script/mod.js +3 -1
  354. package/script/types/1_chat.d.ts +2 -3
  355. package/script/types/1_chat.js +4 -5
  356. package/script/types/1_user.d.ts +2 -3
  357. package/script/types/1_user.js +1 -2
  358. package/script/utilities/0_color.d.ts +3 -0
  359. package/script/utilities/0_color.js +60 -0
  360. package/esm/types/0_color.d.ts +0 -3
  361. package/esm/types/0_color.js +0 -36
  362. package/script/types/0_color.d.ts +0 -3
  363. package/script/types/0_color.js +0 -41
  364. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.js +0 -0
  366. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.js +0 -0
  368. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.js +0 -0
  370. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.d.ts +0 -0
  371. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.js +0 -0
  372. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.d.ts +0 -0
  373. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.js +0 -0
  374. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.d.ts +0 -0
  375. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.js +0 -0
  376. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.d.ts +0 -0
  377. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.js +0 -0
  378. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.d.ts +0 -0
  379. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.js +0 -0
  380. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.d.ts +0 -0
  381. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.js +0 -0
  382. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.d.ts +0 -0
  383. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.js +0 -0
  384. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.d.ts +0 -0
  385. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.js +0 -0
  386. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.d.ts +0 -0
  387. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.js +0 -0
  388. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.d.ts +0 -0
  389. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.js +0 -0
  390. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.d.ts +0 -0
  391. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.js +0 -0
  392. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.d.ts +0 -0
  393. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.js +0 -0
  394. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.d.ts +0 -0
  395. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.js +0 -0
  396. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.d.ts +0 -0
  397. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.js +0 -0
  398. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.d.ts +0 -0
  399. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.js +0 -0
  400. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.d.ts +0 -0
  401. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.js +0 -0
  402. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.d.ts +0 -0
  403. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.js +0 -0
  404. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.d.ts +0 -0
  405. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.js +0 -0
  406. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.d.ts +0 -0
  407. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.js +0 -0
  408. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.d.ts +0 -0
  409. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.js +0 -0
  410. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.d.ts +0 -0
  411. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.js +0 -0
  412. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.d.ts +0 -0
  413. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.js +0 -0
  414. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.d.ts +0 -0
  415. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.js +0 -0
  416. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.d.ts +0 -0
  417. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.js +0 -0
  418. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.d.ts +0 -0
  419. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.js +0 -0
  420. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.d.ts +0 -0
  421. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.js +0 -0
  422. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.d.ts +0 -0
  423. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.js +0 -0
  424. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.d.ts +0 -0
  425. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.js +0 -0
  426. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.d.ts +0 -0
  427. /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.js +0 -0
  428. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.js +0 -0
  430. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.d.ts +0 -0
  431. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.js +0 -0
  432. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.d.ts +0 -0
  433. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.js +0 -0
  434. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.d.ts +0 -0
  435. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.js +0 -0
  436. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.d.ts +0 -0
  437. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.js +0 -0
  438. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.d.ts +0 -0
  439. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.js +0 -0
  440. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.d.ts +0 -0
  441. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.js +0 -0
  442. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.d.ts +0 -0
  443. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.js +0 -0
  444. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.d.ts +0 -0
  445. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.js +0 -0
  446. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.d.ts +0 -0
  447. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.js +0 -0
  448. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.d.ts +0 -0
  449. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.js +0 -0
  450. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.d.ts +0 -0
  451. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.js +0 -0
  452. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.d.ts +0 -0
  453. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.js +0 -0
  454. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.d.ts +0 -0
  455. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.js +0 -0
  456. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.d.ts +0 -0
  457. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.js +0 -0
  458. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.d.ts +0 -0
  459. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.js +0 -0
  460. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.d.ts +0 -0
  461. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.js +0 -0
  462. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.d.ts +0 -0
  463. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.js +0 -0
  464. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.d.ts +0 -0
  465. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.js +0 -0
  466. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.d.ts +0 -0
  467. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.js +0 -0
  468. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.d.ts +0 -0
  469. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.js +0 -0
  470. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.d.ts +0 -0
  471. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.js +0 -0
  472. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.d.ts +0 -0
  473. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.js +0 -0
  474. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.d.ts +0 -0
  475. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.js +0 -0
  476. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.d.ts +0 -0
  477. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.js +0 -0
  478. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.d.ts +0 -0
  479. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.js +0 -0
  480. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.js +0 -0
  482. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.js +0 -0
  484. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.js +0 -0
  486. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.js +0 -0
  488. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.js +0 -0
  490. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.js +0 -0
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.resolve = void 0;
6
+ const _os_js_1 = require("./_os.js");
7
+ const resolve_js_1 = require("./posix/resolve.js");
8
+ const resolve_js_2 = require("./windows/resolve.js");
9
+ /**
10
+ * Resolves path segments into a `path`
11
+ * @param pathSegments to process to path
12
+ */
13
+ function resolve(...pathSegments) {
14
+ return _os_js_1.isWindows
15
+ ? (0, resolve_js_2.resolve)(...pathSegments)
16
+ : (0, resolve_js_1.resolve)(...pathSegments);
17
+ }
18
+ exports.resolve = resolve;
@@ -0,0 +1,2 @@
1
+ export declare const SEP: string;
2
+ export declare const SEP_PATTERN: RegExp;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SEP_PATTERN = exports.SEP = void 0;
6
+ const _os_js_1 = require("./_os.js");
7
+ exports.SEP = _os_js_1.isWindows ? "\\" : "/";
8
+ exports.SEP_PATTERN = _os_js_1.isWindows ? /[\\/]+/ : /\/+/;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Converts a path string to a file URL.
3
+ *
4
+ * ```ts
5
+ * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/to_file_url.ts";
6
+ *
7
+ * // posix
8
+ * toFileUrl("/home/foo"); // new URL("file:///home/foo")
9
+ *
10
+ * // win32
11
+ * toFileUrl("\\home\\foo"); // new URL("file:///home/foo")
12
+ * toFileUrl("C:\\Users\\foo"); // new URL("file:///C:/Users/foo")
13
+ * toFileUrl("\\\\127.0.0.1\\home\\foo"); // new URL("file://127.0.0.1/home/foo")
14
+ * ```
15
+ * @param path to convert to file URL
16
+ */
17
+ export declare function toFileUrl(path: string): URL;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.toFileUrl = void 0;
6
+ const _os_js_1 = require("./_os.js");
7
+ const to_file_url_js_1 = require("./posix/to_file_url.js");
8
+ const to_file_url_js_2 = require("./windows/to_file_url.js");
9
+ /**
10
+ * Converts a path string to a file URL.
11
+ *
12
+ * ```ts
13
+ * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/to_file_url.ts";
14
+ *
15
+ * // posix
16
+ * toFileUrl("/home/foo"); // new URL("file:///home/foo")
17
+ *
18
+ * // win32
19
+ * toFileUrl("\\home\\foo"); // new URL("file:///home/foo")
20
+ * toFileUrl("C:\\Users\\foo"); // new URL("file:///C:/Users/foo")
21
+ * toFileUrl("\\\\127.0.0.1\\home\\foo"); // new URL("file://127.0.0.1/home/foo")
22
+ * ```
23
+ * @param path to convert to file URL
24
+ */
25
+ function toFileUrl(path) {
26
+ return _os_js_1.isWindows ? (0, to_file_url_js_2.toFileUrl)(path) : (0, to_file_url_js_1.toFileUrl)(path);
27
+ }
28
+ exports.toFileUrl = toFileUrl;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Resolves path to a namespace path
3
+ * @param path to resolve to namespace
4
+ */
5
+ export declare function toNamespacedPath(path: string): string;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.toNamespacedPath = void 0;
6
+ const _os_js_1 = require("./_os.js");
7
+ const to_namespaced_path_js_1 = require("./posix/to_namespaced_path.js");
8
+ const to_namespaced_path_js_2 = require("./windows/to_namespaced_path.js");
9
+ /**
10
+ * Resolves path to a namespace path
11
+ * @param path to resolve to namespace
12
+ */
13
+ function toNamespacedPath(path) {
14
+ return _os_js_1.isWindows
15
+ ? (0, to_namespaced_path_js_2.toNamespacedPath)(path)
16
+ : (0, to_namespaced_path_js_1.toNamespacedPath)(path);
17
+ }
18
+ exports.toNamespacedPath = toNamespacedPath;
@@ -0,0 +1,3 @@
1
+ export declare function isPosixPathSeparator(code: number): boolean;
2
+ export declare function isPathSeparator(code: number): boolean;
3
+ export declare function isWindowsDeviceRoot(code: number): boolean;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 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.isWindowsDeviceRoot = exports.isPathSeparator = exports.isPosixPathSeparator = void 0;
8
+ const constants_js_1 = require("../_common/constants.js");
9
+ function isPosixPathSeparator(code) {
10
+ return code === constants_js_1.CHAR_FORWARD_SLASH;
11
+ }
12
+ exports.isPosixPathSeparator = isPosixPathSeparator;
13
+ function isPathSeparator(code) {
14
+ return code === constants_js_1.CHAR_FORWARD_SLASH || code === constants_js_1.CHAR_BACKWARD_SLASH;
15
+ }
16
+ exports.isPathSeparator = isPathSeparator;
17
+ function isWindowsDeviceRoot(code) {
18
+ return ((code >= constants_js_1.CHAR_LOWERCASE_A && code <= constants_js_1.CHAR_LOWERCASE_Z) ||
19
+ (code >= constants_js_1.CHAR_UPPERCASE_A && code <= constants_js_1.CHAR_UPPERCASE_Z));
20
+ }
21
+ exports.isWindowsDeviceRoot = isWindowsDeviceRoot;
@@ -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,34 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.basename = void 0;
6
+ const basename_js_1 = require("../_common/basename.js");
7
+ const constants_js_1 = require("../_common/constants.js");
8
+ const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
9
+ const _util_js_1 = require("./_util.js");
10
+ /**
11
+ * Return the last portion of a `path`.
12
+ * Trailing directory separators are ignored, and optional suffix is removed.
13
+ *
14
+ * @param path - path to extract the name from.
15
+ * @param [suffix] - suffix to remove from extracted name.
16
+ */
17
+ function basename(path, suffix = "") {
18
+ (0, basename_js_1.assertArgs)(path, suffix);
19
+ // Check for a drive letter prefix so as not to mistake the following
20
+ // path separator as an extra separator at the end of the path that can be
21
+ // disregarded
22
+ let start = 0;
23
+ if (path.length >= 2) {
24
+ const drive = path.charCodeAt(0);
25
+ if ((0, _util_js_1.isWindowsDeviceRoot)(drive)) {
26
+ if (path.charCodeAt(1) === constants_js_1.CHAR_COLON)
27
+ start = 2;
28
+ }
29
+ }
30
+ const lastSegment = (0, basename_js_1.lastPathSegment)(path, _util_js_1.isPathSeparator, start);
31
+ const strippedSegment = (0, strip_trailing_separators_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPathSeparator);
32
+ return suffix ? (0, basename_js_1.stripSuffix)(strippedSegment, suffix) : strippedSegment;
33
+ }
34
+ exports.basename = basename;
@@ -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,23 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.common = void 0;
6
+ const common_js_1 = require("../_common/common.js");
7
+ const separator_js_1 = require("./separator.js");
8
+ /** Determines the common path from a set of paths, using an optional separator,
9
+ * which defaults to the OS default separator.
10
+ *
11
+ * ```ts
12
+ * import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
13
+ * const p = common([
14
+ * "./deno/std/path/mod.ts",
15
+ * "./deno/std/fs/mod.ts",
16
+ * ]);
17
+ * console.log(p); // "./deno/std/"
18
+ * ```
19
+ */
20
+ function common(paths, sep = separator_js_1.SEP) {
21
+ return (0, common_js_1._common)(paths, sep);
22
+ }
23
+ exports.common = common;
@@ -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,102 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.dirname = void 0;
6
+ const dirname_js_1 = require("../_common/dirname.js");
7
+ const constants_js_1 = require("../_common/constants.js");
8
+ const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
9
+ const _util_js_1 = require("./_util.js");
10
+ /**
11
+ * Return the directory path of a `path`.
12
+ * @param path - path to extract the directory from.
13
+ */
14
+ function dirname(path) {
15
+ (0, dirname_js_1.assertArg)(path);
16
+ const len = path.length;
17
+ let rootEnd = -1;
18
+ let end = -1;
19
+ let matchedSlash = true;
20
+ let offset = 0;
21
+ const code = path.charCodeAt(0);
22
+ // Try to match a root
23
+ if (len > 1) {
24
+ if ((0, _util_js_1.isPathSeparator)(code)) {
25
+ // Possible UNC root
26
+ rootEnd = offset = 1;
27
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(1))) {
28
+ // Matched double path separator at beginning
29
+ let j = 2;
30
+ let last = j;
31
+ // Match 1 or more non-path separators
32
+ for (; j < len; ++j) {
33
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
34
+ break;
35
+ }
36
+ if (j < len && j !== last) {
37
+ // Matched!
38
+ last = j;
39
+ // Match 1 or more path separators
40
+ for (; j < len; ++j) {
41
+ if (!(0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
42
+ break;
43
+ }
44
+ if (j < len && j !== last) {
45
+ // Matched!
46
+ last = j;
47
+ // Match 1 or more non-path separators
48
+ for (; j < len; ++j) {
49
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
50
+ break;
51
+ }
52
+ if (j === len) {
53
+ // We matched a UNC root only
54
+ return path;
55
+ }
56
+ if (j !== last) {
57
+ // We matched a UNC root with leftovers
58
+ // Offset by 1 to include the separator after the UNC root to
59
+ // treat it as a "normal root" on top of a (UNC) root
60
+ rootEnd = offset = j + 1;
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ else if ((0, _util_js_1.isWindowsDeviceRoot)(code)) {
67
+ // Possible device root
68
+ if (path.charCodeAt(1) === constants_js_1.CHAR_COLON) {
69
+ rootEnd = offset = 2;
70
+ if (len > 2) {
71
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(2)))
72
+ rootEnd = offset = 3;
73
+ }
74
+ }
75
+ }
76
+ }
77
+ else if ((0, _util_js_1.isPathSeparator)(code)) {
78
+ // `path` contains just a path separator, exit early to avoid
79
+ // unnecessary work
80
+ return path;
81
+ }
82
+ for (let i = len - 1; i >= offset; --i) {
83
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(i))) {
84
+ if (!matchedSlash) {
85
+ end = i;
86
+ break;
87
+ }
88
+ }
89
+ else {
90
+ // We saw the first non-path separator
91
+ matchedSlash = false;
92
+ }
93
+ }
94
+ if (end === -1) {
95
+ if (rootEnd === -1)
96
+ return ".";
97
+ else
98
+ end = rootEnd;
99
+ }
100
+ return (0, strip_trailing_separators_js_1.stripTrailingSeparators)(path.slice(0, end), _util_js_1.isPosixPathSeparator);
101
+ }
102
+ exports.dirname = dirname;
@@ -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,72 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.extname = void 0;
6
+ const constants_js_1 = require("../_common/constants.js");
7
+ const assert_path_js_1 = require("../_common/assert_path.js");
8
+ const _util_js_1 = require("./_util.js");
9
+ /**
10
+ * Return the extension of the `path` with leading period.
11
+ * @param path with extension
12
+ * @returns extension (ex. for `file.ts` returns `.ts`)
13
+ */
14
+ function extname(path) {
15
+ (0, assert_path_js_1.assertPath)(path);
16
+ let start = 0;
17
+ let startDot = -1;
18
+ let startPart = 0;
19
+ let end = -1;
20
+ let matchedSlash = true;
21
+ // Track the state of characters (if any) we see before our first dot and
22
+ // after any path separator we find
23
+ let preDotState = 0;
24
+ // Check for a drive letter prefix so as not to mistake the following
25
+ // path separator as an extra separator at the end of the path that can be
26
+ // disregarded
27
+ if (path.length >= 2 &&
28
+ path.charCodeAt(1) === constants_js_1.CHAR_COLON &&
29
+ (0, _util_js_1.isWindowsDeviceRoot)(path.charCodeAt(0))) {
30
+ start = startPart = 2;
31
+ }
32
+ for (let i = path.length - 1; i >= start; --i) {
33
+ const code = path.charCodeAt(i);
34
+ if ((0, _util_js_1.isPathSeparator)(code)) {
35
+ // If we reached a path separator that was not part of a set of path
36
+ // separators at the end of the string, stop now
37
+ if (!matchedSlash) {
38
+ startPart = i + 1;
39
+ break;
40
+ }
41
+ continue;
42
+ }
43
+ if (end === -1) {
44
+ // We saw the first non-path separator, mark this as the end of our
45
+ // extension
46
+ matchedSlash = false;
47
+ end = i + 1;
48
+ }
49
+ if (code === constants_js_1.CHAR_DOT) {
50
+ // If this is our first dot, mark it as the start of our extension
51
+ if (startDot === -1)
52
+ startDot = i;
53
+ else if (preDotState !== 1)
54
+ preDotState = 1;
55
+ }
56
+ else if (startDot !== -1) {
57
+ // We saw a non-dot and non-path separator before our dot, so we should
58
+ // have a good chance at having a non-empty extension
59
+ preDotState = -1;
60
+ }
61
+ }
62
+ if (startDot === -1 ||
63
+ end === -1 ||
64
+ // We saw a non-dot character immediately before the dot
65
+ preDotState === 0 ||
66
+ // The (right-most) trimmed path component is exactly '..'
67
+ (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
68
+ return "";
69
+ }
70
+ return path.slice(startDot, end);
71
+ }
72
+ exports.extname = extname;
@@ -0,0 +1,6 @@
1
+ import type { 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,15 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.format = void 0;
6
+ const format_js_1 = require("../_common/format.js");
7
+ /**
8
+ * Generate a path from `FormatInputPathObject` object.
9
+ * @param pathObject with path
10
+ */
11
+ function format(pathObject) {
12
+ (0, format_js_1.assertArg)(pathObject);
13
+ return (0, format_js_1._format)("\\", pathObject);
14
+ }
15
+ exports.format = format;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Converts a file URL to a path string.
3
+ *
4
+ * ```ts
5
+ * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/win32.ts";
6
+ *
7
+ * fromFileUrl("file:///home/foo"); // "\\home\\foo"
8
+ * fromFileUrl("file:///C:/Users/foo"); // "C:\\Users\\foo"
9
+ * fromFileUrl("file://localhost/home/foo"); // "\\\\localhost\\home\\foo"
10
+ * ```
11
+ * @param url of a file URL
12
+ */
13
+ export declare function fromFileUrl(url: URL | string): string;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.fromFileUrl = void 0;
6
+ const from_file_url_js_1 = require("../_common/from_file_url.js");
7
+ /**
8
+ * Converts a file URL to a path string.
9
+ *
10
+ * ```ts
11
+ * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/win32.ts";
12
+ *
13
+ * fromFileUrl("file:///home/foo"); // "\\home\\foo"
14
+ * fromFileUrl("file:///C:/Users/foo"); // "C:\\Users\\foo"
15
+ * fromFileUrl("file://localhost/home/foo"); // "\\\\localhost\\home\\foo"
16
+ * ```
17
+ * @param url of a file URL
18
+ */
19
+ function fromFileUrl(url) {
20
+ url = (0, from_file_url_js_1.assertArg)(url);
21
+ let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
22
+ if (url.hostname !== "") {
23
+ // Note: The `URL` implementation guarantees that the drive letter and
24
+ // hostname are mutually exclusive. Otherwise it would not have been valid
25
+ // to append the hostname and path like this.
26
+ path = `\\\\${url.hostname}${path}`;
27
+ }
28
+ return path;
29
+ }
30
+ exports.fromFileUrl = fromFileUrl;
@@ -0,0 +1,57 @@
1
+ import { GlobToRegExpOptions } from "../_common/glob_to_reg_exp.js";
2
+ /** Convert a glob string to a regular expression.
3
+ *
4
+ * Tries to match bash glob expansion as closely as possible.
5
+ *
6
+ * Basic glob syntax:
7
+ * - `*` - Matches everything without leaving the path segment.
8
+ * - `?` - Matches any single character.
9
+ * - `{foo,bar}` - Matches `foo` or `bar`.
10
+ * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
11
+ * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
12
+ * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
13
+ * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
14
+ * - `[[:alnum:]]` - Matches any digit or letter.
15
+ * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
16
+ * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
17
+ * for a complete list of supported character classes.
18
+ * - `\` - Escapes the next character for an `os` other than `"windows"`.
19
+ * - \` - Escapes the next character for `os` set to `"windows"`.
20
+ * - `/` - Path separator.
21
+ * - `\` - Additional path separator only for `os` set to `"windows"`.
22
+ *
23
+ * Extended syntax:
24
+ * - Requires `{ extended: true }`.
25
+ * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
26
+ * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
27
+ * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
28
+ * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
29
+ * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
30
+ * - See https://www.linuxjournal.com/content/bash-extended-globbing.
31
+ *
32
+ * Globstar syntax:
33
+ * - Requires `{ globstar: true }`.
34
+ * - `**` - Matches any number of any path segments.
35
+ * - Must comprise its entire path segment in the provided glob.
36
+ * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
37
+ *
38
+ * Note the following properties:
39
+ * - The generated `RegExp` is anchored at both start and end.
40
+ * - Repeating and trailing separators are tolerated. Trailing separators in the
41
+ * provided glob have no meaning and are discarded.
42
+ * - Absolute globs will only match absolute paths, etc.
43
+ * - Empty globs will match nothing.
44
+ * - Any special glob syntax must be contained to one path segment. For example,
45
+ * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
46
+ * first segment ends with an unclosed group.
47
+ * - If a path segment ends with unclosed groups or a dangling escape prefix, a
48
+ * parse error has occurred. Every character for that segment is taken
49
+ * literally in this event.
50
+ *
51
+ * Limitations:
52
+ * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
53
+ * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
54
+ * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
55
+ * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
56
+ * the group occurs not nested at the end of the segment. */
57
+ export declare function globToRegExp(glob: string, options?: GlobToRegExpOptions): RegExp;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.globToRegExp = void 0;
6
+ const glob_to_reg_exp_js_1 = require("../_common/glob_to_reg_exp.js");
7
+ const constants = {
8
+ sep: "(?:\\\\|/)+",
9
+ sepMaybe: "(?:\\\\|/)*",
10
+ seps: ["\\", "/"],
11
+ globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*",
12
+ wildcard: "[^\\\\/]*",
13
+ escapePrefix: "`",
14
+ };
15
+ /** Convert a glob string to a regular expression.
16
+ *
17
+ * Tries to match bash glob expansion as closely as possible.
18
+ *
19
+ * Basic glob syntax:
20
+ * - `*` - Matches everything without leaving the path segment.
21
+ * - `?` - Matches any single character.
22
+ * - `{foo,bar}` - Matches `foo` or `bar`.
23
+ * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
24
+ * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
25
+ * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
26
+ * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
27
+ * - `[[:alnum:]]` - Matches any digit or letter.
28
+ * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
29
+ * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
30
+ * for a complete list of supported character classes.
31
+ * - `\` - Escapes the next character for an `os` other than `"windows"`.
32
+ * - \` - Escapes the next character for `os` set to `"windows"`.
33
+ * - `/` - Path separator.
34
+ * - `\` - Additional path separator only for `os` set to `"windows"`.
35
+ *
36
+ * Extended syntax:
37
+ * - Requires `{ extended: true }`.
38
+ * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
39
+ * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
40
+ * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
41
+ * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
42
+ * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
43
+ * - See https://www.linuxjournal.com/content/bash-extended-globbing.
44
+ *
45
+ * Globstar syntax:
46
+ * - Requires `{ globstar: true }`.
47
+ * - `**` - Matches any number of any path segments.
48
+ * - Must comprise its entire path segment in the provided glob.
49
+ * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
50
+ *
51
+ * Note the following properties:
52
+ * - The generated `RegExp` is anchored at both start and end.
53
+ * - Repeating and trailing separators are tolerated. Trailing separators in the
54
+ * provided glob have no meaning and are discarded.
55
+ * - Absolute globs will only match absolute paths, etc.
56
+ * - Empty globs will match nothing.
57
+ * - Any special glob syntax must be contained to one path segment. For example,
58
+ * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
59
+ * first segment ends with an unclosed group.
60
+ * - If a path segment ends with unclosed groups or a dangling escape prefix, a
61
+ * parse error has occurred. Every character for that segment is taken
62
+ * literally in this event.
63
+ *
64
+ * Limitations:
65
+ * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
66
+ * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
67
+ * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
68
+ * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
69
+ * the group occurs not nested at the end of the segment. */
70
+ function globToRegExp(glob, options = {}) {
71
+ return (0, glob_to_reg_exp_js_1._globToRegExp)(constants, glob, options);
72
+ }
73
+ exports.globToRegExp = globToRegExp;
@@ -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,31 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.isAbsolute = void 0;
6
+ const constants_js_1 = require("../_common/constants.js");
7
+ const assert_path_js_1 = require("../_common/assert_path.js");
8
+ const _util_js_1 = require("./_util.js");
9
+ /**
10
+ * Verifies whether provided path is absolute
11
+ * @param path to be verified as absolute
12
+ */
13
+ function isAbsolute(path) {
14
+ (0, assert_path_js_1.assertPath)(path);
15
+ const len = path.length;
16
+ if (len === 0)
17
+ return false;
18
+ const code = path.charCodeAt(0);
19
+ if ((0, _util_js_1.isPathSeparator)(code)) {
20
+ return true;
21
+ }
22
+ else if ((0, _util_js_1.isWindowsDeviceRoot)(code)) {
23
+ // Possible device root
24
+ if (len > 2 && path.charCodeAt(1) === constants_js_1.CHAR_COLON) {
25
+ if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(2)))
26
+ return true;
27
+ }
28
+ }
29
+ return false;
30
+ }
31
+ exports.isAbsolute = isAbsolute;
@@ -0,0 +1 @@
1
+ export { isGlob } from "../is_glob.js";