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
@@ -1,78 +0,0 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { CHAR_COLON } from "./_constants.js";
4
- import { assertPath, isPathSeparator, isPosixPathSeparator, isWindowsDeviceRoot, stripTrailingSeparators, } from "./_util.js";
5
- function stripSuffix(name, suffix) {
6
- if (suffix.length >= name.length) {
7
- return name;
8
- }
9
- const lenDiff = name.length - suffix.length;
10
- for (let i = suffix.length - 1; i >= 0; --i) {
11
- if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
12
- return name;
13
- }
14
- }
15
- return name.slice(0, -suffix.length);
16
- }
17
- function lastPathSegment(path, isSep, start = 0) {
18
- let matchedNonSeparator = false;
19
- let end = path.length;
20
- for (let i = path.length - 1; i >= start; --i) {
21
- if (isSep(path.charCodeAt(i))) {
22
- if (matchedNonSeparator) {
23
- start = i + 1;
24
- break;
25
- }
26
- }
27
- else if (!matchedNonSeparator) {
28
- matchedNonSeparator = true;
29
- end = i + 1;
30
- }
31
- }
32
- return path.slice(start, end);
33
- }
34
- function assertArgs(path, suffix) {
35
- assertPath(path);
36
- if (path.length === 0)
37
- return path;
38
- if (typeof suffix !== "string") {
39
- throw new TypeError(`Suffix must be a string. Received ${JSON.stringify(suffix)}`);
40
- }
41
- }
42
- /**
43
- * Return the last portion of a `path`.
44
- * Trailing directory separators are ignored, and optional suffix is removed.
45
- *
46
- * @param path - path to extract the name from.
47
- * @param [suffix] - suffix to remove from extracted name.
48
- */
49
- export function posixBasename(path, suffix = "") {
50
- assertArgs(path, suffix);
51
- const lastSegment = lastPathSegment(path, isPosixPathSeparator);
52
- const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
53
- return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
54
- }
55
- /**
56
- * Return the last portion of a `path`.
57
- * Trailing directory separators are ignored, and optional suffix is removed.
58
- *
59
- * @param path - path to extract the name from.
60
- * @param [suffix] - suffix to remove from extracted name.
61
- */
62
- export function windowsBasename(path, suffix = "") {
63
- assertArgs(path, suffix);
64
- // Check for a drive letter prefix so as not to mistake the following
65
- // path separator as an extra separator at the end of the path that can be
66
- // disregarded
67
- let start = 0;
68
- if (path.length >= 2) {
69
- const drive = path.charCodeAt(0);
70
- if (isWindowsDeviceRoot(drive)) {
71
- if (path.charCodeAt(1) === CHAR_COLON)
72
- start = 2;
73
- }
74
- }
75
- const lastSegment = lastPathSegment(path, isPathSeparator, start);
76
- const strippedSegment = stripTrailingSeparators(lastSegment, isPathSeparator);
77
- return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
78
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Return the directory path of a `path`.
3
- * @param path - path to extract the directory from.
4
- */
5
- export declare function posixDirname(path: string): string;
6
- /**
7
- * Return the directory path of a `path`.
8
- * @param path - path to extract the directory from.
9
- */
10
- export declare function windowsDirname(path: string): string;
@@ -1,12 +0,0 @@
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 posixExtname(path: string): string;
7
- /**
8
- * Return the extension of the `path` with leading period.
9
- * @param path with extension
10
- * @returns extension (ex. for `file.ts` returns `.ts`)
11
- */
12
- export declare function windowsExtname(path: string): string;
@@ -1,11 +0,0 @@
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 posixFormat(pathObject: FormatInputPathObject): string;
7
- /**
8
- * Generate a path from `FormatInputPathObject` object.
9
- * @param pathObject with path
10
- */
11
- export declare function windowsFormat(pathObject: FormatInputPathObject): string;
@@ -1,10 +0,0 @@
1
- /**
2
- * Verifies whether provided path is absolute
3
- * @param path to be verified as absolute
4
- */
5
- export declare function windowsIsAbsolute(path: string): boolean;
6
- /**
7
- * Verifies whether provided path is absolute
8
- * @param path to be verified as absolute
9
- */
10
- export declare function posixIsAbsolute(path: string): boolean;
@@ -1,10 +0,0 @@
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 posixJoin(...paths: string[]): string;
6
- /**
7
- * Join all given a sequence of `paths`,then normalizes the resulting path.
8
- * @param paths to be joined and normalized
9
- */
10
- export declare function windowsJoin(...paths: string[]): string;
@@ -1,14 +0,0 @@
1
- /**
2
- * Normalize the `path`, resolving `'..'` and `'.'` segments.
3
- * Note that resolving these segments does not necessarily mean that all will be eliminated.
4
- * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
5
- * @param path to be normalized
6
- */
7
- export declare function posixNormalize(path: string): string;
8
- /**
9
- * Normalize the `path`, resolving `'..'` and `'.'` segments.
10
- * Note that resolving these segments does not necessarily mean that all will be eliminated.
11
- * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
12
- * @param path to be normalized
13
- */
14
- export declare function windowsNormalize(path: string): string;
@@ -1,4 +0,0 @@
1
- export type OSType = "windows" | "linux" | "darwin" | "freebsd";
2
- export declare const osType: OSType;
3
- export declare const isWindows: boolean;
4
- export declare const isLinux: boolean;
@@ -1,11 +0,0 @@
1
- import { ParsedPath } from "./_interface.js";
2
- /**
3
- * Return a `ParsedPath` object of the `path`.
4
- * @param path to process
5
- */
6
- export declare function posixParse(path: string): ParsedPath;
7
- /**
8
- * Return a `ParsedPath` object of the `path`.
9
- * @param path to process
10
- */
11
- export declare function windowsParse(path: string): ParsedPath;
@@ -1,19 +0,0 @@
1
- /**
2
- * Return the relative path from `from` to `to` based on current working directory.
3
- *
4
- * @param from path in current working directory
5
- * @param to path in current working directory
6
- */
7
- export declare function posixRelative(from: string, to: string): string;
8
- /**
9
- * Return the relative path from `from` to `to` based on current working directory.
10
- *
11
- * An example in windws, for instance:
12
- * from = 'C:\\orandea\\test\\aaa'
13
- * to = 'C:\\orandea\\impl\\bbb'
14
- * The output of the function should be: '..\\..\\impl\\bbb'
15
- *
16
- * @param from path in current working directory
17
- * @param to path in current working directory
18
- */
19
- export declare function windowsRelative(from: string, to: string): string;
@@ -1,10 +0,0 @@
1
- /**
2
- * Resolves path segments into a `path`
3
- * @param pathSegments to process to path
4
- */
5
- export declare function posixResolve(...pathSegments: string[]): string;
6
- /**
7
- * Resolves path segments into a `path`
8
- * @param pathSegments to process to path
9
- */
10
- export declare function windowsResolve(...pathSegments: string[]): string;
@@ -1,10 +0,0 @@
1
- /**
2
- * Resolves path to a namespace path
3
- * @param path to resolve to namespace
4
- */
5
- export declare function posixToNamespacedPath(path: string): string;
6
- /**
7
- * Resolves path to a namespace path
8
- * @param path to resolve to namespace
9
- */
10
- export declare function windowsToNamespacedPath(path: string): string;
@@ -1,6 +0,0 @@
1
- export declare function assertPath(path: string): void;
2
- export declare function isPosixPathSeparator(code: number): boolean;
3
- export declare function isPathSeparator(code: number): boolean;
4
- export declare function isWindowsDeviceRoot(code: number): boolean;
5
- export declare function normalizeString(path: string, allowAboveRoot: boolean, separator: string, isPathSeparator: (code: number) => boolean): string;
6
- export declare function stripTrailingSeparators(segment: string, isSep: (char: number) => boolean): string;
@@ -1,15 +0,0 @@
1
- export declare const sep = "/";
2
- export declare const delimiter = ":";
3
- export { posixResolve as resolve } from "./_resolve.js";
4
- export { posixNormalize as normalize } from "./_normalize.js";
5
- export { posixIsAbsolute as isAbsolute } from "./_is_absolute.js";
6
- export { posixJoin as join } from "./_join.js";
7
- export { posixRelative as relative } from "./_relative.js";
8
- export { posixToNamespacedPath as toNamespacedPath } from "./_to_namespaced_path.js";
9
- export { posixDirname as dirname } from "./_dirname.js";
10
- export { posixBasename as basename } from "./_basename.js";
11
- export { posixExtname as extname } from "./_extname.js";
12
- export { posixFormat as format } from "./_format.js";
13
- export { posixParse as parse } from "./_parse.js";
14
- export { posixFromFileUrl as fromFileUrl } from "./_from_file_url.js";
15
- export { posixToFileUrl as toFileUrl } from "./_to_file_url.js";
@@ -1,19 +0,0 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
- // Copyright the Browserify authors. MIT License.
3
- // Ported from https://github.com/browserify/path-browserify/
4
- // This module is browser compatible.
5
- export const sep = "/";
6
- export const delimiter = ":";
7
- export { posixResolve as resolve } from "./_resolve.js";
8
- export { posixNormalize as normalize } from "./_normalize.js";
9
- export { posixIsAbsolute as isAbsolute } from "./_is_absolute.js";
10
- export { posixJoin as join } from "./_join.js";
11
- export { posixRelative as relative } from "./_relative.js";
12
- export { posixToNamespacedPath as toNamespacedPath } from "./_to_namespaced_path.js";
13
- export { posixDirname as dirname } from "./_dirname.js";
14
- export { posixBasename as basename } from "./_basename.js";
15
- export { posixExtname as extname } from "./_extname.js";
16
- export { posixFormat as format } from "./_format.js";
17
- export { posixParse as parse } from "./_parse.js";
18
- export { posixFromFileUrl as fromFileUrl } from "./_from_file_url.js";
19
- export { posixToFileUrl as toFileUrl } from "./_to_file_url.js";
@@ -1,15 +0,0 @@
1
- export declare const sep = "\\";
2
- export declare const delimiter = ";";
3
- export { windowsResolve as resolve } from "./_resolve.js";
4
- export { windowsNormalize as normalize } from "./_normalize.js";
5
- export { windowsIsAbsolute as isAbsolute } from "./_is_absolute.js";
6
- export { windowsJoin as join } from "./_join.js";
7
- export { windowsRelative as relative } from "./_relative.js";
8
- export { windowsToNamespacedPath as toNamespacedPath } from "./_to_namespaced_path.js";
9
- export { windowsDirname as dirname } from "./_dirname.js";
10
- export { windowsBasename as basename } from "./_basename.js";
11
- export { windowsExtname as extname } from "./_extname.js";
12
- export { windowsFormat as format } from "./_format.js";
13
- export { windowsParse as parse } from "./_parse.js";
14
- export { windowsFromFileUrl as fromFileUrl } from "./_from_file_url.js";
15
- export { windowsToFileUrl as toFileUrl } from "./_to_file_url.js";
@@ -1,19 +0,0 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
- // Copyright the Browserify authors. MIT License.
3
- // Ported from https://github.com/browserify/path-browserify/
4
- // This module is browser compatible.
5
- export const sep = "\\";
6
- export const delimiter = ";";
7
- export { windowsResolve as resolve } from "./_resolve.js";
8
- export { windowsNormalize as normalize } from "./_normalize.js";
9
- export { windowsIsAbsolute as isAbsolute } from "./_is_absolute.js";
10
- export { windowsJoin as join } from "./_join.js";
11
- export { windowsRelative as relative } from "./_relative.js";
12
- export { windowsToNamespacedPath as toNamespacedPath } from "./_to_namespaced_path.js";
13
- export { windowsDirname as dirname } from "./_dirname.js";
14
- export { windowsBasename as basename } from "./_basename.js";
15
- export { windowsExtname as extname } from "./_extname.js";
16
- export { windowsFormat as format } from "./_format.js";
17
- export { windowsParse as parse } from "./_parse.js";
18
- export { windowsFromFileUrl as fromFileUrl } from "./_from_file_url.js";
19
- export { windowsToFileUrl as toFileUrl } from "./_to_file_url.js";
@@ -1,16 +0,0 @@
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 posixBasename(path: string, suffix?: string): string;
9
- /**
10
- * Return the last portion of a `path`.
11
- * Trailing directory separators are ignored, and optional suffix is removed.
12
- *
13
- * @param path - path to extract the name from.
14
- * @param [suffix] - suffix to remove from extracted name.
15
- */
16
- export declare function windowsBasename(path: string, suffix?: string): string;
@@ -1,83 +0,0 @@
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.windowsBasename = exports.posixBasename = void 0;
6
- const _constants_js_1 = require("./_constants.js");
7
- const _util_js_1 = require("./_util.js");
8
- function stripSuffix(name, suffix) {
9
- if (suffix.length >= name.length) {
10
- return name;
11
- }
12
- const lenDiff = name.length - suffix.length;
13
- for (let i = suffix.length - 1; i >= 0; --i) {
14
- if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
15
- return name;
16
- }
17
- }
18
- return name.slice(0, -suffix.length);
19
- }
20
- function lastPathSegment(path, isSep, start = 0) {
21
- let matchedNonSeparator = false;
22
- let end = path.length;
23
- for (let i = path.length - 1; i >= start; --i) {
24
- if (isSep(path.charCodeAt(i))) {
25
- if (matchedNonSeparator) {
26
- start = i + 1;
27
- break;
28
- }
29
- }
30
- else if (!matchedNonSeparator) {
31
- matchedNonSeparator = true;
32
- end = i + 1;
33
- }
34
- }
35
- return path.slice(start, end);
36
- }
37
- function assertArgs(path, suffix) {
38
- (0, _util_js_1.assertPath)(path);
39
- if (path.length === 0)
40
- return path;
41
- if (typeof suffix !== "string") {
42
- throw new TypeError(`Suffix must be a string. Received ${JSON.stringify(suffix)}`);
43
- }
44
- }
45
- /**
46
- * Return the last portion of a `path`.
47
- * Trailing directory separators are ignored, and optional suffix is removed.
48
- *
49
- * @param path - path to extract the name from.
50
- * @param [suffix] - suffix to remove from extracted name.
51
- */
52
- function posixBasename(path, suffix = "") {
53
- assertArgs(path, suffix);
54
- const lastSegment = lastPathSegment(path, _util_js_1.isPosixPathSeparator);
55
- const strippedSegment = (0, _util_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPosixPathSeparator);
56
- return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
57
- }
58
- exports.posixBasename = posixBasename;
59
- /**
60
- * Return the last portion of a `path`.
61
- * Trailing directory separators are ignored, and optional suffix is removed.
62
- *
63
- * @param path - path to extract the name from.
64
- * @param [suffix] - suffix to remove from extracted name.
65
- */
66
- function windowsBasename(path, suffix = "") {
67
- assertArgs(path, suffix);
68
- // Check for a drive letter prefix so as not to mistake the following
69
- // path separator as an extra separator at the end of the path that can be
70
- // disregarded
71
- let start = 0;
72
- if (path.length >= 2) {
73
- const drive = path.charCodeAt(0);
74
- if ((0, _util_js_1.isWindowsDeviceRoot)(drive)) {
75
- if (path.charCodeAt(1) === _constants_js_1.CHAR_COLON)
76
- start = 2;
77
- }
78
- }
79
- const lastSegment = lastPathSegment(path, _util_js_1.isPathSeparator, start);
80
- const strippedSegment = (0, _util_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPathSeparator);
81
- return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
82
- }
83
- exports.windowsBasename = windowsBasename;
@@ -1,10 +0,0 @@
1
- /**
2
- * Return the directory path of a `path`.
3
- * @param path - path to extract the directory from.
4
- */
5
- export declare function posixDirname(path: string): string;
6
- /**
7
- * Return the directory path of a `path`.
8
- * @param path - path to extract the directory from.
9
- */
10
- export declare function windowsDirname(path: string): string;
@@ -1,12 +0,0 @@
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 posixExtname(path: string): string;
7
- /**
8
- * Return the extension of the `path` with leading period.
9
- * @param path with extension
10
- * @returns extension (ex. for `file.ts` returns `.ts`)
11
- */
12
- export declare function windowsExtname(path: string): string;
@@ -1,11 +0,0 @@
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 posixFormat(pathObject: FormatInputPathObject): string;
7
- /**
8
- * Generate a path from `FormatInputPathObject` object.
9
- * @param pathObject with path
10
- */
11
- export declare function windowsFormat(pathObject: FormatInputPathObject): string;
@@ -1,40 +0,0 @@
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.windowsFormat = exports.posixFormat = void 0;
6
- function _format(sep, pathObject) {
7
- const dir = pathObject.dir || pathObject.root;
8
- const base = pathObject.base ||
9
- (pathObject.name || "") + (pathObject.ext || "");
10
- if (!dir)
11
- return base;
12
- if (base === sep)
13
- return dir;
14
- if (dir === pathObject.root)
15
- return dir + base;
16
- return dir + sep + base;
17
- }
18
- function assertArg(pathObject) {
19
- if (pathObject === null || typeof pathObject !== "object") {
20
- throw new TypeError(`The "pathObject" argument must be of type Object. Received type ${typeof pathObject}`);
21
- }
22
- }
23
- /**
24
- * Generate a path from `FormatInputPathObject` object.
25
- * @param pathObject with path
26
- */
27
- function posixFormat(pathObject) {
28
- assertArg(pathObject);
29
- return _format("/", pathObject);
30
- }
31
- exports.posixFormat = posixFormat;
32
- /**
33
- * Generate a path from `FormatInputPathObject` object.
34
- * @param pathObject with path
35
- */
36
- function windowsFormat(pathObject) {
37
- assertArg(pathObject);
38
- return _format("\\", pathObject);
39
- }
40
- exports.windowsFormat = windowsFormat;
@@ -1,10 +0,0 @@
1
- /**
2
- * Verifies whether provided path is absolute
3
- * @param path to be verified as absolute
4
- */
5
- export declare function windowsIsAbsolute(path: string): boolean;
6
- /**
7
- * Verifies whether provided path is absolute
8
- * @param path to be verified as absolute
9
- */
10
- export declare function posixIsAbsolute(path: string): boolean;
@@ -1,10 +0,0 @@
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 posixJoin(...paths: string[]): string;
6
- /**
7
- * Join all given a sequence of `paths`,then normalizes the resulting path.
8
- * @param paths to be joined and normalized
9
- */
10
- export declare function windowsJoin(...paths: string[]): string;
@@ -1,14 +0,0 @@
1
- /**
2
- * Normalize the `path`, resolving `'..'` and `'.'` segments.
3
- * Note that resolving these segments does not necessarily mean that all will be eliminated.
4
- * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
5
- * @param path to be normalized
6
- */
7
- export declare function posixNormalize(path: string): string;
8
- /**
9
- * Normalize the `path`, resolving `'..'` and `'.'` segments.
10
- * Note that resolving these segments does not necessarily mean that all will be eliminated.
11
- * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
12
- * @param path to be normalized
13
- */
14
- export declare function windowsNormalize(path: string): string;
@@ -1,4 +0,0 @@
1
- export type OSType = "windows" | "linux" | "darwin" | "freebsd";
2
- export declare const osType: OSType;
3
- export declare const isWindows: boolean;
4
- export declare const isLinux: boolean;
@@ -1,11 +0,0 @@
1
- import { ParsedPath } from "./_interface.js";
2
- /**
3
- * Return a `ParsedPath` object of the `path`.
4
- * @param path to process
5
- */
6
- export declare function posixParse(path: string): ParsedPath;
7
- /**
8
- * Return a `ParsedPath` object of the `path`.
9
- * @param path to process
10
- */
11
- export declare function windowsParse(path: string): ParsedPath;