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,98 +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.relative = void 0;
6
- const _util_js_1 = require("./_util.js");
7
- const resolve_js_1 = require("./resolve.js");
8
- const relative_js_1 = require("../_common/relative.js");
9
- /**
10
- * Return the relative path from `from` to `to` based on current working directory.
11
- *
12
- * @param from path in current working directory
13
- * @param to path in current working directory
14
- */
15
- function relative(from, to) {
16
- (0, relative_js_1.assertArgs)(from, to);
17
- from = (0, resolve_js_1.resolve)(from);
18
- to = (0, resolve_js_1.resolve)(to);
19
- if (from === to)
20
- return "";
21
- // Trim any leading backslashes
22
- let fromStart = 1;
23
- const fromEnd = from.length;
24
- for (; fromStart < fromEnd; ++fromStart) {
25
- if (!(0, _util_js_1.isPosixPathSeparator)(from.charCodeAt(fromStart)))
26
- break;
27
- }
28
- const fromLen = fromEnd - fromStart;
29
- // Trim any leading backslashes
30
- let toStart = 1;
31
- const toEnd = to.length;
32
- for (; toStart < toEnd; ++toStart) {
33
- if (!(0, _util_js_1.isPosixPathSeparator)(to.charCodeAt(toStart)))
34
- break;
35
- }
36
- const toLen = toEnd - toStart;
37
- // Compare paths to find the longest common path from root
38
- const length = fromLen < toLen ? fromLen : toLen;
39
- let lastCommonSep = -1;
40
- let i = 0;
41
- for (; i <= length; ++i) {
42
- if (i === length) {
43
- if (toLen > length) {
44
- if ((0, _util_js_1.isPosixPathSeparator)(to.charCodeAt(toStart + i))) {
45
- // We get here if `from` is the exact base path for `to`.
46
- // For example: from='/foo/bar'; to='/foo/bar/baz'
47
- return to.slice(toStart + i + 1);
48
- }
49
- else if (i === 0) {
50
- // We get here if `from` is the root
51
- // For example: from='/'; to='/foo'
52
- return to.slice(toStart + i);
53
- }
54
- }
55
- else if (fromLen > length) {
56
- if ((0, _util_js_1.isPosixPathSeparator)(from.charCodeAt(fromStart + i))) {
57
- // We get here if `to` is the exact base path for `from`.
58
- // For example: from='/foo/bar/baz'; to='/foo/bar'
59
- lastCommonSep = i;
60
- }
61
- else if (i === 0) {
62
- // We get here if `to` is the root.
63
- // For example: from='/foo'; to='/'
64
- lastCommonSep = 0;
65
- }
66
- }
67
- break;
68
- }
69
- const fromCode = from.charCodeAt(fromStart + i);
70
- const toCode = to.charCodeAt(toStart + i);
71
- if (fromCode !== toCode)
72
- break;
73
- else if ((0, _util_js_1.isPosixPathSeparator)(fromCode))
74
- lastCommonSep = i;
75
- }
76
- let out = "";
77
- // Generate the relative path based on the path difference between `to`
78
- // and `from`
79
- for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
80
- if (i === fromEnd || (0, _util_js_1.isPosixPathSeparator)(from.charCodeAt(i))) {
81
- if (out.length === 0)
82
- out += "..";
83
- else
84
- out += "/..";
85
- }
86
- }
87
- // Lastly, append the rest of the destination (`to`) path that comes after
88
- // the common path parts
89
- if (out.length > 0)
90
- return out + to.slice(toStart + lastCommonSep);
91
- else {
92
- toStart += lastCommonSep;
93
- if ((0, _util_js_1.isPosixPathSeparator)(to.charCodeAt(toStart)))
94
- ++toStart;
95
- return to.slice(toStart);
96
- }
97
- }
98
- exports.relative = relative;
@@ -1,5 +0,0 @@
1
- /**
2
- * Resolves path segments into a `path`
3
- * @param pathSegments to process to path
4
- */
5
- export declare function resolve(...pathSegments: string[]): string;
@@ -1,75 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.resolve = void 0;
27
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
28
- // This module is browser compatible.
29
- const dntShim = __importStar(require("../../../../../_dnt.shims.js"));
30
- const normalize_string_js_1 = require("../_common/normalize_string.js");
31
- const assert_path_js_1 = require("../_common/assert_path.js");
32
- const _util_js_1 = require("./_util.js");
33
- /**
34
- * Resolves path segments into a `path`
35
- * @param pathSegments to process to path
36
- */
37
- function resolve(...pathSegments) {
38
- let resolvedPath = "";
39
- let resolvedAbsolute = false;
40
- for (let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
41
- let path;
42
- if (i >= 0)
43
- path = pathSegments[i];
44
- else {
45
- // deno-lint-ignore no-explicit-any
46
- const { Deno } = dntShim.dntGlobalThis;
47
- if (typeof Deno?.cwd !== "function") {
48
- throw new TypeError("Resolved a relative path without a CWD.");
49
- }
50
- path = Deno.cwd();
51
- }
52
- (0, assert_path_js_1.assertPath)(path);
53
- // Skip empty entries
54
- if (path.length === 0) {
55
- continue;
56
- }
57
- resolvedPath = `${path}/${resolvedPath}`;
58
- resolvedAbsolute = (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0));
59
- }
60
- // At this point the path should be resolved to a full absolute path, but
61
- // handle relative paths to be safe (might happen when Deno.cwd() fails)
62
- // Normalize the path
63
- resolvedPath = (0, normalize_string_js_1.normalizeString)(resolvedPath, !resolvedAbsolute, "/", _util_js_1.isPosixPathSeparator);
64
- if (resolvedAbsolute) {
65
- if (resolvedPath.length > 0)
66
- return `/${resolvedPath}`;
67
- else
68
- return "/";
69
- }
70
- else if (resolvedPath.length > 0)
71
- return resolvedPath;
72
- else
73
- return ".";
74
- }
75
- exports.resolve = resolve;
@@ -1,2 +0,0 @@
1
- export declare const SEP = "/";
2
- export declare const SEP_PATTERN: RegExp;
@@ -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.SEP_PATTERN = exports.SEP = void 0;
6
- exports.SEP = "/";
7
- exports.SEP_PATTERN = /\/+/;
@@ -1,12 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * Converts a path string to a file URL.
4
- *
5
- * ```ts
6
- * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
7
- *
8
- * toFileUrl("/home/foo"); // new URL("file:///home/foo")
9
- * ```
10
- * @param path to convert to file URL
11
- */
12
- export declare function toFileUrl(path: string): URL;
@@ -1,26 +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.toFileUrl = void 0;
6
- const to_file_url_js_1 = require("../_common/to_file_url.js");
7
- const is_absolute_js_1 = require("./is_absolute.js");
8
- /**
9
- * Converts a path string to a file URL.
10
- *
11
- * ```ts
12
- * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
13
- *
14
- * toFileUrl("/home/foo"); // new URL("file:///home/foo")
15
- * ```
16
- * @param path to convert to file URL
17
- */
18
- function toFileUrl(path) {
19
- if (!(0, is_absolute_js_1.isAbsolute)(path)) {
20
- throw new TypeError("Must be an absolute path.");
21
- }
22
- const url = new URL("file:///");
23
- url.pathname = (0, to_file_url_js_1.encodeWhitespace)(path.replace(/%/g, "%25").replace(/\\/g, "%5C"));
24
- return url;
25
- }
26
- exports.toFileUrl = toFileUrl;
@@ -1,5 +0,0 @@
1
- /**
2
- * Resolves path to a namespace path
3
- * @param path to resolve to namespace
4
- */
5
- export declare function toNamespacedPath(path: string): string;
@@ -1,14 +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.toNamespacedPath = void 0;
6
- /**
7
- * Resolves path to a namespace path
8
- * @param path to resolve to namespace
9
- */
10
- function toNamespacedPath(path) {
11
- // Non-op on posix systems
12
- return path;
13
- }
14
- exports.toNamespacedPath = toNamespacedPath;
@@ -1,12 +0,0 @@
1
- /**
2
- * Return the relative path from `from` to `to` based on current working directory.
3
- *
4
- * An example in windws, for instance:
5
- * from = 'C:\\orandea\\test\\aaa'
6
- * to = 'C:\\orandea\\impl\\bbb'
7
- * The output of the function should be: '..\\..\\impl\\bbb'
8
- *
9
- * @param from path in current working directory
10
- * @param to path in current working directory
11
- */
12
- export declare function relative(from: string, to: string): string;
@@ -1,23 +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.relative = void 0;
6
- const _os_js_1 = require("./_os.js");
7
- const relative_js_1 = require("./posix/relative.js");
8
- const relative_js_2 = require("./windows/relative.js");
9
- /**
10
- * Return the relative path from `from` to `to` based on current working directory.
11
- *
12
- * An example in windws, for instance:
13
- * from = 'C:\\orandea\\test\\aaa'
14
- * to = 'C:\\orandea\\impl\\bbb'
15
- * The output of the function should be: '..\\..\\impl\\bbb'
16
- *
17
- * @param from path in current working directory
18
- * @param to path in current working directory
19
- */
20
- function relative(from, to) {
21
- return _os_js_1.isWindows ? (0, relative_js_2.relative)(from, to) : (0, relative_js_1.relative)(from, to);
22
- }
23
- exports.relative = relative;
@@ -1,5 +0,0 @@
1
- /**
2
- * Resolves path segments into a `path`
3
- * @param pathSegments to process to path
4
- */
5
- export declare function resolve(...pathSegments: string[]): string;
@@ -1,18 +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.resolve = void 0;
6
- const _os_js_1 = require("./_os.js");
7
- const resolve_js_1 = require("./posix/resolve.js");
8
- const resolve_js_2 = require("./windows/resolve.js");
9
- /**
10
- * Resolves path segments into a `path`
11
- * @param pathSegments to process to path
12
- */
13
- function resolve(...pathSegments) {
14
- return _os_js_1.isWindows
15
- ? (0, resolve_js_2.resolve)(...pathSegments)
16
- : (0, resolve_js_1.resolve)(...pathSegments);
17
- }
18
- exports.resolve = resolve;
@@ -1,2 +0,0 @@
1
- export declare const SEP: "/" | "\\";
2
- export declare const SEP_PATTERN: RegExp;
@@ -1,8 +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.SEP_PATTERN = exports.SEP = void 0;
6
- const _os_js_1 = require("./_os.js");
7
- exports.SEP = _os_js_1.isWindows ? "\\" : "/";
8
- exports.SEP_PATTERN = _os_js_1.isWindows ? /[\\/]+/ : /\/+/;
@@ -1,18 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * Converts a path string to a file URL.
4
- *
5
- * ```ts
6
- * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/to_file_url.ts";
7
- *
8
- * // posix
9
- * toFileUrl("/home/foo"); // new URL("file:///home/foo")
10
- *
11
- * // win32
12
- * toFileUrl("\\home\\foo"); // new URL("file:///home/foo")
13
- * toFileUrl("C:\\Users\\foo"); // new URL("file:///C:/Users/foo")
14
- * toFileUrl("\\\\127.0.0.1\\home\\foo"); // new URL("file://127.0.0.1/home/foo")
15
- * ```
16
- * @param path to convert to file URL
17
- */
18
- export declare function toFileUrl(path: string): URL;
@@ -1,28 +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.toFileUrl = void 0;
6
- const _os_js_1 = require("./_os.js");
7
- const to_file_url_js_1 = require("./posix/to_file_url.js");
8
- const to_file_url_js_2 = require("./windows/to_file_url.js");
9
- /**
10
- * Converts a path string to a file URL.
11
- *
12
- * ```ts
13
- * import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/to_file_url.ts";
14
- *
15
- * // posix
16
- * toFileUrl("/home/foo"); // new URL("file:///home/foo")
17
- *
18
- * // win32
19
- * toFileUrl("\\home\\foo"); // new URL("file:///home/foo")
20
- * toFileUrl("C:\\Users\\foo"); // new URL("file:///C:/Users/foo")
21
- * toFileUrl("\\\\127.0.0.1\\home\\foo"); // new URL("file://127.0.0.1/home/foo")
22
- * ```
23
- * @param path to convert to file URL
24
- */
25
- function toFileUrl(path) {
26
- return _os_js_1.isWindows ? (0, to_file_url_js_2.toFileUrl)(path) : (0, to_file_url_js_1.toFileUrl)(path);
27
- }
28
- exports.toFileUrl = toFileUrl;
@@ -1,5 +0,0 @@
1
- /**
2
- * Resolves path to a namespace path
3
- * @param path to resolve to namespace
4
- */
5
- export declare function toNamespacedPath(path: string): string;
@@ -1,18 +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.toNamespacedPath = void 0;
6
- const _os_js_1 = require("./_os.js");
7
- const to_namespaced_path_js_1 = require("./posix/to_namespaced_path.js");
8
- const to_namespaced_path_js_2 = require("./windows/to_namespaced_path.js");
9
- /**
10
- * Resolves path to a namespace path
11
- * @param path to resolve to namespace
12
- */
13
- function toNamespacedPath(path) {
14
- return _os_js_1.isWindows
15
- ? (0, to_namespaced_path_js_2.toNamespacedPath)(path)
16
- : (0, to_namespaced_path_js_1.toNamespacedPath)(path);
17
- }
18
- exports.toNamespacedPath = toNamespacedPath;
@@ -1,3 +0,0 @@
1
- export declare function isPosixPathSeparator(code: number): boolean;
2
- export declare function isPathSeparator(code: number): boolean;
3
- export declare function isWindowsDeviceRoot(code: number): boolean;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // Copyright the Browserify authors. MIT License.
4
- // Ported from https://github.com/browserify/path-browserify/
5
- // This module is browser compatible.
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.isWindowsDeviceRoot = exports.isPathSeparator = exports.isPosixPathSeparator = void 0;
8
- const constants_js_1 = require("../_common/constants.js");
9
- function isPosixPathSeparator(code) {
10
- return code === constants_js_1.CHAR_FORWARD_SLASH;
11
- }
12
- exports.isPosixPathSeparator = isPosixPathSeparator;
13
- function isPathSeparator(code) {
14
- return code === constants_js_1.CHAR_FORWARD_SLASH || code === constants_js_1.CHAR_BACKWARD_SLASH;
15
- }
16
- exports.isPathSeparator = isPathSeparator;
17
- function isWindowsDeviceRoot(code) {
18
- return ((code >= constants_js_1.CHAR_LOWERCASE_A && code <= constants_js_1.CHAR_LOWERCASE_Z) ||
19
- (code >= constants_js_1.CHAR_UPPERCASE_A && code <= constants_js_1.CHAR_UPPERCASE_Z));
20
- }
21
- exports.isWindowsDeviceRoot = isWindowsDeviceRoot;
@@ -1,8 +0,0 @@
1
- /**
2
- * Return the last portion of a `path`.
3
- * Trailing directory separators are ignored, and optional suffix is removed.
4
- *
5
- * @param path - path to extract the name from.
6
- * @param [suffix] - suffix to remove from extracted name.
7
- */
8
- export declare function basename(path: string, suffix?: string): string;
@@ -1,34 +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.basename = void 0;
6
- const basename_js_1 = require("../_common/basename.js");
7
- const constants_js_1 = require("../_common/constants.js");
8
- const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
9
- const _util_js_1 = require("./_util.js");
10
- /**
11
- * Return the last portion of a `path`.
12
- * Trailing directory separators are ignored, and optional suffix is removed.
13
- *
14
- * @param path - path to extract the name from.
15
- * @param [suffix] - suffix to remove from extracted name.
16
- */
17
- function basename(path, suffix = "") {
18
- (0, basename_js_1.assertArgs)(path, suffix);
19
- // Check for a drive letter prefix so as not to mistake the following
20
- // path separator as an extra separator at the end of the path that can be
21
- // disregarded
22
- let start = 0;
23
- if (path.length >= 2) {
24
- const drive = path.charCodeAt(0);
25
- if ((0, _util_js_1.isWindowsDeviceRoot)(drive)) {
26
- if (path.charCodeAt(1) === constants_js_1.CHAR_COLON)
27
- start = 2;
28
- }
29
- }
30
- const lastSegment = (0, basename_js_1.lastPathSegment)(path, _util_js_1.isPathSeparator, start);
31
- const strippedSegment = (0, strip_trailing_separators_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPathSeparator);
32
- return suffix ? (0, basename_js_1.stripSuffix)(strippedSegment, suffix) : strippedSegment;
33
- }
34
- exports.basename = basename;
@@ -1,13 +0,0 @@
1
- /** Determines the common path from a set of paths, using an optional separator,
2
- * which defaults to the OS default separator.
3
- *
4
- * ```ts
5
- * import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
6
- * const p = common([
7
- * "./deno/std/path/mod.ts",
8
- * "./deno/std/fs/mod.ts",
9
- * ]);
10
- * console.log(p); // "./deno/std/"
11
- * ```
12
- */
13
- export declare function common(paths: string[], sep?: string): string;
@@ -1,23 +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.common = void 0;
6
- const common_js_1 = require("../_common/common.js");
7
- const separator_js_1 = require("./separator.js");
8
- /** Determines the common path from a set of paths, using an optional separator,
9
- * which defaults to the OS default separator.
10
- *
11
- * ```ts
12
- * import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
13
- * const p = common([
14
- * "./deno/std/path/mod.ts",
15
- * "./deno/std/fs/mod.ts",
16
- * ]);
17
- * console.log(p); // "./deno/std/"
18
- * ```
19
- */
20
- function common(paths, sep = separator_js_1.SEP) {
21
- return (0, common_js_1._common)(paths, sep);
22
- }
23
- exports.common = common;
@@ -1,5 +0,0 @@
1
- /**
2
- * Return the directory path of a `path`.
3
- * @param path - path to extract the directory from.
4
- */
5
- export declare function dirname(path: string): string;
@@ -1,102 +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.dirname = void 0;
6
- const dirname_js_1 = require("../_common/dirname.js");
7
- const constants_js_1 = require("../_common/constants.js");
8
- const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
9
- const _util_js_1 = require("./_util.js");
10
- /**
11
- * Return the directory path of a `path`.
12
- * @param path - path to extract the directory from.
13
- */
14
- function dirname(path) {
15
- (0, dirname_js_1.assertArg)(path);
16
- const len = path.length;
17
- let rootEnd = -1;
18
- let end = -1;
19
- let matchedSlash = true;
20
- let offset = 0;
21
- const code = path.charCodeAt(0);
22
- // Try to match a root
23
- if (len > 1) {
24
- if ((0, _util_js_1.isPathSeparator)(code)) {
25
- // Possible UNC root
26
- rootEnd = offset = 1;
27
- if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(1))) {
28
- // Matched double path separator at beginning
29
- let j = 2;
30
- let last = j;
31
- // Match 1 or more non-path separators
32
- for (; j < len; ++j) {
33
- if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
34
- break;
35
- }
36
- if (j < len && j !== last) {
37
- // Matched!
38
- last = j;
39
- // Match 1 or more path separators
40
- for (; j < len; ++j) {
41
- if (!(0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
42
- break;
43
- }
44
- if (j < len && j !== last) {
45
- // Matched!
46
- last = j;
47
- // Match 1 or more non-path separators
48
- for (; j < len; ++j) {
49
- if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
50
- break;
51
- }
52
- if (j === len) {
53
- // We matched a UNC root only
54
- return path;
55
- }
56
- if (j !== last) {
57
- // We matched a UNC root with leftovers
58
- // Offset by 1 to include the separator after the UNC root to
59
- // treat it as a "normal root" on top of a (UNC) root
60
- rootEnd = offset = j + 1;
61
- }
62
- }
63
- }
64
- }
65
- }
66
- else if ((0, _util_js_1.isWindowsDeviceRoot)(code)) {
67
- // Possible device root
68
- if (path.charCodeAt(1) === constants_js_1.CHAR_COLON) {
69
- rootEnd = offset = 2;
70
- if (len > 2) {
71
- if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(2)))
72
- rootEnd = offset = 3;
73
- }
74
- }
75
- }
76
- }
77
- else if ((0, _util_js_1.isPathSeparator)(code)) {
78
- // `path` contains just a path separator, exit early to avoid
79
- // unnecessary work
80
- return path;
81
- }
82
- for (let i = len - 1; i >= offset; --i) {
83
- if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(i))) {
84
- if (!matchedSlash) {
85
- end = i;
86
- break;
87
- }
88
- }
89
- else {
90
- // We saw the first non-path separator
91
- matchedSlash = false;
92
- }
93
- }
94
- if (end === -1) {
95
- if (rootEnd === -1)
96
- return ".";
97
- else
98
- end = rootEnd;
99
- }
100
- return (0, strip_trailing_separators_js_1.stripTrailingSeparators)(path.slice(0, end), _util_js_1.isPosixPathSeparator);
101
- }
102
- exports.dirname = dirname;
@@ -1,6 +0,0 @@
1
- /**
2
- * Return the extension of the `path` with leading period.
3
- * @param path with extension
4
- * @returns extension (ex. for `file.ts` returns `.ts`)
5
- */
6
- export declare function extname(path: string): string;