ventojs 0.10.2 → 0.12.0

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 (390) hide show
  1. package/README.md +35 -93
  2. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assert.js +1 -1
  3. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assertion_error.js +1 -1
  4. package/esm/deps/deno.land/std@0.219.1/html/entities.d.ts +39 -0
  5. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/html/entities.js +14 -15
  6. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/html/mod.d.ts +1 -1
  7. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/html/mod.js +2 -2
  8. package/esm/deps/deno.land/std@0.219.1/path/_common/assert_path.d.ts +1 -0
  9. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/assert_path.js +1 -1
  10. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/basename.js +1 -1
  11. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/common.js +9 -9
  12. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/constants.js +1 -1
  13. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/dirname.js +1 -1
  14. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/format.js +1 -1
  15. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/from_file_url.js +1 -1
  16. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/glob_to_reg_exp.js +4 -2
  17. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize.js +1 -1
  18. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize_string.js +1 -1
  19. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/relative.js +1 -1
  20. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/strip_trailing_separators.js +1 -1
  21. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/to_file_url.js +1 -1
  22. package/esm/deps/deno.land/std@0.219.1/path/_interface.js +3 -0
  23. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_os.js +1 -1
  24. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/basename.js +1 -1
  25. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/common.js +3 -3
  26. package/esm/deps/deno.land/std@0.219.1/path/constants.d.ts +3 -0
  27. package/esm/deps/deno.land/std@0.219.1/path/constants.js +6 -0
  28. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/dirname.js +1 -1
  29. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/extname.js +1 -1
  30. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/format.d.ts +1 -1
  31. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/format.js +1 -1
  32. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/from_file_url.js +1 -1
  33. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/glob_to_regexp.d.ts +2 -1
  34. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/glob_to_regexp.js +1 -1
  35. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_absolute.js +1 -1
  36. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_glob.js +1 -1
  37. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join.js +1 -1
  38. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join_globs.d.ts +1 -0
  39. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join_globs.js +1 -1
  40. package/esm/deps/deno.land/std@0.219.1/path/mod.d.ts +56 -0
  41. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/mod.js +3 -8
  42. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/normalize.js +1 -1
  43. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/normalize_glob.d.ts +1 -0
  44. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/normalize_glob.js +1 -1
  45. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/parse.js +1 -1
  46. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/_util.js +1 -1
  47. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/basename.js +1 -1
  48. package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/common.js +3 -3
  49. package/esm/deps/deno.land/std@0.219.1/path/posix/constants.d.ts +3 -0
  50. package/esm/deps/deno.land/std@0.219.1/path/posix/constants.js +5 -0
  51. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/dirname.js +1 -1
  52. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/extname.js +1 -1
  53. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/format.js +1 -1
  54. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/posix/from_file_url.d.ts +1 -1
  55. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/from_file_url.js +2 -2
  56. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/glob_to_regexp.d.ts +1 -1
  57. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/glob_to_regexp.js +1 -1
  58. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/is_absolute.js +1 -1
  59. package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/is_glob.js +1 -1
  60. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/join.js +1 -1
  61. package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/join_globs.d.ts +2 -1
  62. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/join_globs.js +3 -3
  63. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/mod.d.ts +1 -3
  64. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/mod.js +2 -4
  65. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/normalize.js +1 -1
  66. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/posix/normalize_glob.d.ts +2 -1
  67. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/normalize_glob.js +3 -3
  68. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/parse.d.ts +1 -1
  69. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/parse.js +1 -1
  70. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/relative.js +1 -1
  71. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/resolve.js +1 -1
  72. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_file_url.d.ts +1 -1
  73. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_file_url.js +2 -2
  74. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_namespaced_path.js +1 -1
  75. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/relative.js +1 -1
  76. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/resolve.js +1 -1
  77. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_file_url.js +1 -1
  78. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_namespaced_path.js +1 -1
  79. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/_util.js +1 -1
  80. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/basename.js +1 -1
  81. package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path/windows}/common.js +3 -3
  82. package/esm/deps/deno.land/std@0.219.1/path/windows/constants.d.ts +3 -0
  83. package/esm/deps/deno.land/std@0.219.1/path/windows/constants.js +5 -0
  84. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/dirname.js +1 -1
  85. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/extname.js +1 -1
  86. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/format.js +1 -1
  87. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/windows/from_file_url.d.ts +1 -1
  88. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/from_file_url.js +2 -2
  89. package/{script/deps/deno.land/std@0.210.0/path/posix → esm/deps/deno.land/std@0.219.1/path/windows}/glob_to_regexp.d.ts +1 -1
  90. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/glob_to_regexp.js +1 -1
  91. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/is_absolute.js +1 -1
  92. package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path/windows}/is_glob.js +1 -1
  93. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/join.js +1 -1
  94. package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path/windows}/join_globs.d.ts +2 -1
  95. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/join_globs.js +3 -3
  96. package/{script/deps/deno.land/std@0.210.0/path/posix → esm/deps/deno.land/std@0.219.1/path/windows}/mod.d.ts +1 -3
  97. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/mod.js +2 -4
  98. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/normalize.js +1 -1
  99. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/windows/normalize_glob.d.ts +2 -1
  100. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/normalize_glob.js +3 -3
  101. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/parse.d.ts +1 -1
  102. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/parse.js +1 -1
  103. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/relative.js +1 -1
  104. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/resolve.js +1 -1
  105. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/windows/to_file_url.d.ts +1 -1
  106. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/to_file_url.js +2 -2
  107. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/to_namespaced_path.js +1 -1
  108. package/esm/deps/deno.land/x/astring@v1.8.6/src/astring.d.ts +109 -0
  109. package/esm/deps/deno.land/x/astring@v1.8.6/src/astring.js +1159 -0
  110. package/esm/deps.d.ts +6 -2
  111. package/esm/deps.js +5 -2
  112. package/esm/mod.d.ts +1 -0
  113. package/esm/mod.js +2 -0
  114. package/esm/plugins/auto_trim.d.ts +8 -0
  115. package/esm/plugins/auto_trim.js +36 -0
  116. package/esm/plugins/escape.js +2 -1
  117. package/esm/plugins/trim.d.ts +4 -0
  118. package/esm/plugins/trim.js +28 -0
  119. package/esm/plugins/unescape.js +2 -1
  120. package/esm/src/environment.d.ts +3 -0
  121. package/esm/src/environment.js +28 -7
  122. package/esm/src/tokenizer.js +6 -29
  123. package/esm/src/transformer.d.ts +1 -0
  124. package/esm/src/transformer.js +180 -0
  125. package/package.json +21 -8
  126. package/esm/deps/deno.land/std@0.210.0/html/entities.d.ts +0 -38
  127. package/esm/deps/deno.land/std@0.210.0/path/_common/assert_path.d.ts +0 -1
  128. package/esm/deps/deno.land/std@0.210.0/path/_interface.js +0 -3
  129. package/esm/deps/deno.land/std@0.210.0/path/common.d.ts +0 -13
  130. package/esm/deps/deno.land/std@0.210.0/path/glob_to_regexp.d.ts +0 -61
  131. package/esm/deps/deno.land/std@0.210.0/path/mod.d.ts +0 -28
  132. package/esm/deps/deno.land/std@0.210.0/path/normalize_glob.d.ts +0 -3
  133. package/esm/deps/deno.land/std@0.210.0/path/posix/from_file_url.d.ts +0 -12
  134. package/esm/deps/deno.land/std@0.210.0/path/posix/normalize_glob.d.ts +0 -3
  135. package/esm/deps/deno.land/std@0.210.0/path/posix/separator.d.ts +0 -2
  136. package/esm/deps/deno.land/std@0.210.0/path/posix/separator.js +0 -4
  137. package/esm/deps/deno.land/std@0.210.0/path/separator.d.ts +0 -2
  138. package/esm/deps/deno.land/std@0.210.0/path/separator.js +0 -5
  139. package/esm/deps/deno.land/std@0.210.0/path/windows/from_file_url.d.ts +0 -14
  140. package/esm/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.d.ts +0 -57
  141. package/esm/deps/deno.land/std@0.210.0/path/windows/mod.d.ts +0 -40
  142. package/esm/deps/deno.land/std@0.210.0/path/windows/normalize_glob.d.ts +0 -3
  143. package/esm/deps/deno.land/std@0.210.0/path/windows/separator.d.ts +0 -2
  144. package/esm/deps/deno.land/std@0.210.0/path/windows/separator.js +0 -4
  145. package/esm/deps/deno.land/std@0.210.0/path/windows/to_file_url.d.ts +0 -14
  146. package/script/_dnt.shims.d.ts +0 -5
  147. package/script/_dnt.shims.js +0 -65
  148. package/script/deps/deno.land/std@0.210.0/assert/assert.d.ts +0 -12
  149. package/script/deps/deno.land/std@0.210.0/assert/assert.js +0 -22
  150. package/script/deps/deno.land/std@0.210.0/assert/assertion_error.d.ts +0 -14
  151. package/script/deps/deno.land/std@0.210.0/assert/assertion_error.js +0 -22
  152. package/script/deps/deno.land/std@0.210.0/html/entities.d.ts +0 -38
  153. package/script/deps/deno.land/std@0.210.0/html/entities.js +0 -81
  154. package/script/deps/deno.land/std@0.210.0/html/mod.d.ts +0 -6
  155. package/script/deps/deno.land/std@0.210.0/html/mod.js +0 -24
  156. package/script/deps/deno.land/std@0.210.0/path/_common/assert_path.d.ts +0 -1
  157. package/script/deps/deno.land/std@0.210.0/path/_common/assert_path.js +0 -11
  158. package/script/deps/deno.land/std@0.210.0/path/_common/basename.d.ts +0 -3
  159. package/script/deps/deno.land/std@0.210.0/path/_common/basename.js +0 -46
  160. package/script/deps/deno.land/std@0.210.0/path/_common/common.d.ts +0 -1
  161. package/script/deps/deno.land/std@0.210.0/path/_common/common.js +0 -27
  162. package/script/deps/deno.land/std@0.210.0/path/_common/constants.d.ts +0 -39
  163. package/script/deps/deno.land/std@0.210.0/path/_common/constants.js +0 -49
  164. package/script/deps/deno.land/std@0.210.0/path/_common/dirname.d.ts +0 -1
  165. package/script/deps/deno.land/std@0.210.0/path/_common/dirname.js +0 -12
  166. package/script/deps/deno.land/std@0.210.0/path/_common/format.d.ts +0 -3
  167. package/script/deps/deno.land/std@0.210.0/path/_common/format.js +0 -24
  168. package/script/deps/deno.land/std@0.210.0/path/_common/from_file_url.d.ts +0 -2
  169. package/script/deps/deno.land/std@0.210.0/path/_common/from_file_url.js +0 -13
  170. package/script/deps/deno.land/std@0.210.0/path/_common/glob_to_reg_exp.d.ts +0 -28
  171. package/script/deps/deno.land/std@0.210.0/path/_common/glob_to_reg_exp.js +0 -239
  172. package/script/deps/deno.land/std@0.210.0/path/_common/normalize.d.ts +0 -1
  173. package/script/deps/deno.land/std@0.210.0/path/_common/normalize.js +0 -12
  174. package/script/deps/deno.land/std@0.210.0/path/_common/normalize_string.d.ts +0 -1
  175. package/script/deps/deno.land/std@0.210.0/path/_common/normalize_string.js +0 -81
  176. package/script/deps/deno.land/std@0.210.0/path/_common/relative.d.ts +0 -1
  177. package/script/deps/deno.land/std@0.210.0/path/_common/relative.js +0 -13
  178. package/script/deps/deno.land/std@0.210.0/path/_common/strip_trailing_separators.d.ts +0 -1
  179. package/script/deps/deno.land/std@0.210.0/path/_common/strip_trailing_separators.js +0 -23
  180. package/script/deps/deno.land/std@0.210.0/path/_common/to_file_url.d.ts +0 -1
  181. package/script/deps/deno.land/std@0.210.0/path/_common/to_file_url.js +0 -19
  182. package/script/deps/deno.land/std@0.210.0/path/_interface.d.ts +0 -26
  183. package/script/deps/deno.land/std@0.210.0/path/_interface.js +0 -4
  184. package/script/deps/deno.land/std@0.210.0/path/_os.d.ts +0 -3
  185. package/script/deps/deno.land/std@0.210.0/path/_os.js +0 -44
  186. package/script/deps/deno.land/std@0.210.0/path/basename.d.ts +0 -8
  187. package/script/deps/deno.land/std@0.210.0/path/basename.js +0 -21
  188. package/script/deps/deno.land/std@0.210.0/path/common.d.ts +0 -13
  189. package/script/deps/deno.land/std@0.210.0/path/common.js +0 -23
  190. package/script/deps/deno.land/std@0.210.0/path/dirname.d.ts +0 -5
  191. package/script/deps/deno.land/std@0.210.0/path/dirname.js +0 -16
  192. package/script/deps/deno.land/std@0.210.0/path/extname.d.ts +0 -6
  193. package/script/deps/deno.land/std@0.210.0/path/extname.js +0 -17
  194. package/script/deps/deno.land/std@0.210.0/path/format.d.ts +0 -6
  195. package/script/deps/deno.land/std@0.210.0/path/format.js +0 -16
  196. package/script/deps/deno.land/std@0.210.0/path/from_file_url.d.ts +0 -18
  197. package/script/deps/deno.land/std@0.210.0/path/from_file_url.js +0 -28
  198. package/script/deps/deno.land/std@0.210.0/path/glob_to_regexp.js +0 -69
  199. package/script/deps/deno.land/std@0.210.0/path/is_absolute.d.ts +0 -5
  200. package/script/deps/deno.land/std@0.210.0/path/is_absolute.js +0 -16
  201. package/script/deps/deno.land/std@0.210.0/path/is_glob.d.ts +0 -2
  202. package/script/deps/deno.land/std@0.210.0/path/is_glob.js +0 -32
  203. package/script/deps/deno.land/std@0.210.0/path/join.d.ts +0 -5
  204. package/script/deps/deno.land/std@0.210.0/path/join.js +0 -16
  205. package/script/deps/deno.land/std@0.210.0/path/join_globs.d.ts +0 -3
  206. package/script/deps/deno.land/std@0.210.0/path/join_globs.js +0 -15
  207. package/script/deps/deno.land/std@0.210.0/path/mod.d.ts +0 -28
  208. package/script/deps/deno.land/std@0.210.0/path/mod.js +0 -94
  209. package/script/deps/deno.land/std@0.210.0/path/normalize.d.ts +0 -7
  210. package/script/deps/deno.land/std@0.210.0/path/normalize.js +0 -18
  211. package/script/deps/deno.land/std@0.210.0/path/normalize_glob.js +0 -15
  212. package/script/deps/deno.land/std@0.210.0/path/parse.d.ts +0 -6
  213. package/script/deps/deno.land/std@0.210.0/path/parse.js +0 -16
  214. package/script/deps/deno.land/std@0.210.0/path/posix/_util.d.ts +0 -1
  215. package/script/deps/deno.land/std@0.210.0/path/posix/_util.js +0 -12
  216. package/script/deps/deno.land/std@0.210.0/path/posix/basename.d.ts +0 -8
  217. package/script/deps/deno.land/std@0.210.0/path/posix/basename.js +0 -22
  218. package/script/deps/deno.land/std@0.210.0/path/posix/common.js +0 -23
  219. package/script/deps/deno.land/std@0.210.0/path/posix/dirname.d.ts +0 -5
  220. package/script/deps/deno.land/std@0.210.0/path/posix/dirname.js +0 -40
  221. package/script/deps/deno.land/std@0.210.0/path/posix/extname.d.ts +0 -6
  222. package/script/deps/deno.land/std@0.210.0/path/posix/extname.js +0 -63
  223. package/script/deps/deno.land/std@0.210.0/path/posix/format.d.ts +0 -6
  224. package/script/deps/deno.land/std@0.210.0/path/posix/format.js +0 -15
  225. package/script/deps/deno.land/std@0.210.0/path/posix/from_file_url.js +0 -21
  226. package/script/deps/deno.land/std@0.210.0/path/posix/glob_to_regexp.js +0 -73
  227. package/script/deps/deno.land/std@0.210.0/path/posix/is_absolute.d.ts +0 -5
  228. package/script/deps/deno.land/std@0.210.0/path/posix/is_absolute.js +0 -16
  229. package/script/deps/deno.land/std@0.210.0/path/posix/is_glob.d.ts +0 -1
  230. package/script/deps/deno.land/std@0.210.0/path/posix/is_glob.js +0 -7
  231. package/script/deps/deno.land/std@0.210.0/path/posix/join.d.ts +0 -5
  232. package/script/deps/deno.land/std@0.210.0/path/posix/join.js +0 -30
  233. package/script/deps/deno.land/std@0.210.0/path/posix/join_globs.d.ts +0 -3
  234. package/script/deps/deno.land/std@0.210.0/path/posix/join_globs.js +0 -30
  235. package/script/deps/deno.land/std@0.210.0/path/posix/mod.js +0 -61
  236. package/script/deps/deno.land/std@0.210.0/path/posix/normalize.d.ts +0 -7
  237. package/script/deps/deno.land/std@0.210.0/path/posix/normalize.js +0 -29
  238. package/script/deps/deno.land/std@0.210.0/path/posix/normalize_glob.js +0 -20
  239. package/script/deps/deno.land/std@0.210.0/path/posix/parse.d.ts +0 -6
  240. package/script/deps/deno.land/std@0.210.0/path/posix/parse.js +0 -102
  241. package/script/deps/deno.land/std@0.210.0/path/posix/relative.d.ts +0 -7
  242. package/script/deps/deno.land/std@0.210.0/path/posix/relative.js +0 -98
  243. package/script/deps/deno.land/std@0.210.0/path/posix/resolve.d.ts +0 -5
  244. package/script/deps/deno.land/std@0.210.0/path/posix/resolve.js +0 -75
  245. package/script/deps/deno.land/std@0.210.0/path/posix/separator.d.ts +0 -2
  246. package/script/deps/deno.land/std@0.210.0/path/posix/separator.js +0 -7
  247. package/script/deps/deno.land/std@0.210.0/path/posix/to_file_url.d.ts +0 -12
  248. package/script/deps/deno.land/std@0.210.0/path/posix/to_file_url.js +0 -26
  249. package/script/deps/deno.land/std@0.210.0/path/posix/to_namespaced_path.d.ts +0 -5
  250. package/script/deps/deno.land/std@0.210.0/path/posix/to_namespaced_path.js +0 -14
  251. package/script/deps/deno.land/std@0.210.0/path/relative.d.ts +0 -12
  252. package/script/deps/deno.land/std@0.210.0/path/relative.js +0 -23
  253. package/script/deps/deno.land/std@0.210.0/path/resolve.d.ts +0 -5
  254. package/script/deps/deno.land/std@0.210.0/path/resolve.js +0 -18
  255. package/script/deps/deno.land/std@0.210.0/path/separator.d.ts +0 -2
  256. package/script/deps/deno.land/std@0.210.0/path/separator.js +0 -8
  257. package/script/deps/deno.land/std@0.210.0/path/to_file_url.d.ts +0 -18
  258. package/script/deps/deno.land/std@0.210.0/path/to_file_url.js +0 -28
  259. package/script/deps/deno.land/std@0.210.0/path/to_namespaced_path.d.ts +0 -5
  260. package/script/deps/deno.land/std@0.210.0/path/to_namespaced_path.js +0 -18
  261. package/script/deps/deno.land/std@0.210.0/path/windows/_util.d.ts +0 -3
  262. package/script/deps/deno.land/std@0.210.0/path/windows/_util.js +0 -21
  263. package/script/deps/deno.land/std@0.210.0/path/windows/basename.d.ts +0 -8
  264. package/script/deps/deno.land/std@0.210.0/path/windows/basename.js +0 -34
  265. package/script/deps/deno.land/std@0.210.0/path/windows/common.d.ts +0 -13
  266. package/script/deps/deno.land/std@0.210.0/path/windows/common.js +0 -23
  267. package/script/deps/deno.land/std@0.210.0/path/windows/dirname.d.ts +0 -5
  268. package/script/deps/deno.land/std@0.210.0/path/windows/dirname.js +0 -102
  269. package/script/deps/deno.land/std@0.210.0/path/windows/extname.d.ts +0 -6
  270. package/script/deps/deno.land/std@0.210.0/path/windows/extname.js +0 -72
  271. package/script/deps/deno.land/std@0.210.0/path/windows/format.d.ts +0 -6
  272. package/script/deps/deno.land/std@0.210.0/path/windows/format.js +0 -15
  273. package/script/deps/deno.land/std@0.210.0/path/windows/from_file_url.js +0 -30
  274. package/script/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.d.ts +0 -57
  275. package/script/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.js +0 -73
  276. package/script/deps/deno.land/std@0.210.0/path/windows/is_absolute.d.ts +0 -5
  277. package/script/deps/deno.land/std@0.210.0/path/windows/is_absolute.js +0 -31
  278. package/script/deps/deno.land/std@0.210.0/path/windows/is_glob.d.ts +0 -1
  279. package/script/deps/deno.land/std@0.210.0/path/windows/is_glob.js +0 -7
  280. package/script/deps/deno.land/std@0.210.0/path/windows/join.d.ts +0 -5
  281. package/script/deps/deno.land/std@0.210.0/path/windows/join.js +0 -76
  282. package/script/deps/deno.land/std@0.210.0/path/windows/join_globs.d.ts +0 -3
  283. package/script/deps/deno.land/std@0.210.0/path/windows/join_globs.js +0 -30
  284. package/script/deps/deno.land/std@0.210.0/path/windows/mod.d.ts +0 -40
  285. package/script/deps/deno.land/std@0.210.0/path/windows/mod.js +0 -61
  286. package/script/deps/deno.land/std@0.210.0/path/windows/normalize.d.ts +0 -7
  287. package/script/deps/deno.land/std@0.210.0/path/windows/normalize.js +0 -134
  288. package/script/deps/deno.land/std@0.210.0/path/windows/normalize_glob.js +0 -20
  289. package/script/deps/deno.land/std@0.210.0/path/windows/parse.d.ts +0 -6
  290. package/script/deps/deno.land/std@0.210.0/path/windows/parse.js +0 -163
  291. package/script/deps/deno.land/std@0.210.0/path/windows/relative.d.ts +0 -12
  292. package/script/deps/deno.land/std@0.210.0/path/windows/relative.js +0 -125
  293. package/script/deps/deno.land/std@0.210.0/path/windows/resolve.d.ts +0 -5
  294. package/script/deps/deno.land/std@0.210.0/path/windows/resolve.js +0 -170
  295. package/script/deps/deno.land/std@0.210.0/path/windows/separator.d.ts +0 -2
  296. package/script/deps/deno.land/std@0.210.0/path/windows/separator.js +0 -7
  297. package/script/deps/deno.land/std@0.210.0/path/windows/to_file_url.js +0 -35
  298. package/script/deps/deno.land/std@0.210.0/path/windows/to_namespaced_path.d.ts +0 -5
  299. package/script/deps/deno.land/std@0.210.0/path/windows/to_namespaced_path.js +0 -42
  300. package/script/deps.d.ts +0 -2
  301. package/script/deps.js +0 -28
  302. package/script/mod.d.ts +0 -9
  303. package/script/mod.js +0 -69
  304. package/script/package.json +0 -3
  305. package/script/plugins/echo.d.ts +0 -2
  306. package/script/plugins/echo.js +0 -16
  307. package/script/plugins/escape.d.ts +0 -2
  308. package/script/plugins/escape.js +0 -9
  309. package/script/plugins/export.d.ts +0 -2
  310. package/script/plugins/export.js +0 -50
  311. package/script/plugins/for.d.ts +0 -2
  312. package/script/plugins/for.js +0 -77
  313. package/script/plugins/function.d.ts +0 -2
  314. package/script/plugins/function.js +0 -40
  315. package/script/plugins/if.d.ts +0 -2
  316. package/script/plugins/if.js +0 -35
  317. package/script/plugins/import.d.ts +0 -2
  318. package/script/plugins/import.js +0 -20
  319. package/script/plugins/include.d.ts +0 -2
  320. package/script/plugins/include.js +0 -26
  321. package/script/plugins/js.d.ts +0 -2
  322. package/script/plugins/js.js +0 -14
  323. package/script/plugins/layout.d.ts +0 -2
  324. package/script/plugins/layout.js +0 -37
  325. package/script/plugins/set.d.ts +0 -2
  326. package/script/plugins/set.js +0 -48
  327. package/script/plugins/unescape.d.ts +0 -2
  328. package/script/plugins/unescape.js +0 -9
  329. package/script/src/environment.d.ts +0 -51
  330. package/script/src/environment.js +0 -208
  331. package/script/src/loader.d.ts +0 -14
  332. package/script/src/loader.js +0 -46
  333. package/script/src/tokenizer.d.ts +0 -13
  334. package/script/src/tokenizer.js +0 -249
  335. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assert.d.ts +0 -0
  336. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assertion_error.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/basename.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/common.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/constants.d.ts +0 -0
  340. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/dirname.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/format.d.ts +0 -0
  342. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/from_file_url.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
  344. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize.d.ts +0 -0
  345. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize_string.d.ts +0 -0
  346. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/relative.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/strip_trailing_separators.d.ts +0 -0
  348. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/to_file_url.d.ts +0 -0
  349. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_interface.d.ts +0 -0
  350. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_os.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/basename.d.ts +0 -0
  352. /package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path}/common.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/dirname.d.ts +0 -0
  354. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/extname.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/from_file_url.d.ts +0 -0
  356. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_absolute.d.ts +0 -0
  357. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_glob.d.ts +0 -0
  358. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/normalize.d.ts +0 -0
  360. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/parse.d.ts +0 -0
  361. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/_util.d.ts +0 -0
  362. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/basename.d.ts +0 -0
  363. /package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/common.d.ts +0 -0
  364. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/dirname.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/extname.d.ts +0 -0
  366. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/format.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/is_absolute.d.ts +0 -0
  368. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/is_glob.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/join.d.ts +0 -0
  370. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/normalize.d.ts +0 -0
  371. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/relative.d.ts +0 -0
  372. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/resolve.d.ts +0 -0
  373. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_namespaced_path.d.ts +0 -0
  374. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/relative.d.ts +0 -0
  375. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/resolve.d.ts +0 -0
  376. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_file_url.d.ts +0 -0
  377. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_namespaced_path.d.ts +0 -0
  378. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/_util.d.ts +0 -0
  379. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/basename.d.ts +0 -0
  380. /package/{script/deps/deno.land/std@0.210.0/path/posix → esm/deps/deno.land/std@0.219.1/path/windows}/common.d.ts +0 -0
  381. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/dirname.d.ts +0 -0
  382. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/extname.d.ts +0 -0
  383. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/format.d.ts +0 -0
  384. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/is_absolute.d.ts +0 -0
  385. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/is_glob.d.ts +0 -0
  386. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/join.d.ts +0 -0
  387. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/normalize.d.ts +0 -0
  388. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/relative.d.ts +0 -0
  389. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/resolve.d.ts +0 -0
  390. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/to_namespaced_path.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // Copyright the Browserify authors. MIT License.
