ventojs 0.9.0 → 0.9.2

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 (377) hide show
  1. package/esm/deps/deno.land/std@0.208.0/path/_common/assert_path.d.ts +1 -0
  2. package/esm/deps/deno.land/std@0.208.0/path/_common/assert_path.js +7 -0
  3. package/esm/deps/deno.land/std@0.208.0/path/_common/basename.d.ts +3 -0
  4. package/esm/deps/deno.land/std@0.208.0/path/_common/basename.js +40 -0
  5. package/esm/deps/deno.land/std@0.208.0/path/_common/common.d.ts +1 -0
  6. package/esm/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/_common}/common.js +1 -14
  7. package/esm/deps/deno.land/std@0.208.0/path/_common/dirname.d.ts +1 -0
  8. package/esm/deps/deno.land/std@0.208.0/path/_common/dirname.js +8 -0
  9. package/esm/deps/deno.land/std@0.208.0/path/_common/format.d.ts +3 -0
  10. package/esm/deps/deno.land/std@0.208.0/path/_common/format.js +19 -0
  11. package/esm/deps/deno.land/std@0.208.0/path/_common/from_file_url.d.ts +2 -0
  12. package/esm/deps/deno.land/std@0.208.0/path/_common/from_file_url.js +9 -0
  13. package/esm/deps/deno.land/std@0.208.0/path/_common/glob_to_reg_exp.d.ts +27 -0
  14. package/esm/deps/deno.land/{std@0.201.0/path/glob.js → std@0.208.0/path/_common/glob_to_reg_exp.js} +13 -139
  15. package/esm/deps/deno.land/std@0.208.0/path/_common/normalize.d.ts +1 -0
  16. package/esm/deps/deno.land/std@0.208.0/path/_common/normalize.js +8 -0
  17. package/esm/deps/deno.land/std@0.208.0/path/_common/normalize_string.d.ts +1 -0
  18. package/esm/deps/deno.land/{std@0.201.0/path/_util.js → std@0.208.0/path/_common/normalize_string.js} +1 -31
  19. package/esm/deps/deno.land/std@0.208.0/path/_common/relative.d.ts +1 -0
  20. package/esm/deps/deno.land/std@0.208.0/path/_common/relative.js +9 -0
  21. package/esm/deps/deno.land/std@0.208.0/path/_common/strip_trailing_separators.d.ts +1 -0
  22. package/esm/deps/deno.land/std@0.208.0/path/_common/strip_trailing_separators.js +19 -0
  23. package/esm/deps/deno.land/std@0.208.0/path/_common/to_file_url.d.ts +1 -0
  24. package/esm/deps/deno.land/std@0.208.0/path/_common/to_file_url.js +15 -0
  25. package/esm/deps/deno.land/std@0.208.0/path/_os.d.ts +3 -0
  26. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_os.js +1 -1
  27. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/basename.js +2 -1
  28. package/esm/deps/deno.land/std@0.208.0/path/common.js +19 -0
  29. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/dirname.js +2 -1
  30. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/extname.js +2 -1
  31. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/format.js +2 -1
  32. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/from_file_url.js +2 -1
  33. package/esm/deps/deno.land/{std@0.201.0/path/glob.d.ts → std@0.208.0/path/glob_to_regexp.d.ts} +5 -27
  34. package/esm/deps/deno.land/std@0.208.0/path/glob_to_regexp.js +65 -0
  35. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/is_absolute.js +2 -1
  36. package/esm/deps/deno.land/std@0.208.0/path/is_glob.d.ts +2 -0
  37. package/esm/deps/deno.land/std@0.208.0/path/is_glob.js +28 -0
  38. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/join.js +2 -1
  39. package/esm/deps/deno.land/std@0.208.0/path/join_globs.d.ts +3 -0
  40. package/esm/deps/deno.land/std@0.208.0/path/join_globs.js +11 -0
  41. package/{script/deps/deno.land/std@0.201.0 → esm/deps/deno.land/std@0.208.0}/path/mod.d.ts +10 -4
  42. package/esm/deps/deno.land/std@0.208.0/path/mod.js +63 -0
  43. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/normalize.js +2 -1
  44. package/esm/deps/deno.land/std@0.208.0/path/normalize_glob.d.ts +3 -0
  45. package/esm/deps/deno.land/std@0.208.0/path/normalize_glob.js +11 -0
  46. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/parse.js +2 -1
  47. package/esm/deps/deno.land/std@0.208.0/path/posix/_util.d.ts +1 -0
  48. package/esm/deps/deno.land/std@0.208.0/path/posix/_util.js +8 -0
  49. package/esm/deps/deno.land/std@0.208.0/path/posix/basename.js +18 -0
  50. package/esm/deps/deno.land/std@0.208.0/path/posix/common.js +19 -0
  51. package/esm/deps/deno.land/std@0.208.0/path/posix/dirname.js +36 -0
  52. package/esm/deps/deno.land/std@0.208.0/path/posix/extname.js +59 -0
  53. package/esm/deps/deno.land/std@0.208.0/path/posix/format.d.ts +6 -0
  54. package/esm/deps/deno.land/std@0.208.0/path/posix/format.js +11 -0
  55. package/esm/deps/deno.land/std@0.208.0/path/posix/from_file_url.d.ts +12 -0
  56. package/esm/deps/deno.land/std@0.208.0/path/posix/from_file_url.js +17 -0
  57. package/esm/deps/deno.land/std@0.208.0/path/posix/glob_to_regexp.d.ts +57 -0
  58. package/esm/deps/deno.land/std@0.208.0/path/posix/glob_to_regexp.js +69 -0
  59. package/esm/deps/deno.land/std@0.208.0/path/posix/is_absolute.js +12 -0
  60. package/esm/deps/deno.land/std@0.208.0/path/posix/is_glob.d.ts +1 -0
  61. package/esm/deps/deno.land/std@0.208.0/path/posix/is_glob.js +3 -0
  62. package/esm/deps/deno.land/std@0.208.0/path/posix/join.js +26 -0
  63. package/esm/deps/deno.land/std@0.208.0/path/posix/join_globs.d.ts +3 -0
  64. package/esm/deps/deno.land/std@0.208.0/path/posix/join_globs.js +26 -0
  65. package/esm/deps/deno.land/std@0.208.0/path/posix/mod.d.ts +40 -0
  66. package/esm/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/posix}/mod.js +7 -8
  67. package/esm/deps/deno.land/std@0.208.0/path/posix/normalize.js +25 -0
  68. package/esm/deps/deno.land/std@0.208.0/path/posix/normalize_glob.d.ts +3 -0
  69. package/esm/deps/deno.land/std@0.208.0/path/posix/normalize_glob.js +16 -0
  70. package/esm/deps/deno.land/std@0.208.0/path/posix/parse.d.ts +6 -0
  71. package/esm/deps/deno.land/std@0.208.0/path/posix/parse.js +98 -0
  72. package/esm/deps/deno.land/std@0.208.0/path/posix/relative.d.ts +7 -0
  73. package/esm/deps/deno.land/std@0.208.0/path/posix/relative.js +94 -0
  74. package/esm/deps/deno.land/std@0.208.0/path/posix/resolve.js +48 -0
  75. package/esm/deps/deno.land/std@0.208.0/path/posix/separator.d.ts +2 -0
  76. package/esm/deps/deno.land/std@0.208.0/path/posix/separator.js +4 -0
  77. package/esm/deps/deno.land/std@0.208.0/path/posix/to_file_url.d.ts +12 -0
  78. package/esm/deps/deno.land/std@0.208.0/path/posix/to_file_url.js +22 -0
  79. package/esm/deps/deno.land/std@0.208.0/path/posix/to_namespaced_path.js +10 -0
  80. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/relative.js +2 -1
  81. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/resolve.js +2 -1
  82. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_file_url.js +2 -1
  83. package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_namespaced_path.js +2 -1
  84. package/esm/deps/deno.land/std@0.208.0/path/windows/_util.d.ts +3 -0
  85. package/esm/deps/deno.land/std@0.208.0/path/windows/_util.js +15 -0
  86. package/esm/deps/deno.land/std@0.208.0/path/windows/basename.d.ts +8 -0
  87. package/esm/deps/deno.land/std@0.208.0/path/windows/basename.js +30 -0
  88. package/esm/deps/deno.land/std@0.208.0/path/windows/common.d.ts +13 -0
  89. package/esm/deps/deno.land/std@0.208.0/path/windows/common.js +19 -0
  90. package/esm/deps/deno.land/std@0.208.0/path/windows/dirname.d.ts +5 -0
  91. package/esm/deps/deno.land/{std@0.201.0/path/_dirname.js → std@0.208.0/path/windows/dirname.js} +5 -39
  92. package/esm/deps/deno.land/std@0.208.0/path/windows/extname.d.ts +6 -0
  93. package/esm/deps/deno.land/{std@0.201.0/path/_extname.js → std@0.208.0/path/windows/extname.js} +4 -57
  94. package/esm/deps/deno.land/std@0.208.0/path/windows/format.d.ts +6 -0
  95. package/esm/deps/deno.land/std@0.208.0/path/windows/format.js +11 -0
  96. package/esm/deps/deno.land/{std@0.201.0/path/_from_file_url.d.ts → std@0.208.0/path/windows/from_file_url.d.ts} +1 -12
  97. package/esm/deps/deno.land/{std@0.201.0/path/_from_file_url.js → std@0.208.0/path/windows/from_file_url.js} +2 -22
  98. package/esm/deps/deno.land/std@0.208.0/path/windows/glob_to_regexp.d.ts +57 -0
  99. package/esm/deps/deno.land/std@0.208.0/path/windows/glob_to_regexp.js +69 -0
  100. package/esm/deps/deno.land/std@0.208.0/path/windows/is_absolute.d.ts +5 -0
  101. package/esm/deps/deno.land/{std@0.201.0/path/_is_absolute.js → std@0.208.0/path/windows/is_absolute.js} +4 -11
  102. package/esm/deps/deno.land/std@0.208.0/path/windows/is_glob.d.ts +1 -0
  103. package/esm/deps/deno.land/std@0.208.0/path/windows/is_glob.js +3 -0
  104. package/esm/deps/deno.land/std@0.208.0/path/windows/join.d.ts +5 -0
  105. package/esm/deps/deno.land/{std@0.201.0/path/_join.js → std@0.208.0/path/windows/join.js} +6 -27
  106. package/esm/deps/deno.land/std@0.208.0/path/windows/join_globs.d.ts +3 -0
  107. package/esm/deps/deno.land/std@0.208.0/path/windows/join_globs.js +26 -0
  108. package/esm/deps/deno.land/std@0.208.0/path/windows/mod.d.ts +40 -0
  109. package/esm/deps/deno.land/std@0.208.0/path/windows/mod.js +44 -0
  110. package/esm/deps/deno.land/std@0.208.0/path/windows/normalize.d.ts +7 -0
  111. package/esm/deps/deno.land/{std@0.201.0/path/_normalize.js → std@0.208.0/path/windows/normalize.js} +5 -28
  112. package/esm/deps/deno.land/std@0.208.0/path/windows/normalize_glob.d.ts +3 -0
  113. package/esm/deps/deno.land/std@0.208.0/path/windows/normalize_glob.js +16 -0
  114. package/esm/deps/deno.land/std@0.208.0/path/windows/parse.d.ts +6 -0
  115. package/esm/deps/deno.land/{std@0.201.0/path/_parse.js → std@0.208.0/path/windows/parse.js} +4 -95
  116. package/esm/deps/deno.land/{std@0.201.0/path/_relative.js → std@0.208.0/path/windows/relative.js} +6 -101
  117. package/esm/deps/deno.land/std@0.208.0/path/windows/resolve.d.ts +5 -0
  118. package/esm/deps/deno.land/{std@0.201.0/path/_resolve.js → std@0.208.0/path/windows/resolve.js} +6 -46
  119. package/esm/deps/deno.land/std@0.208.0/path/windows/separator.d.ts +2 -0
  120. package/esm/deps/deno.land/std@0.208.0/path/windows/separator.js +4 -0
  121. package/{script/deps/deno.land/std@0.201.0/path/_to_file_url.d.ts → esm/deps/deno.land/std@0.208.0/path/windows/to_file_url.d.ts} +1 -12
  122. package/esm/deps/deno.land/{std@0.201.0/path/_to_file_url.js → std@0.208.0/path/windows/to_file_url.js} +4 -34
  123. package/esm/deps/deno.land/std@0.208.0/path/windows/to_namespaced_path.d.ts +5 -0
  124. package/esm/deps/deno.land/{std@0.201.0/path/_to_namespaced_path.js → std@0.208.0/path/windows/to_namespaced_path.js} +4 -12
  125. package/esm/deps.d.ts +2 -2
  126. package/esm/deps.js +2 -2
  127. package/esm/mod.js +2 -2
  128. package/esm/src/environment.d.ts +5 -0
  129. package/esm/src/environment.js +50 -23
  130. package/esm/src/tokenizer.d.ts +7 -2
  131. package/esm/src/tokenizer.js +77 -66
  132. package/package.json +1 -1
  133. package/script/deps/deno.land/std@0.208.0/path/_common/assert_path.d.ts +1 -0
  134. package/script/deps/deno.land/std@0.208.0/path/_common/assert_path.js +11 -0
  135. package/script/deps/deno.land/std@0.208.0/path/_common/basename.d.ts +3 -0
  136. package/script/deps/deno.land/std@0.208.0/path/_common/basename.js +46 -0
  137. package/script/deps/deno.land/std@0.208.0/path/_common/common.d.ts +1 -0
  138. package/script/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/_common}/common.js +3 -16
  139. package/script/deps/deno.land/std@0.208.0/path/_common/dirname.d.ts +1 -0
  140. package/script/deps/deno.land/std@0.208.0/path/_common/dirname.js +12 -0
  141. package/script/deps/deno.land/std@0.208.0/path/_common/format.d.ts +3 -0
  142. package/{esm/deps/deno.land/std@0.201.0/path/_format.js → script/deps/deno.land/std@0.208.0/path/_common/format.js} +5 -16
  143. package/script/deps/deno.land/std@0.208.0/path/_common/from_file_url.d.ts +2 -0
  144. package/script/deps/deno.land/std@0.208.0/path/_common/from_file_url.js +13 -0
  145. package/script/deps/deno.land/std@0.208.0/path/_common/glob_to_reg_exp.d.ts +27 -0
  146. package/script/deps/deno.land/{std@0.201.0/path/glob.js → std@0.208.0/path/_common/glob_to_reg_exp.js} +15 -167
  147. package/script/deps/deno.land/std@0.208.0/path/_common/normalize.d.ts +1 -0
  148. package/script/deps/deno.land/std@0.208.0/path/_common/normalize.js +12 -0
  149. package/script/deps/deno.land/std@0.208.0/path/_common/normalize_string.d.ts +1 -0
  150. package/script/deps/deno.land/{std@0.201.0/path/_util.js → std@0.208.0/path/_common/normalize_string.js} +6 -41
  151. package/script/deps/deno.land/std@0.208.0/path/_common/relative.d.ts +1 -0
  152. package/script/deps/deno.land/std@0.208.0/path/_common/relative.js +13 -0
  153. package/script/deps/deno.land/std@0.208.0/path/_common/strip_trailing_separators.d.ts +1 -0
  154. package/script/deps/deno.land/std@0.208.0/path/_common/strip_trailing_separators.js +23 -0
  155. package/script/deps/deno.land/std@0.208.0/path/_common/to_file_url.d.ts +1 -0
  156. package/script/deps/deno.land/std@0.208.0/path/_common/to_file_url.js +19 -0
  157. package/script/deps/deno.land/std@0.208.0/path/_os.d.ts +3 -0
  158. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_os.js +4 -4
  159. package/script/deps/deno.land/std@0.208.0/path/basename.d.ts +8 -0
  160. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/basename.js +4 -3
  161. package/script/deps/deno.land/std@0.208.0/path/common.d.ts +13 -0
  162. package/script/deps/deno.land/std@0.208.0/path/common.js +23 -0
  163. package/script/deps/deno.land/std@0.208.0/path/dirname.d.ts +5 -0
  164. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/dirname.js +3 -2
  165. package/script/deps/deno.land/std@0.208.0/path/extname.d.ts +6 -0
  166. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/extname.js +3 -2
  167. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/format.js +3 -2
  168. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/from_file_url.js +3 -2
  169. package/script/deps/deno.land/{std@0.201.0/path/glob.d.ts → std@0.208.0/path/glob_to_regexp.d.ts} +5 -27
  170. package/script/deps/deno.land/std@0.208.0/path/glob_to_regexp.js +69 -0
  171. package/script/deps/deno.land/std@0.208.0/path/is_absolute.d.ts +5 -0
  172. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/is_absolute.js +3 -2
  173. package/script/deps/deno.land/std@0.208.0/path/is_glob.d.ts +2 -0
  174. package/script/deps/deno.land/std@0.208.0/path/is_glob.js +32 -0
  175. package/script/deps/deno.land/std@0.208.0/path/join.d.ts +5 -0
  176. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/join.js +3 -2
  177. package/script/deps/deno.land/std@0.208.0/path/join_globs.d.ts +3 -0
  178. package/script/deps/deno.land/std@0.208.0/path/join_globs.js +15 -0
  179. package/{esm/deps/deno.land/std@0.201.0 → script/deps/deno.land/std@0.208.0}/path/mod.d.ts +10 -4
  180. package/script/deps/deno.land/std@0.208.0/path/mod.js +92 -0
  181. package/script/deps/deno.land/std@0.208.0/path/normalize.d.ts +7 -0
  182. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/normalize.js +3 -2
  183. package/script/deps/deno.land/std@0.208.0/path/normalize_glob.d.ts +3 -0
  184. package/script/deps/deno.land/std@0.208.0/path/normalize_glob.js +15 -0
  185. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/parse.js +3 -2
  186. package/script/deps/deno.land/std@0.208.0/path/posix/_util.d.ts +1 -0
  187. package/script/deps/deno.land/std@0.208.0/path/posix/_util.js +12 -0
  188. package/script/deps/deno.land/std@0.208.0/path/posix/basename.d.ts +8 -0
  189. package/script/deps/deno.land/std@0.208.0/path/posix/basename.js +22 -0
  190. package/script/deps/deno.land/std@0.208.0/path/posix/common.d.ts +13 -0
  191. package/script/deps/deno.land/std@0.208.0/path/posix/common.js +23 -0
  192. package/script/deps/deno.land/std@0.208.0/path/posix/dirname.d.ts +5 -0
  193. package/script/deps/deno.land/std@0.208.0/path/posix/dirname.js +40 -0
  194. package/script/deps/deno.land/std@0.208.0/path/posix/extname.d.ts +6 -0
  195. package/script/deps/deno.land/std@0.208.0/path/posix/extname.js +63 -0
  196. package/script/deps/deno.land/std@0.208.0/path/posix/format.d.ts +6 -0
  197. package/script/deps/deno.land/std@0.208.0/path/posix/format.js +15 -0
  198. package/script/deps/deno.land/std@0.208.0/path/posix/from_file_url.d.ts +12 -0
  199. package/script/deps/deno.land/std@0.208.0/path/posix/from_file_url.js +21 -0
  200. package/script/deps/deno.land/std@0.208.0/path/posix/glob_to_regexp.d.ts +57 -0
  201. package/script/deps/deno.land/std@0.208.0/path/posix/glob_to_regexp.js +73 -0
  202. package/script/deps/deno.land/std@0.208.0/path/posix/is_absolute.d.ts +5 -0
  203. package/script/deps/deno.land/std@0.208.0/path/posix/is_absolute.js +16 -0
  204. package/script/deps/deno.land/std@0.208.0/path/posix/is_glob.d.ts +1 -0
  205. package/script/deps/deno.land/std@0.208.0/path/posix/is_glob.js +7 -0
  206. package/script/deps/deno.land/std@0.208.0/path/posix/join.d.ts +5 -0
  207. package/script/deps/deno.land/std@0.208.0/path/posix/join.js +30 -0
  208. package/script/deps/deno.land/std@0.208.0/path/posix/join_globs.d.ts +3 -0
  209. package/script/deps/deno.land/std@0.208.0/path/posix/join_globs.js +30 -0
  210. package/script/deps/deno.land/std@0.208.0/path/posix/mod.d.ts +40 -0
  211. package/script/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/posix}/mod.js +8 -21
  212. package/script/deps/deno.land/std@0.208.0/path/posix/normalize.d.ts +7 -0
  213. package/script/deps/deno.land/std@0.208.0/path/posix/normalize.js +29 -0
  214. package/script/deps/deno.land/std@0.208.0/path/posix/normalize_glob.d.ts +3 -0
  215. package/script/deps/deno.land/std@0.208.0/path/posix/normalize_glob.js +20 -0
  216. package/script/deps/deno.land/std@0.208.0/path/posix/parse.d.ts +6 -0
  217. package/script/deps/deno.land/std@0.208.0/path/posix/parse.js +102 -0
  218. package/script/deps/deno.land/std@0.208.0/path/posix/relative.d.ts +7 -0
  219. package/script/deps/deno.land/std@0.208.0/path/posix/relative.js +98 -0
  220. package/script/deps/deno.land/std@0.208.0/path/posix/resolve.d.ts +5 -0
  221. package/script/deps/deno.land/std@0.208.0/path/posix/resolve.js +75 -0
  222. package/script/deps/deno.land/std@0.208.0/path/posix/separator.d.ts +2 -0
  223. package/script/deps/deno.land/std@0.208.0/path/posix/separator.js +7 -0
  224. package/script/deps/deno.land/std@0.208.0/path/posix/to_file_url.d.ts +12 -0
  225. package/script/deps/deno.land/std@0.208.0/path/posix/to_file_url.js +26 -0
  226. package/script/deps/deno.land/std@0.208.0/path/posix/to_namespaced_path.d.ts +5 -0
  227. package/script/deps/deno.land/std@0.208.0/path/posix/to_namespaced_path.js +14 -0
  228. package/script/deps/deno.land/{std@0.201.0/path/_relative.d.ts → std@0.208.0/path/relative.d.ts} +1 -8
  229. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/relative.js +3 -2
  230. package/script/deps/deno.land/std@0.208.0/path/resolve.d.ts +5 -0
  231. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/resolve.js +4 -3
  232. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_file_url.js +3 -2
  233. package/script/deps/deno.land/std@0.208.0/path/to_namespaced_path.d.ts +5 -0
  234. package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_namespaced_path.js +4 -3
  235. package/script/deps/deno.land/std@0.208.0/path/windows/_util.d.ts +3 -0
  236. package/script/deps/deno.land/std@0.208.0/path/windows/_util.js +21 -0
  237. package/script/deps/deno.land/std@0.208.0/path/windows/basename.d.ts +8 -0
  238. package/script/deps/deno.land/std@0.208.0/path/windows/basename.js +34 -0
  239. package/script/deps/deno.land/std@0.208.0/path/windows/common.d.ts +13 -0
  240. package/script/deps/deno.land/std@0.208.0/path/windows/common.js +23 -0
  241. package/script/deps/deno.land/std@0.208.0/path/windows/dirname.d.ts +5 -0
  242. package/script/deps/deno.land/{std@0.201.0/path/_dirname.js → std@0.208.0/path/windows/dirname.js} +9 -44
  243. package/script/deps/deno.land/std@0.208.0/path/windows/extname.d.ts +6 -0
  244. package/script/deps/deno.land/{std@0.201.0/path/_extname.js → std@0.208.0/path/windows/extname.js} +8 -62
  245. package/script/deps/deno.land/std@0.208.0/path/windows/format.d.ts +6 -0
  246. package/script/deps/deno.land/std@0.208.0/path/windows/format.js +15 -0
  247. package/script/deps/deno.land/{std@0.201.0/path/_from_file_url.d.ts → std@0.208.0/path/windows/from_file_url.d.ts} +1 -12
  248. package/script/deps/deno.land/{std@0.201.0/path/_from_file_url.js → std@0.208.0/path/windows/from_file_url.js} +5 -26
  249. package/script/deps/deno.land/std@0.208.0/path/windows/glob_to_regexp.d.ts +57 -0
  250. package/script/deps/deno.land/std@0.208.0/path/windows/glob_to_regexp.js +73 -0
  251. package/script/deps/deno.land/std@0.208.0/path/windows/is_absolute.d.ts +5 -0
  252. package/script/deps/deno.land/{std@0.201.0/path/_is_absolute.js → std@0.208.0/path/windows/is_absolute.js} +7 -15
  253. package/script/deps/deno.land/std@0.208.0/path/windows/is_glob.d.ts +1 -0
  254. package/script/deps/deno.land/std@0.208.0/path/windows/is_glob.js +7 -0
  255. package/script/deps/deno.land/std@0.208.0/path/windows/join.d.ts +5 -0
  256. package/script/deps/deno.land/{std@0.201.0/path/_join.js → std@0.208.0/path/windows/join.js} +8 -30
  257. package/script/deps/deno.land/std@0.208.0/path/windows/join_globs.d.ts +3 -0
  258. package/script/deps/deno.land/std@0.208.0/path/windows/join_globs.js +30 -0
  259. package/script/deps/deno.land/std@0.208.0/path/windows/mod.d.ts +40 -0
  260. package/script/deps/deno.land/std@0.208.0/path/windows/mod.js +61 -0
  261. package/script/deps/deno.land/std@0.208.0/path/windows/normalize.d.ts +7 -0
  262. package/script/deps/deno.land/{std@0.201.0/path/_normalize.js → std@0.208.0/path/windows/normalize.js} +9 -33
  263. package/script/deps/deno.land/std@0.208.0/path/windows/normalize_glob.d.ts +3 -0
  264. package/script/deps/deno.land/std@0.208.0/path/windows/normalize_glob.js +20 -0
  265. package/script/deps/deno.land/std@0.208.0/path/windows/parse.d.ts +6 -0
  266. package/script/deps/deno.land/{std@0.201.0/path/_parse.js → std@0.208.0/path/windows/parse.js} +8 -100
  267. package/script/deps/deno.land/std@0.208.0/path/windows/relative.d.ts +12 -0
  268. package/script/deps/deno.land/std@0.208.0/path/windows/relative.js +125 -0
  269. package/script/deps/deno.land/std@0.208.0/path/windows/resolve.d.ts +5 -0
  270. package/script/deps/deno.land/{std@0.201.0/path/_resolve.js → std@0.208.0/path/windows/resolve.js} +10 -51
  271. package/script/deps/deno.land/std@0.208.0/path/windows/separator.d.ts +2 -0
  272. package/script/deps/deno.land/std@0.208.0/path/windows/separator.js +7 -0
  273. package/{esm/deps/deno.land/std@0.201.0/path/_to_file_url.d.ts → script/deps/deno.land/std@0.208.0/path/windows/to_file_url.d.ts} +1 -12
  274. package/script/deps/deno.land/std@0.208.0/path/windows/to_file_url.js +35 -0
  275. package/script/deps/deno.land/std@0.208.0/path/windows/to_namespaced_path.d.ts +5 -0
  276. package/script/deps/deno.land/{std@0.201.0/path/_to_namespaced_path.js → std@0.208.0/path/windows/to_namespaced_path.js} +11 -20
  277. package/script/deps.d.ts +2 -2
  278. package/script/deps.js +2 -2
  279. package/script/mod.js +2 -2
  280. package/script/src/environment.d.ts +5 -0
  281. package/script/src/environment.js +52 -24
  282. package/script/src/tokenizer.d.ts +7 -2
  283. package/script/src/tokenizer.js +77 -66
  284. package/esm/deps/deno.land/std@0.201.0/path/_basename.d.ts +0 -16
  285. package/esm/deps/deno.land/std@0.201.0/path/_basename.js +0 -78
  286. package/esm/deps/deno.land/std@0.201.0/path/_dirname.d.ts +0 -10
  287. package/esm/deps/deno.land/std@0.201.0/path/_extname.d.ts +0 -12
  288. package/esm/deps/deno.land/std@0.201.0/path/_format.d.ts +0 -11
  289. package/esm/deps/deno.land/std@0.201.0/path/_is_absolute.d.ts +0 -10
  290. package/esm/deps/deno.land/std@0.201.0/path/_join.d.ts +0 -10
  291. package/esm/deps/deno.land/std@0.201.0/path/_normalize.d.ts +0 -14
  292. package/esm/deps/deno.land/std@0.201.0/path/_os.d.ts +0 -4
  293. package/esm/deps/deno.land/std@0.201.0/path/_parse.d.ts +0 -11
  294. package/esm/deps/deno.land/std@0.201.0/path/_relative.d.ts +0 -19
  295. package/esm/deps/deno.land/std@0.201.0/path/_resolve.d.ts +0 -10
  296. package/esm/deps/deno.land/std@0.201.0/path/_to_namespaced_path.d.ts +0 -10
  297. package/esm/deps/deno.land/std@0.201.0/path/_util.d.ts +0 -6
  298. package/esm/deps/deno.land/std@0.201.0/path/posix.d.ts +0 -15
  299. package/esm/deps/deno.land/std@0.201.0/path/posix.js +0 -19
  300. package/esm/deps/deno.land/std@0.201.0/path/win32.d.ts +0 -15
  301. package/esm/deps/deno.land/std@0.201.0/path/win32.js +0 -19
  302. package/script/deps/deno.land/std@0.201.0/path/_basename.d.ts +0 -16
  303. package/script/deps/deno.land/std@0.201.0/path/_basename.js +0 -83
  304. package/script/deps/deno.land/std@0.201.0/path/_dirname.d.ts +0 -10
  305. package/script/deps/deno.land/std@0.201.0/path/_extname.d.ts +0 -12
  306. package/script/deps/deno.land/std@0.201.0/path/_format.d.ts +0 -11
  307. package/script/deps/deno.land/std@0.201.0/path/_format.js +0 -40
  308. package/script/deps/deno.land/std@0.201.0/path/_is_absolute.d.ts +0 -10
  309. package/script/deps/deno.land/std@0.201.0/path/_join.d.ts +0 -10
  310. package/script/deps/deno.land/std@0.201.0/path/_normalize.d.ts +0 -14
  311. package/script/deps/deno.land/std@0.201.0/path/_os.d.ts +0 -4
  312. package/script/deps/deno.land/std@0.201.0/path/_parse.d.ts +0 -11
  313. package/script/deps/deno.land/std@0.201.0/path/_relative.js +0 -221
  314. package/script/deps/deno.land/std@0.201.0/path/_resolve.d.ts +0 -10
  315. package/script/deps/deno.land/std@0.201.0/path/_to_file_url.js +0 -66
  316. package/script/deps/deno.land/std@0.201.0/path/_to_namespaced_path.d.ts +0 -10
  317. package/script/deps/deno.land/std@0.201.0/path/_util.d.ts +0 -6
  318. package/script/deps/deno.land/std@0.201.0/path/posix.d.ts +0 -15
  319. package/script/deps/deno.land/std@0.201.0/path/posix.js +0 -35
  320. package/script/deps/deno.land/std@0.201.0/path/win32.d.ts +0 -15
  321. package/script/deps/deno.land/std@0.201.0/path/win32.js +0 -35
  322. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assert.d.ts +0 -0
  323. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assert.js +0 -0
  324. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assertion_error.d.ts +0 -0
  325. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assertion_error.js +0 -0
  326. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/entities.d.ts +0 -0
  327. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/entities.js +0 -0
  328. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/mod.d.ts +0 -0
  329. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/mod.js +0 -0
  330. /package/esm/deps/deno.land/{std@0.201.0/path/_constants.d.ts → std@0.208.0/path/_common/constants.d.ts} +0 -0
  331. /package/esm/deps/deno.land/{std@0.201.0/path/_constants.js → std@0.208.0/path/_common/constants.js} +0 -0
  332. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_interface.d.ts +0 -0
  333. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_interface.js +0 -0
  334. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/basename.d.ts +0 -0
  335. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/common.d.ts +0 -0
  336. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/dirname.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/extname.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/format.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/from_file_url.d.ts +0 -0
  340. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/is_absolute.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/join.d.ts +0 -0
  342. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/normalize.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/parse.d.ts +0 -0
  344. /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/basename.d.ts +0 -0
  345. /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/common.d.ts +0 -0
  346. /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/dirname.d.ts +0 -0
  347. /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/extname.d.ts +0 -0
  348. /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/is_absolute.d.ts +0 -0
  349. /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/join.d.ts +0 -0
  350. /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/normalize.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/posix}/resolve.d.ts +0 -0
  352. /package/esm/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/posix}/to_namespaced_path.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/relative.d.ts +0 -0
  354. /package/{script/deps/deno.land/std@0.201.0 → esm/deps/deno.land/std@0.208.0}/path/resolve.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/separator.d.ts +0 -0
  356. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/separator.js +0 -0
  357. /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_file_url.d.ts +0 -0
  358. /package/{script/deps/deno.land/std@0.201.0 → esm/deps/deno.land/std@0.208.0}/path/to_namespaced_path.d.ts +0 -0
  359. /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/windows}/relative.d.ts +0 -0
  360. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assert.d.ts +0 -0
  361. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assert.js +0 -0
  362. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assertion_error.d.ts +0 -0
  363. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assertion_error.js +0 -0
  364. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/entities.d.ts +0 -0
  365. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/entities.js +0 -0
  366. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/mod.d.ts +0 -0
  367. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/mod.js +0 -0
  368. /package/script/deps/deno.land/{std@0.201.0/path/_constants.d.ts → std@0.208.0/path/_common/constants.d.ts} +0 -0
  369. /package/script/deps/deno.land/{std@0.201.0/path/_constants.js → std@0.208.0/path/_common/constants.js} +0 -0
  370. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_interface.d.ts +0 -0
  371. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_interface.js +0 -0
  372. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/format.d.ts +0 -0
  373. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/from_file_url.d.ts +0 -0
  374. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/parse.d.ts +0 -0
  375. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/separator.d.ts +0 -0
  376. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/separator.js +0 -0
  377. /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_file_url.d.ts +0 -0
