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,28 +0,0 @@
1
- import * as _windows from "./windows/mod.js";
2
- import * as _posix from "./posix/mod.js";
3
- /** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/path/windows/mod.ts} instead. */
4
- export declare const win32: typeof _windows;
5
- /** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/posix/mod.ts} instead. */
6
- export declare const posix: typeof _posix;
7
- export declare const sep: "/" | "\\";
8
- export declare const delimiter: ":" | ";";
9
- export * from "./basename.js";
10
- export * from "./dirname.js";
11
- export * from "./extname.js";
12
- export * from "./format.js";
13
- export * from "./from_file_url.js";
14
- export * from "./is_absolute.js";
15
- export * from "./join.js";
16
- export * from "./normalize.js";
17
- export * from "./parse.js";
18
- export * from "./relative.js";
19
- export * from "./resolve.js";
20
- export * from "./to_file_url.js";
21
- export * from "./to_namespaced_path.js";
22
- export * from "./common.js";
23
- export * from "./separator.js";
24
- export * from "./_interface.js";
25
- export * from "./glob_to_regexp.js";
26
- export * from "./is_glob.js";
27
- export * from "./join_globs.js";
28
- export * from "./normalize_glob.js";
@@ -1,3 +0,0 @@
1
- import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
- /** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
3
- export declare function normalizeGlob(glob: string, options?: GlobOptions): string;
@@ -1,12 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * Converts a file URL to a path string.
4
- *
5
- * ```ts
6
- * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
7
- *
8
- * fromFileUrl("file:///home/foo"); // "/home/foo"
9
- * ```
10
- * @param url of a file URL
11
- */
12
- export declare function fromFileUrl(url: URL | string): string;
@@ -1,3 +0,0 @@
1
- import { GlobOptions } from "../_common/glob_to_reg_exp.js";
2
- /** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
3
- export declare function normalizeGlob(glob: string, { globstar }?: GlobOptions): string;
@@ -1,2 +0,0 @@
1
- export declare const SEP = "/";
2
- export declare const SEP_PATTERN: RegExp;
@@ -1,4 +0,0 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- export const SEP = "/";
4
- export const SEP_PATTERN = /\/+/;
@@ -1,2 +0,0 @@
1
- export declare const SEP: "/" | "\\";
2
- export declare const SEP_PATTERN: RegExp;
@@ -1,5 +0,0 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- export const SEP = isWindows ? "\\" : "/";
5
- export const SEP_PATTERN = isWindows ? /[\\/]+/ : /\/+/;
@@ -1,14 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * Converts a file URL to a path string.
4
- *
5
- * ```ts
6
- * import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/win32.ts";
7
- *
8
- * fromFileUrl("file:///home/foo"); // "\\home\\foo"
9
- * fromFileUrl("file:///C:/Users/foo"); // "C:\\Users\\foo"
10
- * fromFileUrl("file://localhost/home/foo"); // "\\\\localhost\\home\\foo"
11
- * ```
12
- * @param url of a file URL
13
- */
14
- export declare function fromFileUrl(url: URL | string): string;
@@ -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,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,3 +0,0 @@
1
- import { GlobOptions } from "../_common/glob_to_reg_exp.js";
2
- /** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
3
- export declare function normalizeGlob(glob: string, { globstar }?: GlobOptions): string;
@@ -1,2 +0,0 @@
1
- export declare const SEP = "\\";
2
- export declare const SEP_PATTERN: RegExp;
@@ -1,4 +0,0 @@
1
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- export const SEP = "\\";
4
- export const SEP_PATTERN = /[\\/]+/;
@@ -1,14 +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/win32.ts";
7
- *
8
- * toFileUrl("\\home\\foo"); // new URL("file:///home/foo")
9
- * toFileUrl("C:\\Users\\foo"); // new URL("file:///C:/Users/foo")
10
- * toFileUrl("\\\\127.0.0.1\\home\\foo"); // new URL("file://127.0.0.1/home/foo")
11
- * ```
12
- * @param path to convert to file URL
13
- */
14
- export declare function toFileUrl(path: string): URL;
@@ -1,5 +0,0 @@
1
- import { Deno } from "@deno/shim-deno";
2
- export { Deno } from "@deno/shim-deno";
3
- export declare const dntGlobalThis: Omit<typeof globalThis, "Deno"> & {
4
- Deno: typeof Deno;
5
- };
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dntGlobalThis = exports.Deno = void 0;
4
- const shim_deno_1 = require("@deno/shim-deno");
5
- var shim_deno_2 = require("@deno/shim-deno");
6
- Object.defineProperty(exports, "Deno", { enumerable: true, get: function () { return shim_deno_2.Deno; } });
7
- const dntGlobals = {
8
- Deno: shim_deno_1.Deno,
9
- };
10
- exports.dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
11
- function createMergeProxy(baseObj, extObj) {
12
- return new Proxy(baseObj, {
13
- get(_target, prop, _receiver) {
14
- if (prop in extObj) {
15
- return extObj[prop];
16
- }
17
- else {
18
- return baseObj[prop];
19
- }
20
- },
21
- set(_target, prop, value) {
22
- if (prop in extObj) {
23
- delete extObj[prop];
24
- }
25
- baseObj[prop] = value;
26
- return true;
27
- },
28
- deleteProperty(_target, prop) {
29
- let success = false;
30
- if (prop in extObj) {
31
- delete extObj[prop];
32
- success = true;
33
- }
34
- if (prop in baseObj) {
35
- delete baseObj[prop];
36
- success = true;
37
- }
38
- return success;
39
- },
40
- ownKeys(_target) {
41
- const baseKeys = Reflect.ownKeys(baseObj);
42
- const extKeys = Reflect.ownKeys(extObj);
43
- const extKeysSet = new Set(extKeys);
44
- return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
45
- },
46
- defineProperty(_target, prop, desc) {
47
- if (prop in extObj) {
48
- delete extObj[prop];
49
- }
50
- Reflect.defineProperty(baseObj, prop, desc);
51
- return true;
52
- },
53
- getOwnPropertyDescriptor(_target, prop) {
54
- if (prop in extObj) {
55
- return Reflect.getOwnPropertyDescriptor(extObj, prop);
56
- }
57
- else {
58
- return Reflect.getOwnPropertyDescriptor(baseObj, prop);
59
- }
60
- },
61
- has(_target, prop) {
62
- return prop in extObj || prop in baseObj;
63
- },
64
- });
65
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * Make an assertion, error will be thrown if `expr` does not have truthy value.
3
- *
4
- * @example
5
- * ```ts
6
- * import { assert } from "https://deno.land/std@$STD_VERSION/assert/assert.ts";
7
- *
8
- * assert("hello".includes("ello")); // Doesn't throw
9
- * assert("hello".includes("world")); // Throws
10
- * ```
11
- */
12
- export declare function assert(expr: unknown, msg?: string): asserts expr;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assert = void 0;
4
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
5
- const assertion_error_js_1 = require("./assertion_error.js");
6
- /**
7
- * Make an assertion, error will be thrown if `expr` does not have truthy value.
8
- *
9
- * @example
10
- * ```ts
11
- * import { assert } from "https://deno.land/std@$STD_VERSION/assert/assert.ts";
12
- *
13
- * assert("hello".includes("ello")); // Doesn't throw
14
- * assert("hello".includes("world")); // Throws
15
- * ```
16
- */
17
- function assert(expr, msg = "") {
18
- if (!expr) {
19
- throw new assertion_error_js_1.AssertionError(msg);
20
- }
21
- }
22
- exports.assert = assert;
@@ -1,14 +0,0 @@
1
- /**
2
- * Error thrown when an assertion fails.
3
- *
4
- * @example
5
- * ```ts
6
- * import { AssertionError } from "https://deno.land/std@$STD_VERSION/assert/assertion_error.ts";
7
- *
8
- * throw new AssertionError("Assertion failed");
9
- * ```
10
- */
11
- export declare class AssertionError extends Error {
12
- /** Constructs a new instance. */
13
- constructor(message: string);
14
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AssertionError = void 0;
5
- /**
6
- * Error thrown when an assertion fails.
7
- *
8
- * @example
9
- * ```ts
10
- * import { AssertionError } from "https://deno.land/std@$STD_VERSION/assert/assertion_error.ts";
11
- *
12
- * throw new AssertionError("Assertion failed");
13
- * ```
14
- */
15
- class AssertionError extends Error {
16
- /** Constructs a new instance. */
17
- constructor(message) {
18
- super(message);
19
- this.name = "AssertionError";
20
- }
21
- }
22
- exports.AssertionError = AssertionError;
@@ -1,38 +0,0 @@
1
- export type EntityList = Record<string, string>;
2
- /**
3
- * Escapes text for safe interpolation into HTML text content and quoted attributes
4
- *
5
- * @example
6
- * ```ts
7
- * import { escape } from "https://deno.land/std@$STD_VERSION/html/entities.ts";
8
- * import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
9
- *
10
- * assertEquals(escape("<>'&AA"), "&lt;&gt;&#39;&amp;AA");
11
- *
12
- * // characters that don't need to be escaped will be left alone,
13
- * // even if named HTML entities exist for them
14
- * assertEquals(escape("þð"), "þð");
15
- * ```
16
- */
17
- export declare function escape(str: string): string;
18
- export type UnescapeOptions = {
19
- entityList: EntityList;
20
- };
21
- /**
22
- * Unescapes HTML entities in text
23
- *
24
- * @example
25
- * ```ts
26
- * import { unescape } from "https://deno.land/std@$STD_VERSION/html/entities.ts";
27
- * import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
28
- *
29
- * // default options (only handles &<>'" and numeric entities)
30
- * assertEquals(unescape("&lt;&gt;&apos;&amp;&#65;&#x41;"), "<>'&AA");
31
- * assertEquals(unescape("&thorn;&eth;"), "&thorn;&eth;");
32
- *
33
- * // using the full named entity list from the HTML spec (~47K unminified)
34
- * import entityList from "https://deno.land/std@$STD_VERSION/html/named_entity_list.json" assert { type: "json" };
35
- * assertEquals(unescape("&thorn;&eth;", { entityList }), "þð");
36
- * ```
37
- */
38
- export declare function unescape(str: string, options?: Partial<UnescapeOptions>): string;
@@ -1,81 +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.unescape = exports.escape = void 0;
6
- const rawToEntityEntries = [
7
- ["&", "&amp;"],
8
- ["<", "&lt;"],
9
- [">", "&gt;"],
10
- ['"', "&quot;"],
11
- ["'", "&#39;"],
12
- ];
13
- const defaultEntityList = Object.fromEntries([
14
- ...rawToEntityEntries.map(([raw, entity]) => [entity, raw]),
15
- ["&apos;", "'"],
16
- ["&nbsp;", "\xa0"],
17
- ]);
18
- const rawToEntity = new Map(rawToEntityEntries);
19
- const rawRe = new RegExp(`[${[...rawToEntity.keys()].join("")}]`, "g");
20
- /**
21
- * Escapes text for safe interpolation into HTML text content and quoted attributes
22
- *
23
- * @example
24
- * ```ts
25
- * import { escape } from "https://deno.land/std@$STD_VERSION/html/entities.ts";
26
- * import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
27
- *
28
- * assertEquals(escape("<>'&AA"), "&lt;&gt;&#39;&amp;AA");
29
- *
30
- * // characters that don't need to be escaped will be left alone,
31
- * // even if named HTML entities exist for them
32
- * assertEquals(escape("þð"), "þð");
33
- * ```
34
- */
35
- function escape(str) {
36
- return str.replaceAll(rawRe, (m) => rawToEntity.get(m));
37
- }
38
- exports.escape = escape;
39
- const defaultUnescapeOptions = {
40
- entityList: defaultEntityList,
41
- };
42
- const MAX_CODE_POINT = 0x10ffff;
43
- const RX_DEC_ENTITY = /&#([0-9]+);/g;
44
- const RX_HEX_ENTITY = /&#x(\p{AHex}+);/gu;
45
- const entityListRegexCache = new WeakMap();
46
- /**
47
- * Unescapes HTML entities in text
48
- *
49
- * @example
50
- * ```ts
51
- * import { unescape } from "https://deno.land/std@$STD_VERSION/html/entities.ts";
52
- * import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
53
- *
54
- * // default options (only handles &<>'" and numeric entities)
55
- * assertEquals(unescape("&lt;&gt;&apos;&amp;&#65;&#x41;"), "<>'&AA");
56
- * assertEquals(unescape("&thorn;&eth;"), "&thorn;&eth;");
57
- *
58
- * // using the full named entity list from the HTML spec (~47K unminified)
59
- * import entityList from "https://deno.land/std@$STD_VERSION/html/named_entity_list.json" assert { type: "json" };
60
- * assertEquals(unescape("&thorn;&eth;", { entityList }), "þð");
61
- * ```
62
- */
63
- function unescape(str, options = {}) {
64
- const { entityList } = { ...defaultUnescapeOptions, ...options };
65
- let entityRe = entityListRegexCache.get(entityList);
66
- if (!entityRe) {
67
- entityRe = new RegExp(`(${Object.keys(entityList)
68
- .sort((a, b) => b.length - a.length)
69
- .join("|")})`, "g");
70
- entityListRegexCache.set(entityList, entityRe);
71
- }
72
- return str
73
- .replaceAll(entityRe, (m) => entityList[m])
74
- .replaceAll(RX_DEC_ENTITY, (_, dec) => codePointStrToChar(dec, 10))
75
- .replaceAll(RX_HEX_ENTITY, (_, hex) => codePointStrToChar(hex, 16));
76
- }
77
- exports.unescape = unescape;
78
- function codePointStrToChar(codePointStr, radix) {
79
- const codePoint = parseInt(codePointStr, radix);
80
- return codePoint > MAX_CODE_POINT ? "�" : String.fromCodePoint(codePoint);
81
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Functions for HTML tasks such as escaping or unescaping HTML entities
3
- *
4
- * @module
5
- */
6
- export * from "./entities.js";
@@ -1,24 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
- // This module is browser compatible.
4
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
- if (k2 === undefined) k2 = k;
6
- var desc = Object.getOwnPropertyDescriptor(m, k);
7
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
- desc = { enumerable: true, get: function() { return m[k]; } };
9
- }
10
- Object.defineProperty(o, k2, desc);
11
- }) : (function(o, m, k, k2) {
12
- if (k2 === undefined) k2 = k;
13
- o[k2] = m[k];
14
- }));
15
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- /**
20
- * Functions for HTML tasks such as escaping or unescaping HTML entities
21
- *
22
- * @module
23
- */
24
- __exportStar(require("./entities.js"), exports);
@@ -1 +0,0 @@
1
- export declare function assertPath(path: string): void;
@@ -1,11 +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
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.assertPath = void 0;
6
- function assertPath(path) {
7
- if (typeof path !== "string") {
8
- throw new TypeError(`Path must be a string. Received ${JSON.stringify(path)}`);
9
- }
10
- }
11
- exports.assertPath = assertPath;
@@ -1,3 +0,0 @@
1
- export declare function stripSuffix(name: string, suffix: string): string;
2
- export declare function lastPathSegment(path: string, isSep: (char: number) => boolean, start?: number): string;
3
- export declare function assertArgs(path: string, suffix: string): string | undefined;
@@ -1,46 +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.assertArgs = exports.lastPathSegment = exports.stripSuffix = void 0;
6
- const assert_path_js_1 = require("./assert_path.js");
7
- function stripSuffix(name, suffix) {
8
- if (suffix.length >= name.length) {
9
- return name;
10
- }
11
- const lenDiff = name.length - suffix.length;
12
- for (let i = suffix.length - 1; i >= 0; --i) {
13
- if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
14
- return name;
15
- }
16
- }
17
- return name.slice(0, -suffix.length);
18
- }
19
- exports.stripSuffix = stripSuffix;
20
- function lastPathSegment(path, isSep, start = 0) {
21
- let matchedNonSeparator = false;
22
- let end = path.length;
23
- for (let i = path.length - 1; i >= start; --i) {
24
- if (isSep(path.charCodeAt(i))) {
25
- if (matchedNonSeparator) {
26
- start = i + 1;
27
- break;
28
- }
29
- }
30
- else if (!matchedNonSeparator) {
31
- matchedNonSeparator = true;
32
- end = i + 1;
33
- }
34
- }
35
- return path.slice(start, end);
36
- }
37
- exports.lastPathSegment = lastPathSegment;
38
- function assertArgs(path, suffix) {
39
- (0, assert_path_js_1.assertPath)(path);
40
- if (path.length === 0)
41
- return path;
42
- if (typeof suffix !== "string") {
43
- throw new TypeError(`Suffix must be a string. Received ${JSON.stringify(suffix)}`);
44
- }
45
- }
46
- exports.assertArgs = assertArgs;
@@ -1 +0,0 @@
1
- export declare function _common(paths: string[], sep: string): string;
@@ -1,27 +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
- function _common(paths, sep) {
7
- const [first = "", ...remaining] = paths;
8
- if (first === "" || remaining.length === 0) {
9
- return first.substring(0, first.lastIndexOf(sep) + 1);
10
- }
11
- const parts = first.split(sep);
12
- let endOfPrefix = parts.length;
13
- for (const path of remaining) {
14
- const compare = path.split(sep);
15
- for (let i = 0; i < endOfPrefix; i++) {
16
- if (compare[i] !== parts[i]) {
17
- endOfPrefix = i;
18
- }
19
- }
20
- if (endOfPrefix === 0) {
21
- return "";
22
- }
23
- }
24
- const prefix = parts.slice(0, endOfPrefix).join(sep);
25
- return prefix.endsWith(sep) ? prefix : `${prefix}${sep}`;
26
- }
27
- exports._common = _common;