3
3
  // Ported mostly from https://github.com/browserify/path-browserify/
4
4
  // This module is browser compatible.
@@ -32,18 +32,14 @@
32
32
  *
33
33
  * @module
34
34
  */
35
- import { isWindows } from "./_os.js";
36
35
  import * as _windows from "./windows/mod.js";
37
36
  import * as _posix from "./posix/mod.js";
38
37
  /** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/path/windows/mod.ts} instead. */
39
38
  export const win32 = _windows;
40
- /** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/posix/mod.ts} instead. */
39
+ /** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/path/posix/mod.ts} instead. */
41
40
  export const posix = _posix;
42
- export const sep = isWindows ? _windows.sep : _posix.sep;
43
- export const delimiter = isWindows
44
- ? _windows.delimiter
45
- : _posix.delimiter;
46
41
  export * from "./basename.js";
42
+ export * from "./constants.js";
47
43
  export * from "./dirname.js";
48
44
  export * from "./extname.js";
49
45
  export * from "./format.js";
@@ -57,7 +53,6 @@ export * from "./resolve.js";
57
53
  export * from "./to_file_url.js";
58
54
  export * from "./to_namespaced_path.js";
59
55
  export * from "./common.js";
60
- export * from "./separator.js";
61
56
  export * from "./_interface.js";