@@ -4,27 +4,8 @@
4
4
  // Ported from https://github.com/browserify/path-browserify/
5
5
  // This module is browser compatible.
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.stripTrailingSeparators = exports.normalizeString = exports.isWindowsDeviceRoot = exports.isPathSeparator = exports.isPosixPathSeparator = exports.assertPath = void 0;
8
- const _constants_js_1 = require("./_constants.js");
9
- function assertPath(path) {
10
- if (typeof path !== "string") {
11
- throw new TypeError(`Path must be a string. Received ${JSON.stringify(path)}`);
12
- }
13
- }
14
- exports.assertPath = assertPath;
15
- function isPosixPathSeparator(code) {
16
- return code === _constants_js_1.CHAR_FORWARD_SLASH;
17
- }
18
- exports.isPosixPathSeparator = isPosixPathSeparator;
19
- function isPathSeparator(code) {
20
- return isPosixPathSeparator(code) || code === _constants_js_1.CHAR_BACKWARD_SLASH;
21
- }
22
- exports.isPathSeparator = isPathSeparator;
23
- function isWindowsDeviceRoot(code) {
24
- return ((code >= _constants_js_1.CHAR_LOWERCASE_A && code <= _constants_js_1.CHAR_LOWERCASE_Z) ||
25
- (code >= _constants_js_1.CHAR_UPPERCASE_A && code <= _constants_js_1.CHAR_UPPERCASE_Z));
26
- }
27
- exports.isWindowsDeviceRoot = isWindowsDeviceRoot;
7
+ exports.normalizeString = void 0;
8
+ const constants_js_1 = require("./constants.js");
28
9
  // Resolves . and .. elements in a path with directory names
