ventojs 1.14.0 → 1.15.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 (297) hide show
  1. package/esm/bare.d.ts +1 -1
  2. package/esm/bare.d.ts.map +1 -1
  3. package/esm/bare.js +1 -1
  4. package/esm/deps.d.ts +0 -3
  5. package/esm/deps.d.ts.map +1 -1
  6. package/esm/deps.js +0 -3
  7. package/esm/plugins/echo.d.ts +1 -0
  8. package/esm/plugins/echo.d.ts.map +1 -1
  9. package/esm/plugins/echo.js +23 -4
  10. package/esm/plugins/escape.d.ts +1 -0
  11. package/esm/plugins/escape.d.ts.map +1 -1
  12. package/esm/plugins/escape.js +14 -3
  13. package/esm/plugins/export.d.ts +1 -0
  14. package/esm/plugins/export.d.ts.map +1 -1
  15. package/esm/plugins/export.js +55 -33
  16. package/esm/plugins/for.d.ts +1 -0
  17. package/esm/plugins/for.d.ts.map +1 -1
  18. package/esm/plugins/for.js +7 -10
  19. package/esm/plugins/function.d.ts +1 -0
  20. package/esm/plugins/function.d.ts.map +1 -1
  21. package/esm/plugins/function.js +1 -0
  22. package/esm/plugins/if.d.ts +1 -0
  23. package/esm/plugins/if.d.ts.map +1 -1
  24. package/esm/plugins/if.js +1 -0
  25. package/esm/plugins/import.d.ts +1 -0
  26. package/esm/plugins/import.d.ts.map +1 -1
  27. package/esm/plugins/import.js +45 -3
  28. package/esm/plugins/include.d.ts +1 -0
  29. package/esm/plugins/include.d.ts.map +1 -1
  30. package/esm/plugins/include.js +16 -11
  31. package/esm/plugins/js.d.ts +1 -0
  32. package/esm/plugins/js.d.ts.map +1 -1
  33. package/esm/plugins/js.js +1 -0
  34. package/esm/plugins/layout.d.ts +1 -0
  35. package/esm/plugins/layout.d.ts.map +1 -1
  36. package/esm/plugins/layout.js +1 -0
  37. package/esm/plugins/set.d.ts +1 -0
  38. package/esm/plugins/set.d.ts.map +1 -1
  39. package/esm/plugins/set.js +1 -0
  40. package/esm/plugins/trim.d.ts +1 -0
  41. package/esm/plugins/trim.d.ts.map +1 -1
  42. package/esm/plugins/trim.js +1 -0
  43. package/esm/plugins/unescape.d.ts +1 -0
  44. package/esm/plugins/unescape.d.ts.map +1 -1
  45. package/esm/plugins/unescape.js +22 -3
  46. package/esm/src/environment.d.ts +2 -2
  47. package/esm/src/environment.d.ts.map +1 -1
  48. package/esm/src/environment.js +13 -16
  49. package/esm/src/errors.d.ts +1 -0
  50. package/esm/src/errors.d.ts.map +1 -1
  51. package/esm/src/errors.js +1 -0
  52. package/esm/src/js.d.ts +11 -4
  53. package/esm/src/js.d.ts.map +1 -1
  54. package/esm/src/js.js +160 -174
  55. package/esm/src/{loader.node.d.ts → loader.d.ts} +1 -1
  56. package/esm/src/loader.d.ts.map +1 -0
  57. package/esm/src/{loader.node.js → loader.js} +1 -1
  58. package/esm/src/tokenizer.d.ts +1 -6
  59. package/esm/src/tokenizer.d.ts.map +1 -1
  60. package/esm/src/tokenizer.js +66 -72
  61. package/esm/src/transformer.d.ts +1 -0
  62. package/esm/src/transformer.d.ts.map +1 -1
  63. package/esm/src/transformer.js +1 -0
  64. package/esm/src/url_loader.d.ts +10 -0
  65. package/esm/src/url_loader.d.ts.map +1 -0
  66. package/esm/src/url_loader.js +19 -0
  67. package/esm/test/utils.d.ts.map +1 -1
  68. package/package.json +53 -2
  69. package/esm/deps/jsr.io/@std/html/1.0.3/entities.d.ts +0 -57
  70. package/esm/deps/jsr.io/@std/html/1.0.3/entities.d.ts.map +0 -1
  71. package/esm/deps/jsr.io/@std/html/1.0.3/entities.js +0 -92
  72. package/esm/deps/jsr.io/@std/html/1.0.3/mod.d.ts +0 -15
  73. package/esm/deps/jsr.io/@std/html/1.0.3/mod.d.ts.map +0 -1
  74. package/esm/deps/jsr.io/@std/html/1.0.3/mod.js +0 -16
  75. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts +0 -2
  76. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +0 -1
  77. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +0 -7
  78. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts +0 -4
  79. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +0 -1
  80. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js +0 -40
  81. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
  82. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
  83. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -23
  84. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts +0 -40
  85. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +0 -1
  86. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js +0 -46
  87. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
  88. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
  89. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -8
  90. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
  91. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
  92. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -19
  93. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +0 -3
  94. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
  95. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -9
  96. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
  97. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
  98. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -234
  99. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts +0 -2
  100. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +0 -1
  101. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +0 -8
  102. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts +0 -2
  103. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +0 -1
  104. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +0 -77
  105. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
  106. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
  107. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -9
  108. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts +0 -2
  109. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +0 -1
  110. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +0 -19
  111. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts +0 -2
  112. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +0 -1
  113. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +0 -15
  114. package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
  115. package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
  116. package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +0 -9
  117. package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts +0 -28
  118. package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
  119. package/esm/deps/jsr.io/@std/path/1.0.8/basename.js +0 -36
  120. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
  121. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
  122. package/esm/deps/jsr.io/@std/path/1.0.8/common.js +0 -33
  123. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
  124. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
  125. package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +0 -17
  126. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
  127. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
  128. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -29
  129. package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts +0 -23
  130. package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
  131. package/esm/deps/jsr.io/@std/path/1.0.8/extname.js +0 -29
  132. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
  133. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
  134. package/esm/deps/jsr.io/@std/path/1.0.8/format.js +0 -27
  135. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -23
  136. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
  137. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -28
  138. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
  139. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
  140. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -83
  141. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts +0 -22
  142. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +0 -1
  143. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js +0 -28
  144. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
  145. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
  146. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -42
  147. package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts +0 -23
  148. package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
  149. package/esm/deps/jsr.io/@std/path/1.0.8/join.js +0 -29
  150. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
  151. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
  152. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -34
  153. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  154. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  155. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
  156. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
  157. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
  158. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -33
  159. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
  160. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
  161. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -35
  162. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
  163. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
  164. package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +0 -39
  165. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts +0 -2
  166. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +0 -1
  167. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js +0 -8
  168. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +0 -40
  169. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
  170. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js +0 -49
  171. package/esm/deps/jsr.io/@std/path/1.0.8/posix/common.d.ts +0 -19
  172. package/esm/deps/jsr.io/@std/path/1.0.8/posix/common.d.ts.map +0 -1
  173. package/esm/deps/jsr.io/@std/path/1.0.8/posix/common.js +0 -24
  174. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
  175. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
  176. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -14
  177. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
  178. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
  179. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -62
  180. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +0 -37
  181. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
  182. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js +0 -89
  183. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
  184. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
  185. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -28
  186. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +0 -17
  187. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
  188. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -21
  189. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
  190. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
  191. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -82
  192. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts +0 -17
  193. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +0 -1
  194. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +0 -23
  195. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_glob.d.ts +0 -2
  196. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_glob.d.ts.map +0 -1
  197. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_glob.js +0 -3
  198. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +0 -33
  199. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
  200. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js +0 -42
  201. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
  202. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
  203. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -40
  204. package/esm/deps/jsr.io/@std/path/1.0.8/posix/mod.d.ts +0 -40
  205. package/esm/deps/jsr.io/@std/path/1.0.8/posix/mod.d.ts.map +0 -1
  206. package/esm/deps/jsr.io/@std/path/1.0.8/posix/mod.js +0 -43
  207. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +0 -40
  208. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
  209. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +0 -57
  210. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
  211. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
  212. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -32
  213. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
  214. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
  215. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -115
  216. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
  217. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
  218. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -106
  219. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
  220. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
  221. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -59
  222. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts +0 -18
  223. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +0 -1
  224. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +0 -27
  225. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
  226. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
  227. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -20
  228. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
  229. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
  230. package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +0 -30
  231. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
  232. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
  233. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -30
  234. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts +0 -23
  235. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +0 -1
  236. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js +0 -28
  237. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
  238. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
  239. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -29
  240. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
  241. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
  242. package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
  243. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts +0 -4
  244. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +0 -1
  245. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js +0 -15
  246. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +0 -23
  247. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
  248. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js +0 -44
  249. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
  250. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
  251. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -14
  252. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
  253. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
  254. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -112
  255. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +0 -20
  256. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
  257. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js +0 -81
  258. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
  259. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
  260. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -28
  261. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +0 -19
  262. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
  263. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -30
  264. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
  265. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
  266. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -82
  267. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts +0 -17
  268. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +0 -1
  269. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +0 -38
  270. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
  271. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
  272. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js +0 -74
  273. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
  274. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
  275. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -41
  276. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +0 -22
  277. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
  278. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +0 -134
  279. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
  280. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
  281. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -32
  282. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
  283. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
  284. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -176
  285. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
  286. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
  287. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -131
  288. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
  289. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
  290. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -154
  291. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts +0 -18
  292. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +0 -1
  293. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +0 -34
  294. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
  295. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
  296. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -49
  297. package/esm/src/loader.node.d.ts.map +0 -1
