ventojs 1.14.0 → 2.0.0-canary.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 (418) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +2 -0
  3. package/browser.js +19 -0
  4. package/{esm/src → core}/environment.js +30 -32
  5. package/{esm/src → core}/errors.js +0 -7
  6. package/core/js.js +191 -0
  7. package/core/reserved.js +63 -0
  8. package/core/tokenizer.js +86 -0
  9. package/highlightjs-vento.js +24 -0
  10. package/{esm/src/loader.node.js → loaders/file.js} +5 -2
  11. package/loaders/memory.js +24 -0
  12. package/loaders/url.js +28 -0
  13. package/{esm/bare.js → mod.js} +7 -2
  14. package/package.json +167 -29
  15. package/{esm/plugins → plugins}/auto_trim.js +0 -1
  16. package/plugins/echo.js +31 -0
  17. package/plugins/escape.js +17 -0
  18. package/plugins/export.js +68 -0
  19. package/{esm/plugins → plugins}/for.js +6 -10
  20. package/plugins/import.js +58 -0
  21. package/plugins/include.js +35 -0
  22. package/plugins/mod.js +30 -0
  23. package/{esm/plugins → plugins}/set.js +4 -3
  24. package/plugins/unescape.js +25 -0
  25. package/prism-vento.js +26 -0
  26. package/types/browser.d.ts +8 -0
  27. package/{esm/src → types/core}/environment.d.ts +4 -6
  28. package/{esm/src → types/core}/errors.d.ts +0 -5
  29. package/types/core/js.d.ts +11 -0
  30. package/types/core/reserved.d.ts +2 -0
  31. package/{esm/src → types/core}/tokenizer.d.ts +1 -8
  32. package/{esm/src/loader.node.d.ts → types/loaders/file.d.ts} +5 -4
  33. package/types/loaders/memory.d.ts +11 -0
  34. package/types/loaders/url.d.ts +11 -0
  35. package/{esm/bare.d.ts → types/mod.d.ts} +1 -3
  36. package/{esm → types}/plugins/auto_trim.d.ts +2 -4
  37. package/types/plugins/echo.d.ts +2 -0
  38. package/types/plugins/escape.d.ts +2 -0
  39. package/types/plugins/export.d.ts +2 -0
  40. package/types/plugins/for.d.ts +2 -0
  41. package/types/plugins/function.d.ts +2 -0
  42. package/types/plugins/if.d.ts +2 -0
  43. package/types/plugins/import.d.ts +2 -0
  44. package/types/plugins/include.d.ts +2 -0
  45. package/types/plugins/js.d.ts +2 -0
  46. package/types/plugins/layout.d.ts +2 -0
  47. package/types/plugins/mod.d.ts +2 -0
  48. package/types/plugins/set.d.ts +2 -0
  49. package/types/plugins/trim.d.ts +4 -0
  50. package/types/plugins/unescape.d.ts +2 -0
  51. package/esm/_dnt.polyfills.d.ts +0 -12
  52. package/esm/_dnt.polyfills.d.ts.map +0 -1
  53. package/esm/_dnt.polyfills.js +0 -15
  54. package/esm/_dnt.shims.d.ts +0 -2
  55. package/esm/_dnt.shims.d.ts.map +0 -1
  56. package/esm/_dnt.shims.js +0 -57
  57. package/esm/_dnt.test_polyfills.d.ts.map +0 -1
  58. package/esm/_dnt.test_shims.d.ts.map +0 -1
  59. package/esm/bare.d.ts.map +0 -1
  60. package/esm/deps/deno.land/std@0.224.0/assert/_constants.d.ts.map +0 -1
  61. package/esm/deps/deno.land/std@0.224.0/assert/assert_equals.d.ts.map +0 -1
  62. package/esm/deps/deno.land/std@0.224.0/assert/assert_is_error.d.ts.map +0 -1
  63. package/esm/deps/deno.land/std@0.224.0/assert/assert_throws.d.ts.map +0 -1
  64. package/esm/deps/deno.land/std@0.224.0/assert/assertion_error.d.ts.map +0 -1
  65. package/esm/deps/deno.land/std@0.224.0/assert/equal.d.ts.map +0 -1
  66. package/esm/deps/deno.land/std@0.224.0/collections/_utils.d.ts.map +0 -1
  67. package/esm/deps/deno.land/std@0.224.0/collections/deep_merge.d.ts.map +0 -1
  68. package/esm/deps/deno.land/std@0.224.0/fmt/colors.d.ts.map +0 -1
  69. package/esm/deps/deno.land/std@0.224.0/front_matter/_formats.d.ts.map +0 -1
  70. package/esm/deps/deno.land/std@0.224.0/front_matter/create_extractor.d.ts.map +0 -1
  71. package/esm/deps/deno.land/std@0.224.0/front_matter/json.d.ts.map +0 -1
  72. package/esm/deps/deno.land/std@0.224.0/front_matter/mod.d.ts.map +0 -1
  73. package/esm/deps/deno.land/std@0.224.0/front_matter/test.d.ts.map +0 -1
  74. package/esm/deps/deno.land/std@0.224.0/front_matter/toml.d.ts.map +0 -1
  75. package/esm/deps/deno.land/std@0.224.0/front_matter/yaml.d.ts.map +0 -1
  76. package/esm/deps/deno.land/std@0.224.0/internal/diff.d.ts.map +0 -1
  77. package/esm/deps/deno.land/std@0.224.0/internal/format.d.ts.map +0 -1
  78. package/esm/deps/deno.land/std@0.224.0/internal/mod.d.ts.map +0 -1
  79. package/esm/deps/deno.land/std@0.224.0/toml/_parser.d.ts.map +0 -1
  80. package/esm/deps/deno.land/std@0.224.0/toml/parse.d.ts.map +0 -1
  81. package/esm/deps/deno.land/std@0.224.0/yaml/_error.d.ts.map +0 -1
  82. package/esm/deps/deno.land/std@0.224.0/yaml/_loader/loader.d.ts.map +0 -1
  83. package/esm/deps/deno.land/std@0.224.0/yaml/_loader/loader_state.d.ts.map +0 -1
  84. package/esm/deps/deno.land/std@0.224.0/yaml/_mark.d.ts.map +0 -1
  85. package/esm/deps/deno.land/std@0.224.0/yaml/_state.d.ts.map +0 -1
  86. package/esm/deps/deno.land/std@0.224.0/yaml/_type/binary.d.ts.map +0 -1
  87. package/esm/deps/deno.land/std@0.224.0/yaml/_type/bool.d.ts.map +0 -1
  88. package/esm/deps/deno.land/std@0.224.0/yaml/_type/float.d.ts.map +0 -1
  89. package/esm/deps/deno.land/std@0.224.0/yaml/_type/function.d.ts.map +0 -1
  90. package/esm/deps/deno.land/std@0.224.0/yaml/_type/int.d.ts.map +0 -1
  91. package/esm/deps/deno.land/std@0.224.0/yaml/_type/map.d.ts.map +0 -1
  92. package/esm/deps/deno.land/std@0.224.0/yaml/_type/merge.d.ts.map +0 -1
  93. package/esm/deps/deno.land/std@0.224.0/yaml/_type/mod.d.ts.map +0 -1
  94. package/esm/deps/deno.land/std@0.224.0/yaml/_type/nil.d.ts.map +0 -1
  95. package/esm/deps/deno.land/std@0.224.0/yaml/_type/omap.d.ts.map +0 -1
  96. package/esm/deps/deno.land/std@0.224.0/yaml/_type/pairs.d.ts.map +0 -1
  97. package/esm/deps/deno.land/std@0.224.0/yaml/_type/regexp.d.ts.map +0 -1
  98. package/esm/deps/deno.land/std@0.224.0/yaml/_type/seq.d.ts.map +0 -1
  99. package/esm/deps/deno.land/std@0.224.0/yaml/_type/set.d.ts.map +0 -1
  100. package/esm/deps/deno.land/std@0.224.0/yaml/_type/str.d.ts.map +0 -1
  101. package/esm/deps/deno.land/std@0.224.0/yaml/_type/timestamp.d.ts.map +0 -1
  102. package/esm/deps/deno.land/std@0.224.0/yaml/_type/undefined.d.ts.map +0 -1
  103. package/esm/deps/deno.land/std@0.224.0/yaml/_utils.d.ts.map +0 -1
  104. package/esm/deps/deno.land/std@0.224.0/yaml/parse.d.ts.map +0 -1
  105. package/esm/deps/deno.land/std@0.224.0/yaml/schema/core.d.ts.map +0 -1
  106. package/esm/deps/deno.land/std@0.224.0/yaml/schema/default.d.ts.map +0 -1
  107. package/esm/deps/deno.land/std@0.224.0/yaml/schema/extended.d.ts.map +0 -1
  108. package/esm/deps/deno.land/std@0.224.0/yaml/schema/failsafe.d.ts.map +0 -1
  109. package/esm/deps/deno.land/std@0.224.0/yaml/schema/json.d.ts.map +0 -1
  110. package/esm/deps/deno.land/std@0.224.0/yaml/schema/mod.d.ts.map +0 -1
  111. package/esm/deps/deno.land/std@0.224.0/yaml/schema.d.ts.map +0 -1
  112. package/esm/deps/deno.land/std@0.224.0/yaml/type.d.ts.map +0 -1
  113. package/esm/deps/jsr.io/@davidbonnet/astring/1.8.6/src/astring.d.ts +0 -110
  114. package/esm/deps/jsr.io/@davidbonnet/astring/1.8.6/src/astring.d.ts.map +0 -1
  115. package/esm/deps/jsr.io/@davidbonnet/astring/1.8.6/src/astring.js +0 -1159
  116. package/esm/deps/jsr.io/@std/html/1.0.3/entities.d.ts +0 -57
  117. package/esm/deps/jsr.io/@std/html/1.0.3/entities.d.ts.map +0 -1
  118. package/esm/deps/jsr.io/@std/html/1.0.3/entities.js +0 -92
  119. package/esm/deps/jsr.io/@std/html/1.0.3/mod.d.ts +0 -15
  120. package/esm/deps/jsr.io/@std/html/1.0.3/mod.d.ts.map +0 -1
  121. package/esm/deps/jsr.io/@std/html/1.0.3/mod.js +0 -16
  122. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts +0 -2
  123. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +0 -1
  124. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +0 -7
  125. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts +0 -4
  126. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +0 -1
  127. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js +0 -40
  128. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
  129. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
  130. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -23
  131. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts +0 -40
  132. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +0 -1
  133. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js +0 -46
  134. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
  135. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
  136. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -8
  137. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
  138. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
  139. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -19
  140. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +0 -3
  141. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
  142. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -9
  143. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
  144. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
  145. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -234
  146. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts +0 -2
  147. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +0 -1
  148. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +0 -8
  149. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts +0 -2
  150. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +0 -1
  151. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +0 -77
  152. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
  153. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
  154. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -9
  155. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts +0 -2
  156. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +0 -1
  157. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +0 -19
  158. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts +0 -2
  159. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +0 -1
  160. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +0 -15
  161. package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
  162. package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
  163. package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +0 -9
  164. package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts +0 -28
  165. package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
  166. package/esm/deps/jsr.io/@std/path/1.0.8/basename.js +0 -36
  167. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
  168. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
  169. package/esm/deps/jsr.io/@std/path/1.0.8/common.js +0 -33
  170. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
  171. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
  172. package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +0 -17
  173. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
  174. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
  175. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -29
  176. package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts +0 -23
  177. package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
  178. package/esm/deps/jsr.io/@std/path/1.0.8/extname.js +0 -29
  179. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
  180. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
  181. package/esm/deps/jsr.io/@std/path/1.0.8/format.js +0 -27
  182. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -23
  183. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
  184. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -28
  185. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
  186. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
  187. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -83
  188. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts +0 -22
  189. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +0 -1
  190. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js +0 -28
  191. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
  192. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
  193. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -42
  194. package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts +0 -23
  195. package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
  196. package/esm/deps/jsr.io/@std/path/1.0.8/join.js +0 -29
  197. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
  198. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
  199. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -34
  200. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  201. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  202. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
  203. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
  204. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
  205. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -33
  206. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
  207. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
  208. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -35
  209. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
  210. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
  211. package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +0 -39
  212. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts +0 -2
  213. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +0 -1
  214. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js +0 -8
  215. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +0 -40
  216. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
  217. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js +0 -49
  218. package/esm/deps/jsr.io/@std/path/1.0.8/posix/common.d.ts +0 -19
  219. package/esm/deps/jsr.io/@std/path/1.0.8/posix/common.d.ts.map +0 -1
  220. package/esm/deps/jsr.io/@std/path/1.0.8/posix/common.js +0 -24
  221. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
  222. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
  223. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -14
  224. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
  225. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
  226. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -62
  227. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +0 -37
  228. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
  229. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js +0 -89
  230. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
  231. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
  232. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -28
  233. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +0 -17
  234. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
  235. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -21
  236. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
  237. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
  238. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -82
  239. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts +0 -17
  240. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +0 -1
  241. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +0 -23
  242. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_glob.d.ts +0 -2
  243. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_glob.d.ts.map +0 -1
  244. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_glob.js +0 -3
  245. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +0 -33
  246. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
  247. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js +0 -42
  248. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
  249. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
  250. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -40
  251. package/esm/deps/jsr.io/@std/path/1.0.8/posix/mod.d.ts +0 -40
  252. package/esm/deps/jsr.io/@std/path/1.0.8/posix/mod.d.ts.map +0 -1
  253. package/esm/deps/jsr.io/@std/path/1.0.8/posix/mod.js +0 -43
  254. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +0 -40
  255. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
  256. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +0 -57
  257. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
  258. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
  259. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -32
  260. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
  261. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
  262. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -115
  263. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
  264. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
  265. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -106
  266. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
  267. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
  268. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -59
  269. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts +0 -18
  270. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +0 -1
  271. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +0 -27
  272. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
  273. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
  274. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -20
  275. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
  276. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
  277. package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +0 -30
  278. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
  279. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
  280. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -30
  281. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts +0 -23
  282. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +0 -1
  283. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js +0 -28
  284. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
  285. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
  286. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -29
  287. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
  288. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
  289. package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
  290. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts +0 -4
  291. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +0 -1
  292. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js +0 -15
  293. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +0 -23
  294. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
  295. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js +0 -44
  296. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
  297. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
  298. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -14
  299. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
  300. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
  301. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -112
  302. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +0 -20
  303. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
  304. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js +0 -81
  305. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
  306. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
  307. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -28
  308. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +0 -19
  309. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
  310. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -30
  311. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
  312. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
  313. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -82
  314. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts +0 -17
  315. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +0 -1
  316. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +0 -38
  317. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
  318. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
  319. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js +0 -74
  320. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
  321. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
  322. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -41
  323. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +0 -22
  324. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
  325. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +0 -134
  326. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
  327. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
  328. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -32
  329. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
  330. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
  331. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -176
  332. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
  333. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
  334. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -131
  335. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
  336. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
  337. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -154
  338. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts +0 -18
  339. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +0 -1
  340. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +0 -34
  341. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
  342. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
  343. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -49
  344. package/esm/deps.d.ts +0 -8
  345. package/esm/deps.d.ts.map +0 -1
  346. package/esm/deps.js +0 -6
  347. package/esm/mod.d.ts +0 -9
  348. package/esm/mod.d.ts.map +0 -1
  349. package/esm/mod.js +0 -36
  350. package/esm/package.json +0 -3
  351. package/esm/plugins/auto_trim.d.ts.map +0 -1
  352. package/esm/plugins/echo.d.ts +0 -3
  353. package/esm/plugins/echo.d.ts.map +0 -1
  354. package/esm/plugins/echo.js +0 -13
  355. package/esm/plugins/escape.d.ts +0 -3
  356. package/esm/plugins/escape.d.ts.map +0 -1
  357. package/esm/plugins/escape.js +0 -7
  358. package/esm/plugins/export.d.ts +0 -3
  359. package/esm/plugins/export.d.ts.map +0 -1
  360. package/esm/plugins/export.js +0 -47
  361. package/esm/plugins/for.d.ts +0 -3
  362. package/esm/plugins/for.d.ts.map +0 -1
  363. package/esm/plugins/function.d.ts +0 -3
  364. package/esm/plugins/function.d.ts.map +0 -1
  365. package/esm/plugins/if.d.ts +0 -3
  366. package/esm/plugins/if.d.ts.map +0 -1
  367. package/esm/plugins/import.d.ts +0 -3
  368. package/esm/plugins/import.d.ts.map +0 -1
  369. package/esm/plugins/import.js +0 -17
  370. package/esm/plugins/include.d.ts +0 -3
  371. package/esm/plugins/include.d.ts.map +0 -1
  372. package/esm/plugins/include.js +0 -31
  373. package/esm/plugins/js.d.ts +0 -3
  374. package/esm/plugins/js.d.ts.map +0 -1
  375. package/esm/plugins/layout.d.ts +0 -3
  376. package/esm/plugins/layout.d.ts.map +0 -1
  377. package/esm/plugins/set.d.ts +0 -3
  378. package/esm/plugins/set.d.ts.map +0 -1
  379. package/esm/plugins/trim.d.ts +0 -5
  380. package/esm/plugins/trim.d.ts.map +0 -1
  381. package/esm/plugins/unescape.d.ts +0 -3
  382. package/esm/plugins/unescape.d.ts.map +0 -1
  383. package/esm/plugins/unescape.js +0 -7
  384. package/esm/src/environment.d.ts.map +0 -1
  385. package/esm/src/errors.d.ts.map +0 -1
  386. package/esm/src/js.d.ts +0 -5
  387. package/esm/src/js.d.ts.map +0 -1
  388. package/esm/src/js.js +0 -197
  389. package/esm/src/loader.node.d.ts.map +0 -1
  390. package/esm/src/tokenizer.d.ts.map +0 -1
  391. package/esm/src/tokenizer.js +0 -93
  392. package/esm/src/transformer.d.ts +0 -2
  393. package/esm/src/transformer.d.ts.map +0 -1
  394. package/esm/src/transformer.js +0 -218
  395. package/esm/test/auto_trim.test.d.ts.map +0 -1
  396. package/esm/test/comment.test.d.ts.map +0 -1
  397. package/esm/test/compile.test.d.ts.map +0 -1
  398. package/esm/test/echo.test.d.ts.map +0 -1
  399. package/esm/test/escape.test.d.ts.map +0 -1
  400. package/esm/test/for.test.d.ts.map +0 -1
  401. package/esm/test/function.test.d.ts.map +0 -1
  402. package/esm/test/if.test.d.ts.map +0 -1
  403. package/esm/test/import.test.d.ts.map +0 -1
  404. package/esm/test/include.test.d.ts.map +0 -1
  405. package/esm/test/js.test.d.ts.map +0 -1
  406. package/esm/test/layout.test.d.ts.map +0 -1
  407. package/esm/test/print.test.d.ts.map +0 -1
  408. package/esm/test/safe.test.d.ts.map +0 -1
  409. package/esm/test/set.test.d.ts.map +0 -1
  410. package/esm/test/tokenizer.test.d.ts.map +0 -1
  411. package/esm/test/unescape.test.d.ts.map +0 -1
  412. package/esm/test/utils.d.ts.map +0 -1
  413. package/esm/test/with.test.d.ts.map +0 -1
  414. /package/{esm/plugins → plugins}/function.js +0 -0
  415. /package/{esm/plugins → plugins}/if.js +0 -0
  416. /package/{esm/plugins → plugins}/js.js +0 -0
  417. /package/{esm/plugins → plugins}/layout.js +0 -0
  418. /package/{esm/plugins → plugins}/trim.js +0 -0
