structured-outputs 0.1.0-beta.7 → 0.1.0-beta.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (709) hide show
  1. package/esm/_dnt.polyfills.js +124 -0
  2. package/esm/_dnt.polyfills.js.map +1 -0
  3. package/esm/_dnt.shims.js +62 -0
  4. package/esm/_dnt.shims.js.map +1 -0
  5. package/esm/deps/jsr.io/@std/assert/1.0.7/almost_equals.js +47 -0
  6. package/esm/deps/jsr.io/@std/assert/1.0.7/almost_equals.js.map +1 -0
  7. package/esm/deps/jsr.io/@std/assert/1.0.7/array_includes.js +47 -0
  8. package/esm/deps/jsr.io/@std/assert/1.0.7/array_includes.js.map +1 -0
  9. package/esm/deps/jsr.io/@std/assert/1.0.7/assert.js +23 -0
  10. package/esm/deps/jsr.io/@std/assert/1.0.7/assert.js.map +1 -0
  11. package/esm/deps/jsr.io/@std/assert/1.0.7/assertion_error.js +31 -0
  12. package/esm/deps/jsr.io/@std/assert/1.0.7/assertion_error.js.map +1 -0
  13. package/esm/deps/jsr.io/@std/assert/1.0.7/equal.js +137 -0
  14. package/esm/deps/jsr.io/@std/assert/1.0.7/equal.js.map +1 -0
  15. package/esm/deps/jsr.io/@std/assert/1.0.7/equals.js +46 -0
  16. package/esm/deps/jsr.io/@std/assert/1.0.7/equals.js.map +1 -0
  17. package/esm/deps/jsr.io/@std/assert/1.0.7/exists.js +28 -0
  18. package/esm/deps/jsr.io/@std/assert/1.0.7/exists.js.map +1 -0
  19. package/esm/deps/jsr.io/@std/assert/1.0.7/fail.js +21 -0
  20. package/esm/deps/jsr.io/@std/assert/1.0.7/fail.js.map +1 -0
  21. package/esm/deps/jsr.io/@std/assert/1.0.7/false.js +23 -0
  22. package/esm/deps/jsr.io/@std/assert/1.0.7/false.js.map +1 -0
  23. package/esm/deps/jsr.io/@std/assert/1.0.7/greater.js +30 -0
  24. package/esm/deps/jsr.io/@std/assert/1.0.7/greater.js.map +1 -0
  25. package/esm/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.js +30 -0
  26. package/esm/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.js.map +1 -0
  27. package/esm/deps/jsr.io/@std/assert/1.0.7/instance_of.js +53 -0
  28. package/esm/deps/jsr.io/@std/assert/1.0.7/instance_of.js.map +1 -0
  29. package/esm/deps/jsr.io/@std/assert/1.0.7/is_error.js +54 -0
  30. package/esm/deps/jsr.io/@std/assert/1.0.7/is_error.js.map +1 -0
  31. package/esm/deps/jsr.io/@std/assert/1.0.7/less.js +29 -0
  32. package/esm/deps/jsr.io/@std/assert/1.0.7/less.js.map +1 -0
  33. package/esm/deps/jsr.io/@std/assert/1.0.7/less_or_equal.js +30 -0
  34. package/esm/deps/jsr.io/@std/assert/1.0.7/less_or_equal.js.map +1 -0
  35. package/esm/deps/jsr.io/@std/assert/1.0.7/match.js +27 -0
  36. package/esm/deps/jsr.io/@std/assert/1.0.7/match.js.map +1 -0
  37. package/esm/deps/jsr.io/@std/assert/1.0.7/mod.js +46 -0
  38. package/esm/deps/jsr.io/@std/assert/1.0.7/mod.js.map +1 -0
  39. package/esm/deps/jsr.io/@std/assert/1.0.7/not_equals.js +33 -0
  40. package/esm/deps/jsr.io/@std/assert/1.0.7/not_equals.js.map +1 -0
  41. package/esm/deps/jsr.io/@std/assert/1.0.7/not_instance_of.js +30 -0
  42. package/esm/deps/jsr.io/@std/assert/1.0.7/not_instance_of.js.map +1 -0
  43. package/esm/deps/jsr.io/@std/assert/1.0.7/not_match.js +27 -0
  44. package/esm/deps/jsr.io/@std/assert/1.0.7/not_match.js.map +1 -0
  45. package/esm/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.js +33 -0
  46. package/esm/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.js.map +1 -0
  47. package/esm/deps/jsr.io/@std/assert/1.0.7/object_match.js +160 -0
  48. package/esm/deps/jsr.io/@std/assert/1.0.7/object_match.js.map +1 -0
  49. package/esm/deps/jsr.io/@std/assert/1.0.7/rejects.js +54 -0
  50. package/esm/deps/jsr.io/@std/assert/1.0.7/rejects.js.map +1 -0
  51. package/esm/deps/jsr.io/@std/assert/1.0.7/strict_equals.js +58 -0
  52. package/esm/deps/jsr.io/@std/assert/1.0.7/strict_equals.js.map +1 -0
  53. package/esm/deps/jsr.io/@std/assert/1.0.7/string_includes.js +27 -0
  54. package/esm/deps/jsr.io/@std/assert/1.0.7/string_includes.js.map +1 -0
  55. package/esm/deps/jsr.io/@std/assert/1.0.7/throws.js +45 -0
  56. package/esm/deps/jsr.io/@std/assert/1.0.7/throws.js.map +1 -0
  57. package/esm/deps/jsr.io/@std/assert/1.0.7/unimplemented.js +21 -0
  58. package/esm/deps/jsr.io/@std/assert/1.0.7/unimplemented.js.map +1 -0
  59. package/esm/deps/jsr.io/@std/assert/1.0.7/unreachable.js +21 -0
  60. package/esm/deps/jsr.io/@std/assert/1.0.7/unreachable.js.map +1 -0
  61. package/esm/deps/jsr.io/@std/cli/1.0.6/_data.js +18 -0
  62. package/esm/deps/jsr.io/@std/cli/1.0.6/_data.js.map +1 -0
  63. package/esm/deps/jsr.io/@std/cli/1.0.6/_run_length.js +35 -0
  64. package/esm/deps/jsr.io/@std/cli/1.0.6/_run_length.js.map +1 -0
  65. package/esm/deps/jsr.io/@std/cli/1.0.6/mod.js +19 -0
  66. package/esm/deps/jsr.io/@std/cli/1.0.6/mod.js.map +1 -0
  67. package/esm/deps/jsr.io/@std/cli/1.0.6/parse_args.js +306 -0
  68. package/esm/deps/jsr.io/@std/cli/1.0.6/parse_args.js.map +1 -0
  69. package/esm/deps/jsr.io/@std/cli/1.0.6/prompt_secret.js +87 -0
  70. package/esm/deps/jsr.io/@std/cli/1.0.6/prompt_secret.js.map +1 -0
  71. package/esm/deps/jsr.io/@std/cli/1.0.6/unicode_width.js +75 -0
  72. package/esm/deps/jsr.io/@std/cli/1.0.6/unicode_width.js.map +1 -0
  73. package/esm/deps/jsr.io/@std/dotenv/0.225.2/load.js +11 -0
  74. package/esm/deps/jsr.io/@std/dotenv/0.225.2/load.js.map +1 -0
  75. package/esm/deps/jsr.io/@std/dotenv/0.225.2/mod.js +213 -0
  76. package/esm/deps/jsr.io/@std/dotenv/0.225.2/mod.js.map +1 -0
  77. package/esm/deps/jsr.io/@std/dotenv/0.225.2/parse.js +75 -0
  78. package/esm/deps/jsr.io/@std/dotenv/0.225.2/parse.js.map +1 -0
  79. package/esm/deps/jsr.io/@std/dotenv/0.225.2/stringify.js +45 -0
  80. package/esm/deps/jsr.io/@std/dotenv/0.225.2/stringify.js.map +1 -0
  81. package/esm/deps/jsr.io/@std/fs/1.0.5/_create_walk_entry.js +35 -0
  82. package/esm/deps/jsr.io/@std/fs/1.0.5/_create_walk_entry.js.map +1 -0
  83. package/esm/deps/jsr.io/@std/fs/1.0.5/_get_file_info_type.js +19 -0
  84. package/esm/deps/jsr.io/@std/fs/1.0.5/_get_file_info_type.js.map +1 -0
  85. package/esm/deps/jsr.io/@std/fs/1.0.5/_is_same_path.js +18 -0
  86. package/esm/deps/jsr.io/@std/fs/1.0.5/_is_same_path.js.map +1 -0
  87. package/esm/deps/jsr.io/@std/fs/1.0.5/_is_subdir.js +26 -0
  88. package/esm/deps/jsr.io/@std/fs/1.0.5/_is_subdir.js.map +1 -0
  89. package/esm/deps/jsr.io/@std/fs/1.0.5/_to_path_string.js +14 -0
  90. package/esm/deps/jsr.io/@std/fs/1.0.5/_to_path_string.js.map +1 -0
  91. package/esm/deps/jsr.io/@std/fs/1.0.5/copy.js +315 -0
  92. package/esm/deps/jsr.io/@std/fs/1.0.5/copy.js.map +1 -0
  93. package/esm/deps/jsr.io/@std/fs/1.0.5/empty_dir.js +88 -0
  94. package/esm/deps/jsr.io/@std/fs/1.0.5/empty_dir.js.map +1 -0
  95. package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_dir.js +103 -0
  96. package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_dir.js.map +1 -0
  97. package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_file.js +91 -0
  98. package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_file.js.map +1 -0
  99. package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_link.js +62 -0
  100. package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_link.js.map +1 -0
  101. package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_symlink.js +122 -0
  102. package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_symlink.js.map +1 -0
  103. package/esm/deps/jsr.io/@std/fs/1.0.5/eol.js +67 -0
  104. package/esm/deps/jsr.io/@std/fs/1.0.5/eol.js.map +1 -0
  105. package/esm/deps/jsr.io/@std/fs/1.0.5/exists.js +272 -0
  106. package/esm/deps/jsr.io/@std/fs/1.0.5/exists.js.map +1 -0
  107. package/esm/deps/jsr.io/@std/fs/1.0.5/expand_glob.js +417 -0
  108. package/esm/deps/jsr.io/@std/fs/1.0.5/expand_glob.js.map +1 -0
  109. package/esm/deps/jsr.io/@std/fs/1.0.5/mod.js +30 -0
  110. package/esm/deps/jsr.io/@std/fs/1.0.5/mod.js.map +1 -0
  111. package/esm/deps/jsr.io/@std/fs/1.0.5/move.js +142 -0
  112. package/esm/deps/jsr.io/@std/fs/1.0.5/move.js.map +1 -0
  113. package/esm/deps/jsr.io/@std/fs/1.0.5/walk.js +847 -0
  114. package/esm/deps/jsr.io/@std/fs/1.0.5/walk.js.map +1 -0
  115. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +111 -0
  116. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js.map +1 -0
  117. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +277 -0
  118. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js.map +1 -0
  119. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +180 -0
  120. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js.map +1 -0
  121. package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +38 -0
  122. package/esm/deps/jsr.io/@std/internal/1.0.5/format.js.map +1 -0
  123. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +208 -0
  124. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js.map +1 -0
  125. package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +3 -0
  126. package/esm/deps/jsr.io/@std/internal/1.0.5/types.js.map +1 -0
  127. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +8 -0
  128. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js.map +1 -0
  129. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js +41 -0
  130. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js.map +1 -0
  131. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +24 -0
  132. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js.map +1 -0
  133. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js +47 -0
  134. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js.map +1 -0
  135. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +9 -0
  136. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js.map +1 -0
  137. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +20 -0
  138. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js.map +1 -0
  139. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +10 -0
  140. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js.map +1 -0
  141. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +235 -0
  142. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js.map +1 -0
  143. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +9 -0
  144. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js.map +1 -0
  145. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +78 -0
  146. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js.map +1 -0
  147. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +10 -0
  148. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js.map +1 -0
  149. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +20 -0
  150. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js.map +1 -0
  151. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +16 -0
  152. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js.map +1 -0
  153. package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +10 -0
  154. package/esm/deps/jsr.io/@std/path/1.0.8/_os.js.map +1 -0
  155. package/esm/deps/jsr.io/@std/path/1.0.8/basename.js +37 -0
  156. package/esm/deps/jsr.io/@std/path/1.0.8/basename.js.map +1 -0
  157. package/esm/deps/jsr.io/@std/path/1.0.8/common.js +34 -0
  158. package/esm/deps/jsr.io/@std/path/1.0.8/common.js.map +1 -0
  159. package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +18 -0
  160. package/esm/deps/jsr.io/@std/path/1.0.8/constants.js.map +1 -0
  161. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +30 -0
  162. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js.map +1 -0
  163. package/esm/deps/jsr.io/@std/path/1.0.8/extname.js +30 -0
  164. package/esm/deps/jsr.io/@std/path/1.0.8/extname.js.map +1 -0
  165. package/esm/deps/jsr.io/@std/path/1.0.8/format.js +28 -0
  166. package/esm/deps/jsr.io/@std/path/1.0.8/format.js.map +1 -0
  167. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +29 -0
  168. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js.map +1 -0
  169. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +84 -0
  170. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js.map +1 -0
  171. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js +29 -0
  172. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js.map +1 -0
  173. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +43 -0
  174. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js.map +1 -0
  175. package/esm/deps/jsr.io/@std/path/1.0.8/join.js +30 -0
  176. package/esm/deps/jsr.io/@std/path/1.0.8/join.js.map +1 -0
  177. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +35 -0
  178. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js.map +1 -0
  179. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +58 -0
  180. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js.map +1 -0
  181. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +34 -0
  182. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js.map +1 -0
  183. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +36 -0
  184. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js.map +1 -0
  185. package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +40 -0
  186. package/esm/deps/jsr.io/@std/path/1.0.8/parse.js.map +1 -0
  187. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js +9 -0
  188. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js.map +1 -0
  189. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js +50 -0
  190. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js.map +1 -0
  191. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +15 -0
  192. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js.map +1 -0
  193. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +63 -0
  194. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js.map +1 -0
  195. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js +90 -0
  196. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js.map +1 -0
  197. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +29 -0
  198. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js.map +1 -0
  199. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +22 -0
  200. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js.map +1 -0
  201. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +83 -0
  202. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js.map +1 -0
  203. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +24 -0
  204. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js.map +1 -0
  205. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js +43 -0
  206. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js.map +1 -0
  207. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +41 -0
  208. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js.map +1 -0
  209. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +58 -0
  210. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js.map +1 -0
  211. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +33 -0
  212. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js.map +1 -0
  213. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +116 -0
  214. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js.map +1 -0
  215. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +107 -0
  216. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js.map +1 -0
  217. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +60 -0
  218. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js.map +1 -0
  219. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +28 -0
  220. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js.map +1 -0
  221. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +21 -0
  222. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js.map +1 -0
  223. package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +31 -0
  224. package/esm/deps/jsr.io/@std/path/1.0.8/relative.js.map +1 -0
  225. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +31 -0
  226. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js.map +1 -0
  227. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js +29 -0
  228. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js.map +1 -0
  229. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +30 -0
  230. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js.map +1 -0
  231. package/esm/deps/jsr.io/@std/path/1.0.8/types.js +4 -0
  232. package/esm/deps/jsr.io/@std/path/1.0.8/types.js.map +1 -0
  233. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js +16 -0
  234. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js.map +1 -0
  235. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js +45 -0
  236. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js.map +1 -0
  237. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +15 -0
  238. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js.map +1 -0
  239. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +113 -0
  240. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js.map +1 -0
  241. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js +82 -0
  242. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js.map +1 -0
  243. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +29 -0
  244. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js.map +1 -0
  245. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +31 -0
  246. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js.map +1 -0
  247. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +83 -0
  248. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js.map +1 -0
  249. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +39 -0
  250. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js.map +1 -0
  251. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js +75 -0
  252. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js.map +1 -0
  253. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +42 -0
  254. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js.map +1 -0
  255. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +135 -0
  256. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js.map +1 -0
  257. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +33 -0
  258. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js.map +1 -0
  259. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +177 -0
  260. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js.map +1 -0
  261. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +132 -0
  262. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js.map +1 -0
  263. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +155 -0
  264. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js.map +1 -0
  265. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +35 -0
  266. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js.map +1 -0
  267. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +50 -0
  268. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js.map +1 -0
  269. package/esm/main.js +80 -0
  270. package/esm/main.js.map +1 -0
  271. package/esm/mod.js +1 -0
  272. package/esm/mod.js.map +1 -1
  273. package/esm/util/displayCompletion.js +9 -0
  274. package/esm/util/displayCompletion.js.map +1 -0
  275. package/package.json +12 -3
  276. package/src/_dnt.polyfills.ts +172 -0
  277. package/src/_dnt.shims.ts +64 -0
  278. package/src/deps/jsr.io/@std/assert/1.0.7/almost_equals.ts +55 -0
  279. package/src/deps/jsr.io/@std/assert/1.0.7/array_includes.ts +57 -0
  280. package/src/deps/jsr.io/@std/assert/1.0.7/assert.ts +23 -0
  281. package/src/deps/jsr.io/@std/assert/1.0.7/assertion_error.ts +31 -0
  282. package/src/deps/jsr.io/@std/assert/1.0.7/equal.ts +152 -0
  283. package/src/deps/jsr.io/@std/assert/1.0.7/equals.ts +52 -0
  284. package/src/deps/jsr.io/@std/assert/1.0.7/exists.ts +31 -0
  285. package/src/deps/jsr.io/@std/assert/1.0.7/fail.ts +21 -0
  286. package/src/deps/jsr.io/@std/assert/1.0.7/false.ts +26 -0
  287. package/src/deps/jsr.io/@std/assert/1.0.7/greater.ts +30 -0
  288. package/src/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.ts +36 -0
  289. package/src/deps/jsr.io/@std/assert/1.0.7/instance_of.ts +64 -0
  290. package/src/deps/jsr.io/@std/assert/1.0.7/is_error.ts +65 -0
  291. package/src/deps/jsr.io/@std/assert/1.0.7/less.ts +29 -0
  292. package/src/deps/jsr.io/@std/assert/1.0.7/less_or_equal.ts +36 -0
  293. package/src/deps/jsr.io/@std/assert/1.0.7/match.ts +30 -0
  294. package/src/deps/jsr.io/@std/assert/1.0.7/mod.ts +47 -0
  295. package/src/deps/jsr.io/@std/assert/1.0.7/not_equals.ts +36 -0
  296. package/src/deps/jsr.io/@std/assert/1.0.7/not_instance_of.ts +33 -0
  297. package/src/deps/jsr.io/@std/assert/1.0.7/not_match.ts +30 -0
  298. package/src/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.ts +42 -0
  299. package/src/deps/jsr.io/@std/assert/1.0.7/object_match.ts +202 -0
  300. package/src/deps/jsr.io/@std/assert/1.0.7/rejects.ts +123 -0
  301. package/src/deps/jsr.io/@std/assert/1.0.7/strict_equals.ts +67 -0
  302. package/src/deps/jsr.io/@std/assert/1.0.7/string_includes.ts +30 -0
  303. package/src/deps/jsr.io/@std/assert/1.0.7/throws.ts +111 -0
  304. package/src/deps/jsr.io/@std/assert/1.0.7/unimplemented.ts +21 -0
  305. package/src/deps/jsr.io/@std/assert/1.0.7/unreachable.ts +21 -0
  306. package/src/deps/jsr.io/@std/cli/1.0.6/_data.js +17 -0
  307. package/src/deps/jsr.io/@std/cli/1.0.6/_run_length.ts +41 -0
  308. package/src/deps/jsr.io/@std/cli/1.0.6/mod.ts +20 -0
  309. package/src/deps/jsr.io/@std/cli/1.0.6/parse_args.ts +776 -0
  310. package/src/deps/jsr.io/@std/cli/1.0.6/prompt_secret.ts +102 -0
  311. package/src/deps/jsr.io/@std/cli/1.0.6/unicode_width.ts +79 -0
  312. package/src/deps/jsr.io/@std/dotenv/0.225.2/load.ts +14 -0
  313. package/src/deps/jsr.io/@std/dotenv/0.225.2/mod.ts +251 -0
  314. package/src/deps/jsr.io/@std/dotenv/0.225.2/parse.ts +113 -0
  315. package/src/deps/jsr.io/@std/dotenv/0.225.2/stringify.ts +47 -0
  316. package/src/deps/jsr.io/@std/fs/1.0.5/_create_walk_entry.ts +47 -0
  317. package/src/deps/jsr.io/@std/fs/1.0.5/_get_file_info_type.ts +25 -0
  318. package/src/deps/jsr.io/@std/fs/1.0.5/_is_same_path.ts +23 -0
  319. package/src/deps/jsr.io/@std/fs/1.0.5/_is_subdir.ts +34 -0
  320. package/src/deps/jsr.io/@std/fs/1.0.5/_to_path_string.ts +17 -0
  321. package/src/deps/jsr.io/@std/fs/1.0.5/copy.ts +413 -0
  322. package/src/deps/jsr.io/@std/fs/1.0.5/empty_dir.ts +91 -0
  323. package/src/deps/jsr.io/@std/fs/1.0.5/ensure_dir.ts +110 -0
  324. package/src/deps/jsr.io/@std/fs/1.0.5/ensure_file.ts +100 -0
  325. package/src/deps/jsr.io/@std/fs/1.0.5/ensure_link.ts +66 -0
  326. package/src/deps/jsr.io/@std/fs/1.0.5/ensure_symlink.ts +145 -0
  327. package/src/deps/jsr.io/@std/fs/1.0.5/eol.ts +74 -0
  328. package/src/deps/jsr.io/@std/fs/1.0.5/exists.ts +316 -0
  329. package/src/deps/jsr.io/@std/fs/1.0.5/expand_glob.ts +538 -0
  330. package/src/deps/jsr.io/@std/fs/1.0.5/mod.ts +31 -0
  331. package/src/deps/jsr.io/@std/fs/1.0.5/move.ts +171 -0
  332. package/src/deps/jsr.io/@std/fs/1.0.5/walk.ts +956 -0
  333. package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +134 -0
  334. package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +317 -0
  335. package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +204 -0
  336. package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +39 -0
  337. package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +233 -0
  338. package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +18 -0
  339. package/src/deps/jsr.io/@std/path/1.0.8/_common/assert_path.ts +10 -0
  340. package/src/deps/jsr.io/@std/path/1.0.8/_common/basename.ts +53 -0
  341. package/src/deps/jsr.io/@std/path/1.0.8/_common/common.ts +26 -0
  342. package/src/deps/jsr.io/@std/path/1.0.8/_common/constants.ts +49 -0
  343. package/src/deps/jsr.io/@std/path/1.0.8/_common/dirname.ts +9 -0
  344. package/src/deps/jsr.io/@std/path/1.0.8/_common/format.ts +25 -0
  345. package/src/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.ts +12 -0
  346. package/src/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.ts +290 -0
  347. package/src/deps/jsr.io/@std/path/1.0.8/_common/normalize.ts +9 -0
  348. package/src/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.ts +74 -0
  349. package/src/deps/jsr.io/@std/path/1.0.8/_common/relative.ts +10 -0
  350. package/src/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.ts +25 -0
  351. package/src/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.ts +17 -0
  352. package/src/deps/jsr.io/@std/path/1.0.8/_os.ts +12 -0
  353. package/src/deps/jsr.io/@std/path/1.0.8/basename.ts +38 -0
  354. package/src/deps/jsr.io/@std/path/1.0.8/common.ts +35 -0
  355. package/src/deps/jsr.io/@std/path/1.0.8/constants.ts +18 -0
  356. package/src/deps/jsr.io/@std/path/1.0.8/dirname.ts +31 -0
  357. package/src/deps/jsr.io/@std/path/1.0.8/extname.ts +30 -0
  358. package/src/deps/jsr.io/@std/path/1.0.8/format.ts +30 -0
  359. package/src/deps/jsr.io/@std/path/1.0.8/from_file_url.ts +30 -0
  360. package/src/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.ts +94 -0
  361. package/src/deps/jsr.io/@std/path/1.0.8/is_absolute.ts +30 -0
  362. package/src/deps/jsr.io/@std/path/1.0.8/is_glob.ts +49 -0
  363. package/src/deps/jsr.io/@std/path/1.0.8/join.ts +31 -0
  364. package/src/deps/jsr.io/@std/path/1.0.8/join_globs.ts +42 -0
  365. package/src/deps/jsr.io/@std/path/1.0.8/mod.ts +58 -0
  366. package/src/deps/jsr.io/@std/path/1.0.8/normalize.ts +34 -0
  367. package/src/deps/jsr.io/@std/path/1.0.8/normalize_glob.ts +45 -0
  368. package/src/deps/jsr.io/@std/path/1.0.8/parse.ts +44 -0
  369. package/src/deps/jsr.io/@std/path/1.0.8/posix/_util.ts +10 -0
  370. package/src/deps/jsr.io/@std/path/1.0.8/posix/basename.ts +59 -0
  371. package/src/deps/jsr.io/@std/path/1.0.8/posix/constants.ts +15 -0
  372. package/src/deps/jsr.io/@std/path/1.0.8/posix/dirname.ts +70 -0
  373. package/src/deps/jsr.io/@std/path/1.0.8/posix/extname.ts +92 -0
  374. package/src/deps/jsr.io/@std/path/1.0.8/posix/format.ts +31 -0
  375. package/src/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.ts +25 -0
  376. package/src/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.ts +94 -0
  377. package/src/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.ts +25 -0
  378. package/src/deps/jsr.io/@std/path/1.0.8/posix/join.ts +43 -0
  379. package/src/deps/jsr.io/@std/path/1.0.8/posix/join_globs.ts +45 -0
  380. package/src/deps/jsr.io/@std/path/1.0.8/posix/normalize.ts +62 -0
  381. package/src/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.ts +43 -0
  382. package/src/deps/jsr.io/@std/path/1.0.8/posix/parse.ts +121 -0
  383. package/src/deps/jsr.io/@std/path/1.0.8/posix/relative.ts +103 -0
  384. package/src/deps/jsr.io/@std/path/1.0.8/posix/resolve.ts +71 -0
  385. package/src/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.ts +32 -0
  386. package/src/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.ts +21 -0
  387. package/src/deps/jsr.io/@std/path/1.0.8/relative.ts +32 -0
  388. package/src/deps/jsr.io/@std/path/1.0.8/resolve.ts +32 -0
  389. package/src/deps/jsr.io/@std/path/1.0.8/to_file_url.ts +30 -0
  390. package/src/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.ts +31 -0
  391. package/src/deps/jsr.io/@std/path/1.0.8/types.ts +40 -0
  392. package/src/deps/jsr.io/@std/path/1.0.8/windows/_util.ts +28 -0
  393. package/src/deps/jsr.io/@std/path/1.0.8/windows/basename.ts +51 -0
  394. package/src/deps/jsr.io/@std/path/1.0.8/windows/constants.ts +15 -0
  395. package/src/deps/jsr.io/@std/path/1.0.8/windows/dirname.ts +117 -0
  396. package/src/deps/jsr.io/@std/path/1.0.8/windows/extname.ts +89 -0
  397. package/src/deps/jsr.io/@std/path/1.0.8/windows/format.ts +31 -0
  398. package/src/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.ts +34 -0
  399. package/src/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.ts +92 -0
  400. package/src/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.ts +40 -0
  401. package/src/deps/jsr.io/@std/path/1.0.8/windows/join.ts +75 -0
  402. package/src/deps/jsr.io/@std/path/1.0.8/windows/join_globs.ts +46 -0
  403. package/src/deps/jsr.io/@std/path/1.0.8/windows/normalize.ts +135 -0
  404. package/src/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.ts +43 -0
  405. package/src/deps/jsr.io/@std/path/1.0.8/windows/parse.ts +184 -0
  406. package/src/deps/jsr.io/@std/path/1.0.8/windows/relative.ts +128 -0
  407. package/src/deps/jsr.io/@std/path/1.0.8/windows/resolve.ts +178 -0
  408. package/src/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.ts +38 -0
  409. package/src/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.ts +60 -0
  410. package/src/main.ts +106 -0
  411. package/src/mod.ts +2 -0
  412. package/src/util/displayCompletion.ts +12 -0
  413. package/types/_dnt.polyfills.d.ts +19 -0
  414. package/types/_dnt.polyfills.d.ts.map +1 -0
  415. package/types/_dnt.shims.d.ts +6 -0
  416. package/types/_dnt.shims.d.ts.map +1 -0
  417. package/types/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts +29 -0
  418. package/types/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts.map +1 -0
  419. package/types/deps/jsr.io/@std/assert/1.0.7/array_includes.d.ts +24 -0
  420. package/types/deps/jsr.io/@std/assert/1.0.7/array_includes.d.ts.map +1 -0
  421. package/types/deps/jsr.io/@std/assert/1.0.7/assert.d.ts +16 -0
  422. package/types/deps/jsr.io/@std/assert/1.0.7/assert.d.ts.map +1 -0
  423. package/types/deps/jsr.io/@std/assert/1.0.7/assertion_error.d.ts +26 -0
  424. package/types/deps/jsr.io/@std/assert/1.0.7/assertion_error.d.ts.map +1 -0
  425. package/types/deps/jsr.io/@std/assert/1.0.7/equal.d.ts +17 -0
  426. package/types/deps/jsr.io/@std/assert/1.0.7/equal.d.ts.map +1 -0
  427. package/types/deps/jsr.io/@std/assert/1.0.7/equals.d.ts +22 -0
  428. package/types/deps/jsr.io/@std/assert/1.0.7/equals.d.ts.map +1 -0
  429. package/types/deps/jsr.io/@std/assert/1.0.7/exists.d.ts +18 -0
  430. package/types/deps/jsr.io/@std/assert/1.0.7/exists.d.ts.map +1 -0
  431. package/types/deps/jsr.io/@std/assert/1.0.7/fail.d.ts +15 -0
  432. package/types/deps/jsr.io/@std/assert/1.0.7/fail.d.ts.map +1 -0
  433. package/types/deps/jsr.io/@std/assert/1.0.7/false.d.ts +18 -0
  434. package/types/deps/jsr.io/@std/assert/1.0.7/false.d.ts.map +1 -0
  435. package/types/deps/jsr.io/@std/assert/1.0.7/greater.d.ts +20 -0
  436. package/types/deps/jsr.io/@std/assert/1.0.7/greater.d.ts.map +1 -0
  437. package/types/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.d.ts +20 -0
  438. package/types/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.d.ts.map +1 -0
  439. package/types/deps/jsr.io/@std/assert/1.0.7/instance_of.d.ts +23 -0
  440. package/types/deps/jsr.io/@std/assert/1.0.7/instance_of.d.ts.map +1 -0
  441. package/types/deps/jsr.io/@std/assert/1.0.7/is_error.d.ts +25 -0
  442. package/types/deps/jsr.io/@std/assert/1.0.7/is_error.d.ts.map +1 -0
  443. package/types/deps/jsr.io/@std/assert/1.0.7/less.d.ts +19 -0
  444. package/types/deps/jsr.io/@std/assert/1.0.7/less.d.ts.map +1 -0
  445. package/types/deps/jsr.io/@std/assert/1.0.7/less_or_equal.d.ts +20 -0
  446. package/types/deps/jsr.io/@std/assert/1.0.7/less_or_equal.d.ts.map +1 -0
  447. package/types/deps/jsr.io/@std/assert/1.0.7/match.d.ts +18 -0
  448. package/types/deps/jsr.io/@std/assert/1.0.7/match.d.ts.map +1 -0
  449. package/types/deps/jsr.io/@std/assert/1.0.7/mod.d.ts +44 -0
  450. package/types/deps/jsr.io/@std/assert/1.0.7/mod.d.ts.map +1 -0
  451. package/types/deps/jsr.io/@std/assert/1.0.7/not_equals.d.ts +21 -0
  452. package/types/deps/jsr.io/@std/assert/1.0.7/not_equals.d.ts.map +1 -0
  453. package/types/deps/jsr.io/@std/assert/1.0.7/not_instance_of.d.ts +20 -0
  454. package/types/deps/jsr.io/@std/assert/1.0.7/not_instance_of.d.ts.map +1 -0
  455. package/types/deps/jsr.io/@std/assert/1.0.7/not_match.d.ts +18 -0
  456. package/types/deps/jsr.io/@std/assert/1.0.7/not_match.d.ts.map +1 -0
  457. package/types/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.d.ts +23 -0
  458. package/types/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.d.ts.map +1 -0
  459. package/types/deps/jsr.io/@std/assert/1.0.7/object_match.d.ts +28 -0
  460. package/types/deps/jsr.io/@std/assert/1.0.7/object_match.d.ts.map +1 -0
  461. package/types/deps/jsr.io/@std/assert/1.0.7/rejects.d.ts +42 -0
  462. package/types/deps/jsr.io/@std/assert/1.0.7/rejects.d.ts.map +1 -0
  463. package/types/deps/jsr.io/@std/assert/1.0.7/strict_equals.d.ts +24 -0
  464. package/types/deps/jsr.io/@std/assert/1.0.7/strict_equals.d.ts.map +1 -0
  465. package/types/deps/jsr.io/@std/assert/1.0.7/string_includes.d.ts +18 -0
  466. package/types/deps/jsr.io/@std/assert/1.0.7/string_includes.d.ts.map +1 -0
  467. package/types/deps/jsr.io/@std/assert/1.0.7/throws.d.ts +45 -0
  468. package/types/deps/jsr.io/@std/assert/1.0.7/throws.d.ts.map +1 -0
  469. package/types/deps/jsr.io/@std/assert/1.0.7/unimplemented.d.ts +15 -0
  470. package/types/deps/jsr.io/@std/assert/1.0.7/unimplemented.d.ts.map +1 -0
  471. package/types/deps/jsr.io/@std/assert/1.0.7/unreachable.d.ts +15 -0
  472. package/types/deps/jsr.io/@std/assert/1.0.7/unreachable.d.ts.map +1 -0
  473. package/types/deps/jsr.io/@std/cli/1.0.6/_data.d.ts +9 -0
  474. package/types/deps/jsr.io/@std/cli/1.0.6/_data.d.ts.map +1 -0
  475. package/types/deps/jsr.io/@std/cli/1.0.6/_run_length.d.ts +9 -0
  476. package/types/deps/jsr.io/@std/cli/1.0.6/_run_length.d.ts.map +1 -0
  477. package/types/deps/jsr.io/@std/cli/1.0.6/mod.d.ts +18 -0
  478. package/types/deps/jsr.io/@std/cli/1.0.6/mod.d.ts.map +1 -0
  479. package/types/deps/jsr.io/@std/cli/1.0.6/parse_args.d.ts +229 -0
  480. package/types/deps/jsr.io/@std/cli/1.0.6/parse_args.d.ts.map +1 -0
  481. package/types/deps/jsr.io/@std/cli/1.0.6/prompt_secret.d.ts +28 -0
  482. package/types/deps/jsr.io/@std/cli/1.0.6/prompt_secret.d.ts.map +1 -0
  483. package/types/deps/jsr.io/@std/cli/1.0.6/unicode_width.d.ts +40 -0
  484. package/types/deps/jsr.io/@std/cli/1.0.6/unicode_width.d.ts.map +1 -0
  485. package/types/deps/jsr.io/@std/dotenv/0.225.2/load.d.ts +2 -0
  486. package/types/deps/jsr.io/@std/dotenv/0.225.2/load.d.ts.map +1 -0
  487. package/types/deps/jsr.io/@std/dotenv/0.225.2/mod.d.ts +164 -0
  488. package/types/deps/jsr.io/@std/dotenv/0.225.2/mod.d.ts.map +1 -0
  489. package/types/deps/jsr.io/@std/dotenv/0.225.2/parse.d.ts +19 -0
  490. package/types/deps/jsr.io/@std/dotenv/0.225.2/parse.d.ts.map +1 -0
  491. package/types/deps/jsr.io/@std/dotenv/0.225.2/stringify.d.ts +17 -0
  492. package/types/deps/jsr.io/@std/dotenv/0.225.2/stringify.d.ts.map +1 -0
  493. package/types/deps/jsr.io/@std/fs/1.0.5/_create_walk_entry.d.ts +14 -0
  494. package/types/deps/jsr.io/@std/fs/1.0.5/_create_walk_entry.d.ts.map +1 -0
  495. package/types/deps/jsr.io/@std/fs/1.0.5/_get_file_info_type.d.ts +13 -0
  496. package/types/deps/jsr.io/@std/fs/1.0.5/_get_file_info_type.d.ts.map +1 -0
  497. package/types/deps/jsr.io/@std/fs/1.0.5/_is_same_path.d.ts +10 -0
  498. package/types/deps/jsr.io/@std/fs/1.0.5/_is_same_path.d.ts.map +1 -0
  499. package/types/deps/jsr.io/@std/fs/1.0.5/_is_subdir.d.ts +12 -0
  500. package/types/deps/jsr.io/@std/fs/1.0.5/_is_subdir.d.ts.map +1 -0
  501. package/types/deps/jsr.io/@std/fs/1.0.5/_to_path_string.d.ts +9 -0
  502. package/types/deps/jsr.io/@std/fs/1.0.5/_to_path_string.d.ts.map +1 -0
  503. package/types/deps/jsr.io/@std/fs/1.0.5/copy.d.ts +117 -0
  504. package/types/deps/jsr.io/@std/fs/1.0.5/copy.d.ts.map +1 -0
  505. package/types/deps/jsr.io/@std/fs/1.0.5/empty_dir.d.ts +48 -0
  506. package/types/deps/jsr.io/@std/fs/1.0.5/empty_dir.d.ts.map +1 -0
  507. package/types/deps/jsr.io/@std/fs/1.0.5/ensure_dir.d.ts +49 -0
  508. package/types/deps/jsr.io/@std/fs/1.0.5/ensure_dir.d.ts.map +1 -0
  509. package/types/deps/jsr.io/@std/fs/1.0.5/ensure_file.d.ts +47 -0
  510. package/types/deps/jsr.io/@std/fs/1.0.5/ensure_file.d.ts.map +1 -0
  511. package/types/deps/jsr.io/@std/fs/1.0.5/ensure_link.d.ts +49 -0
  512. package/types/deps/jsr.io/@std/fs/1.0.5/ensure_link.d.ts.map +1 -0
  513. package/types/deps/jsr.io/@std/fs/1.0.5/ensure_symlink.d.ts +52 -0
  514. package/types/deps/jsr.io/@std/fs/1.0.5/ensure_symlink.d.ts.map +1 -0
  515. package/types/deps/jsr.io/@std/fs/1.0.5/eol.d.ts +52 -0
  516. package/types/deps/jsr.io/@std/fs/1.0.5/eol.d.ts.map +1 -0
  517. package/types/deps/jsr.io/@std/fs/1.0.5/exists.d.ts +218 -0
  518. package/types/deps/jsr.io/@std/fs/1.0.5/exists.d.ts.map +1 -0
  519. package/types/deps/jsr.io/@std/fs/1.0.5/expand_glob.d.ts +267 -0
  520. package/types/deps/jsr.io/@std/fs/1.0.5/expand_glob.d.ts.map +1 -0
  521. package/types/deps/jsr.io/@std/fs/1.0.5/mod.d.ts +29 -0
  522. package/types/deps/jsr.io/@std/fs/1.0.5/mod.d.ts.map +1 -0
  523. package/types/deps/jsr.io/@std/fs/1.0.5/move.d.ts +86 -0
  524. package/types/deps/jsr.io/@std/fs/1.0.5/move.d.ts.map +1 -0
  525. package/types/deps/jsr.io/@std/fs/1.0.5/walk.d.ts +777 -0
  526. package/types/deps/jsr.io/@std/fs/1.0.5/walk.d.ts.map +1 -0
  527. package/types/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +82 -0
  528. package/types/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
  529. package/types/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +140 -0
  530. package/types/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
  531. package/types/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +99 -0
  532. package/types/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
  533. package/types/deps/jsr.io/@std/internal/1.0.5/format.d.ts +2 -0
  534. package/types/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
  535. package/types/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +159 -0
  536. package/types/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
  537. package/types/deps/jsr.io/@std/internal/1.0.5/types.d.ts +16 -0
  538. package/types/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
  539. package/types/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts +2 -0
  540. package/types/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +1 -0
  541. package/types/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts +4 -0
  542. package/types/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +1 -0
  543. package/types/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +2 -0
  544. package/types/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +1 -0
  545. package/types/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts +40 -0
  546. package/types/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +1 -0
  547. package/types/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +2 -0
  548. package/types/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +1 -0
  549. package/types/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +4 -0
  550. package/types/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +1 -0
  551. package/types/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +2 -0
  552. package/types/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +1 -0
  553. package/types/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +35 -0
  554. package/types/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +1 -0
  555. package/types/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts +2 -0
  556. package/types/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +1 -0
  557. package/types/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts +2 -0
  558. package/types/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +1 -0
  559. package/types/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +2 -0
  560. package/types/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +1 -0
  561. package/types/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts +2 -0
  562. package/types/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +1 -0
  563. package/types/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts +2 -0
  564. package/types/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +1 -0
  565. package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts +2 -0
  566. package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +1 -0
  567. package/types/deps/jsr.io/@std/path/1.0.8/basename.d.ts +28 -0
  568. package/types/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +1 -0
  569. package/types/deps/jsr.io/@std/path/1.0.8/common.d.ts +28 -0
  570. package/types/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +1 -0
  571. package/types/deps/jsr.io/@std/path/1.0.8/constants.d.ts +15 -0
  572. package/types/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +1 -0
  573. package/types/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +23 -0
  574. package/types/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +1 -0
  575. package/types/deps/jsr.io/@std/path/1.0.8/extname.d.ts +23 -0
  576. package/types/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +1 -0
  577. package/types/deps/jsr.io/@std/path/1.0.8/format.d.ts +22 -0
  578. package/types/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +1 -0
  579. package/types/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +22 -0
  580. package/types/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +1 -0
  581. package/types/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +77 -0
  582. package/types/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +1 -0
  583. package/types/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts +22 -0
  584. package/types/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +1 -0
  585. package/types/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +17 -0
  586. package/types/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +1 -0
  587. package/types/deps/jsr.io/@std/path/1.0.8/join.d.ts +23 -0
  588. package/types/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +1 -0
  589. package/types/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +28 -0
  590. package/types/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +1 -0
  591. package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts +54 -0
  592. package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +1 -0
  593. package/types/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +27 -0
  594. package/types/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +1 -0
  595. package/types/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +29 -0
  596. package/types/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +1 -0
  597. package/types/deps/jsr.io/@std/path/1.0.8/parse.d.ts +35 -0
  598. package/types/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +1 -0
  599. package/types/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts +2 -0
  600. package/types/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +1 -0
  601. package/types/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +40 -0
  602. package/types/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +1 -0
  603. package/types/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +13 -0
  604. package/types/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +1 -0
  605. package/types/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +32 -0
  606. package/types/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +1 -0
  607. package/types/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +37 -0
  608. package/types/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +1 -0
  609. package/types/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +24 -0
  610. package/types/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +1 -0
  611. package/types/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +16 -0
  612. package/types/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +1 -0
  613. package/types/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +72 -0
  614. package/types/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +1 -0
  615. package/types/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts +17 -0
  616. package/types/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +1 -0
  617. package/types/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +33 -0
  618. package/types/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +1 -0
  619. package/types/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +20 -0
  620. package/types/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +1 -0
  621. package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +40 -0
  622. package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +1 -0
  623. package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +20 -0
  624. package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +1 -0
  625. package/types/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +25 -0
  626. package/types/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +1 -0
  627. package/types/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +20 -0
  628. package/types/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +1 -0
  629. package/types/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +17 -0
  630. package/types/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +1 -0
  631. package/types/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts +17 -0
  632. package/types/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +1 -0
  633. package/types/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +16 -0
  634. package/types/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +1 -0
  635. package/types/deps/jsr.io/@std/path/1.0.8/relative.d.ts +24 -0
  636. package/types/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +1 -0
  637. package/types/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +22 -0
  638. package/types/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +1 -0
  639. package/types/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts +22 -0
  640. package/types/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +1 -0
  641. package/types/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +21 -0
  642. package/types/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +1 -0
  643. package/types/deps/jsr.io/@std/path/1.0.8/types.d.ts +38 -0
  644. package/types/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +1 -0
  645. package/types/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts +4 -0
  646. package/types/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +1 -0
  647. package/types/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +23 -0
  648. package/types/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +1 -0
  649. package/types/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +13 -0
  650. package/types/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +1 -0
  651. package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +20 -0
  652. package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +1 -0
  653. package/types/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +20 -0
  654. package/types/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +1 -0
  655. package/types/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +24 -0
  656. package/types/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +1 -0
  657. package/types/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +18 -0
  658. package/types/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +1 -0
  659. package/types/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +71 -0
  660. package/types/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +1 -0
  661. package/types/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts +17 -0
  662. package/types/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +1 -0
  663. package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +20 -0
  664. package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +1 -0
  665. package/types/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +21 -0
  666. package/types/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +1 -0
  667. package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +22 -0
  668. package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +1 -0
  669. package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +20 -0
  670. package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +1 -0
  671. package/types/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +25 -0
  672. package/types/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +1 -0
  673. package/types/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +23 -0
  674. package/types/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +1 -0
  675. package/types/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +17 -0
  676. package/types/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +1 -0
  677. package/types/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts +17 -0
  678. package/types/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +1 -0
  679. package/types/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +17 -0
  680. package/types/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +1 -0
  681. package/types/main.d.ts +4 -0
  682. package/types/main.d.ts.map +1 -0
  683. package/{esm → types}/mod.d.ts +1 -0
  684. package/types/mod.d.ts.map +1 -0
  685. package/types/util/displayCompletion.d.ts +3 -0
  686. package/types/util/displayCompletion.d.ts.map +1 -0
  687. package/esm/mod.d.ts.map +0 -1
  688. /package/{esm → types}/F.d.ts +0 -0
  689. /package/{esm → types}/F.d.ts.map +0 -0
  690. /package/{esm → types}/ResponseFormat.d.ts +0 -0
  691. /package/{esm → types}/ResponseFormat.d.ts.map +0 -0
  692. /package/{esm → types}/_base.d.ts +0 -0
  693. /package/{esm → types}/_base.d.ts.map +0 -0
  694. /package/{esm → types}/array.d.ts +0 -0
  695. /package/{esm → types}/array.d.ts.map +0 -0
  696. /package/{esm → types}/common.d.ts +0 -0
  697. /package/{esm → types}/common.d.ts.map +0 -0
  698. /package/{esm → types}/literal.d.ts +0 -0
  699. /package/{esm → types}/literal.d.ts.map +0 -0
  700. /package/{esm → types}/number.d.ts +0 -0
  701. /package/{esm → types}/number.d.ts.map +0 -0
  702. /package/{esm → types}/object.d.ts +0 -0
  703. /package/{esm → types}/object.d.ts.map +0 -0
  704. /package/{esm → types}/schema.d.ts +0 -0
  705. /package/{esm → types}/schema.d.ts.map +0 -0
  706. /package/{esm → types}/string.d.ts +0 -0
  707. /package/{esm → types}/string.d.ts.map +0 -0
  708. /package/{esm → types}/union.d.ts +0 -0
  709. /package/{esm → types}/union.d.ts.map +0 -0