@@ -1,28 +0,0 @@
1
- /**
2
- * Determines the common path from a set of paths for the given OS.
3
- *
4
- * @param paths Paths to search for common path.
5
- * @returns The common path.
6
- *
7
- * @example Usage
8
- * ```ts
9
- * import { common } from "@std/path/common";
10
- * import { assertEquals } from "@std/assert";
11
- *
12
- * if (Deno.build.os === "windows") {
13
- * const path = common([
14
- * "C:\\deno\\std\\path\\mod.ts",
15
- * "C:\\deno\\std\\fs\\mod.ts"
16
- * ]);
17
- * assertEquals(path, "C:\\deno\\std\\");
18
- * } else {
19
- * const path = common([
20
- * "./deno/std/path/mod.ts",
21
- * "./deno/std/fs/mod.ts"
22
- * ]);
23
- * assertEquals(path, "./deno/std/");
24
- * }
25
- * ```
26
- */
27
- export declare function common(paths: string[]): string;
28
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/common.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAE9C"}
@@ -1,33 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { common as _common } from "./_common/common.js";
4
- import { SEPARATOR } from "./constants.js";
5
- /**
6
- * Determines the common path from a set of paths for the given OS.
7
- *
8
- * @param paths Paths to search for common path.
9
- * @returns The common path.
10
- *
11
- * @example Usage
12
- * ```ts
13
- * import { common } from "@std/path/common";
14
- * import { assertEquals } from "@std/assert";
15
- *
16
- * if (Deno.build.os === "windows") {
17
- * const path = common([
18
- * "C:\\deno\\std\\path\\mod.ts",
19
- * "C:\\deno\\std\\fs\\mod.ts"
20
- * ]);
21
- * assertEquals(path, "C:\\deno\\std\\");
22
- * } else {
23
- * const path = common([
24
- * "./deno/std/path/mod.ts",
25
- * "./deno/std/fs/mod.ts"
26
- * ]);
27
- * assertEquals(path, "./deno/std/");
28
- * }
29
- * ```
30
- */
31
- export function common(paths) {
32
- return _common(paths, SEPARATOR);
33
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * The character used to separate entries in the PATH environment variable.
3
- * On Windows, this is `;`. On all other platforms, this is `:`.
4
- */
5
- export declare const DELIMITER: ":" | ";";
6
- /**
7
- * The character used to separate components of a file path.
8
- * On Windows, this is `\`. On all other platforms, this is `/`.
9
- */
10
- export declare const SEPARATOR: "\\" | "/";
11
- /**
12
- * A regular expression that matches one or more path separators.
13
- */
14
- export declare const SEPARATOR_PATTERN: RegExp;
15
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/constants.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,SAAS,WAA0C,CAAC;AACjE;;;GAGG;AACH,eAAO,MAAM,SAAS,YAA2C,CAAC;AAClE;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAA+B,CAAC"}
@@ -1,17 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- /**
5
- * The character used to separate entries in the PATH environment variable.
6
- * On Windows, this is `;`. On all other platforms, this is `:`.
7
- */
8
- export const DELIMITER = isWindows ? ";" : ":";
9
- /**
10
- * The character used to separate components of a file path.
11
- * On Windows, this is `\`. On all other platforms, this is `/`.
12
- */
13
- export const SEPARATOR = isWindows ? "\\" : "/";
14
- /**
15
- * A regular expression that matches one or more path separators.
16
- */
17
- export const SEPARATOR_PATTERN = isWindows ? /[\\/]+/ : /\/+/;
@@ -1,23 +0,0 @@
1
- /**
2
- * Return the directory path of a path.
3
- *
4
- * @example Usage
5
- * ```ts
6
- * import { dirname } from "@std/path/dirname";
7
- * import { assertEquals } from "@std/assert";
8
- *
9
- * if (Deno.build.os === "windows") {
10
- * assertEquals(dirname("C:\\home\\user\\Documents\\image.png"), "C:\\home\\user\\Documents");
11
- * } else {
12
- * assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
13
- * }
14
- * ```
15
- *
16
- * Note: If you are working with file URLs,
17
- * use the new version of `dirname` from `@std/path/unstable-dirname`.
18
- *
19
- * @param path Path to extract the directory from.
20
- * @returns The directory path.
21
- */
22
- export declare function dirname(path: string): string;
23
- //# sourceMappingURL=dirname.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dirname.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/dirname.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5C"}
@@ -1,29 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { dirname as posixDirname } from "./posix/dirname.js";
5
- import { dirname as windowsDirname } from "./windows/dirname.js";
6
- /**
7
- * Return the directory path of a path.
8
- *
9
- * @example Usage
10
- * ```ts
11
- * import { dirname } from "@std/path/dirname";
12
- * import { assertEquals } from "@std/assert";
13
- *
14
- * if (Deno.build.os === "windows") {
15
- * assertEquals(dirname("C:\\home\\user\\Documents\\image.png"), "C:\\home\\user\\Documents");
16
- * } else {
17
- * assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
18
- * }
19
- * ```
20
- *
21
- * Note: If you are working with file URLs,
22
- * use the new version of `dirname` from `@std/path/unstable-dirname`.
23
- *
24
- * @param path Path to extract the directory from.
25
- * @returns The directory path.
26
- */
27
- export function dirname(path) {
28
- return isWindows ? windowsDirname(path) : posixDirname(path);
29
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Return the extension of the path with leading period (".").
3
- *
4
- * @example Usage
5
- * ```ts
6
- * import { extname } from "@std/path/extname";
7
- * import { assertEquals } from "@std/assert";
8
- *
9
- * if (Deno.build.os === "windows") {
10
- * assertEquals(extname("C:\\home\\user\\Documents\\image.png"), ".png");
11
- * } else {
12
- * assertEquals(extname("/home/user/Documents/image.png"), ".png");
13
- * }
14
- * ```
15
- *
16
- * Note: If you are working with file URLs,
17
- * use the new version of `extname` from `@std/path/unstable-extname`.
18
- *
19
- * @param path Path with extension.
20
- * @returns The file extension. E.g. returns `.ts` for `file.ts`.
21
- */
22
- export declare function extname(path: string): string;
23
- //# sourceMappingURL=extname.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/extname.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5C"}
@@ -1,29 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { extname as posixExtname } from "./posix/extname.js";
5
- import { extname as windowsExtname } from "./windows/extname.js";
6
- /**
7
- * Return the extension of the path with leading period (".").
8
- *
9
- * @example Usage
10
- * ```ts
11
- * import { extname } from "@std/path/extname";
12
- * import { assertEquals } from "@std/assert";
13
- *
14
- * if (Deno.build.os === "windows") {
15
- * assertEquals(extname("C:\\home\\user\\Documents\\image.png"), ".png");
16
- * } else {
17
- * assertEquals(extname("/home/user/Documents/image.png"), ".png");
18
- * }
19
- * ```
20
- *
21
- * Note: If you are working with file URLs,
22
- * use the new version of `extname` from `@std/path/unstable-extname`.
23
- *
24
- * @param path Path with extension.
25
- * @returns The file extension. E.g. returns `.ts` for `file.ts`.
26
- */
27
- export function extname(path) {
28
- return isWindows ? windowsExtname(path) : posixExtname(path);
29
- }
@@ -1,22 +0,0 @@
1
- import type { ParsedPath } from "./types.js";
2
- /**
3
- * Generate a path from a {@linkcode ParsedPath} object. It does the
4
- * opposite of {@linkcode https://jsr.io/@std/path/doc/~/parse | parse()}.
5
- *
6
- * @example Usage
7
- * ```ts
8
- * import { format } from "@std/path/format";
9
- * import { assertEquals } from "@std/assert";
10
- *
11
- * if (Deno.build.os === "windows") {
12
- * assertEquals(format({ dir: "C:\\path\\to", base: "script.ts" }), "C:\\path\\to\\script.ts");
13
- * } else {
14
- * assertEquals(format({ dir: "/path/to/dir", base: "script.ts" }), "/path/to/dir/script.ts");
15
- * }
16
- * ```
17
- *
18
- * @param pathObject Object with path components.
19
- * @returns The formatted path.
20
- */
21
- export declare function format(pathObject: Partial<ParsedPath>): string;
22
- //# sourceMappingURL=format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/format.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAE9D"}
@@ -1,27 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { format as posixFormat } from "./posix/format.js";
5
- import { format as windowsFormat } from "./windows/format.js";
6
- /**
7
- * Generate a path from a {@linkcode ParsedPath} object. It does the
8
- * opposite of {@linkcode https://jsr.io/@std/path/doc/~/parse | parse()}.
9
- *
10
- * @example Usage
11
- * ```ts
12
- * import { format } from "@std/path/format";
13
- * import { assertEquals } from "@std/assert";
14
- *
15
- * if (Deno.build.os === "windows") {
16
- * assertEquals(format({ dir: "C:\\path\\to", base: "script.ts" }), "C:\\path\\to\\script.ts");
17
- * } else {
18
- * assertEquals(format({ dir: "/path/to/dir", base: "script.ts" }), "/path/to/dir/script.ts");
19
- * }
20
- * ```
21
- *
22
- * @param pathObject Object with path components.
23
- * @returns The formatted path.
24
- */
25
- export function format(pathObject) {
26
- return isWindows ? windowsFormat(pathObject) : posixFormat(pathObject);
27
- }
@@ -1,23 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * Converts a file URL to a path string.
4
- *
5
- * @example Usage
6
- * ```ts
7
- * import { fromFileUrl } from "@std/path/from-file-url";
8
- * import { assertEquals } from "@std/assert";
9
- *
10
- * if (Deno.build.os === "windows") {
11
- * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
12
- * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
13
- * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
14
- * } else {
15
- * assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
16
- * }
17
- * ```
18
- *
19
- * @param url The file URL to convert to a path.
20
- * @returns The path string.
21
- */
22
- export declare function fromFileUrl(url: string | URL): string;
23
- //# sourceMappingURL=from_file_url.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/from_file_url.ts"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAErD"}
@@ -1,28 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { fromFileUrl as posixFromFileUrl } from "./posix/from_file_url.js";
5
- import { fromFileUrl as windowsFromFileUrl } from "./windows/from_file_url.js";
6
- /**
7
- * Converts a file URL to a path string.
8
- *
9
- * @example Usage
10
- * ```ts
11
- * import { fromFileUrl } from "@std/path/from-file-url";
12
- * import { assertEquals } from "@std/assert";
13
- *
14
- * if (Deno.build.os === "windows") {
15
- * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
16
- * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
17
- * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
18
- * } else {
19
- * assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
20
- * }
21
- * ```
22
- *
23
- * @param url The file URL to convert to a path.
24
- * @returns The path string.
25
- */
26
- export function fromFileUrl(url) {
27
- return isWindows ? windowsFromFileUrl(url) : posixFromFileUrl(url);
28
- }
@@ -1,77 +0,0 @@
1
- import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
- export type { GlobOptions };
3
- /**
4
- * Converts a glob string to a regular expression.
5
- *
6
- * Tries to match bash glob expansion as closely as possible.
7
- *
8
- * Basic glob syntax:
9
- * - `*` - Matches everything without leaving the path segment.
10
- * - `?` - Matches any single character.
11
- * - `{foo,bar}` - Matches `foo` or `bar`.
12
- * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
13
- * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
14
- * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
15
- * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
16
- * - `[[:alnum:]]` - Matches any digit or letter.
17
- * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
18
- * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
19
- * for a complete list of supported character classes.
20
- * - `\` - Escapes the next character for an `os` other than `"windows"`.
21
- * - \` - Escapes the next character for `os` set to `"windows"`.
22
- * - `/` - Path separator.
23
- * - `\` - Additional path separator only for `os` set to `"windows"`.
24
- *
25
- * Extended syntax:
26
- * - Requires `{ extended: true }`.
27
- * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
28
- * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
29
- * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
30
- * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
31
- * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
32
- * - See https://www.linuxjournal.com/content/bash-extended-globbing.
33
- *
34
- * Globstar syntax:
35
- * - Requires `{ globstar: true }`.
36
- * - `**` - Matches any number of any path segments.
37
- * - Must comprise its entire path segment in the provided glob.
38
- * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
39
- *
40
- * Note the following properties:
41
- * - The generated `RegExp` is anchored at both start and end.
42
- * - Repeating and trailing separators are tolerated. Trailing separators in the
43
- * provided glob have no meaning and are discarded.
44
- * - Absolute globs will only match absolute paths, etc.
45
- * - Empty globs will match nothing.
46
- * - Any special glob syntax must be contained to one path segment. For example,
47
- * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
48
- * first segment ends with an unclosed group.
49
- * - If a path segment ends with unclosed groups or a dangling escape prefix, a
50
- * parse error has occurred. Every character for that segment is taken
51
- * literally in this event.
52
- *
53
- * Limitations:
54
- * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
55
- * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
56
- * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
57
- * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
58
- * the group occurs not nested at the end of the segment.
59
- *
60
- * @example Usage
61
- * ```ts
62
- * import { globToRegExp } from "@std/path/glob-to-regexp";
63
- * import { assertEquals } from "@std/assert";
64
- *
65
- * if (Deno.build.os === "windows") {
66
- * assertEquals(globToRegExp("*.js"), /^[^\\/]*\.js(?:\\|\/)*$/);
67
- * } else {
68
- * assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
69
- * }
70
- * ```
71
- *
72
- * @param glob Glob string to convert.
73
- * @param options Conversion options.
74
- * @returns The regular expression equivalent to the glob.
75
- */
76
- export declare function globToRegExp(glob: string, options?: GlobOptions): RegExp;
77
- //# sourceMappingURL=glob_to_regexp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glob_to_regexp.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAQhE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,WAAgB,GACxB,MAAM,CAIR"}
@@ -1,83 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { globToRegExp as posixGlobToRegExp } from "./posix/glob_to_regexp.js";
5
- import { globToRegExp as windowsGlobToRegExp, } from "./windows/glob_to_regexp.js";
6
- /**
7
- * Converts a glob string to a regular expression.
8
- *
9
- * Tries to match bash glob expansion as closely as possible.
10
- *
11
- * Basic glob syntax:
12
- * - `*` - Matches everything without leaving the path segment.
13
- * - `?` - Matches any single character.
14
- * - `{foo,bar}` - Matches `foo` or `bar`.
15
- * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
16
- * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
17
- * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
18
- * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
19
- * - `[[:alnum:]]` - Matches any digit or letter.
20
- * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
21
- * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
22
- * for a complete list of supported character classes.
23
- * - `\` - Escapes the next character for an `os` other than `"windows"`.
24
- * - \` - Escapes the next character for `os` set to `"windows"`.
25
- * - `/` - Path separator.
26
- * - `\` - Additional path separator only for `os` set to `"windows"`.
27
- *
28
- * Extended syntax:
29
- * - Requires `{ extended: true }`.
30
- * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
31
- * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
32
- * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
33
- * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
34
- * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
35
- * - See https://www.linuxjournal.com/content/bash-extended-globbing.
36
- *
37
- * Globstar syntax:
38
- * - Requires `{ globstar: true }`.
39
- * - `**` - Matches any number of any path segments.
40
- * - Must comprise its entire path segment in the provided glob.
41
- * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
42
- *
43
- * Note the following properties:
44
- * - The generated `RegExp` is anchored at both start and end.
45
- * - Repeating and trailing separators are tolerated. Trailing separators in the
46
- * provided glob have no meaning and are discarded.
47
- * - Absolute globs will only match absolute paths, etc.
48
- * - Empty globs will match nothing.
49
- * - Any special glob syntax must be contained to one path segment. For example,
50
- * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
51
- * first segment ends with an unclosed group.
52
- * - If a path segment ends with unclosed groups or a dangling escape prefix, a
53
- * parse error has occurred. Every character for that segment is taken
54
- * literally in this event.
55
- *
56
- * Limitations:
57
- * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
58
- * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
59
- * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
60
- * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
61
- * the group occurs not nested at the end of the segment.
62
- *
63
- * @example Usage
64
- * ```ts
65
- * import { globToRegExp } from "@std/path/glob-to-regexp";
66
- * import { assertEquals } from "@std/assert";
67
- *
68
- * if (Deno.build.os === "windows") {
69
- * assertEquals(globToRegExp("*.js"), /^[^\\/]*\.js(?:\\|\/)*$/);
70
- * } else {
71
- * assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
72
- * }
73
- * ```
74
- *
75
- * @param glob Glob string to convert.
76
- * @param options Conversion options.
77
- * @returns The regular expression equivalent to the glob.
78
- */
79
- export function globToRegExp(glob, options = {}) {
80
- return isWindows
81
- ? windowsGlobToRegExp(glob, options)
82
- : posixGlobToRegExp(glob, options);
83
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * Verifies whether provided path is absolute.
3
- *
4
- * @example Usage
5
- * ```ts
6
- * import { isAbsolute } from "@std/path/is-absolute";
7
- * import { assert, assertFalse } from "@std/assert";
8
- *
9
- * if (Deno.build.os === "windows") {
10
- * assert(isAbsolute("C:\\home\\foo"));
11
- * assertFalse(isAbsolute("home\\foo"));
12
- * } else {
13
- * assert(isAbsolute("/home/foo"));
14
- * assertFalse(isAbsolute("home/foo"));
15
- * }
16
- * ```
17
- *
18
- * @param path Path to be verified as absolute.
19
- * @returns `true` if path is absolute, `false` otherwise
20
- */
21
- export declare function isAbsolute(path: string): boolean;
22
- //# sourceMappingURL=is_absolute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/is_absolute.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD"}
@@ -1,28 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { isAbsolute as posixIsAbsolute } from "./posix/is_absolute.js";
5
- import { isAbsolute as windowsIsAbsolute } from "./windows/is_absolute.js";
6
- /**
7
- * Verifies whether provided path is absolute.
8
- *
9
- * @example Usage
10
- * ```ts
11
- * import { isAbsolute } from "@std/path/is-absolute";
12
- * import { assert, assertFalse } from "@std/assert";
13
- *
14
- * if (Deno.build.os === "windows") {
15
- * assert(isAbsolute("C:\\home\\foo"));
16
- * assertFalse(isAbsolute("home\\foo"));
17
- * } else {
18
- * assert(isAbsolute("/home/foo"));
19
- * assertFalse(isAbsolute("home/foo"));
20
- * }
21
- * ```
22
- *
23
- * @param path Path to be verified as absolute.
24
- * @returns `true` if path is absolute, `false` otherwise
25
- */
26
- export function isAbsolute(path) {
27
- return isWindows ? windowsIsAbsolute(path) : posixIsAbsolute(path);
28
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * Test whether the given string is a glob.
3
- *
4
- * @example Usage
5
- * ```ts
6
- * import { isGlob } from "@std/path/is-glob";
7
- * import { assert } from "@std/assert";
8
- *
9
- * assert(!isGlob("foo/bar/../baz"));
10
- * assert(isGlob("foo/*ar/../baz"));
11
- * ```
12
- *
13
- * @param str String to test.
14
- * @returns `true` if the given string is a glob, otherwise `false`
15
- */
16
- export declare function isGlob(str: string): boolean;
17
- //# sourceMappingURL=is_glob.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is_glob.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/is_glob.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CA8B3C"}
@@ -1,42 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- /**
4
- * Test whether the given string is a glob.
5
- *
6
- * @example Usage
7
- * ```ts
8
- * import { isGlob } from "@std/path/is-glob";
9
- * import { assert } from "@std/assert";
10
- *
11
- * assert(!isGlob("foo/bar/../baz"));
12
- * assert(isGlob("foo/*ar/../baz"));
13
- * ```
14
- *
15
- * @param str String to test.
16
- * @returns `true` if the given string is a glob, otherwise `false`
17
- */
18
- export function isGlob(str) {
19
- const chars = { "{": "}", "(": ")", "[": "]" };
20
- const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
21
- if (str === "") {
22
- return false;
23
- }
24
- let match;
25
- while ((match = regex.exec(str))) {
26
- if (match[2])
27
- return true;
28
- let idx = match.index + match[0].length;
29
- // if an open bracket/brace/paren is escaped,
30
- // set the index to the next closing character
31
- const open = match[1];
32
- const close = open ? chars[open] : null;
33
- if (open && close) {
34
- const n = str.indexOf(close, idx);
35
- if (n !== -1) {
36
- idx = n + 1;
37
- }
38
- }
39
- str = str.slice(idx);
40
- }
41
- return false;
42
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Joins a sequence of paths, then normalizes the resulting path.
3
- *
4
- * @example Usage
5
- * ```ts
6
- * import { join } from "@std/path/join";
7
- * import { assertEquals } from "@std/assert";
8
- *
9
- * if (Deno.build.os === "windows") {
10
- * assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
11
- * } else {
12
- * assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
13
- * }
14
- * ```
15
- *
16
- * Note: If you are working with file URLs,
17
- * use the new version of `join` from `@std/path/unstable-join`.
18
- *
19
- * @param paths Paths to be joined and normalized.
20
- * @returns The joined and normalized path.
21
- */
22
- export declare function join(...paths: string[]): string;
23
- //# sourceMappingURL=join.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAE/C"}