62
57
  export * from "./glob_to_regexp.js";
63
58
  export * from "./is_glob.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { isWindows } from "./_os.js";
4
4
  import { normalize as posixNormalize } from "./posix/normalize.js";
@@ -1,3 +1,4 @@
1
1
  import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
+ export type { GlobOptions };
2
3
  /** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
3
4
  export declare function normalizeGlob(glob: string, options?: GlobOptions): string;
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { isWindows } from "./_os.js";
4
4
  import { normalizeGlob as posixNormalizeGlob } from "./posix/normalize_glob.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { isWindows } from "./_os.js";
4
4
  import { parse as posixParse } from "./posix/parse.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // Copyright the Browserify authors. MIT License.
3
3
  // Ported from https://github.com/browserify/path-browserify/
4
4
  // This module is browser compatible.
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
4
4
  import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
@@ -1,7 +1,7 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { _common } from "../_common/common.js";
4
- import { SEP } from "./separator.js";
4
+ import { SEPARATOR } from "./constants.js";
5
5
  /** Determines the common path from a set of paths, using an optional separator,
6
6
  * which defaults to the OS default separator.
7
7
  *
@@ -14,6 +14,6 @@ import { SEP } from "./separator.js";
14
14
  * console.log(p); // "./deno/std/"
15
15
  * ```
16
16
  */
