ventojs 0.10.2 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/README.md +35 -93
  2. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assert.js +1 -1
  3. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assertion_error.js +1 -1
  4. package/esm/deps/deno.land/std@0.219.1/html/entities.d.ts +39 -0
  5. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/html/entities.js +14 -15
  6. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/html/mod.d.ts +1 -1
  7. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/html/mod.js +2 -2
  8. package/esm/deps/deno.land/std@0.219.1/path/_common/assert_path.d.ts +1 -0
  9. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/assert_path.js +1 -1
  10. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/basename.js +1 -1
  11. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/common.js +9 -9
  12. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/constants.js +1 -1
  13. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/dirname.js +1 -1
  14. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/format.js +1 -1
  15. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/from_file_url.js +1 -1
  16. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/glob_to_reg_exp.js +4 -2
  17. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize.js +1 -1
  18. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize_string.js +1 -1
  19. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/relative.js +1 -1
  20. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/strip_trailing_separators.js +1 -1
  21. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/to_file_url.js +1 -1
  22. package/esm/deps/deno.land/std@0.219.1/path/_interface.js +3 -0
  23. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_os.js +1 -1
  24. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/basename.js +1 -1
  25. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/common.js +3 -3
  26. package/esm/deps/deno.land/std@0.219.1/path/constants.d.ts +3 -0
  27. package/esm/deps/deno.land/std@0.219.1/path/constants.js +6 -0
  28. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/dirname.js +1 -1
  29. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/extname.js +1 -1
  30. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/format.d.ts +1 -1
  31. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/format.js +1 -1
  32. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/from_file_url.js +1 -1
  33. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/glob_to_regexp.d.ts +2 -1
  34. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/glob_to_regexp.js +1 -1
  35. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_absolute.js +1 -1
  36. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_glob.js +1 -1
  37. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join.js +1 -1
  38. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join_globs.d.ts +1 -0
  39. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join_globs.js +1 -1
  40. package/esm/deps/deno.land/std@0.219.1/path/mod.d.ts +56 -0
  41. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/mod.js +3 -8
  42. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/normalize.js +1 -1
  43. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/normalize_glob.d.ts +1 -0
  44. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/normalize_glob.js +1 -1
  45. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/parse.js +1 -1
  46. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/_util.js +1 -1
  47. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/basename.js +1 -1
  48. package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/common.js +3 -3
  49. package/esm/deps/deno.land/std@0.219.1/path/posix/constants.d.ts +3 -0
  50. package/esm/deps/deno.land/std@0.219.1/path/posix/constants.js +5 -0
  51. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/dirname.js +1 -1
  52. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/extname.js +1 -1
  53. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/format.js +1 -1
  54. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/posix/from_file_url.d.ts +1 -1
  55. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/from_file_url.js +2 -2
  56. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/glob_to_regexp.d.ts +1 -1
  57. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/glob_to_regexp.js +1 -1
  58. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/is_absolute.js +1 -1
  59. package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/is_glob.js +1 -1
  60. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/join.js +1 -1
  61. package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/join_globs.d.ts +2 -1
  62. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/join_globs.js +3 -3
  63. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/mod.d.ts +1 -3
  64. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/mod.js +2 -4
  65. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/normalize.js +1 -1
  66. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/posix/normalize_glob.d.ts +2 -1
  67. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/normalize_glob.js +3 -3
  68. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/parse.d.ts +1 -1
  69. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/parse.js +1 -1
  70. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/relative.js +1 -1
  71. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/resolve.js +1 -1
  72. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_file_url.d.ts +1 -1
  73. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_file_url.js +2 -2
  74. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_namespaced_path.js +1 -1
  75. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/relative.js +1 -1
  76. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/resolve.js +1 -1
  77. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_file_url.js +1 -1
  78. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_namespaced_path.js +1 -1
  79. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/_util.js +1 -1
  80. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/basename.js +1 -1
  81. package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path/windows}/common.js +3 -3
  82. package/esm/deps/deno.land/std@0.219.1/path/windows/constants.d.ts +3 -0
  83. package/esm/deps/deno.land/std@0.219.1/path/windows/constants.js +5 -0
  84. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/dirname.js +1 -1
  85. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/extname.js +1 -1
  86. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/format.js +1 -1
  87. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/windows/from_file_url.d.ts +1 -1
  88. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/from_file_url.js +2 -2
  89. package/{script/deps/deno.land/std@0.210.0/path/posix → esm/deps/deno.land/std@0.219.1/path/windows}/glob_to_regexp.d.ts +1 -1
  90. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/glob_to_regexp.js +1 -1
  91. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/is_absolute.js +1 -1
  92. package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path/windows}/is_glob.js +1 -1
  93. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/join.js +1 -1
  94. package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path/windows}/join_globs.d.ts +2 -1
  95. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/join_globs.js +3 -3
  96. package/{script/deps/deno.land/std@0.210.0/path/posix → esm/deps/deno.land/std@0.219.1/path/windows}/mod.d.ts +1 -3
  97. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/mod.js +2 -4
  98. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/normalize.js +1 -1
  99. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/windows/normalize_glob.d.ts +2 -1
  100. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/normalize_glob.js +3 -3
  101. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/parse.d.ts +1 -1
  102. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/parse.js +1 -1
  103. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/relative.js +1 -1
  104. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/resolve.js +1 -1
  105. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/windows/to_file_url.d.ts +1 -1
  106. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/to_file_url.js +2 -2
  107. package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/to_namespaced_path.js +1 -1
  108. package/esm/deps/deno.land/x/astring@v1.8.6/src/astring.d.ts +109 -0
  109. package/esm/deps/deno.land/x/astring@v1.8.6/src/astring.js +1159 -0
  110. package/esm/deps.d.ts +6 -2
  111. package/esm/deps.js +5 -2
  112. package/esm/mod.d.ts +1 -0
  113. package/esm/mod.js +2 -0
  114. package/esm/plugins/auto_trim.d.ts +8 -0
  115. package/esm/plugins/auto_trim.js +36 -0
  116. package/esm/plugins/escape.js +2 -1
  117. package/esm/plugins/trim.d.ts +4 -0
  118. package/esm/plugins/trim.js +28 -0
  119. package/esm/plugins/unescape.js +2 -1
  120. package/esm/src/environment.d.ts +3 -0
  121. package/esm/src/environment.js +28 -7
  122. package/esm/src/tokenizer.js +6 -29
  123. package/esm/src/transformer.d.ts +1 -0
  124. package/esm/src/transformer.js +180 -0
  125. package/package.json +21 -8
  126. package/esm/deps/deno.land/std@0.210.0/html/entities.d.ts +0 -38
  127. package/esm/deps/deno.land/std@0.210.0/path/_common/assert_path.d.ts +0 -1
  128. package/esm/deps/deno.land/std@0.210.0/path/_interface.js +0 -3
  129. package/esm/deps/deno.land/std@0.210.0/path/common.d.ts +0 -13
  130. package/esm/deps/deno.land/std@0.210.0/path/glob_to_regexp.d.ts +0 -61
  131. package/esm/deps/deno.land/std@0.210.0/path/mod.d.ts +0 -28
  132. package/esm/deps/deno.land/std@0.210.0/path/normalize_glob.d.ts +0 -3
  133. package/esm/deps/deno.land/std@0.210.0/path/posix/from_file_url.d.ts +0 -12
  134. package/esm/deps/deno.land/std@0.210.0/path/posix/normalize_glob.d.ts +0 -3
  135. package/esm/deps/deno.land/std@0.210.0/path/posix/separator.d.ts +0 -2
  136. package/esm/deps/deno.land/std@0.210.0/path/posix/separator.js +0 -4
  137. package/esm/deps/deno.land/std@0.210.0/path/separator.d.ts +0 -2
  138. package/esm/deps/deno.land/std@0.210.0/path/separator.js +0 -5
  139. package/esm/deps/deno.land/std@0.210.0/path/windows/from_file_url.d.ts +0 -14
  140. package/esm/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.d.ts +0 -57
  141. package/esm/deps/deno.land/std@0.210.0/path/windows/mod.d.ts +0 -40
  142. package/esm/deps/deno.land/std@0.210.0/path/windows/normalize_glob.d.ts +0 -3
  143. package/esm/deps/deno.land/std@0.210.0/path/windows/separator.d.ts +0 -2
  144. package/esm/deps/deno.land/std@0.210.0/path/windows/separator.js +0 -4
  145. package/esm/deps/deno.land/std@0.210.0/path/windows/to_file_url.d.ts +0 -14
  146. package/script/_dnt.shims.d.ts +0 -5
  147. package/script/_dnt.shims.js +0 -65
  148. package/script/deps/deno.land/std@0.210.0/assert/assert.d.ts +0 -12
  149. package/script/deps/deno.land/std@0.210.0/assert/assert.js +0 -22
  150. package/script/deps/deno.land/std@0.210.0/assert/assertion_error.d.ts +0 -14
  151. package/script/deps/deno.land/std@0.210.0/assert/assertion_error.js +0 -22
  152. package/script/deps/deno.land/std@0.210.0/html/entities.d.ts +0 -38
  153. package/script/deps/deno.land/std@0.210.0/html/entities.js +0 -81
  154. package/script/deps/deno.land/std@0.210.0/html/mod.d.ts +0 -6
  155. package/script/deps/deno.land/std@0.210.0/html/mod.js +0 -24
  156. package/script/deps/deno.land/std@0.210.0/path/_common/assert_path.d.ts +0 -1
  157. package/script/deps/deno.land/std@0.210.0/path/_common/assert_path.js +0 -11
  158. package/script/deps/deno.land/std@0.210.0/path/_common/basename.d.ts +0 -3
  159. package/script/deps/deno.land/std@0.210.0/path/_common/basename.js +0 -46
  160. package/script/deps/deno.land/std@0.210.0/path/_common/common.d.ts +0 -1
  161. package/script/deps/deno.land/std@0.210.0/path/_common/common.js +0 -27
  162. package/script/deps/deno.land/std@0.210.0/path/_common/constants.d.ts +0 -39
  163. package/script/deps/deno.land/std@0.210.0/path/_common/constants.js +0 -49
  164. package/script/deps/deno.land/std@0.210.0/path/_common/dirname.d.ts +0 -1
  165. package/script/deps/deno.land/std@0.210.0/path/_common/dirname.js +0 -12
  166. package/script/deps/deno.land/std@0.210.0/path/_common/format.d.ts +0 -3
  167. package/script/deps/deno.land/std@0.210.0/path/_common/format.js +0 -24
  168. package/script/deps/deno.land/std@0.210.0/path/_common/from_file_url.d.ts +0 -2
  169. package/script/deps/deno.land/std@0.210.0/path/_common/from_file_url.js +0 -13
  170. package/script/deps/deno.land/std@0.210.0/path/_common/glob_to_reg_exp.d.ts +0 -28
  171. package/script/deps/deno.land/std@0.210.0/path/_common/glob_to_reg_exp.js +0 -239
  172. package/script/deps/deno.land/std@0.210.0/path/_common/normalize.d.ts +0 -1
  173. package/script/deps/deno.land/std@0.210.0/path/_common/normalize.js +0 -12
  174. package/script/deps/deno.land/std@0.210.0/path/_common/normalize_string.d.ts +0 -1
  175. package/script/deps/deno.land/std@0.210.0/path/_common/normalize_string.js +0 -81
  176. package/script/deps/deno.land/std@0.210.0/path/_common/relative.d.ts +0 -1
  177. package/script/deps/deno.land/std@0.210.0/path/_common/relative.js +0 -13
  178. package/script/deps/deno.land/std@0.210.0/path/_common/strip_trailing_separators.d.ts +0 -1
  179. package/script/deps/deno.land/std@0.210.0/path/_common/strip_trailing_separators.js +0 -23
  180. package/script/deps/deno.land/std@0.210.0/path/_common/to_file_url.d.ts +0 -1
  181. package/script/deps/deno.land/std@0.210.0/path/_common/to_file_url.js +0 -19
  182. package/script/deps/deno.land/std@0.210.0/path/_interface.d.ts +0 -26
  183. package/script/deps/deno.land/std@0.210.0/path/_interface.js +0 -4
  184. package/script/deps/deno.land/std@0.210.0/path/_os.d.ts +0 -3
  185. package/script/deps/deno.land/std@0.210.0/path/_os.js +0 -44
  186. package/script/deps/deno.land/std@0.210.0/path/basename.d.ts +0 -8
  187. package/script/deps/deno.land/std@0.210.0/path/basename.js +0 -21
  188. package/script/deps/deno.land/std@0.210.0/path/common.d.ts +0 -13
  189. package/script/deps/deno.land/std@0.210.0/path/common.js +0 -23
  190. package/script/deps/deno.land/std@0.210.0/path/dirname.d.ts +0 -5
  191. package/script/deps/deno.land/std@0.210.0/path/dirname.js +0 -16
  192. package/script/deps/deno.land/std@0.210.0/path/extname.d.ts +0 -6
  193. package/script/deps/deno.land/std@0.210.0/path/extname.js +0 -17
  194. package/script/deps/deno.land/std@0.210.0/path/format.d.ts +0 -6
  195. package/script/deps/deno.land/std@0.210.0/path/format.js +0 -16
  196. package/script/deps/deno.land/std@0.210.0/path/from_file_url.d.ts +0 -18
  197. package/script/deps/deno.land/std@0.210.0/path/from_file_url.js +0 -28
  198. package/script/deps/deno.land/std@0.210.0/path/glob_to_regexp.js +0 -69
  199. package/script/deps/deno.land/std@0.210.0/path/is_absolute.d.ts +0 -5
  200. package/script/deps/deno.land/std@0.210.0/path/is_absolute.js +0 -16
  201. package/script/deps/deno.land/std@0.210.0/path/is_glob.d.ts +0 -2
  202. package/script/deps/deno.land/std@0.210.0/path/is_glob.js +0 -32
  203. package/script/deps/deno.land/std@0.210.0/path/join.d.ts +0 -5
  204. package/script/deps/deno.land/std@0.210.0/path/join.js +0 -16
  205. package/script/deps/deno.land/std@0.210.0/path/join_globs.d.ts +0 -3
  206. package/script/deps/deno.land/std@0.210.0/path/join_globs.js +0 -15
  207. package/script/deps/deno.land/std@0.210.0/path/mod.d.ts +0 -28
  208. package/script/deps/deno.land/std@0.210.0/path/mod.js +0 -94
  209. package/script/deps/deno.land/std@0.210.0/path/normalize.d.ts +0 -7
  210. package/script/deps/deno.land/std@0.210.0/path/normalize.js +0 -18
  211. package/script/deps/deno.land/std@0.210.0/path/normalize_glob.js +0 -15
  212. package/script/deps/deno.land/std@0.210.0/path/parse.d.ts +0 -6
  213. package/script/deps/deno.land/std@0.210.0/path/parse.js +0 -16
  214. package/script/deps/deno.land/std@0.210.0/path/posix/_util.d.ts +0 -1
  215. package/script/deps/deno.land/std@0.210.0/path/posix/_util.js +0 -12
  216. package/script/deps/deno.land/std@0.210.0/path/posix/basename.d.ts +0 -8
  217. package/script/deps/deno.land/std@0.210.0/path/posix/basename.js +0 -22
  218. package/script/deps/deno.land/std@0.210.0/path/posix/common.js +0 -23
  219. package/script/deps/deno.land/std@0.210.0/path/posix/dirname.d.ts +0 -5
  220. package/script/deps/deno.land/std@0.210.0/path/posix/dirname.js +0 -40
  221. package/script/deps/deno.land/std@0.210.0/path/posix/extname.d.ts +0 -6
  222. package/script/deps/deno.land/std@0.210.0/path/posix/extname.js +0 -63
  223. package/script/deps/deno.land/std@0.210.0/path/posix/format.d.ts +0 -6
  224. package/script/deps/deno.land/std@0.210.0/path/posix/format.js +0 -15
  225. package/script/deps/deno.land/std@0.210.0/path/posix/from_file_url.js +0 -21
  226. package/script/deps/deno.land/std@0.210.0/path/posix/glob_to_regexp.js +0 -73
  227. package/script/deps/deno.land/std@0.210.0/path/posix/is_absolute.d.ts +0 -5
  228. package/script/deps/deno.land/std@0.210.0/path/posix/is_absolute.js +0 -16
  229. package/script/deps/deno.land/std@0.210.0/path/posix/is_glob.d.ts +0 -1
  230. package/script/deps/deno.land/std@0.210.0/path/posix/is_glob.js +0 -7
  231. package/script/deps/deno.land/std@0.210.0/path/posix/join.d.ts +0 -5
  232. package/script/deps/deno.land/std@0.210.0/path/posix/join.js +0 -30
  233. package/script/deps/deno.land/std@0.210.0/path/posix/join_globs.d.ts +0 -3
  234. package/script/deps/deno.land/std@0.210.0/path/posix/join_globs.js +0 -30
  235. package/script/deps/deno.land/std@0.210.0/path/posix/mod.js +0 -61
  236. package/script/deps/deno.land/std@0.210.0/path/posix/normalize.d.ts +0 -7
  237. package/script/deps/deno.land/std@0.210.0/path/posix/normalize.js +0 -29
  238. package/script/deps/deno.land/std@0.210.0/path/posix/normalize_glob.js +0 -20
  239. package/script/deps/deno.land/std@0.210.0/path/posix/parse.d.ts +0 -6
  240. package/script/deps/deno.land/std@0.210.0/path/posix/parse.js +0 -102
  241. package/script/deps/deno.land/std@0.210.0/path/posix/relative.d.ts +0 -7
  242. package/script/deps/deno.land/std@0.210.0/path/posix/relative.js +0 -98
  243. package/script/deps/deno.land/std@0.210.0/path/posix/resolve.d.ts +0 -5
  244. package/script/deps/deno.land/std@0.210.0/path/posix/resolve.js +0 -75
  245. package/script/deps/deno.land/std@0.210.0/path/posix/separator.d.ts +0 -2
  246. package/script/deps/deno.land/std@0.210.0/path/posix/separator.js +0 -7
  247. package/script/deps/deno.land/std@0.210.0/path/posix/to_file_url.d.ts +0 -12
  248. package/script/deps/deno.land/std@0.210.0/path/posix/to_file_url.js +0 -26
  249. package/script/deps/deno.land/std@0.210.0/path/posix/to_namespaced_path.d.ts +0 -5
  250. package/script/deps/deno.land/std@0.210.0/path/posix/to_namespaced_path.js +0 -14
  251. package/script/deps/deno.land/std@0.210.0/path/relative.d.ts +0 -12
  252. package/script/deps/deno.land/std@0.210.0/path/relative.js +0 -23
  253. package/script/deps/deno.land/std@0.210.0/path/resolve.d.ts +0 -5
  254. package/script/deps/deno.land/std@0.210.0/path/resolve.js +0 -18
  255. package/script/deps/deno.land/std@0.210.0/path/separator.d.ts +0 -2
  256. package/script/deps/deno.land/std@0.210.0/path/separator.js +0 -8
  257. package/script/deps/deno.land/std@0.210.0/path/to_file_url.d.ts +0 -18
  258. package/script/deps/deno.land/std@0.210.0/path/to_file_url.js +0 -28
  259. package/script/deps/deno.land/std@0.210.0/path/to_namespaced_path.d.ts +0 -5
  260. package/script/deps/deno.land/std@0.210.0/path/to_namespaced_path.js +0 -18
  261. package/script/deps/deno.land/std@0.210.0/path/windows/_util.d.ts +0 -3
  262. package/script/deps/deno.land/std@0.210.0/path/windows/_util.js +0 -21
  263. package/script/deps/deno.land/std@0.210.0/path/windows/basename.d.ts +0 -8
  264. package/script/deps/deno.land/std@0.210.0/path/windows/basename.js +0 -34
  265. package/script/deps/deno.land/std@0.210.0/path/windows/common.d.ts +0 -13
  266. package/script/deps/deno.land/std@0.210.0/path/windows/common.js +0 -23
  267. package/script/deps/deno.land/std@0.210.0/path/windows/dirname.d.ts +0 -5
  268. package/script/deps/deno.land/std@0.210.0/path/windows/dirname.js +0 -102
  269. package/script/deps/deno.land/std@0.210.0/path/windows/extname.d.ts +0 -6
  270. package/script/deps/deno.land/std@0.210.0/path/windows/extname.js +0 -72
  271. package/script/deps/deno.land/std@0.210.0/path/windows/format.d.ts +0 -6
  272. package/script/deps/deno.land/std@0.210.0/path/windows/format.js +0 -15
  273. package/script/deps/deno.land/std@0.210.0/path/windows/from_file_url.js +0 -30
  274. package/script/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.d.ts +0 -57
  275. package/script/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.js +0 -73
  276. package/script/deps/deno.land/std@0.210.0/path/windows/is_absolute.d.ts +0 -5
  277. package/script/deps/deno.land/std@0.210.0/path/windows/is_absolute.js +0 -31
  278. package/script/deps/deno.land/std@0.210.0/path/windows/is_glob.d.ts +0 -1
  279. package/script/deps/deno.land/std@0.210.0/path/windows/is_glob.js +0 -7
  280. package/script/deps/deno.land/std@0.210.0/path/windows/join.d.ts +0 -5
  281. package/script/deps/deno.land/std@0.210.0/path/windows/join.js +0 -76
  282. package/script/deps/deno.land/std@0.210.0/path/windows/join_globs.d.ts +0 -3
  283. package/script/deps/deno.land/std@0.210.0/path/windows/join_globs.js +0 -30
  284. package/script/deps/deno.land/std@0.210.0/path/windows/mod.d.ts +0 -40
  285. package/script/deps/deno.land/std@0.210.0/path/windows/mod.js +0 -61
  286. package/script/deps/deno.land/std@0.210.0/path/windows/normalize.d.ts +0 -7
  287. package/script/deps/deno.land/std@0.210.0/path/windows/normalize.js +0 -134
  288. package/script/deps/deno.land/std@0.210.0/path/windows/normalize_glob.js +0 -20
  289. package/script/deps/deno.land/std@0.210.0/path/windows/parse.d.ts +0 -6
  290. package/script/deps/deno.land/std@0.210.0/path/windows/parse.js +0 -163
  291. package/script/deps/deno.land/std@0.210.0/path/windows/relative.d.ts +0 -12
  292. package/script/deps/deno.land/std@0.210.0/path/windows/relative.js +0 -125
  293. package/script/deps/deno.land/std@0.210.0/path/windows/resolve.d.ts +0 -5
  294. package/script/deps/deno.land/std@0.210.0/path/windows/resolve.js +0 -170
  295. package/script/deps/deno.land/std@0.210.0/path/windows/separator.d.ts +0 -2
  296. package/script/deps/deno.land/std@0.210.0/path/windows/separator.js +0 -7
  297. package/script/deps/deno.land/std@0.210.0/path/windows/to_file_url.js +0 -35
  298. package/script/deps/deno.land/std@0.210.0/path/windows/to_namespaced_path.d.ts +0 -5
  299. package/script/deps/deno.land/std@0.210.0/path/windows/to_namespaced_path.js +0 -42
  300. package/script/deps.d.ts +0 -2
  301. package/script/deps.js +0 -28
  302. package/script/mod.d.ts +0 -9
  303. package/script/mod.js +0 -69
  304. package/script/package.json +0 -3
  305. package/script/plugins/echo.d.ts +0 -2
  306. package/script/plugins/echo.js +0 -16
  307. package/script/plugins/escape.d.ts +0 -2
  308. package/script/plugins/escape.js +0 -9
  309. package/script/plugins/export.d.ts +0 -2
  310. package/script/plugins/export.js +0 -50
  311. package/script/plugins/for.d.ts +0 -2
  312. package/script/plugins/for.js +0 -77
  313. package/script/plugins/function.d.ts +0 -2
  314. package/script/plugins/function.js +0 -40
  315. package/script/plugins/if.d.ts +0 -2
  316. package/script/plugins/if.js +0 -35
  317. package/script/plugins/import.d.ts +0 -2
  318. package/script/plugins/import.js +0 -20
  319. package/script/plugins/include.d.ts +0 -2
  320. package/script/plugins/include.js +0 -26
  321. package/script/plugins/js.d.ts +0 -2
  322. package/script/plugins/js.js +0 -14
  323. package/script/plugins/layout.d.ts +0 -2
  324. package/script/plugins/layout.js +0 -37
  325. package/script/plugins/set.d.ts +0 -2
  326. package/script/plugins/set.js +0 -48
  327. package/script/plugins/unescape.d.ts +0 -2
  328. package/script/plugins/unescape.js +0 -9
  329. package/script/src/environment.d.ts +0 -51
  330. package/script/src/environment.js +0 -208
  331. package/script/src/loader.d.ts +0 -14
  332. package/script/src/loader.js +0 -46
  333. package/script/src/tokenizer.d.ts +0 -13
  334. package/script/src/tokenizer.js +0 -249
  335. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assert.d.ts +0 -0
  336. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assertion_error.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/basename.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/common.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/constants.d.ts +0 -0
  340. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/dirname.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/format.d.ts +0 -0
  342. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/from_file_url.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
  344. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize.d.ts +0 -0
  345. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize_string.d.ts +0 -0
  346. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/relative.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/strip_trailing_separators.d.ts +0 -0
  348. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/to_file_url.d.ts +0 -0
  349. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_interface.d.ts +0 -0
  350. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_os.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/basename.d.ts +0 -0
  352. /package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path}/common.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/dirname.d.ts +0 -0
  354. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/extname.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/from_file_url.d.ts +0 -0
  356. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_absolute.d.ts +0 -0
  357. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_glob.d.ts +0 -0
  358. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/normalize.d.ts +0 -0
  360. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/parse.d.ts +0 -0
  361. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/_util.d.ts +0 -0
  362. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/basename.d.ts +0 -0
  363. /package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/common.d.ts +0 -0
  364. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/dirname.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/extname.d.ts +0 -0
  366. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/format.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/is_absolute.d.ts +0 -0
  368. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/is_glob.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/join.d.ts +0 -0
  370. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/normalize.d.ts +0 -0
  371. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/relative.d.ts +0 -0
  372. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/resolve.d.ts +0 -0
  373. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_namespaced_path.d.ts +0 -0
  374. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/relative.d.ts +0 -0
  375. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/resolve.d.ts +0 -0
  376. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_file_url.d.ts +0 -0
  377. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_namespaced_path.d.ts +0 -0
  378. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/_util.d.ts +0 -0
  379. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/basename.d.ts +0 -0
  380. /package/{script/deps/deno.land/std@0.210.0/path/posix → esm/deps/deno.land/std@0.219.1/path/windows}/common.d.ts +0 -0
  381. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/dirname.d.ts +0 -0
  382. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/extname.d.ts +0 -0
  383. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/format.d.ts +0 -0
  384. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/is_absolute.d.ts +0 -0
  385. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/is_glob.d.ts +0 -0
  386. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/join.d.ts +0 -0
  387. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/normalize.d.ts +0 -0
  388. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/relative.d.ts +0 -0
  389. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/resolve.d.ts +0 -0
  390. /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/to_namespaced_path.d.ts +0 -0