@@ -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"}
@@ -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 { join as posixJoin } from "./posix/join.js";
5
- import { join as windowsJoin } from "./windows/join.js";
6
- /**
7
- * Joins a sequence of paths, then normalizes the resulting path.
8
- *
9
- * @example Usage
10
- * ```ts
11
- * import { join } from "@std/path/join";
12
- * import { assertEquals } from "@std/assert";
13
- *
14
- * if (Deno.build.os === "windows") {
15
- * assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
16
- * } else {
17
- * assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
18
- * }
19
- * ```
20
- *
21
- * Note: If you are working with file URLs,
22
- * use the new version of `join` from `@std/path/unstable-join`.
23
- *
24
- * @param paths Paths to be joined and normalized.
25
- * @returns The joined and normalized path.
26
- */
27
- export function join(...paths) {
28
- return isWindows ? windowsJoin(...paths) : posixJoin(...paths);
29
- }
@@ -1,28 +0,0 @@
1
- import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
- export type { GlobOptions };
3
- /**
4
- * Joins a sequence of globs, then normalizes the resulting glob.
5
- *
6
- * Behaves like {@linkcode https://jsr.io/@std/path/doc/~/join | join()}, but
7
- * doesn't collapse `**\/..` when `globstar` is true.
8
- *
9
- * @example Usage
10
- * ```ts
11
- * import { joinGlobs } from "@std/path/join-globs";
12
- * import { assertEquals } from "@std/assert";
13
- *
14
- * if (Deno.build.os === "windows") {
15
- * assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo\\baz");
16
- * assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo\\**\\baz");
17
- * } else {
18
- * assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo/baz");
19
- * assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo/**\/baz");
20
- * }
21
- * ```
22
- *
23
- * @param globs Globs to be joined and normalized.
24
- * @param options Glob options.
25
- * @returns The joined and normalized glob string.
26
- */
27
- export declare function joinGlobs(globs: string[], options?: GlobOptions): string;
28
- //# sourceMappingURL=join_globs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"join_globs.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/join_globs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAKhE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,GAAE,WAAgB,GACxB,MAAM,CAIR"}
@@ -1,34 +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 { joinGlobs as posixJoinGlobs } from "./posix/join_globs.js";
5
- import { joinGlobs as windowsJoinGlobs } from "./windows/join_globs.js";
6
- /**
7
- * Joins a sequence of globs, then normalizes the resulting glob.
8
- *
9
- * Behaves like {@linkcode https://jsr.io/@std/path/doc/~/join | join()}, but
10
- * doesn't collapse `**\/..` when `globstar` is true.
11
- *
12
- * @example Usage
13
- * ```ts
14
- * import { joinGlobs } from "@std/path/join-globs";
15
- * import { assertEquals } from "@std/assert";
16
- *
17
- * if (Deno.build.os === "windows") {
18
- * assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo\\baz");
19
- * assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo\\**\\baz");
20
- * } else {
21
- * assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo/baz");
22
- * assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo/**\/baz");
23
- * }
24
- * ```
25
- *
26
- * @param globs Globs to be joined and normalized.
27
- * @param options Glob options.
28
- * @returns The joined and normalized glob string.
29
- */
30
- export function joinGlobs(globs, options = {}) {
31
- return isWindows
32
- ? windowsJoinGlobs(globs, options)
33
- : posixJoinGlobs(globs, options);
34
- }
@@ -1,54 +0,0 @@
1
- /**
2
- * Utilities for working with OS-specific file paths.
3
- *
4
- * Functions from this module will automatically switch to support the path style
5
- * of the current OS, either `windows` for Microsoft Windows, or `posix` for
6
- * every other operating system, eg. Linux, MacOS, BSD etc.
7
- *
8
- * To use functions for a specific path style regardless of the current OS
9
- * import the modules from the platform sub directory instead.
10
- *
11
- * Example, for POSIX:
12
- *
13
- * ```ts
14
- * import { fromFileUrl } from "@std/path/posix/from-file-url";
15
- * import { assertEquals } from "@std/assert";
16
- *
17
- * assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
18
- * ```
19
- *
20
- * Or, for Windows:
21
- *
22
- * ```ts
23
- * import { fromFileUrl } from "@std/path/windows/from-file-url";
24
- * import { assertEquals } from "@std/assert";
25
- *
26
- * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
27
- * ```
28
- *
29
- * Functions for working with URLs can be found in
30
- * {@link ./doc/posix/~ | @std/path/posix}.
31
- *
32
- * @module
33
- */
34
- export * from "./basename.js";
35
- export * from "./constants.js";
36
- export * from "./dirname.js";
37
- export * from "./extname.js";
38
- export * from "./format.js";
39
- export * from "./from_file_url.js";
40
- export * from "./is_absolute.js";
41
- export * from "./join.js";
42
- export * from "./normalize.js";
43
- export * from "./parse.js";
44
- export * from "./relative.js";
45
- export * from "./resolve.js";
46
- export * from "./to_file_url.js";
47
- export * from "./to_namespaced_path.js";
48
- export * from "./common.js";
49
- export * from "./types.js";
50
- export * from "./glob_to_regexp.js";
51
- export * from "./is_glob.js";
52
- export * from "./join_globs.js";
53
- export * from "./normalize_glob.js";
54
- //# sourceMappingURL=mod.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/mod.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}