17
- export function common(paths, sep = SEP) {
17
+ export function common(paths, sep = SEPARATOR) {
18
18
  return _common(paths, sep);
19
19
  }
@@ -0,0 +1,3 @@
1
+ export declare const DELIMITER: ":";
2
+ export declare const SEPARATOR: "/";
3
+ export declare const SEPARATOR_PATTERN: RegExp;
@@ -0,0 +1,5 @@
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ export const DELIMITER = ":";
4
+ export const SEPARATOR = "/";
5
+ export const SEPARATOR_PATTERN = /\/+/;
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArg } from "../_common/dirname.js";
4
4
  import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { CHAR_DOT } from "../_common/constants.js";
4
4
  import { assertPath } from "../_common/assert_path.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { _format, assertArg } from "../_common/format.js";
4
4
  /**
@@ -3,7 +3,7 @@
3
3
  * Converts a file URL to a path string.
4
4
  *
5
5
  * ```ts
6
- * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
6
+ * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix/from_file_url.ts";
7
7
  *
8
8
  * fromFileUrl("file:///home/foo"); // "/home/foo"
9
9
  * ```
@@ -1,11 +1,11 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArg } from "../_common/from_file_url.js";
4
4
  /**
5
5
  * Converts a file URL to a path string.
6
6
  *
7
7
  * ```ts
8
- * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
8
+ * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix/from_file_url.ts";
9
9
  *
10
10
  * fromFileUrl("file:///home/foo"); // "/home/foo"
11
11
  * ```
@@ -1,4 +1,4 @@
1
- import { GlobToRegExpOptions } from "../_common/glob_to_reg_exp.js";
1
+ import { type GlobToRegExpOptions } from "../_common/glob_to_reg_exp.js";
2
2
  /** Convert a glob string to a regular expression.
3
3
  *
4
4
  * Tries to match bash glob expansion as closely as possible.
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { _globToRegExp, } from "../_common/glob_to_reg_exp.js";
4
4
  const constants = {
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertPath } from "../_common/assert_path.js";
4
4
  import { isPosixPathSeparator } from "./_util.js";
@@ -1,3 +1,3 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  export { isGlob } from "../is_glob.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertPath } from "../_common/assert_path.js";
4
4
  import { normalize } from "./normalize.js";
@@ -1,3 +1,4 @@
1
- import { GlobOptions } from "../_common/glob_to_reg_exp.js";
1
+ import type { GlobOptions } from "../_common/glob_to_reg_exp.js";
2
+ export type { GlobOptions };
2
3
  /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
3
4
  export declare function joinGlobs(globs: string[], { extended, globstar }?: GlobOptions): string;
@@ -1,7 +1,7 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { join } from "./join.js";
4
- import { SEP } from "./separator.js";
4
+ import { SEPARATOR } from "./constants.js";
5
5
  import { normalizeGlob } from "./normalize_glob.js";
6
6
  /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
7
7
  export function joinGlobs(globs, { extended = true, globstar = false } = {}) {
@@ -17,7 +17,7 @@ export function joinGlobs(globs, { extended = true, globstar = false } = {}) {
17
17
  if (!joined)
18
18
  joined = path;
19
19
  else
20
- joined += `${SEP}${path}`;
20
+ joined += `${SEPARATOR}${path}`;
21
21
  }
22
22
  }
23
23
  if (!joined)
@@ -16,9 +16,8 @@
16
16
  *
17
17
  * @module
18
18
  */