29
10
  function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
30
11
  let res = "";
@@ -38,7 +19,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
38
19
  else if (isPathSeparator(code))
39
20
  break;
40
21
  else
41
- code = _constants_js_1.CHAR_FORWARD_SLASH;
22
+ code = constants_js_1.CHAR_FORWARD_SLASH;
42
23
  if (isPathSeparator(code)) {
43
24
  if (lastSlash === i - 1 || dots === 1) {
44
25
  // NOOP
@@ -46,8 +27,8 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
46
27
  else if (lastSlash !== i - 1 && dots === 2) {
47
28
  if (res.length < 2 ||
48
29
  lastSegmentLength !== 2 ||
49
- res.charCodeAt(res.length - 1) !== _constants_js_1.CHAR_DOT ||
50
- res.charCodeAt(res.length - 2) !== _constants_js_1.CHAR_DOT) {
30
+ res.charCodeAt(res.length - 1) !== constants_js_1.CHAR_DOT ||
31
+ res.charCodeAt(res.length - 2) !== constants_js_1.CHAR_DOT) {
51
32
  if (res.length > 2) {
52
33
  const lastSlashIndex = res.lastIndexOf(separator);
53
34
  if (lastSlashIndex === -1) {
@@ -88,7 +69,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
88
69
  lastSlash = i;
89
70
  dots = 0;
90
71
  }
91
- else if (code === _constants_js_1.CHAR_DOT && dots !== -1) {
72
+ else if (code === constants_js_1.CHAR_DOT && dots !== -1) {
92
73
  ++dots;
93
74
  }
94
75
  else {
@@ -98,19 +79,3 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
98
79
  return res;
99
80
  }
100
81
  exports.normalizeString = normalizeString;
101
- function stripTrailingSeparators(segment, isSep) {
102
- if (segment.length <= 1) {
103
- return segment;
104
- }
105
- let end = segment.length;
106
- for (let i = segment.length - 1; i > 0; i--) {
107
- if (isSep(segment.charCodeAt(i))) {
108
- end = i;
109
- }
110
- else {
111
- break;
112
- }
113
- }
114
- return segment.slice(0, end);
115
- }
116
- exports.stripTrailingSeparators = stripTrailingSeparators;
@@ -0,0 +1 @@
1
+ export declare function assertArgs(from: string, to: string): "" | undefined;
@@ -0,0 +1,13 @@
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.assertArgs = void 0;
6
+ const assert_path_js_1 = require("./assert_path.js");
7
+ function assertArgs(from, to) {
8
+ (0, assert_path_js_1.assertPath)(from);
9
+ (0, assert_path_js_1.assertPath)(to);
10
+ if (from === to)
11
+ return "";
12
+ }
13
+ exports.assertArgs = assertArgs;
@@ -0,0 +1 @@
1
+ export declare function stripTrailingSeparators(segment: string, isSep: (char: number) => boolean): string;
@@ -0,0 +1,23 @@
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.stripTrailingSeparators = void 0;
8
+ function stripTrailingSeparators(segment, isSep) {
9
+ if (segment.length <= 1) {
10
+ return segment;
11
+ }
12
+ let end = segment.length;
13
+ for (let i = segment.length - 1; i > 0; i--) {
14
+ if (isSep(segment.charCodeAt(i))) {
15
+ end = i;
16
+ }
17
+ else {
18
+ break;
19
+ }
20
+ }
21
+ return segment.slice(0, end);
22
+ }
23
+ exports.stripTrailingSeparators = stripTrailingSeparators;
@@ -0,0 +1 @@
1
+ export declare function encodeWhitespace(string: string): string;
@@ -0,0 +1,19 @@
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.encodeWhitespace = void 0;
6
+ const WHITESPACE_ENCODINGS = {
7
+ "\u0009": "%09",
8
+ "\u000A": "%0A",
9
+ "\u000B": "%0B",
10
+ "\u000C": "%0C",
11
+ "\u000D": "%0D",
12
+ "\u0020": "%20",
13
+ };
14
+ function encodeWhitespace(string) {
15
+ return string.replaceAll(/[\s]/g, (c) => {
16
+ return WHITESPACE_ENCODINGS[c] ?? c;
17
+ });
18
+ }
19
+ exports.encodeWhitespace = encodeWhitespace;
@@ -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;
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
2
4
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
5
  if (k2 === undefined) k2 = k;
4
6
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -23,9 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
25
  return result;
24
26
  };
25
27
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.isLinux = exports.isWindows = exports.osType = void 0;
27
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
28
- // This module is browser compatible.
28
+ exports.isWindows = exports.osType = void 0;
29
+ // Keep this up-to-date with Deno.build.os
29
30
  const dntShim = __importStar(require("../../../../_dnt.shims.js"));
30
31
  exports.osType = (() => {
31
32
  // deno-lint-ignore no-explicit-any
@@ -41,4 +42,3 @@ exports.osType = (() => {
41
42
  return "linux";
42
43
  })();
43
44
  exports.isWindows = exports.osType === "windows";
44
- exports.isLinux = exports.osType === "linux";
@@ -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;
@@ -4,7 +4,8 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.basename = void 0;
6
6
  const _os_js_1 = require("./_os.js");
7
- const _basename_js_1 = require("./_basename.js");
7
+ const basename_js_1 = require("./posix/basename.js");
8
+ const basename_js_2 = require("./windows/basename.js");
8
9
  /**
9
10
  * Return the last portion of a `path`.
10
11
  * Trailing directory separators are ignored, and optional suffix is removed.
@@ -14,7 +15,7 @@ const _basename_js_1 = require("./_basename.js");
14
15
  */
15
16
  function basename(path, suffix = "") {
16
17
  return _os_js_1.isWindows
17
- ? (0, _basename_js_1.windowsBasename)(path, suffix)
18
- : (0, _basename_js_1.posixBasename)(path, suffix);
18
+ ? (0, basename_js_2.basename)(path, suffix)
19
+ : (0, basename_js_1.basename)(path, suffix);
19
20
  }
20
21
  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;
@@ -4,12 +4,13 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.dirname = void 0;
6
6
  const _os_js_1 = require("./_os.js");
7
- const _dirname_js_1 = require("./_dirname.js");
7
+ const dirname_js_1 = require("./posix/dirname.js");
8
+ const dirname_js_2 = require("./windows/dirname.js");
8
9
  /**
9
10
  * Return the directory path of a `path`.
10
11
  * @param path - path to extract the directory from.
11
12
  */
12
13
  function dirname(path) {
13
- return _os_js_1.isWindows ? (0, _dirname_js_1.windowsDirname)(path) : (0, _dirname_js_1.posixDirname)(path);
14
+ return _os_js_1.isWindows ? (0, dirname_js_2.dirname)(path) : (0, dirname_js_1.dirname)(path);
14
15
  }
15
16
  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;
@@ -4,13 +4,14 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.extname = void 0;
6
6
  const _os_js_1 = require("./_os.js");
7
- const _extname_js_1 = require("./_extname.js");
7
+ const extname_js_1 = require("./posix/extname.js");
8
+ const extname_js_2 = require("./posix/extname.js");
8
9
  /**
9
10
  * Return the extension of the `path` with leading period.
10
11
  * @param path with extension
11
12
  * @returns extension (ex. for `file.ts` returns `.ts`)
12
13
  */
13
14
  function extname(path) {
14
- return _os_js_1.isWindows ? (0, _extname_js_1.windowsExtname)(path) : (0, _extname_js_1.posixExtname)(path);
15
+ return _os_js_1.isWindows ? (0, extname_js_2.extname)(path) : (0, extname_js_1.extname)(path);
15
16
  }
16
17
  exports.extname = extname;
@@ -4,12 +4,13 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.format = void 0;
6
6
  const _os_js_1 = require("./_os.js");
7
- const _format_js_1 = require("./_format.js");
7
+ const format_js_1 = require("./posix/format.js");
8
+ const format_js_2 = require("./windows/format.js");
8
9
  /**
9
10
  * Generate a path from `FormatInputPathObject` object.
10
11
  * @param pathObject with path
11
12
  */
12
13
  function format(pathObject) {
13
- return _os_js_1.isWindows ? (0, _format_js_1.windowsFormat)(pathObject) : (0, _format_js_1.posixFormat)(pathObject);
14
+ return _os_js_1.isWindows ? (0, format_js_2.format)(pathObject) : (0, format_js_1.format)(pathObject);
14
15
  }
15
16
  exports.format = format;
@@ -4,7 +4,8 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.fromFileUrl = void 0;
6
6
  const _os_js_1 = require("./_os.js");
7
- const _from_file_url_js_1 = require("./_from_file_url.js");
7
+ const from_file_url_js_1 = require("./posix/from_file_url.js");
8
+ const from_file_url_js_2 = require("./windows/from_file_url.js");
8
9
  /**
9
10
  * Converts a file URL to a path string.
10
11
  *
@@ -22,6 +23,6 @@ const _from_file_url_js_1 = require("./_from_file_url.js");
22
23
  * @param url of a file URL
23
24
  */
24
25
  function fromFileUrl(url) {
25
- return _os_js_1.isWindows ? (0, _from_file_url_js_1.windowsFromFileUrl)(url) : (0, _from_file_url_js_1.posixFromFileUrl)(url);
26
+ return _os_js_1.isWindows ? (0, from_file_url_js_2.fromFileUrl)(url) : (0, from_file_url_js_1.fromFileUrl)(url);
26
27
  }
27
28
  exports.fromFileUrl = fromFileUrl;
@@ -1,24 +1,8 @@
1
- import { type OSType } from "./_os.js";
2
- export interface GlobOptions {
3
- /** Extended glob syntax.
4
- * See https://www.linuxjournal.com/content/bash-extended-globbing.
5
- *
6
- * @default {true}
7
- */
8
- extended?: boolean;
9
- /** Globstar syntax.
10
- * See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
11
- * If false, `**` is treated like `*`.
12
- *
13
- * @default {true}
14
- */
15
- globstar?: boolean;
16
- /** Whether globstar should be case-insensitive. */
17
- caseInsensitive?: boolean;
18
- /** Operating system. Defaults to the native OS. */
1
+ import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
+ import { OSType } from "./_os.js";
3
+ export type GlobToRegExpOptions = GlobOptions & {
19
4
  os?: OSType;
20
- }
21
- export type GlobToRegExpOptions = GlobOptions;
5
+ };
22
6
  /** Convert a glob string to a regular expression.
23
7
  *
24
8
  * Tries to match bash glob expansion as closely as possible.
@@ -74,10 +58,4 @@ export type GlobToRegExpOptions = GlobOptions;
74
58
  * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
75
59
  * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
76
60
  * the group occurs not nested at the end of the segment. */
77
- export declare function globToRegExp(glob: string, { extended, globstar: globstarOption, os, caseInsensitive, }?: GlobToRegExpOptions): RegExp;
78
- /** Test whether the given string is a glob */
79
- export declare function isGlob(str: string): boolean;
80
- /** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
81
- export declare function normalizeGlob(glob: string, { globstar }?: GlobOptions): string;
82
- /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
83
- export declare function joinGlobs(globs: string[], { extended, globstar }?: GlobOptions): string;
61
+ export declare function globToRegExp(glob: string, options?: GlobToRegExpOptions): RegExp;
@@ -0,0 +1,69 @@
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 _os_js_1 = require("./_os.js");
7
+ const glob_to_regexp_js_1 = require("./posix/glob_to_regexp.js");
8
+ const glob_to_regexp_js_2 = require("./windows/glob_to_regexp.js");
9
+ /** Convert a glob string to a regular expression.
10
+ *
11
+ * Tries to match bash glob expansion as closely as possible.
12
+ *
13
+ * Basic glob syntax:
14
+ * - `*` - Matches everything without leaving the path segment.
15
+ * - `?` - Matches any single character.
16
+ * - `{foo,bar}` - Matches `foo` or `bar`.
17
+ * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
18
+ * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
19
+ * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
20
+ * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
21
+ * - `[[:alnum:]]` - Matches any digit or letter.
22
+ * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
23
+ * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
24
+ * for a complete list of supported character classes.
25
+ * - `\` - Escapes the next character for an `os` other than `"windows"`.
26
+ * - \` - Escapes the next character for `os` set to `"windows"`.
27
+ * - `/` - Path separator.
28
+ * - `\` - Additional path separator only for `os` set to `"windows"`.
29
+ *
30
+ * Extended syntax:
31
+ * - Requires `{ extended: true }`.
32
+ * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
33
+ * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
34
+ * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
35
+ * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
36
+ * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
37
+ * - See https://www.linuxjournal.com/content/bash-extended-globbing.
38
+ *
39
+ * Globstar syntax:
40
+ * - Requires `{ globstar: true }`.
41
+ * - `**` - Matches any number of any path segments.
42
+ * - Must comprise its entire path segment in the provided glob.
43
+ * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
44
+ *
45
+ * Note the following properties:
46
+ * - The generated `RegExp` is anchored at both start and end.
47
+ * - Repeating and trailing separators are tolerated. Trailing separators in the
48
+ * provided glob have no meaning and are discarded.
49
+ * - Absolute globs will only match absolute paths, etc.
50
+ * - Empty globs will match nothing.
51
+ * - Any special glob syntax must be contained to one path segment. For example,
52
+ * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
53
+ * first segment ends with an unclosed group.
54
+ * - If a path segment ends with unclosed groups or a dangling escape prefix, a
55
+ * parse error has occurred. Every character for that segment is taken
56
+ * literally in this event.
57
+ *
58
+ * Limitations:
59
+ * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
60
+ * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
61
+ * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
62
+ * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
63
+ * the group occurs not nested at the end of the segment. */
64
+ function globToRegExp(glob, options = {}) {
65
+ return options.os === "windows" || (!options.os && _os_js_1.isWindows)
66
+ ? (0, glob_to_regexp_js_2.globToRegExp)(glob, options)
67
+ : (0, glob_to_regexp_js_1.globToRegExp)(glob, options);
68
+ }
69
+ 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;
@@ -4,12 +4,13 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.isAbsolute = void 0;
6
6
  const _os_js_1 = require("./_os.js");
7
- const _is_absolute_js_1 = require("./_is_absolute.js");
7
+ const is_absolute_js_1 = require("./posix/is_absolute.js");
8
+ const is_absolute_js_2 = require("./windows/is_absolute.js");
8
9
  /**
9
10
  * Verifies whether provided path is absolute
10
11
  * @param path to be verified as absolute
11
12
  */
12
13
  function isAbsolute(path) {
13
- return _os_js_1.isWindows ? (0, _is_absolute_js_1.windowsIsAbsolute)(path) : (0, _is_absolute_js_1.posixIsAbsolute)(path);
14
+ return _os_js_1.isWindows ? (0, is_absolute_js_2.isAbsolute)(path) : (0, is_absolute_js_1.isAbsolute)(path);
14
15
  }
15
16
  exports.isAbsolute = isAbsolute;
@@ -0,0 +1,2 @@
1
+ /** Test whether the given string is a glob */
2
+ export declare function isGlob(str: string): boolean;
@@ -0,0 +1,32 @@
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.isGlob = void 0;
6
+ /** Test whether the given string is a glob */
7
+ function isGlob(str) {
8
+ const chars = { "{": "}", "(": ")", "[": "]" };
9
+ const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
10
+ if (str === "") {
11
+ return false;
12
+ }
13
+ let match;
14
+ while ((match = regex.exec(str))) {
15
+ if (match[2])
16
+ return true;
17
+ let idx = match.index + match[0].length;
18
+ // if an open bracket/brace/paren is escaped,
19
+ // set the index to the next closing character
20
+ const open = match[1];
21
+ const close = open ? chars[open] : null;
22
+ if (open && close) {
23
+ const n = str.indexOf(close, idx);
24
+ if (n !== -1) {
25
+ idx = n + 1;
26
+ }
27
+ }
28
+ str = str.slice(idx);
29
+ }
30
+ return false;
31
+ }
32
+ exports.isGlob = isGlob;
@@ -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;
@@ -4,12 +4,13 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.join = void 0;
6
6
  const _os_js_1 = require("./_os.js");
7
- const _join_js_1 = require("./_join.js");
7
+ const join_js_1 = require("./posix/join.js");
8
+ const join_js_2 = require("./windows/join.js");
8
9
  /**
9
10
  * Join all given a sequence of `paths`,then normalizes the resulting path.
10
11
  * @param paths to be joined and normalized
11
12
  */
12
13
  function join(...paths) {
13
- return _os_js_1.isWindows ? (0, _join_js_1.windowsJoin)(...paths) : (0, _join_js_1.posixJoin)(...paths);
14
+ return _os_js_1.isWindows ? (0, join_js_2.join)(...paths) : (0, join_js_1.join)(...paths);
14
15
  }
15
16
  exports.join = join;
@@ -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,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.joinGlobs = void 0;
6
+ const _os_js_1 = require("./_os.js");
7
+ const join_globs_js_1 = require("./posix/join_globs.js");
8
+ const join_globs_js_2 = require("./windows/join_globs.js");
9
+ /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
10
+ function joinGlobs(globs, options = {}) {
11
+ return _os_js_1.isWindows
12
+ ? (0, join_globs_js_2.joinGlobs)(globs, options)
13
+ : (0, join_globs_js_1.joinGlobs)(globs, options);
14
+ }
15
+ exports.joinGlobs = joinGlobs;
@@ -1,7 +1,10 @@
1
- import * as _win32 from "./win32.js";
2
- import * as _posix from "./posix.js";
3
- export declare const win32: typeof _win32;
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. */
4
6
  export declare const posix: typeof _posix;
7
+ export declare const sep: string;
5
8
  export declare const delimiter: string;
6
9
  export * from "./basename.js";
7
10
  export * from "./dirname.js";
@@ -19,4 +22,7 @@ export * from "./to_namespaced_path.js";
19
22
  export * from "./common.js";
20
23
  export * from "./separator.js";
21
24
  export * from "./_interface.js";
22
- export * from "./glob.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";