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,221 +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.windowsRelative = exports.posixRelative = void 0;
6
- const _constants_js_1 = require("./_constants.js");
7
- const _util_js_1 = require("./_util.js");
8
- const _resolve_js_1 = require("./_resolve.js");
9
- function assertArgs(from, to) {
10
- (0, _util_js_1.assertPath)(from);
11
- (0, _util_js_1.assertPath)(to);
12
- if (from === to)
13
- return "";
14
- }
15
- /**
16
- * Return the relative path from `from` to `to` based on current working directory.
17
- *
18
- * @param from path in current working directory
19
- * @param to path in current working directory
20
- */
21
- function posixRelative(from, to) {
22
- assertArgs(from, to);
23
- from = (0, _resolve_js_1.posixResolve)(from);
24
- to = (0, _resolve_js_1.posixResolve)(to);
25
- if (from === to)
26
- return "";
27
- // Trim any leading backslashes
28
- let fromStart = 1;
29
- const fromEnd = from.length;
30
- for (; fromStart < fromEnd; ++fromStart) {
31
- if (!(0, _util_js_1.isPosixPathSeparator)(from.charCodeAt(fromStart)))
32
- break;
33
- }
34
- const fromLen = fromEnd - fromStart;
35
- // Trim any leading backslashes
36
- let toStart = 1;
37
- const toEnd = to.length;
38
- for (; toStart < toEnd; ++toStart) {
39
- if (!(0, _util_js_1.isPosixPathSeparator)(to.charCodeAt(toStart)))
40
- break;
41
- }
42
- const toLen = toEnd - toStart;
43
- // Compare paths to find the longest common path from root
44
- const length = fromLen < toLen ? fromLen : toLen;
45
- let lastCommonSep = -1;
46
- let i = 0;
47
- for (; i <= length; ++i) {
48
- if (i === length) {
49
- if (toLen > length) {
50
- if ((0, _util_js_1.isPosixPathSeparator)(to.charCodeAt(toStart + i))) {
51
- // We get here if `from` is the exact base path for `to`.
52
- // For example: from='/foo/bar'; to='/foo/bar/baz'
53
- return to.slice(toStart + i + 1);
54
- }
55
- else if (i === 0) {
56
- // We get here if `from` is the root
57
- // For example: from='/'; to='/foo'
58
- return to.slice(toStart + i);
59
- }
60
- }
61
- else if (fromLen > length) {
62
- if ((0, _util_js_1.isPosixPathSeparator)(from.charCodeAt(fromStart + i))) {
63
- // We get here if `to` is the exact base path for `from`.
64
- // For example: from='/foo/bar/baz'; to='/foo/bar'
65
- lastCommonSep = i;
66
- }
67
- else if (i === 0) {
68
- // We get here if `to` is the root.
69
- // For example: from='/foo'; to='/'
70
- lastCommonSep = 0;
71
- }
72
- }
73
- break;
74
- }
75
- const fromCode = from.charCodeAt(fromStart + i);
76
- const toCode = to.charCodeAt(toStart + i);
77
- if (fromCode !== toCode)
78
- break;
79
- else if ((0, _util_js_1.isPosixPathSeparator)(fromCode))
80
- lastCommonSep = i;
81
- }
82
- let out = "";
83
- // Generate the relative path based on the path difference between `to`
84
- // and `from`
85
- for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
86
- if (i === fromEnd || (0, _util_js_1.isPosixPathSeparator)(from.charCodeAt(i))) {
87
- if (out.length === 0)
88
- out += "..";
89
- else
90
- out += "/..";
91
- }
92
- }
93
- // Lastly, append the rest of the destination (`to`) path that comes after
94
- // the common path parts
95
- if (out.length > 0)
96
- return out + to.slice(toStart + lastCommonSep);
97
- else {
98
- toStart += lastCommonSep;
99
- if ((0, _util_js_1.isPosixPathSeparator)(to.charCodeAt(toStart)))
100
- ++toStart;
101
- return to.slice(toStart);
102
- }
103
- }
104
- exports.posixRelative = posixRelative;
105
- /**
106
- * Return the relative path from `from` to `to` based on current working directory.
107
- *
108
- * An example in windws, for instance:
109
- * from = 'C:\\orandea\\test\\aaa'
110
- * to = 'C:\\orandea\\impl\\bbb'
111
- * The output of the function should be: '..\\..\\impl\\bbb'
112
- *
113
- * @param from path in current working directory
114
- * @param to path in current working directory
115
- */
116
- function windowsRelative(from, to) {
117
- assertArgs(from, to);
118
- const fromOrig = (0, _resolve_js_1.windowsResolve)(from);
119
- const toOrig = (0, _resolve_js_1.windowsResolve)(to);
120
- if (fromOrig === toOrig)
121
- return "";
122
- from = fromOrig.toLowerCase();
123
- to = toOrig.toLowerCase();
124
- if (from === to)
125
- return "";
126
- // Trim any leading backslashes
127
- let fromStart = 0;
128
- let fromEnd = from.length;
129
- for (; fromStart < fromEnd; ++fromStart) {
130
- if (from.charCodeAt(fromStart) !== _constants_js_1.CHAR_BACKWARD_SLASH)
131
- break;
132
- }
133
- // Trim trailing backslashes (applicable to UNC paths only)
134
- for (; fromEnd - 1 > fromStart; --fromEnd) {
135
- if (from.charCodeAt(fromEnd - 1) !== _constants_js_1.CHAR_BACKWARD_SLASH)
136
- break;
137
- }
138
- const fromLen = fromEnd - fromStart;
139
- // Trim any leading backslashes
140
- let toStart = 0;
141
- let toEnd = to.length;
142
- for (; toStart < toEnd; ++toStart) {
143
- if (to.charCodeAt(toStart) !== _constants_js_1.CHAR_BACKWARD_SLASH)
144
- break;
145
- }
146
- // Trim trailing backslashes (applicable to UNC paths only)
147
- for (; toEnd - 1 > toStart; --toEnd) {
148
- if (to.charCodeAt(toEnd - 1) !== _constants_js_1.CHAR_BACKWARD_SLASH)
149
- break;
150
- }
151
- const toLen = toEnd - toStart;
152
- // Compare paths to find the longest common path from root
153
- const length = fromLen < toLen ? fromLen : toLen;
154
- let lastCommonSep = -1;
155
- let i = 0;
156
- for (; i <= length; ++i) {
157
- if (i === length) {
158
- if (toLen > length) {
159
- if (to.charCodeAt(toStart + i) === _constants_js_1.CHAR_BACKWARD_SLASH) {
160
- // We get here if `from` is the exact base path for `to`.
161
- // For example: from='C:\\foo\\bar'; to='C:\\foo\\bar\\baz'
162
- return toOrig.slice(toStart + i + 1);
163
- }
164
- else if (i === 2) {
165
- // We get here if `from` is the device root.
166
- // For example: from='C:\\'; to='C:\\foo'
167
- return toOrig.slice(toStart + i);
168
- }
169
- }
170
- if (fromLen > length) {
171
- if (from.charCodeAt(fromStart + i) === _constants_js_1.CHAR_BACKWARD_SLASH) {
172
- // We get here if `to` is the exact base path for `from`.
173
- // For example: from='C:\\foo\\bar'; to='C:\\foo'
174
- lastCommonSep = i;
175
- }
176
- else if (i === 2) {
177
- // We get here if `to` is the device root.
178
- // For example: from='C:\\foo\\bar'; to='C:\\'
179
- lastCommonSep = 3;
180
- }
181
- }
182
- break;
183
- }
184
- const fromCode = from.charCodeAt(fromStart + i);
185
- const toCode = to.charCodeAt(toStart + i);
186
- if (fromCode !== toCode)
187
- break;
188
- else if (fromCode === _constants_js_1.CHAR_BACKWARD_SLASH)
189
- lastCommonSep = i;
190
- }
191
- // We found a mismatch before the first common path separator was seen, so
192
- // return the original `to`.
193
- if (i !== length && lastCommonSep === -1) {
194
- return toOrig;
195
- }
196
- let out = "";
197
- if (lastCommonSep === -1)
198
- lastCommonSep = 0;
199
- // Generate the relative path based on the path difference between `to` and
200
- // `from`
201
- for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
202
- if (i === fromEnd || from.charCodeAt(i) === _constants_js_1.CHAR_BACKWARD_SLASH) {
203
- if (out.length === 0)
204
- out += "..";
205
- else
206
- out += "\\..";
207
- }
208
- }
209
- // Lastly, append the rest of the destination (`to`) path that comes after
210
- // the common path parts
211
- if (out.length > 0) {
212
- return out + toOrig.slice(toStart + lastCommonSep, toEnd);
213
- }
214
- else {
215
- toStart += lastCommonSep;
216
- if (toOrig.charCodeAt(toStart) === _constants_js_1.CHAR_BACKWARD_SLASH)
217
- ++toStart;
218
- return toOrig.slice(toStart, toEnd);
219
- }
220
- }
221
- exports.windowsRelative = windowsRelative;
@@ -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,66 +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.windowsToFileUrl = exports.posixToFileUrl = void 0;
6
- const _is_absolute_js_1 = require("./_is_absolute.js");
7
- const WHITESPACE_ENCODINGS = {
8
- "\u0009": "%09",
9
- "\u000A": "%0A",
10
- "\u000B": "%0B",
11
- "\u000C": "%0C",
12
- "\u000D": "%0D",
13
- "\u0020": "%20",
14
- };
15
- function encodeWhitespace(string) {
16
- return string.replaceAll(/[\s]/g, (c) => {
17
- return WHITESPACE_ENCODINGS[c] ?? c;
18
- });
19
- }
20
- /**
21
- * Converts a path string to a file URL.
22
- *
23
- * ```ts
24
- * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
25
- *
26
- * toFileUrl("/home/foo"); // new URL("file:///home/foo")
27
- * ```
28
- * @param path to convert to file URL
29
- */
30
- function posixToFileUrl(path) {
31
- if (!(0, _is_absolute_js_1.posixIsAbsolute)(path)) {
32
- throw new TypeError("Must be an absolute path.");
33
- }
34
- const url = new URL("file:///");
35
- url.pathname = encodeWhitespace(path.replace(/%/g, "%25").replace(/\\/g, "%5C"));
36
- return url;
37
- }
38
- exports.posixToFileUrl = posixToFileUrl;
39
- /**
40
- * Converts a path string to a file URL.
41
- *
42
- * ```ts
43
- * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/win32.ts";
44
- *
45
- * toFileUrl("\\home\\foo"); // new URL("file:///home/foo")
46
- * toFileUrl("C:\\Users\\foo"); // new URL("file:///C:/Users/foo")
47
- * toFileUrl("\\\\127.0.0.1\\home\\foo"); // new URL("file://127.0.0.1/home/foo")
48
- * ```
49
- * @param path to convert to file URL
50
- */
51
- function windowsToFileUrl(path) {
52
- if (!(0, _is_absolute_js_1.windowsIsAbsolute)(path)) {
53
- throw new TypeError("Must be an absolute path.");
54
- }
55
- const [, hostname, pathname] = path.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/);
56
- const url = new URL("file:///");
57
- url.pathname = encodeWhitespace(pathname.replace(/%/g, "%25"));
58
- if (hostname !== undefined && hostname !== "localhost") {
59
- url.hostname = hostname;
60
- if (!url.hostname) {
61
- throw new TypeError("Invalid hostname.");
62
- }
63
- }
64
- return url;
65
- }
66
- exports.windowsToFileUrl = windowsToFileUrl;
@@ -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,35 +0,0 @@
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.toFileUrl = exports.fromFileUrl = exports.parse = exports.format = exports.extname = exports.basename = exports.dirname = exports.toNamespacedPath = exports.relative = exports.join = exports.isAbsolute = exports.normalize = exports.resolve = exports.delimiter = exports.sep = void 0;
8
- exports.sep = "/";
9
- exports.delimiter = ":";
10
- var _resolve_js_1 = require("./_resolve.js");
11
- Object.defineProperty(exports, "resolve", { enumerable: true, get: function () { return _resolve_js_1.posixResolve; } });
12
- var _normalize_js_1 = require("./_normalize.js");
13
- Object.defineProperty(exports, "normalize", { enumerable: true, get: function () { return _normalize_js_1.posixNormalize; } });
14
- var _is_absolute_js_1 = require("./_is_absolute.js");
15
- Object.defineProperty(exports, "isAbsolute", { enumerable: true, get: function () { return _is_absolute_js_1.posixIsAbsolute; } });
16
- var _join_js_1 = require("./_join.js");
17
- Object.defineProperty(exports, "join", { enumerable: true, get: function () { return _join_js_1.posixJoin; } });
18
- var _relative_js_1 = require("./_relative.js");
19
- Object.defineProperty(exports, "relative", { enumerable: true, get: function () { return _relative_js_1.posixRelative; } });
20
- var _to_namespaced_path_js_1 = require("./_to_namespaced_path.js");
21
- Object.defineProperty(exports, "toNamespacedPath", { enumerable: true, get: function () { return _to_namespaced_path_js_1.posixToNamespacedPath; } });
22
- var _dirname_js_1 = require("./_dirname.js");
23
- Object.defineProperty(exports, "dirname", { enumerable: true, get: function () { return _dirname_js_1.posixDirname; } });
24
- var _basename_js_1 = require("./_basename.js");
25
- Object.defineProperty(exports, "basename", { enumerable: true, get: function () { return _basename_js_1.posixBasename; } });
26
- var _extname_js_1 = require("./_extname.js");
27
- Object.defineProperty(exports, "extname", { enumerable: true, get: function () { return _extname_js_1.posixExtname; } });
28
- var _format_js_1 = require("./_format.js");
29
- Object.defineProperty(exports, "format", { enumerable: true, get: function () { return _format_js_1.posixFormat; } });
30
- var _parse_js_1 = require("./_parse.js");
31
- Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return _parse_js_1.posixParse; } });
32
- var _from_file_url_js_1 = require("./_from_file_url.js");
33
- Object.defineProperty(exports, "fromFileUrl", { enumerable: true, get: function () { return _from_file_url_js_1.posixFromFileUrl; } });
34
- var _to_file_url_js_1 = require("./_to_file_url.js");
35
- Object.defineProperty(exports, "toFileUrl", { enumerable: true, get: function () { return _to_file_url_js_1.posixToFileUrl; } });
@@ -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,35 +0,0 @@
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.toFileUrl = exports.fromFileUrl = exports.parse = exports.format = exports.extname = exports.basename = exports.dirname = exports.toNamespacedPath = exports.relative = exports.join = exports.isAbsolute = exports.normalize = exports.resolve = exports.delimiter = exports.sep = void 0;
8
- exports.sep = "\\";
9
- exports.delimiter = ";";
10
- var _resolve_js_1 = require("./_resolve.js");
11
- Object.defineProperty(exports, "resolve", { enumerable: true, get: function () { return _resolve_js_1.windowsResolve; } });
12
- var _normalize_js_1 = require("./_normalize.js");
13
- Object.defineProperty(exports, "normalize", { enumerable: true, get: function () { return _normalize_js_1.windowsNormalize; } });
14
- var _is_absolute_js_1 = require("./_is_absolute.js");
15
- Object.defineProperty(exports, "isAbsolute", { enumerable: true, get: function () { return _is_absolute_js_1.windowsIsAbsolute; } });
16
- var _join_js_1 = require("./_join.js");
17
- Object.defineProperty(exports, "join", { enumerable: true, get: function () { return _join_js_1.windowsJoin; } });
18
- var _relative_js_1 = require("./_relative.js");
19
- Object.defineProperty(exports, "relative", { enumerable: true, get: function () { return _relative_js_1.windowsRelative; } });
20
- var _to_namespaced_path_js_1 = require("./_to_namespaced_path.js");
21
- Object.defineProperty(exports, "toNamespacedPath", { enumerable: true, get: function () { return _to_namespaced_path_js_1.windowsToNamespacedPath; } });
22
- var _dirname_js_1 = require("./_dirname.js");
23
- Object.defineProperty(exports, "dirname", { enumerable: true, get: function () { return _dirname_js_1.windowsDirname; } });
24
- var _basename_js_1 = require("./_basename.js");
25
- Object.defineProperty(exports, "basename", { enumerable: true, get: function () { return _basename_js_1.windowsBasename; } });
26
- var _extname_js_1 = require("./_extname.js");
27
- Object.defineProperty(exports, "extname", { enumerable: true, get: function () { return _extname_js_1.windowsExtname; } });
28
- var _format_js_1 = require("./_format.js");
29
- Object.defineProperty(exports, "format", { enumerable: true, get: function () { return _format_js_1.windowsFormat; } });
30
- var _parse_js_1 = require("./_parse.js");
31
- Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return _parse_js_1.windowsParse; } });
32
- var _from_file_url_js_1 = require("./_from_file_url.js");
33
- Object.defineProperty(exports, "fromFileUrl", { enumerable: true, get: function () { return _from_file_url_js_1.windowsFromFileUrl; } });
34
- var _to_file_url_js_1 = require("./_to_file_url.js");
35
- Object.defineProperty(exports, "toFileUrl", { enumerable: true, get: function () { return _to_file_url_js_1.windowsToFileUrl; } });