19
- export declare const sep = "/";
20
- export declare const delimiter = ":";
21
19
  export * from "./basename.js";
20
+ export * from "./constants.js";
22
21
  export * from "./dirname.js";
23
22
  export * from "./extname.js";
24
23
  export * from "./format.js";
@@ -32,7 +31,6 @@ export * from "./resolve.js";
32
31
  export * from "./to_file_url.js";
33
32
  export * from "./to_namespaced_path.js";
34
33
  export * from "./common.js";
35
- export * from "./separator.js";
36
34
  export * from "../_interface.js";
37
35
  export * from "./glob_to_regexp.js";
38
36
  export * from "./is_glob.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // Copyright the Browserify authors. MIT License.
3
3
  // Ported mostly from https://github.com/browserify/path-browserify/
4
4
  // This module is browser compatible.
@@ -20,9 +20,8 @@
20
20
  *
21
21
  * @module
22
22
  */
23
- export const sep = "/";
24
- export const delimiter = ":";
25
23
  export * from "./basename.js";
24
+ export * from "./constants.js";
26
25
  export * from "./dirname.js";
27
26
  export * from "./extname.js";
28
27
  export * from "./format.js";
@@ -36,7 +35,6 @@ export * from "./resolve.js";
36
35
  export * from "./to_file_url.js";