@@ -0,0 +1,956 @@
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
+ // Documentation and interface for walk were adapted from Go
3
+ // https://golang.org/pkg/path/filepath/#Walk
4
+ // Copyright 2009 The Go Authors. All rights reserved. BSD license.
5
+ import * as dntShim from "../../../../../_dnt.shims.js";
6
+
7
+ import { join } from "../../path/1.0.8/join.js";
8
+ import { toPathString } from "./_to_path_string.js";
9
+ import {
10
+ createWalkEntry,
11
+ createWalkEntrySync,
12
+ type WalkEntry,
13
+ } from "./_create_walk_entry.js";
14
+
15
+ function include(
16
+ path: string,
17
+ exts?: string[],
18
+ match?: RegExp[],
19
+ skip?: RegExp[],
20
+ ): boolean {
21
+ if (exts && !exts.some((ext): boolean => path.endsWith(ext))) {
22
+ return false;
23
+ }
24
+ if (match && !match.some((pattern): boolean => !!path.match(pattern))) {
25
+ return false;
26
+ }
27
+ if (skip && skip.some((pattern): boolean => !!path.match(pattern))) {
28
+ return false;
29
+ }
30
+ return true;
31
+ }
32
+
33
+ /** Options for {@linkcode walk} and {@linkcode walkSync}. */
34
+ export interface WalkOptions {
35
+ /**
36
+ * The maximum depth of the file tree to be walked recursively.
37
+ *
38
+ * @default {Infinity}
39
+ */
40
+ maxDepth?: number;
41
+ /**
42
+ * Indicates whether file entries should be included or not.
43
+ *
44
+ * @default {true}
45
+ */
46
+ includeFiles?: boolean;
47
+ /**
48
+ * Indicates whether directory entries should be included or not.
49
+ *
50
+ * @default {true}
51
+ */
52
+ includeDirs?: boolean;
53
+ /**
54
+ * Indicates whether symlink entries should be included or not.
55
+ * This option is meaningful only if `followSymlinks` is set to `false`.
56
+ *
57
+ * @default {true}
58
+ */
59
+ includeSymlinks?: boolean;
60
+ /**
61
+ * Indicates whether symlinks should be resolved or not.
62
+ *
63
+ * @default {false}
64
+ */
65
+ followSymlinks?: boolean;
66
+ /**
67
+ * Indicates whether the followed symlink's path should be canonicalized.
68
+ * This option works only if `followSymlinks` is not `false`.
69
+ *
70
+ * @default {true}
71
+ */
72
+ canonicalize?: boolean;
73
+ /**
74
+ * List of file extensions used to filter entries.
75
+ * If specified, entries without the file extension specified by this option
76
+ * are excluded.
77
+ *
78
+ * File extensions with or without a leading period are accepted.
79
+ *
80
+ * @default {[]}
81
+ */
82
+ exts?: string[];
83
+ /**
84
+ * List of regular expression patterns used to filter entries.
85
+ * If specified, entries that do not match the patterns specified by this
86
+ * option are excluded.
87
+ */
88
+ match?: RegExp[];
89
+ /**
90
+ * List of regular expression patterns used to filter entries.
91
+ * If specified, entries matching the patterns specified by this option are
92
+ * excluded.
93
+ */
94
+ skip?: RegExp[];
95
+ }
96
+ export type { WalkEntry };
97
+
98
+ /**
99
+ * Recursively walks through a directory and yields information about each file
100
+ * and directory encountered.
101
+ *
102
+ * The root path determines whether the file paths are relative or absolute.
103
+ * The root directory is included in the yielded entries.
104
+ *
105
+ * Requires `--allow-read` permission.
106
+ *
107
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
108
+ * for more information on Deno's permissions system.
109
+ *
110
+ * @param root The root directory to start the walk from, as a string or URL.
111
+ * @param options The options for the walk.
112
+ * @throws {Deno.errors.NotFound} If the root directory does not exist.
113
+ *
114
+ * @returns An async iterable iterator that yields the walk entry objects.
115
+ *
116
+ * @example Basic usage
117
+ *
118
+ * File structure:
119
+ * ```
120
+ * folder
121
+ * ├── script.ts
122
+ * └── foo.ts
123
+ * ```
124
+ *
125
+ * ```ts ignore
126
+ * import { walk } from "@std/fs/walk";
127
+ *
128
+ * await Array.fromAsync(walk("."));
129
+ * // [
130
+ * // {
131
+ * // path: ".",
132
+ * // name: ".",
133
+ * // isFile: false,
134
+ * // isDirectory: true,
135
+ * // isSymlink: false
136
+ * // },
137
+ * // {
138
+ * // path: "script.ts",
139
+ * // name: "script.ts",
140
+ * // isFile: true,
141
+ * // isDirectory: false,
142
+ * // isSymlink: false
143
+ * // },
144
+ * // {
145
+ * // path: "foo.ts",
146
+ * // name: "foo.ts",
147
+ * // isFile: true,
148
+ * // isDirectory: false,
149
+ * // isSymlink: false
150
+ * // },
151
+ * // ]
152
+ * ```
153
+ *
154
+ * @example Maximum file depth
155
+ *
156
+ * Setting the `maxDepth` option to `1` will only include the root directory and
157
+ * its immediate children.
158
+ *
159
+ * File structure:
160
+ * ```
161
+ * folder
162
+ * ├── script.ts
163
+ * └── foo
164
+ * └── bar.ts
165
+ * ```
166
+ *
167
+ * ```ts ignore
168
+ * import { walk } from "@std/fs/walk";
169
+ *
170
+ * await Array.fromAsync(walk(".", { maxDepth: 1 }));
171
+ * // [
172
+ * // {
173
+ * // path: ".",
174
+ * // name: ".",
175
+ * // isFile: false,
176
+ * // isDirectory: true,
177
+ * // isSymlink: false
178
+ * // },
179
+ * // {
180
+ * // path: "script.ts",
181
+ * // name: "script.ts",
182
+ * // isFile: true,
183
+ * // isDirectory: false,
184
+ * // isSymlink: false
185
+ * // },
186
+ * // {
187
+ * // path: "foo",
188
+ * // name: "foo",
189
+ * // isFile: false,
190
+ * // isDirectory: true,
191
+ * // isSymlink: false
192
+ * // },
193
+ * // ]
194
+ * ```
195
+ *
196
+ * @example Exclude files
197
+ *
198
+ * Setting the `includeFiles` option to `false` will exclude files.
199
+ *
200
+ * File structure:
201
+ * ```
202
+ * folder
203
+ * ├── script.ts
204
+ * └── foo
205
+ * ```
206
+ *
207
+ * ```ts ignore
208
+ * import { walk } from "@std/fs/walk";
209
+ *
210
+ * await Array.fromAsync(walk(".", { includeFiles: false }));
211
+ * // [
212
+ * // {
213
+ * // path: ".",
214
+ * // name: ".",
215
+ * // isFile: false,
216
+ * // isDirectory: true,
217
+ * // isSymlink: false
218
+ * // },
219
+ * // {
220
+ * // path: "foo",
221
+ * // name: "foo",
222
+ * // isFile: false,
223
+ * // isDirectory: true,
224
+ * // isSymlink: false,
225
+ * // },
226
+ * // ]
227
+ * ```
228
+ *
229
+ * @example Exclude directories
230
+ *
231
+ * Setting the `includeDirs` option to `false` will exclude directories.
232
+ *
233
+ * File structure:
234
+ * ```
235
+ * folder
236
+ * ├── script.ts
237
+ * └── foo
238
+ * ```
239
+ *
240
+ * ```ts ignore
241
+ * import { walk } from "@std/fs/walk";
242
+ *
243
+ * await Array.fromAsync(walk(".", { includeDirs: false }));
244
+ * // [
245
+ * // {
246
+ * // path: "script.ts",
247
+ * // name: "script.ts",
248
+ * // isFile: true,
249
+ * // isDirectory: false,
250
+ * // isSymlink: false
251
+ * // },
252
+ * // ]
253
+ * ```
254
+ *
255
+ * @example Exclude symbolic links
256
+ *
257
+ * Setting the `includeSymlinks` option to `false` will exclude symbolic links.
258
+ *
259
+ * File structure:
260
+ * ```
261
+ * folder
262
+ * ├── script.ts
263
+ * ├── foo
264
+ * └── link -> script.ts (symbolic link)
265
+ * ```
266
+ *
267
+ * ```ts ignore
268
+ * import { walk } from "@std/fs/walk";
269
+ *
270
+ * await Array.fromAsync(walk(".", { includeSymlinks: false }));
271
+ * // [
272
+ * // {
273
+ * // path: ".",
274
+ * // name: ".",
275
+ * // isFile: false,
276
+ * // isDirectory: true,
277
+ * // isSymlink: false
278
+ * // },
279
+ * // {
280
+ * // path: "script.ts",
281
+ * // name: "script.ts",
282
+ * // isFile: true,
283
+ * // isDirectory: false,
284
+ * // isSymlink: false
285
+ * // },
286
+ * // ]
287
+ * ```
288
+ *
289
+ * @example Follow symbolic links
290
+ *
291
+ * Setting the `followSymlinks` option to `true` will follow symbolic links,
292
+ * affecting the `path` property of the walk entry.
293
+ *
294
+ * File structure:
295
+ * ```
296
+ * folder
297
+ * ├── script.ts
298
+ * └── link -> script.ts (symbolic link)
299
+ * ```
300
+ *
301
+ * ```ts ignore
302
+ * import { walk } from "@std/fs/walk";
303
+ *
304
+ * await Array.fromAsync(walk(".", { followSymlinks: true }));
305
+ * // [
306
+ * // {
307
+ * // path: ".",
308
+ * // name: ".",
309
+ * // isFile: false,
310
+ * // isDirectory: true,
311
+ * // isSymlink: false
312
+ * // },
313
+ * // {
314
+ * // path: "script.ts",
315
+ * // name: "script.ts",
316
+ * // isFile: true,
317
+ * // isDirectory: false,
318
+ * // isSymlink: false
319
+ * // },
320
+ * // {
321
+ * // path: "script.ts",
322
+ * // name: "link",
323
+ * // isFile: true,
324
+ * // isDirectory: false,
325
+ * // isSymlink: true
326
+ * // },
327
+ * // ]
328
+ * ```
329
+ *
330
+ * @example Canonicalize symbolic links
331
+ *
332
+ * Setting the `canonicalize` option to `false` will canonicalize the path of
333
+ * the followed symbolic link. Meaning, the `path` property of the walk entry
334
+ * will be the path of the symbolic link itself.
335
+ *
336
+ * File structure:
337
+ * ```
338
+ * folder
339
+ * ├── script.ts
340
+ * └── link -> script.ts (symbolic link)
341
+ * ```
342
+ *
343
+ * ```ts ignore
344
+ * import { walk } from "@std/fs/walk";
345
+ *
346
+ * await Array.fromAsync(walk(".", { followSymlinks: true, canonicalize: true }));
347
+ * // [
348
+ * // {
349
+ * // path: ".",
350
+ * // name: ".",
351
+ * // isFile: false,
352
+ * // isDirectory: true,
353
+ * // isSymlink: false
354
+ * // },
355
+ * // {
356
+ * // path: "script.ts",
357
+ * // name: "script.ts",
358
+ * // isFile: true,
359
+ * // isDirectory: false,
360
+ * // isSymlink: false
361
+ * // },
362
+ * // {
363
+ * // path: "link",
364
+ * // name: "link",
365
+ * // isFile: true,
366
+ * // isDirectory: false,
367
+ * // isSymlink: true
368
+ * // },
369
+ * // ]
370
+ * ```
371
+ *
372
+ * @example Filter by file extensions
373
+ *
374
+ * Setting the `exts` option to `[".ts"]` or `["ts"]` will only include entries
375
+ * with the `.ts` file extension.
376
+ *
377
+ * File structure:
378
+ * ```
379
+ * folder
380
+ * ├── script.ts
381
+ * └── foo.js
382
+ * ```
383
+ *
384
+ * ```ts ignore
385
+ * import { walk } from "@std/fs/walk";
386
+ *
387
+ * await Array.fromAsync(walk(".", { exts: [".ts"] }));
388
+ * // [
389
+ * // {
390
+ * // path: "script.ts",
391
+ * // name: "script.ts",
392
+ * // isFile: true,
393
+ * // isDirectory: false,
394
+ * // isSymlink: false
395
+ * // },
396
+ * // ]
397
+ * ```
398
+ *
399
+ * @example Filter by regular expressions
400
+ *
401
+ * Setting the `match` option to `[/.s/]` will only include entries with the
402
+ * letter `s` in their name.
403
+ *
404
+ * File structure:
405
+ * ```
406
+ * folder
407
+ * ├── script.ts
408
+ * └── README.md
409
+ * ```
410
+ *
411
+ * ```ts ignore
412
+ * import { walk } from "@std/fs/walk";
413
+ *
414
+ * await Array.fromAsync(walk(".", { match: [/s/] }));
415
+ * // [
416
+ * // {
417
+ * // path: "script.ts",
418
+ * // name: "script.ts",
419
+ * // isFile: true,
420
+ * // isDirectory: false,
421
+ * // isSymlink: false
422
+ * // },
423
+ * // ]
424
+ * ```
425
+ *
426
+ * @example Exclude by regular expressions
427
+ *
428
+ * Setting the `skip` option to `[/.s/]` will exclude entries with the letter
429
+ * `s` in their name.
430
+ *
431
+ * File structure:
432
+ * ```
433
+ * folder
434
+ * ├── script.ts
435
+ * └── README.md
436
+ * ```
437
+ *
438
+ * ```ts ignore
439
+ * import { walk } from "@std/fs/walk";
440
+ *
441
+ * await Array.fromAsync(walk(".", { skip: [/s/] }));
442
+ * // [
443
+ * // {
444
+ * // path: "README.md",
445
+ * // name: "README.md",
446
+ * // isFile: true,
447
+ * // isDirectory: false,
448
+ * // isSymlink: false
449
+ * // },
450
+ * // ]
451
+ * ```
452
+ */
453
+ export async function* walk(
454
+ root: string | URL,
455
+ options?: WalkOptions,
456
+ ): AsyncIterableIterator<WalkEntry> {
457
+ let {
458
+ maxDepth = Infinity,
459
+ includeFiles = true,
460
+ includeDirs = true,
461
+ includeSymlinks = true,
462
+ followSymlinks = false,
463
+ canonicalize = true,
464
+ exts = undefined,
465
+ match = undefined,
466
+ skip = undefined,
467
+ } = options ?? {};
468
+
469
+ if (maxDepth < 0) {
470
+ return;
471
+ }
472
+ root = toPathString(root);
473
+ if (exts) {
474
+ exts = exts.map((ext) => ext.startsWith(".") ? ext : `.${ext}`);
475
+ }
476
+ if (includeDirs && include(root, exts, match, skip)) {
477
+ yield await createWalkEntry(root);
478
+ }
479
+ if (maxDepth < 1 || !include(root, undefined, undefined, skip)) {
480
+ return;
481
+ }
482
+ for await (const entry of dntShim.Deno.readDir(root)) {
483
+ let path = join(root, entry.name);
484
+
485
+ let { isSymlink, isDirectory } = entry;
486
+
487
+ if (isSymlink) {
488
+ if (!followSymlinks) {
489
+ if (includeSymlinks && include(path, exts, match, skip)) {
490
+ yield { path, ...entry };
491
+ }
492
+ continue;
493
+ }
494
+ const realPath = await dntShim.Deno.realPath(path);
495
+ if (canonicalize) {
496
+ path = realPath;
497
+ }
498
+ // Caveat emptor: don't assume |path| is not a symlink. realpath()
499
+ // resolves symlinks but another process can replace the file system
500
+ // entity with a different type of entity before we call lstat().
501
+ ({ isSymlink, isDirectory } = await dntShim.Deno.lstat(realPath));
502
+ }
503
+
504
+ if (isSymlink || isDirectory) {
505
+ const opts: WalkOptions = {
506
+ maxDepth: maxDepth - 1,
507
+ includeFiles,
508
+ includeDirs,
509
+ includeSymlinks,
510
+ followSymlinks,
511
+ };
512
+ if (exts !== undefined) {
513
+ opts.exts = exts;
514
+ }
515
+ if (match !== undefined) {
516
+ opts.match = match;
517
+ }
518
+ if (skip !== undefined) {
519
+ opts.skip = skip;
520
+ }
521
+ yield* walk(path, opts);
522
+ } else if (includeFiles && include(path, exts, match, skip)) {
523
+ yield { path, ...entry };
524
+ }
525
+ }
526
+ }
527
+
528
+ /**
529
+ * Recursively walks through a directory and yields information about each file
530
+ * and directory encountered.
531
+ *
532
+ * The root path determines whether the file paths is relative or absolute.
533
+ * The root directory is included in the yielded entries.
534
+ *
535
+ * Requires `--allow-read` permission.
536
+ *
537
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
538
+ * for more information on Deno's permissions system.
539
+ *
540
+ * @param root The root directory to start the walk from, as a string or URL.
541
+ * @param options The options for the walk.
542
+ *
543
+ * @returns A synchronous iterable iterator that yields the walk entry objects.
544
+ *
545
+ * @example Basic usage
546
+ *
547
+ * File structure:
548
+ * ```
549
+ * folder
550
+ * ├── script.ts
551
+ * └── foo.ts
552
+ * ```
553
+ *
554
+ * ```ts ignore
555
+ * import { walkSync } from "@std/fs/walk";
556
+ *
557
+ * Array.from(walkSync("."));
558
+ * // [
559
+ * // {
560
+ * // path: ".",
561
+ * // name: ".",
562
+ * // isFile: false,
563
+ * // isDirectory: true,
564
+ * // isSymlink: false
565
+ * // },
566
+ * // {
567
+ * // path: "script.ts",
568
+ * // name: "script.ts",
569
+ * // isFile: true,
570
+ * // isDirectory: false,
571
+ * // isSymlink: false
572
+ * // },
573
+ * // {
574
+ * // path: "foo.ts",
575
+ * // name: "foo.ts",
576
+ * // isFile: true,
577
+ * // isDirectory: false,
578
+ * // isSymlink: false
579
+ * // },
580
+ * // ]
581
+ * ```
582
+ *
583
+ * @example Maximum file depth
584
+ *
585
+ * Setting the `maxDepth` option to `1` will only include the root directory and
586
+ * its immediate children.
587
+ *
588
+ * File structure:
589
+ * ```
590
+ * folder
591
+ * ├── script.ts
592
+ * └── foo
593
+ * └── bar.ts
594
+ * ```
595
+ *
596
+ * ```ts ignore
597
+ * import { walkSync } from "@std/fs/walk";
598
+ *
599
+ * Array.from(walkSync(".", { maxDepth: 1 }));
600
+ * // [
601
+ * // {
602
+ * // path: ".",
603
+ * // name: ".",
604
+ * // isFile: false,
605
+ * // isDirectory: true,
606
+ * // isSymlink: false
607
+ * // },
608
+ * // {
609
+ * // path: "script.ts",
610
+ * // name: "script.ts",
611
+ * // isFile: true,
612
+ * // isDirectory: false,
613
+ * // isSymlink: false
614
+ * // },
615
+ * // {
616
+ * // path: "foo",
617
+ * // name: "foo",
618
+ * // isFile: false,
619
+ * // isDirectory: true,
620
+ * // isSymlink: false
621
+ * // },
622
+ * // ]
623
+ * ```
624
+ *
625
+ * @example Exclude files
626
+ *
627
+ * Setting the `includeFiles` option to `false` will exclude files.
628
+ *
629
+ * File structure:
630
+ * ```
631
+ * folder
632
+ * ├── script.ts
633
+ * └── foo
634
+ * ```
635
+ *
636
+ * ```ts ignore
637
+ * import { walkSync } from "@std/fs/walk";
638
+ *
639
+ * Array.from(walkSync(".", { includeFiles: false }));
640
+ * // [
641
+ * // {
642
+ * // path: ".",
643
+ * // name: ".",
644
+ * // isFile: false,
645
+ * // isDirectory: true,
646
+ * // isSymlink: false
647
+ * // },
648
+ * // {
649
+ * // path: "foo",
650
+ * // name: "foo",
651
+ * // isFile: false,
652
+ * // isDirectory: true,
653
+ * // isSymlink: false,
654
+ * // },
655
+ * // ]
656
+ * ```
657
+ *
658
+ * @example Exclude directories
659
+ *
660
+ * Setting the `includeDirs` option to `false` will exclude directories.
661
+ *
662
+ * File structure:
663
+ * ```
664
+ * folder
665
+ * ├── script.ts
666
+ * └── foo
667
+ * ```
668
+ *
669
+ * ```ts ignore
670
+ * import { walkSync } from "@std/fs/walk";
671
+ *
672
+ * Array.from(walkSync(".", { includeDirs: false }));
673
+ * // [
674
+ * // {
675
+ * // path: "script.ts",
676
+ * // name: "script.ts",
677
+ * // isFile: true,
678
+ * // isDirectory: false,
679
+ * // isSymlink: false
680
+ * // },
681
+ * // ]
682
+ * ```
683
+ *
684
+ * @example Exclude symbolic links
685
+ *
686
+ * Setting the `includeSymlinks` option to `false` will exclude symbolic links.
687
+ *
688
+ * File structure:
689
+ * ```
690
+ * folder
691
+ * ├── script.ts
692
+ * ├── foo
693
+ * └── link -> script.ts (symbolic link)
694
+ * ```
695
+ *
696
+ * ```ts ignore
697
+ * import { walkSync } from "@std/fs/walk";
698
+ *
699
+ * Array.from(walkSync(".", { includeSymlinks: false }));
700
+ * // [
701
+ * // {
702
+ * // path: ".",
703
+ * // name: ".",
704
+ * // isFile: false,
705
+ * // isDirectory: true,
706
+ * // isSymlink: false
707
+ * // },
708
+ * // {
709
+ * // path: "script.ts",
710
+ * // name: "script.ts",
711
+ * // isFile: true,
712
+ * // isDirectory: false,
713
+ * // isSymlink: false
714
+ * // },
715
+ * // ]
716
+ * ```
717
+ *
718
+ * @example Follow symbolic links
719
+ *
720
+ * Setting the `followSymlinks` option to `true` will follow symbolic links,
721
+ * affecting the `path` property of the walk entry.
722
+ *
723
+ * File structure:
724
+ * ```
725
+ * folder
726
+ * ├── script.ts
727
+ * └── link -> script.ts (symbolic link)
728
+ * ```
729
+ *
730
+ * ```ts ignore
731
+ * import { walkSync } from "@std/fs/walk";
732
+ *
733
+ * Array.from(walkSync(".", { followSymlinks: true }));
734
+ * // [
735
+ * // {
736
+ * // path: ".",
737
+ * // name: ".",
738
+ * // isFile: false,
739
+ * // isDirectory: true,
740
+ * // isSymlink: false
741
+ * // },
742
+ * // {
743
+ * // path: "script.ts",
744
+ * // name: "script.ts",
745
+ * // isFile: true,
746
+ * // isDirectory: false,
747
+ * // isSymlink: false
748
+ * // },
749
+ * // {
750
+ * // path: "script.ts",
751
+ * // name: "link",
752
+ * // isFile: true,
753
+ * // isDirectory: false,
754
+ * // isSymlink: true
755
+ * // },
756
+ * // ]
757
+ * ```
758
+ *
759
+ * @example Canonicalize symbolic links
760
+ *
761
+ * Setting the `canonicalize` option to `false` will canonicalize the path of
762
+ * the followed symbolic link. Meaning, the `path` property of the walk entry
763
+ * will be the path of the symbolic link itself.
764
+ *
765
+ * File structure:
766
+ * ```
767
+ * folder
768
+ * ├── script.ts
769
+ * └── link -> script.ts (symbolic link)
770
+ * ```
771
+ *
772
+ * ```ts ignore
773
+ * import { walkSync } from "@std/fs/walk";
774
+ *
775
+ * Array.from(walkSync(".", { followSymlinks: true, canonicalize: true }));
776
+ * // [
777
+ * // {
778
+ * // path: ".",
779
+ * // name: ".",
780
+ * // isFile: false,
781
+ * // isDirectory: true,
782
+ * // isSymlink: false
783
+ * // },
784
+ * // {
785
+ * // path: "script.ts",
786
+ * // name: "script.ts",
787
+ * // isFile: true,
788
+ * // isDirectory: false,
789
+ * // isSymlink: false
790
+ * // },
791
+ * // {
792
+ * // path: "link",
793
+ * // name: "link",
794
+ * // isFile: true,
795
+ * // isDirectory: false,
796
+ * // isSymlink: true
797
+ * // },
798
+ * // ]
799
+ * ```
800
+ *
801
+ * @example Filter by file extensions
802
+ *
803
+ * Setting the `exts` option to `[".ts"]` or `["ts"]` will only include entries
804
+ * with the `.ts` file extension.
805
+ *
806
+ * File structure:
807
+ * ```
808
+ * folder
809
+ * ├── script.ts
810
+ * └── foo.js
811
+ * ```
812
+ *
813
+ * ```ts ignore
814
+ * import { walkSync } from "@std/fs/walk";
815
+ *
816
+ * Array.from(walkSync(".", { exts: [".ts"] }));
817
+ * // [
818
+ * // {
819
+ * // path: "script.ts",
820
+ * // name: "script.ts",
821
+ * // isFile: true,
822
+ * // isDirectory: false,
823
+ * // isSymlink: false
824
+ * // },
825
+ * // ]
826
+ * ```
827
+ *
828
+ * @example Filter by regular expressions
829
+ *
830
+ * Setting the `match` option to `[/.s/]` will only include entries with the
831
+ * letter `s` in their name.
832
+ *
833
+ * File structure:
834
+ * ```
835
+ * folder
836
+ * ├── script.ts
837
+ * └── README.md
838
+ * ```
839
+ *
840
+ * ```ts ignore
841
+ * import { walkSync } from "@std/fs/walk";
842
+ *
843
+ * Array.from(walkSync(".", { match: [/s/] }));
844
+ * // [
845
+ * // {
846
+ * // path: "script.ts",
847
+ * // name: "script.ts",
848
+ * // isFile: true,
849
+ * // isDirectory: false,
850
+ * // isSymlink: false
851
+ * // },
852
+ * // ]
853
+ * ```
854
+ *
855
+ * @example Exclude by regular expressions
856
+ *
857
+ * Setting the `skip` option to `[/.s/]` will exclude entries with the letter
858
+ * `s` in their name.
859
+ *
860
+ * File structure:
861
+ * ```
862
+ * folder
863
+ * ├── script.ts
864
+ * └── README.md
865
+ * ```
866
+ *
867
+ * ```ts ignore
868
+ * import { walkSync } from "@std/fs/walk";
869
+ *
870
+ * Array.from(walkSync(".", { skip: [/s/] }));
871
+ * // [
872
+ * // {
873
+ * // path: "README.md",
874
+ * // name: "README.md",
875
+ * // isFile: true,
876
+ * // isDirectory: false,
877
+ * // isSymlink: false
878
+ * // },
879
+ * // ]
880
+ * ```
881
+ */
882
+ export function* walkSync(
883
+ root: string | URL,
884
+ options?: WalkOptions,
885
+ ): IterableIterator<WalkEntry> {
886
+ let {
887
+ maxDepth = Infinity,
888
+ includeFiles = true,
889
+ includeDirs = true,
890
+ includeSymlinks = true,
891
+ followSymlinks = false,
892
+ canonicalize = true,
893
+ exts = undefined,
894
+ match = undefined,
895
+ skip = undefined,
896
+ } = options ?? {};
897
+
898
+ root = toPathString(root);
899
+ if (exts) {
900
+ exts = exts.map((ext) => ext.startsWith(".") ? ext : `.${ext}`);
901
+ }
902
+ if (maxDepth < 0) {
903
+ return;
904
+ }
905
+ if (includeDirs && include(root, exts, match, skip)) {
906
+ yield createWalkEntrySync(root);
907
+ }
908
+ if (maxDepth < 1 || !include(root, undefined, undefined, skip)) {
909
+ return;
910
+ }
911
+ const entries = dntShim.Deno.readDirSync(root);
912
+ for (const entry of entries) {
913
+ let path = join(root, entry.name);
914
+
915
+ let { isSymlink, isDirectory } = entry;
916
+
917
+ if (isSymlink) {
918
+ if (!followSymlinks) {
919
+ if (includeSymlinks && include(path, exts, match, skip)) {
920
+ yield { path, ...entry };
921
+ }
922
+ continue;
923
+ }
924
+ const realPath = dntShim.Deno.realPathSync(path);
925
+ if (canonicalize) {
926
+ path = realPath;
927
+ }
928
+ // Caveat emptor: don't assume |path| is not a symlink. realpath()
929
+ // resolves symlinks but another process can replace the file system
930
+ // entity with a different type of entity before we call lstat().
931
+ ({ isSymlink, isDirectory } = dntShim.Deno.lstatSync(realPath));
932
+ }
933
+
934
+ if (isSymlink || isDirectory) {
935
+ const opts: WalkOptions = {
936
+ maxDepth: maxDepth - 1,
937
+ includeFiles,
938
+ includeDirs,
939
+ includeSymlinks,
940
+ followSymlinks,
941
+ };
942
+ if (exts !== undefined) {
943
+ opts.exts = exts;
944
+ }
945
+ if (match !== undefined) {
946
+ opts.match = match;
947
+ }
948
+ if (skip !== undefined) {
949
+ opts.skip = skip;
950
+ }
951
+ yield* walkSync(path, opts);
952
+ } else if (includeFiles && include(path, exts, match, skip)) {
953
+ yield { path, ...entry };
954
+ }
955
+ }
956
+ }