@@ -1,72 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.extname = void 0;
6
- const constants_js_1 = require("../_common/constants.js");
7
- const assert_path_js_1 = require("../_common/assert_path.js");
8
- const _util_js_1 = require("./_util.js");
9
- /**
10
- * Return the extension of the `path` with leading period.
11
- * @param path with extension
12
- * @returns extension (ex. for `file.ts` returns `.ts`)
13
- */
14
- function extname(path) {
15
- (0, assert_path_js_1.assertPath)(path);
16
- let start = 0;
17
- let startDot = -1;
18
- let startPart = 0;
19
- let end = -1;
20
- let matchedSlash = true;
21
- // Track the state of characters (if any) we see before our first dot and
22
- // after any path separator we find
23
- let preDotState = 0;
24
- // Check for a drive letter prefix so as not to mistake the following
25
- // path separator as an extra separator at the end of the path that can be
26
- // disregarded
27
- if (path.length >= 2 &&
28
- path.charCodeAt(1) === constants_js_1.CHAR_COLON &&
29
- (0, _util_js_1.isWindowsDeviceRoot)(path.charCodeAt(0))) {
30
- start = startPart = 2;
31
- }
32
- for (let i = path.length - 1; i >= start; --i) {
33
- const code = path.charCodeAt(i);
34
- if ((0, _util_js_1.isPathSeparator)(code)) {
35
- // If we reached a path separator that was not part of a set of path
36
- // separators at the end of the string, stop now
37
- if (!matchedSlash) {
38
- startPart = i + 1;
39
- break;
40
- }
41
- continue;
42
- }
43
- if (end === -1) {
44
- // We saw the first non-path separator, mark this as the end of our
45
- // extension
46
- matchedSlash = false;
47
- end = i + 1;
48
- }
49
- if (code === constants_js_1.CHAR_DOT) {
50
- // If this is our first dot, mark it as the start of our extension
51
- if (startDot === -1)
52
- startDot = i;
53
- else if (preDotState !== 1)
54
- preDotState = 1;
55
- }
56
- else if (startDot !== -1) {
57
- // We saw a non-dot and non-path separator before our dot, so we should
58
- // have a good chance at having a non-empty extension
59
- preDotState = -1;
60
- }
61
- }
62
- if (startDot === -1 ||
63
- end === -1 ||
64
- // We saw a non-dot character immediately before the dot
65
- preDotState === 0 ||
66
- // The (right-most) trimmed path component is exactly '..'
67
- (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
68
- return "";
69
- }
70
- return path.slice(startDot, end);
71
- }
72
- exports.extname = extname;
@@ -1,6 +0,0 @@
1
- import type { FormatInputPathObject } from "../_interface.js";
2
- /**
3
- * Generate a path from `FormatInputPathObject` object.
4
- * @param pathObject with path
5
- */
6
- export declare function format(pathObject: FormatInputPathObject): string;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.format = void 0;
6
- const format_js_1 = require("../_common/format.js");
7
- /**
8
- * Generate a path from `FormatInputPathObject` object.
9
- * @param pathObject with path
10
- */
11
- function format(pathObject) {
12
- (0, format_js_1.assertArg)(pathObject);
13
- return (0, format_js_1._format)("\\", pathObject);
14
- }
15
- exports.format = format;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.fromFileUrl = void 0;
6
- const from_file_url_js_1 = require("../_common/from_file_url.js");
7
- /**
8
- * Converts a file URL to a path string.
9
- *
10
- * ```ts
11
- * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/win32.ts";
12
- *
13
- * fromFileUrl("file:///home/foo"); // "\\home\\foo"
14
- * fromFileUrl("file:///C:/Users/foo"); // "C:\\Users\\foo"
15
- * fromFileUrl("file://localhost/home/foo"); // "\\\\localhost\\home\\foo"
16
- * ```
17
- * @param url of a file URL
18
- */
19
- function fromFileUrl(url) {
20
- url = (0, from_file_url_js_1.assertArg)(url);
21
- let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
22
- if (url.hostname !== "") {
23
- // Note: The `URL` implementation guarantees that the drive letter and
24
- // hostname are mutually exclusive. Otherwise it would not have been valid
25
- // to append the hostname and path like this.
26
- path = `\\\\${url.hostname}${path}`;
27
- }
28
- return path;
29
- }
30
- exports.fromFileUrl = fromFileUrl;
@@ -1,57 +0,0 @@
1
- import { GlobToRegExpOptions } from "../_common/glob_to_reg_exp.js";
2
- /** Convert a glob string to a regular expression.
3
- *
4
- * Tries to match bash glob expansion as closely as possible.
5
- *
6
- * Basic glob syntax:
7
- * - `*` - Matches everything without leaving the path segment.
8
- * - `?` - Matches any single character.
9
- * - `{foo,bar}` - Matches `foo` or `bar`.
10
- * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
11
- * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
12
- * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
13
- * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
14
- * - `[[:alnum:]]` - Matches any digit or letter.
15
- * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
16
- * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
17
- * for a complete list of supported character classes.
18
- * - `\` - Escapes the next character for an `os` other than `"windows"`.
19
- * - \` - Escapes the next character for `os` set to `"windows"`.
20
- * - `/` - Path separator.
21
- * - `\` - Additional path separator only for `os` set to `"windows"`.
22
- *
23
- * Extended syntax:
24
- * - Requires `{ extended: true }`.
25
- * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
26
- * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
27
- * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
28
- * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
29
- * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
30
- * - See https://www.linuxjournal.com/content/bash-extended-globbing.
31
- *
32
- * Globstar syntax:
33
- * - Requires `{ globstar: true }`.
34
- * - `**` - Matches any number of any path segments.
35
- * - Must comprise its entire path segment in the provided glob.
36
- * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
37
- *
38
- * Note the following properties:
39
- * - The generated `RegExp` is anchored at both start and end.
40
- * - Repeating and trailing separators are tolerated. Trailing separators in the
41
- * provided glob have no meaning and are discarded.
42
- * - Absolute globs will only match absolute paths, etc.
43
- * - Empty globs will match nothing.
44
- * - Any special glob syntax must be contained to one path segment. For example,
45
- * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
46
- * first segment ends with an unclosed group.
47
- * - If a path segment ends with unclosed groups or a dangling escape prefix, a
48
- * parse error has occurred. Every character for that segment is taken
49
- * literally in this event.
50
- *
51
- * Limitations:
52
- * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
53
- * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
54
- * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
55
- * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
56
- * the group occurs not nested at the end of the segment. */
57
- export declare function globToRegExp(glob: string, options?: GlobToRegExpOptions): RegExp;
@@ -1,73 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.globToRegExp = void 0;
6
- const glob_to_reg_exp_js_1 = require("../_common/glob_to_reg_exp.js");
7
- const constants = {
8
- sep: "(?:\\\\|/)+",
9
- sepMaybe: "(?:\\\\|/)*",
10
- seps: ["\\", "/"],
11
- globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*",
12
- wildcard: "[^\\\\/]*",
13
- escapePrefix: "`",
14
- };
15
- /** Convert a glob string to a regular expression.
16
- *
17
- * Tries to match bash glob expansion as closely as possible.
18
- *
19
- * Basic glob syntax:
20
- * - `*` - Matches everything without leaving the path segment.
21
- * - `?` - Matches any single character.
22
- * - `{foo,bar}` - Matches `foo` or `bar`.
23
- * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
24
- * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
25
- * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
26
- * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
27
- * - `[[:alnum:]]` - Matches any digit or letter.
28
- * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
29
- * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
30
- * for a complete list of supported character classes.
31
- * - `\` - Escapes the next character for an `os` other than `"windows"`.
32
- * - \` - Escapes the next character for `os` set to `"windows"`.
33
- * - `/` - Path separator.
34
- * - `\` - Additional path separator only for `os` set to `"windows"`.
35
- *
36
- * Extended syntax:
37
- * - Requires `{ extended: true }`.
38
- * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
39
- * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
40
- * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
41
- * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
42
- * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
43
- * - See https://www.linuxjournal.com/content/bash-extended-globbing.
44
- *
45
- * Globstar syntax:
46
- * - Requires `{ globstar: true }`.
47
- * - `**` - Matches any number of any path segments.
48
- * - Must comprise its entire path segment in the provided glob.
49
- * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
50
- *
51
- * Note the following properties:
52
- * - The generated `RegExp` is anchored at both start and end.
53
- * - Repeating and trailing separators are tolerated. Trailing separators in the
54
- * provided glob have no meaning and are discarded.
55
- * - Absolute globs will only match absolute paths, etc.
56
- * - Empty globs will match nothing.
57
- * - Any special glob syntax must be contained to one path segment. For example,
58
- * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
59
- * first segment ends with an unclosed group.
60
- * - If a path segment ends with unclosed groups or a dangling escape prefix, a
61
- * parse error has occurred. Every character for that segment is taken
62
- * literally in this event.
63
- *
64
- * Limitations:
65
- * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
66
- * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
67
- * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
68
- * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
69
- * the group occurs not nested at the end of the segment. */
70
- function globToRegExp(glob, options = {}) {
71
- return (0, glob_to_reg_exp_js_1._globToRegExp)(constants, glob, options);
72
- }
73
- exports.globToRegExp = globToRegExp;
@@ -1,5 +0,0 @@
1
- /**
2
- * Verifies whether provided path is absolute
3
- * @param path to be verified as absolute
4
- */
5
- export declare function isAbsolute(path: string): boolean;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.isAbsolute = void 0;
6
- const constants_js_1 = require("../_common/constants.js");
7
- const assert_path_js_1 = require("../_common/assert_path.js");
8
- const _util_js_1 = require("./_util.js");
9
- /**
10
- * Verifies whether provided path is absolute
11
- * @param path to be verified as absolute
12
- */
13
- function isAbsolute(path) {
14
- (0, assert_path_js_1.assertPath)(path);
15
- const len = path.length;
16
- if (len === 0)
17
- return false;
18
- const code = path.charCodeAt(0);
19
- if ((0, _util_js_1.isPathSeparator)(code)) {
20
- return true;
21
- }
22
- else if ((0, _util_js_1.isWindowsDeviceRoot)(code)) {
23
- // Possible device root
24
- if (len > 2 && path.charCodeAt(1) === constants_js_1.CHAR_COLON) {
25
- if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(2)))
26
- return true;
27
- }
28
- }
29
- return false;
30
- }
31
- exports.isAbsolute = isAbsolute;
@@ -1 +0,0 @@
1
- export { isGlob } from "../is_glob.js";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.isGlob = void 0;
6
- var is_glob_js_1 = require("../is_glob.js");
7
- Object.defineProperty(exports, "isGlob", { enumerable: true, get: function () { return is_glob_js_1.isGlob; } });
@@ -1,5 +0,0 @@
1
- /**
2
- * Join all given a sequence of `paths`,then normalizes the resulting path.
3
- * @param paths to be joined and normalized
4
- */
5
- export declare function join(...paths: string[]): string;
@@ -1,76 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.join = void 0;
6
- const assert_js_1 = require("../../assert/assert.js");
7
- const assert_path_js_1 = require("../_common/assert_path.js");
8
- const _util_js_1 = require("./_util.js");
9
- const normalize_js_1 = require("./normalize.js");
10
- /**
11
- * Join all given a sequence of `paths`,then normalizes the resulting path.
12
- * @param paths to be joined and normalized
13
- */
14
- function join(...paths) {
15
- if (paths.length === 0)
16
- return ".";
17
- let joined;
18
- let firstPart = null;
19
- for (let i = 0; i < paths.length; ++i) {
20
- const path = paths[i];
21
- (0, assert_path_js_1.assertPath)(path);
22
- if (path.length > 0) {
23
- if (joined === undefined)
24
- joined = firstPart = path;
25
- else
26
- joined += `\\${path}`;
27
- }
28
- }
29
- if (joined === undefined)
30
- return ".";
31
- // Make sure that the joined path doesn't start with two slashes, because
32
- // normalize() will mistake it for an UNC path then.
33
- //
34
- // This step is skipped when it is very clear that the user actually
35
- // intended to point at an UNC path. This is assumed when the first
36
- // non-empty string arguments starts with exactly two slashes followed by
37
- // at least one more non-slash character.
38
- //
39
- // Note that for normalize() to treat a path as an UNC path it needs to
40
- // have at least 2 components, so we don't filter for that here.
41
- // This means that the user can use join to construct UNC paths from
42
- // a server name and a share name; for example:
43
- // path.join('//server', 'share') -> '\\\\server\\share\\')
44
- let needsReplace = true;
45
- let slashCount = 0;
46
- (0, assert_js_1.assert)(firstPart !== null);
47
- if ((0, _util_js_1.isPathSeparator)(firstPart.charCodeAt(0))) {
48
- ++slashCount;
49
- const firstLen = firstPart.length;
50
- if (firstLen > 1) {
51
- if ((0, _util_js_1.isPathSeparator)(firstPart.charCodeAt(1))) {
52
- ++slashCount;
53
- if (firstLen > 2) {
54
- if ((0, _util_js_1.isPathSeparator)(firstPart.charCodeAt(2)))
55
- ++slashCount;
56
- else {
57
- // We matched a UNC path in the first part
58
- needsReplace = false;
59
- }
60
- }
61
- }
62
- }
63
- }
64
- if (needsReplace) {
65
- // Find any more consecutive slashes we need to replace
66
- for (; slashCount < joined.length; ++slashCount) {
67
- if (!(0, _util_js_1.isPathSeparator)(joined.charCodeAt(slashCount)))
68
- break;
69
- }
70
- // Replace the slashes if needed
71
- if (slashCount >= 2)
72
- joined = `\\${joined.slice(slashCount)}`;
73
- }
74
- return (0, normalize_js_1.normalize)(joined);
75
- }
76
- exports.join = join;
@@ -1,3 +0,0 @@
1
- import { GlobOptions } from "../_common/glob_to_reg_exp.js";
2
- /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
3
- export declare function joinGlobs(globs: string[], { extended, globstar }?: GlobOptions): string;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.joinGlobs = void 0;
6
- const join_js_1 = require("./join.js");
7
- const separator_js_1 = require("./separator.js");
8
- const normalize_glob_js_1 = require("./normalize_glob.js");
9
- /** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
10
- function joinGlobs(globs, { extended = true, globstar = false } = {}) {
11
- if (!globstar || globs.length === 0) {
12
- return (0, join_js_1.join)(...globs);
13
- }
14
- if (globs.length === 0)
15
- return ".";
16
- let joined;
17
- for (const glob of globs) {
18
- const path = glob;
19
- if (path.length > 0) {
20
- if (!joined)
21
- joined = path;
22
- else
23
- joined += `${separator_js_1.SEP}${path}`;
24
- }
25
- }
26
- if (!joined)
27
- return ".";
28
- return (0, normalize_glob_js_1.normalizeGlob)(joined, { extended, globstar });
29
- }
30
- exports.joinGlobs = joinGlobs;
@@ -1,40 +0,0 @@
1
- /**
2
- * Utilities for working with OS-specific file paths.
3
- *
4
- * Codes in the examples uses POSIX path but it automatically use Windows path
5
- * on Windows. Use methods under `posix` or `win32` object instead to handle non
6
- * platform specific path like:
7
- * ```ts
8
- * import { posix, win32 } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
9
- * const p1 = posix.fromFileUrl("file:///home/foo");
10
- * const p2 = win32.fromFileUrl("file:///home/foo");
11
- * console.log(p1); // "/home/foo"
12
- * console.log(p2); // "\\home\\foo"
13
- * ```
14
- *
15
- * This module is browser compatible.
16
- *
17
- * @module
18
- */
19
- export declare const sep = "\\";
20
- export declare const delimiter = ";";
21
- export * from "./basename.js";
22
- export * from "./dirname.js";
23
- export * from "./extname.js";
24
- export * from "./format.js";
25
- export * from "./from_file_url.js";
26
- export * from "./is_absolute.js";
27
- export * from "./join.js";
28
- export * from "./normalize.js";
29
- export * from "./parse.js";
30
- export * from "./relative.js";
31
- export * from "./resolve.js";
32
- export * from "./to_file_url.js";
33
- export * from "./to_namespaced_path.js";
34
- export * from "./common.js";
35
- export * from "./separator.js";
36
- export * from "../_interface.js";
37
- export * from "./glob_to_regexp.js";
38
- export * from "./is_glob.js";
39
- export * from "./join_globs.js";
40
- export * from "./normalize_glob.js";
@@ -1,61 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // Copyright the Browserify authors. MIT License.
4
- // Ported mostly from https://github.com/browserify/path-browserify/
5
- // This module is browser compatible.
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
- desc = { enumerable: true, get: function() { return m[k]; } };
11
- }
12
- Object.defineProperty(o, k2, desc);
13
- }) : (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- o[k2] = m[k];
16
- }));
17
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
- };
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.delimiter = exports.sep = void 0;
22
- /**
23
- * Utilities for working with OS-specific file paths.
24
- *
25
- * Codes in the examples uses POSIX path but it automatically use Windows path
26
- * on Windows. Use methods under `posix` or `win32` object instead to handle non
27
- * platform specific path like:
28
- * ```ts
29
- * import { posix, win32 } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
30
- * const p1 = posix.fromFileUrl("file:///home/foo");
31
- * const p2 = win32.fromFileUrl("file:///home/foo");
32
- * console.log(p1); // "/home/foo"
33
- * console.log(p2); // "\\home\\foo"
34
- * ```
35
- *
36
- * This module is browser compatible.
37
- *
38
- * @module
39
- */
40
- exports.sep = "\\";
41
- exports.delimiter = ";";
42
- __exportStar(require("./basename.js"), exports);
43
- __exportStar(require("./dirname.js"), exports);
44
- __exportStar(require("./extname.js"), exports);
45
- __exportStar(require("./format.js"), exports);
46
- __exportStar(require("./from_file_url.js"), exports);
47
- __exportStar(require("./is_absolute.js"), exports);
48
- __exportStar(require("./join.js"), exports);
49
- __exportStar(require("./normalize.js"), exports);
50
- __exportStar(require("./parse.js"), exports);
51
- __exportStar(require("./relative.js"), exports);
52
- __exportStar(require("./resolve.js"), exports);
53
- __exportStar(require("./to_file_url.js"), exports);
54
- __exportStar(require("./to_namespaced_path.js"), exports);
55
- __exportStar(require("./common.js"), exports);
56
- __exportStar(require("./separator.js"), exports);
57
- __exportStar(require("../_interface.js"), exports);
58
- __exportStar(require("./glob_to_regexp.js"), exports);
59
- __exportStar(require("./is_glob.js"), exports);
60
- __exportStar(require("./join_globs.js"), exports);
61
- __exportStar(require("./normalize_glob.js"), exports);
@@ -1,7 +0,0 @@
1
- /**
2
- * Normalize the `path`, resolving `'..'` and `'.'` segments.
3
- * Note that resolving these segments does not necessarily mean that all will be eliminated.
4
- * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
5
- * @param path to be normalized
6
- */
7
- export declare function normalize(path: string): string;