37
36
  export * from "./to_namespaced_path.js";
38
37
  export * from "./common.js";
39
- export * from "./separator.js";
40
38
  export * from "../_interface.js";
41
39
  export * from "./glob_to_regexp.js";
42
40
  export * from "./is_glob.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArg } from "../_common/normalize.js";
4
4
  import { normalizeString } from "../_common/normalize_string.js";
@@ -1,3 +1,4 @@
1
- import { GlobOptions } from "../_common/glob_to_reg_exp.js";
1
+ import type { GlobOptions } from "../_common/glob_to_reg_exp.js";
2
+ export type { GlobOptions };
2
3
  /** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
3
4
  export declare function normalizeGlob(glob: string, { globstar }?: GlobOptions): string;
@@ -1,7 +1,7 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { normalize } from "./normalize.js";
4
- import { SEP_PATTERN } from "./separator.js";
4
+ import { SEPARATOR_PATTERN } from "./constants.js";
5
5
  /** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
6
6
  export function normalizeGlob(glob, { globstar = false } = {}) {
7
7
  if (glob.match(/\0/g)) {
@@ -10,7 +10,7 @@ export function normalizeGlob(glob, { globstar = false } = {}) {
10
10
  if (!globstar) {
11
11
  return normalize(glob);
12
12
  }
13
- const s = SEP_PATTERN.source;
13
+ const s = SEPARATOR_PATTERN.source;
14
14
  const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
15
15
  return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
16
16
  }
@@ -1,4 +1,4 @@
1
- import { ParsedPath } from "../_interface.js";
1
+ import type { ParsedPath } from "../_interface.js";
2
2
  /**
3
3
  * Return a `ParsedPath` object of the `path`.
4
4
  * @param path to process
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { CHAR_DOT } from "../_common/constants.js";
4
4
  import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { isPosixPathSeparator } from "./_util.js";
4
4
  import { resolve } from "./resolve.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import * as dntShim from "../../../../../_dnt.shims.js";
4
4
  import { normalizeString } from "../_common/normalize_string.js";
@@ -3,7 +3,7 @@
3
3
  * Converts a path string to a file URL.
4
4
  *
5
5
  * ```ts
6
- * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
6
+ * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix/to_file_url.ts";
7
7
  *
8
8
  * toFileUrl("/home/foo"); // new URL("file:///home/foo")
9
9
  * ```
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { encodeWhitespace } from "../_common/to_file_url.js";
4
4
  import { isAbsolute } from "./is_absolute.js";
@@ -6,7 +6,7 @@ import { isAbsolute } from "./is_absolute.js";
6
6
  * Converts a path string to a file URL.
7
7
  *
8
8
  * ```ts
9
- * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
9
+ * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix/to_file_url.ts";
10
10
  *
11
11
  * toFileUrl("/home/foo"); // new URL("file:///home/foo")
12
12
  * ```
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  /**
4
4
  * Resolves path to a namespace path
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { isWindows } from "./_os.js";
4
4
  import { relative as posixRelative } from "./posix/relative.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { isWindows } from "./_os.js";
4
4
  import { resolve as posixResolve } from "./posix/resolve.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { isWindows } from "./_os.js";
4
4
  import { toFileUrl as posixToFileUrl } from "./posix/to_file_url.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { isWindows } from "./_os.js";
4
4
  import { toNamespacedPath as posixToNamespacedPath } from "./posix/to_namespaced_path.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // Copyright the Browserify authors. MIT License.
3
3
  // Ported from https://github.com/browserify/path-browserify/
4
4
  // This module is browser compatible.
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
4
4
  import { CHAR_COLON } from "../_common/constants.js";
@@ -1,7 +1,7 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { _common } from "../_common/common.js";
4
- import { SEP } from "./separator.js";
4
+ import { SEPARATOR } from "./constants.js";
5
5
  /** Determines the common path from a set of paths, using an optional separator,
6
6
  * which defaults to the OS default separator.
7
7
  *
@@ -14,6 +14,6 @@ import { SEP } from "./separator.js";
14
14
  * console.log(p); // "./deno/std/"
15
15
  * ```
16
16
  */
17
- export function common(paths, sep = SEP) {
17
+ export function common(paths, sep = SEPARATOR) {
18
18
  return _common(paths, sep);
19
19
  }
@@ -0,0 +1,3 @@
1
+ export declare const DELIMITER: ";";
2
+ export declare const SEPARATOR: "\\";
3
+ export declare const SEPARATOR_PATTERN: RegExp;
@@ -0,0 +1,5 @@
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ export const DELIMITER = ";";
4
+ export const SEPARATOR = "\\";
5
+ export const SEPARATOR_PATTERN = /[\\/]+/;
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArg } from "../_common/dirname.js";
4
4
  import { CHAR_COLON } from "../_common/constants.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { CHAR_COLON, CHAR_DOT } from "../_common/constants.js";
4
4
  import { assertPath } from "../_common/assert_path.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { _format, assertArg } from "../_common/format.js";
4
4
  /**
@@ -3,7 +3,7 @@
3
3
  * Converts a file URL to a path string.
4
4
  *
5
5
  * ```ts
6
- * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/win32.ts";
6
+ * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/windows/from_file_url.ts";
7
7
  *
8
8
  * fromFileUrl("file:///home/foo"); // "\\home\\foo"
9
9
  * fromFileUrl("file:///C:/Users/foo"); // "C:\\Users\\foo"
@@ -1,11 +1,11 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArg } from "../_common/from_file_url.js";
4
4
  /**
5
5
  * Converts a file URL to a path string.
6
6
  *
7
7
  * ```ts
8
- * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/win32.ts";
8
+ * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/windows/from_file_url.ts";
9
9
  *
10
10
  * fromFileUrl("file:///home/foo"); // "\\home\\foo"
11
11
  * fromFileUrl("file:///C:/Users/foo"); // "C:\\Users\\foo"
@@ -1,4 +1,4 @@
1
- import { GlobToRegExpOptions } from "../_common/glob_to_reg_exp.js";
1
+ import { type GlobToRegExpOptions } from "../_common/glob_to_reg_exp.js";
2
2
  /** Convert a glob string to a regular expression.
3
3
  *
4
4
  * Tries to match bash glob expansion as closely as possible.
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { _globToRegExp, } from "../_common/glob_to_reg_exp.js";
4
4
  const constants = {
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { CHAR_COLON } from "../_common/constants.js";
4
4
  import { assertPath } from "../_common/assert_path.js";
@@ -1,3 +1,3 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  export { isGlob } from "../is_glob.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assert } from "../../assert/assert.js";
4
4
  import { assertPath } from "../_common/assert_path.js";
@@ -1,3 +1,4 @@
1
- import { GlobOptions } from "../_common/glob_to_reg_exp.js";
1
+ import type { GlobOptions } from "../_common/glob_to_reg_exp.js";
2
+ export type { GlobOptions };
2
3
  /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
3
4
  export declare function joinGlobs(globs: string[], { extended, globstar }?: GlobOptions): string;
@@ -1,7 +1,7 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { join } from "./join.js";
4
- import { SEP } from "./separator.js";
4
+ import { SEPARATOR } from "./constants.js";
5
5
  import { normalizeGlob } from "./normalize_glob.js";
6
6
  /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
7
7
  export function joinGlobs(globs, { extended = true, globstar = false } = {}) {
@@ -17,7 +17,7 @@ export function joinGlobs(globs, { extended = true, globstar = false } = {}) {
17
17
  if (!joined)
18
18
  joined = path;
19
19
  else
20
- joined += `${SEP}${path}`;
20
+ joined += `${SEPARATOR}${path}`;
21
21
  }
22
22
  }
23
23
  if (!joined)
@@ -16,9 +16,8 @@
16
16
  *
17
17
  * @module
18
18
  */
19
- export declare const sep = "/";
20
- export declare const delimiter = ":";
21
19
  export * from "./basename.js";
20
+ export * from "./constants.js";
22
21
  export * from "./dirname.js";
23
22
  export * from "./extname.js";
24
23
  export * from "./format.js";
@@ -32,7 +31,6 @@ export * from "./resolve.js";
32
31
  export * from "./to_file_url.js";
33
32
  export * from "./to_namespaced_path.js";
34
33
  export * from "./common.js";
35
- export * from "./separator.js";
36
34
  export * from "../_interface.js";
37
35
  export * from "./glob_to_regexp.js";
38
36
  export * from "./is_glob.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // Copyright the Browserify authors. MIT License.
3
3
  // Ported mostly from https://github.com/browserify/path-browserify/
4
4
  // This module is browser compatible.
@@ -20,9 +20,8 @@
20
20
  *
21
21
  * @module
22
22
  */
23
- export const sep = "\\";
24
- export const delimiter = ";";
25
23
  export * from "./basename.js";
24
+ export * from "./constants.js";
26
25
  export * from "./dirname.js";
27
26
  export * from "./extname.js";
28
27
  export * from "./format.js";
@@ -36,7 +35,6 @@ export * from "./resolve.js";
36
35
  export * from "./to_file_url.js";
37
36
  export * from "./to_namespaced_path.js";
38
37
  export * from "./common.js";
39
- export * from "./separator.js";
40
38
  export * from "../_interface.js";
41
39
  export * from "./glob_to_regexp.js";
42
40
  export * from "./is_glob.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArg } from "../_common/normalize.js";
4
4
  import { CHAR_COLON } from "../_common/constants.js";
@@ -1,3 +1,4 @@
1
- import { GlobOptions } from "../_common/glob_to_reg_exp.js";
1
+ import type { GlobOptions } from "../_common/glob_to_reg_exp.js";
2
+ export type { GlobOptions };
2
3
  /** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
3
4
  export declare function normalizeGlob(glob: string, { globstar }?: GlobOptions): string;