@effectionx/jsonl-store 0.1.2 → 0.2.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.
- package/esm/_dnt.polyfills.d.ts +120 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +247 -0
- package/esm/_dnt.shims.d.ts +2 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +57 -0
- package/esm/context.js +2 -2
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.js +2 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.js +32 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.js +50 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.js +33 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.js +20 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts +10 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_same_path.js +17 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_subdir.js +25 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts +9 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_to_path_string.js +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/copy.d.ts +117 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/copy.js +312 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts +48 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/empty_dir.js +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_dir.js +101 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts +47 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_file.js +89 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_link.js +60 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts +52 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.js +119 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/eol.d.ts +53 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/eol.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/eol.js +63 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +219 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/exists.js +269 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts +267 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/expand_glob.js +414 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/mod.d.ts +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/mod.js +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/move.d.ts +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/move.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/move.js +140 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/walk.d.ts +777 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/walk.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/walk.js +845 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/_common.d.ts +4 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/_common.js +11 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts +70 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.js +196 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/mod.d.ts +23 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/mod.js +23 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts +53 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/parse_stream.js +66 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts +95 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/stringify_stream.js +88 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/types.d.ts +5 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/common.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/format.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +234 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/relative.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_os.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/basename.js +36 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/common.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/common.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/constants.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/constants.js +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/dirname.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/extname.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/format.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/format.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/from_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +77 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_glob.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join_globs.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/mod.d.ts +54 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/mod.js +57 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/parse.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/parse.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/basename.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +50 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/extname.js +73 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +72 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +31 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/parse.js +115 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/relative.js +106 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +59 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/relative.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/relative.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/resolve.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/types.d.ts +38 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/basename.js +44 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +112 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/extname.js +81 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +71 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join.js +74 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +134 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +31 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/parse.js +176 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/relative.js +131 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +154 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +49 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/_common.d.ts +5 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/_common.js +27 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts +300 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/buffer.js +406 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts +44 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.js +85 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts +27 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.js +47 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts +66 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.js +291 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts +83 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.js +102 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts +101 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.js +122 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts +84 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.js +106 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts +38 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.js +69 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/mod.d.ts +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/mod.js +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts +58 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.js +123 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts +72 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_line_stream.js +107 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_blob.js +25 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts +38 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_json.js +42 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts +29 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_text.js +45 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts +61 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.js +102 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts +76 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.js +102 -0
- package/esm/jsonl.js +4 -4
- package/esm/mod.d.ts +1 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -0
- package/package.json +5 -1
- package/script/_dnt.polyfills.d.ts +120 -0
- package/script/_dnt.polyfills.d.ts.map +1 -0
- package/script/_dnt.polyfills.js +250 -0
- package/script/_dnt.shims.d.ts +2 -0
- package/script/_dnt.shims.d.ts.map +1 -0
- package/script/_dnt.shims.js +60 -0
- package/script/context.js +2 -2
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.js +3 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.js +35 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.js +53 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts +13 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.js +37 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.js +23 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts +10 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_same_path.js +20 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_subdir.js +28 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts +9 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_to_path_string.js +16 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/copy.d.ts +117 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/copy.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/copy.js +316 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts +48 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/empty_dir.js +90 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_dir.js +105 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts +47 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_file.js +93 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_link.js +64 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts +52 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.js +123 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/eol.d.ts +53 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/eol.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/eol.js +68 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +219 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.js +273 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts +267 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/expand_glob.js +418 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/mod.d.ts +29 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/mod.js +45 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/move.d.ts +86 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/move.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/move.js +144 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/walk.d.ts +777 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/walk.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/walk.js +849 -0
- package/script/deps/jsr.io/@std/json/1.0.1/_common.d.ts +4 -0
- package/script/deps/jsr.io/@std/json/1.0.1/_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/_common.js +14 -0
- package/script/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts +70 -0
- package/script/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.js +200 -0
- package/script/deps/jsr.io/@std/json/1.0.1/mod.d.ts +23 -0
- package/script/deps/jsr.io/@std/json/1.0.1/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/mod.js +39 -0
- package/script/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts +53 -0
- package/script/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/parse_stream.js +70 -0
- package/script/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts +95 -0
- package/script/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/stringify_stream.js +92 -0
- package/script/deps/jsr.io/@std/json/1.0.1/types.d.ts +5 -0
- package/script/deps/jsr.io/@std/json/1.0.1/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +237 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.js +39 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts +54 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.js +73 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +38 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +53 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +76 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +118 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +109 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +95 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts +38 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +47 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +115 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +84 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +77 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +137 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +179 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +134 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +190 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +52 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/_common.d.ts +5 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/_common.js +31 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts +300 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/buffer.js +410 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts +44 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.js +89 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts +27 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.js +50 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts +66 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.js +295 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts +83 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.js +105 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts +101 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.js +126 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts +84 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.js +110 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.js +72 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/mod.d.ts +35 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/mod.js +51 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts +58 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.js +127 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts +72 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_line_stream.js +111 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_blob.js +28 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_json.js +45 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts +29 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_text.js +48 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts +61 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.js +105 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts +76 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.js +105 -0
- package/script/jsonl.js +14 -14
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { type GlobOptions } from "../../path/1.0.6/glob_to_regexp.js";
|
|
2
|
+
import { type WalkEntry } from "./_create_walk_entry.js";
|
|
3
|
+
export type { GlobOptions, WalkEntry };
|
|
4
|
+
/** Options for {@linkcode expandGlob} and {@linkcode expandGlobSync}. */
|
|
5
|
+
export interface ExpandGlobOptions extends Omit<GlobOptions, "os"> {
|
|
6
|
+
/**
|
|
7
|
+
* File path where to expand from.
|
|
8
|
+
*
|
|
9
|
+
* @default {Deno.cwd()}
|
|
10
|
+
*/
|
|
11
|
+
root?: string;
|
|
12
|
+
/**
|
|
13
|
+
* List of glob patterns to be excluded from the expansion.
|
|
14
|
+
*
|
|
15
|
+
* @default {[]}
|
|
16
|
+
*/
|
|
17
|
+
exclude?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* Whether to include directories in entries.
|
|
20
|
+
*
|
|
21
|
+
* @default {true}
|
|
22
|
+
*/
|
|
23
|
+
includeDirs?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to follow symbolic links.
|
|
26
|
+
*
|
|
27
|
+
* @default {false}
|
|
28
|
+
*/
|
|
29
|
+
followSymlinks?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Indicates whether the followed symlink's path should be canonicalized.
|
|
32
|
+
* This option works only if `followSymlinks` is not `false`.
|
|
33
|
+
*
|
|
34
|
+
* @default {true}
|
|
35
|
+
*/
|
|
36
|
+
canonicalize?: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns an async iterator that yields each file path matching the given glob
|
|
40
|
+
* pattern.
|
|
41
|
+
*
|
|
42
|
+
* The file paths are absolute paths. If `root` is not provided, the current
|
|
43
|
+
* working directory is used. The `root` directory is not included in the
|
|
44
|
+
* yielded file paths.
|
|
45
|
+
*
|
|
46
|
+
* Requires `--allow-read` permission.
|
|
47
|
+
*
|
|
48
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
49
|
+
* for more information on Deno's permissions system.
|
|
50
|
+
*
|
|
51
|
+
* @param glob The glob pattern to expand.
|
|
52
|
+
* @param options Additional options for the expansion.
|
|
53
|
+
*
|
|
54
|
+
* @returns An async iterator that yields each walk entry matching the glob
|
|
55
|
+
* pattern.
|
|
56
|
+
*
|
|
57
|
+
* @example Basic usage
|
|
58
|
+
*
|
|
59
|
+
* File structure:
|
|
60
|
+
* ```
|
|
61
|
+
* folder
|
|
62
|
+
* ├── script.ts
|
|
63
|
+
* └── foo.ts
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ```ts ignore
|
|
67
|
+
* // script.ts
|
|
68
|
+
* import { expandGlob } from "@std/fs/expand-glob";
|
|
69
|
+
*
|
|
70
|
+
* await Array.fromAsync(expandGlob("*.ts"));
|
|
71
|
+
* // [
|
|
72
|
+
* // {
|
|
73
|
+
* // path: "/Users/user/folder/script.ts",
|
|
74
|
+
* // name: "script.ts",
|
|
75
|
+
* // isFile: true,
|
|
76
|
+
* // isDirectory: false,
|
|
77
|
+
* // isSymlink: false,
|
|
78
|
+
* // },
|
|
79
|
+
* // {
|
|
80
|
+
* // path: "/Users/user/folder/foo.ts",
|
|
81
|
+
* // name: "foo.ts",
|
|
82
|
+
* // isFile: true,
|
|
83
|
+
* // isDirectory: false,
|
|
84
|
+
* // isSymlink: false,
|
|
85
|
+
* // },
|
|
86
|
+
* // ]
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @example Define root directory
|
|
90
|
+
*
|
|
91
|
+
* Setting the `root` option to `/folder` will expand the glob pattern from the
|
|
92
|
+
* `/folder` directory.
|
|
93
|
+
*
|
|
94
|
+
* File structure:
|
|
95
|
+
* ```
|
|
96
|
+
* folder
|
|
97
|
+
* ├── subdir
|
|
98
|
+
* │ └── bar.ts
|
|
99
|
+
* ├── script.ts
|
|
100
|
+
* └── foo.ts
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* ```ts ignore
|
|
104
|
+
* // script.ts
|
|
105
|
+
* import { expandGlob } from "@std/fs/expand-glob";
|
|
106
|
+
*
|
|
107
|
+
* await Array.fromAsync(expandGlob("*.ts", { root: "./subdir" }));
|
|
108
|
+
* // [
|
|
109
|
+
* // {
|
|
110
|
+
* // path: "/Users/user/folder/subdir/bar.ts",
|
|
111
|
+
* // name: "bar.ts",
|
|
112
|
+
* // isFile: true,
|
|
113
|
+
* // isDirectory: false,
|
|
114
|
+
* // isSymlink: false,
|
|
115
|
+
* // },
|
|
116
|
+
* // ]
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* @example Exclude files
|
|
120
|
+
*
|
|
121
|
+
* Setting the `exclude` option to `["foo.ts"]` will exclude the `foo.ts` file
|
|
122
|
+
* from the expansion.
|
|
123
|
+
*
|
|
124
|
+
* File structure:
|
|
125
|
+
* ```
|
|
126
|
+
* folder
|
|
127
|
+
* ├── script.ts
|
|
128
|
+
* └── foo.ts
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* ```ts ignore
|
|
132
|
+
* // script.ts
|
|
133
|
+
* import { expandGlob } from "@std/fs/expand-glob";
|
|
134
|
+
*
|
|
135
|
+
* await Array.fromAsync(expandGlob("*.ts", { exclude: ["foo.ts"] }));
|
|
136
|
+
* // [
|
|
137
|
+
* // {
|
|
138
|
+
* // path: "/Users/user/folder/script.ts",
|
|
139
|
+
* // name: "true.ts",
|
|
140
|
+
* // isFile: false,
|
|
141
|
+
* // isDirectory: false,
|
|
142
|
+
* // isSymlink: false,
|
|
143
|
+
* // },
|
|
144
|
+
* // ]
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
147
|
+
* @example Exclude directories
|
|
148
|
+
*
|
|
149
|
+
* Setting the `includeDirs` option to `false` will exclude directories from the
|
|
150
|
+
* expansion.
|
|
151
|
+
*
|
|
152
|
+
* File structure:
|
|
153
|
+
* ```
|
|
154
|
+
* folder
|
|
155
|
+
* ├── subdir
|
|
156
|
+
* │ └── bar.ts
|
|
157
|
+
* ├── script.ts
|
|
158
|
+
* └── foo.ts
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
161
|
+
* ```ts ignore
|
|
162
|
+
* // script.ts
|
|
163
|
+
* import { expandGlob } from "@std/fs/expand-glob";
|
|
164
|
+
*
|
|
165
|
+
* await Array.fromAsync(expandGlob("*", { includeDirs: false }));
|
|
166
|
+
* // [
|
|
167
|
+
* // {
|
|
168
|
+
* // path: "/Users/user/folder/script.ts",
|
|
169
|
+
* // name: "script.ts",
|
|
170
|
+
* // isFile: true,
|
|
171
|
+
* // isDirectory: false,
|
|
172
|
+
* // isSymlink: false,
|
|
173
|
+
* // },
|
|
174
|
+
* // {
|
|
175
|
+
* // path: "/Users/user/folder/foo.ts",
|
|
176
|
+
* // name: "foo.ts",
|
|
177
|
+
* // isFile: true,
|
|
178
|
+
* // isDirectory: false,
|
|
179
|
+
* // isSymlink: false,
|
|
180
|
+
* // },
|
|
181
|
+
* // ]
|
|
182
|
+
* ```
|
|
183
|
+
*
|
|
184
|
+
* @example Follow symbolic links
|
|
185
|
+
*
|
|
186
|
+
* Setting the `followSymlinks` option to `true` will follow symbolic links.
|
|
187
|
+
*
|
|
188
|
+
* File structure:
|
|
189
|
+
* ```
|
|
190
|
+
* folder
|
|
191
|
+
* ├── script.ts
|
|
192
|
+
* └── link.ts -> script.ts (symbolic link)
|
|
193
|
+
* ```
|
|
194
|
+
*
|
|
195
|
+
* ```ts ignore
|
|
196
|
+
* // script.ts
|
|
197
|
+
* import { expandGlob } from "@std/fs/expand-glob";
|
|
198
|
+
*
|
|
199
|
+
* await Array.fromAsync(expandGlob("*.ts", { followSymlinks: true }));
|
|
200
|
+
* // [
|
|
201
|
+
* // {
|
|
202
|
+
* // path: "/Users/user/folder/script.ts",
|
|
203
|
+
* // name: "script.ts",
|
|
204
|
+
* // isFile: true,
|
|
205
|
+
* // isDirectory: false,
|
|
206
|
+
* // isSymlink: false,
|
|
207
|
+
* // },
|
|
208
|
+
* // {
|
|
209
|
+
* // path: "/Users/user/folder/symlink",
|
|
210
|
+
* // name: "symlink",
|
|
211
|
+
* // isFile: true,
|
|
212
|
+
* // isDirectory: false,
|
|
213
|
+
* // isSymlink: true,
|
|
214
|
+
* // },
|
|
215
|
+
* // ]
|
|
216
|
+
* ```
|
|
217
|
+
*/
|
|
218
|
+
export declare function expandGlob(glob: string | URL, options?: ExpandGlobOptions): AsyncIterableIterator<WalkEntry>;
|
|
219
|
+
/**
|
|
220
|
+
* Returns an iterator that yields each file path matching the given glob
|
|
221
|
+
* pattern. The file paths are relative to the provided `root` directory.
|
|
222
|
+
* If `root` is not provided, the current working directory is used.
|
|
223
|
+
* The `root` directory is not included in the yielded file paths.
|
|
224
|
+
*
|
|
225
|
+
* Requires the `--allow-read` flag.
|
|
226
|
+
*
|
|
227
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
228
|
+
* for more information on Deno's permissions system.
|
|
229
|
+
*
|
|
230
|
+
* @param glob The glob pattern to expand.
|
|
231
|
+
* @param options Additional options for the expansion.
|
|
232
|
+
*
|
|
233
|
+
* @returns An iterator that yields each walk entry matching the glob pattern.
|
|
234
|
+
*
|
|
235
|
+
* @example Usage
|
|
236
|
+
*
|
|
237
|
+
* File structure:
|
|
238
|
+
* ```
|
|
239
|
+
* folder
|
|
240
|
+
* ├── script.ts
|
|
241
|
+
* └── foo.ts
|
|
242
|
+
* ```
|
|
243
|
+
*
|
|
244
|
+
* ```ts ignore
|
|
245
|
+
* // script.ts
|
|
246
|
+
* import { expandGlobSync } from "@std/fs/expand-glob";
|
|
247
|
+
*
|
|
248
|
+
* const entries = [];
|
|
249
|
+
* for (const entry of expandGlobSync("*.ts")) {
|
|
250
|
+
* entries.push(entry);
|
|
251
|
+
* }
|
|
252
|
+
*
|
|
253
|
+
* entries[0]!.path; // "/Users/user/folder/script.ts"
|
|
254
|
+
* entries[0]!.name; // "script.ts"
|
|
255
|
+
* entries[0]!.isFile; // false
|
|
256
|
+
* entries[0]!.isDirectory; // true
|
|
257
|
+
* entries[0]!.isSymlink; // false
|
|
258
|
+
*
|
|
259
|
+
* entries[1]!.path; // "/Users/user/folder/foo.ts"
|
|
260
|
+
* entries[1]!.name; // "foo.ts"
|
|
261
|
+
* entries[1]!.isFile; // true
|
|
262
|
+
* entries[1]!.isDirectory; // false
|
|
263
|
+
* entries[1]!.isSymlink; // false
|
|
264
|
+
* ```
|
|
265
|
+
*/
|
|
266
|
+
export declare function expandGlobSync(glob: string | URL, options?: ExpandGlobOptions): IterableIterator<WalkEntry>;
|
|
267
|
+
//# sourceMappingURL=expand_glob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expand_glob.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/expand_glob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,oCAAoC,CAAC;AAQpF,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;AAIvC,yEAAyE;AACzE,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC;IAChE;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAuCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmLG;AACH,wBAAuB,UAAU,CAC/B,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,qBAAqB,CAAC,SAAS,CAAC,CAyGlC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAiB,cAAc,CAC7B,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,gBAAgB,CAAC,SAAS,CAAC,CAuG7B"}
|
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.expandGlob = expandGlob;
|
|
4
|
+
exports.expandGlobSync = expandGlobSync;
|
|
5
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
6
|
+
const glob_to_regexp_js_1 = require("../../path/1.0.6/glob_to_regexp.js");
|
|
7
|
+
const join_globs_js_1 = require("../../path/1.0.6/join_globs.js");
|
|
8
|
+
const is_glob_js_1 = require("../../path/1.0.6/is_glob.js");
|
|
9
|
+
const is_absolute_js_1 = require("../../path/1.0.6/is_absolute.js");
|
|
10
|
+
const resolve_js_1 = require("../../path/1.0.6/resolve.js");
|
|
11
|
+
const constants_js_1 = require("../../path/1.0.6/constants.js");
|
|
12
|
+
const walk_js_1 = require("./walk.js");
|
|
13
|
+
const _to_path_string_js_1 = require("./_to_path_string.js");
|
|
14
|
+
const _create_walk_entry_js_1 = require("./_create_walk_entry.js");
|
|
15
|
+
const isWindows = Deno.build.os === "windows";
|
|
16
|
+
function split(path) {
|
|
17
|
+
const s = constants_js_1.SEPARATOR_PATTERN.source;
|
|
18
|
+
const segments = path
|
|
19
|
+
.replace(new RegExp(`^${s}|${s}$`, "g"), "")
|
|
20
|
+
.split(constants_js_1.SEPARATOR_PATTERN);
|
|
21
|
+
const isAbsolute_ = (0, is_absolute_js_1.isAbsolute)(path);
|
|
22
|
+
const split = {
|
|
23
|
+
segments,
|
|
24
|
+
isAbsolute: isAbsolute_,
|
|
25
|
+
hasTrailingSep: path.match(new RegExp(`${s}$`)) !== null,
|
|
26
|
+
};
|
|
27
|
+
if (isWindows && isAbsolute_) {
|
|
28
|
+
split.winRoot = segments.shift();
|
|
29
|
+
}
|
|
30
|
+
return split;
|
|
31
|
+
}
|
|
32
|
+
function throwUnlessNotFound(error) {
|
|
33
|
+
if (!(error instanceof Deno.errors.NotFound)) {
|
|
34
|
+
throw error;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function comparePath(a, b) {
|
|
38
|
+
if (a.path < b.path)
|
|
39
|
+
return -1;
|
|
40
|
+
if (a.path > b.path)
|
|
41
|
+
return 1;
|
|
42
|
+
return 0;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns an async iterator that yields each file path matching the given glob
|
|
46
|
+
* pattern.
|
|
47
|
+
*
|
|
48
|
+
* The file paths are absolute paths. If `root` is not provided, the current
|
|
49
|
+
* working directory is used. The `root` directory is not included in the
|
|
50
|
+
* yielded file paths.
|
|
51
|
+
*
|
|
52
|
+
* Requires `--allow-read` permission.
|
|
53
|
+
*
|
|
54
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
55
|
+
* for more information on Deno's permissions system.
|
|
56
|
+
*
|
|
57
|
+
* @param glob The glob pattern to expand.
|
|
58
|
+
* @param options Additional options for the expansion.
|
|
59
|
+
*
|
|
60
|
+
* @returns An async iterator that yields each walk entry matching the glob
|
|
61
|
+
* pattern.
|
|
62
|
+
*
|
|
63
|
+
* @example Basic usage
|
|
64
|
+
*
|
|
65
|
+
* File structure:
|
|
66
|
+
* ```
|
|
67
|
+
* folder
|
|
68
|
+
* ├── script.ts
|
|
69
|
+
* └── foo.ts
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* ```ts ignore
|
|
73
|
+
* // script.ts
|
|
74
|
+
* import { expandGlob } from "@std/fs/expand-glob";
|
|
75
|
+
*
|
|
76
|
+
* await Array.fromAsync(expandGlob("*.ts"));
|
|
77
|
+
* // [
|
|
78
|
+
* // {
|
|
79
|
+
* // path: "/Users/user/folder/script.ts",
|
|
80
|
+
* // name: "script.ts",
|
|
81
|
+
* // isFile: true,
|
|
82
|
+
* // isDirectory: false,
|
|
83
|
+
* // isSymlink: false,
|
|
84
|
+
* // },
|
|
85
|
+
* // {
|
|
86
|
+
* // path: "/Users/user/folder/foo.ts",
|
|
87
|
+
* // name: "foo.ts",
|
|
88
|
+
* // isFile: true,
|
|
89
|
+
* // isDirectory: false,
|
|
90
|
+
* // isSymlink: false,
|
|
91
|
+
* // },
|
|
92
|
+
* // ]
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @example Define root directory
|
|
96
|
+
*
|
|
97
|
+
* Setting the `root` option to `/folder` will expand the glob pattern from the
|
|
98
|
+
* `/folder` directory.
|
|
99
|
+
*
|
|
100
|
+
* File structure:
|
|
101
|
+
* ```
|
|
102
|
+
* folder
|
|
103
|
+
* ├── subdir
|
|
104
|
+
* │ └── bar.ts
|
|
105
|
+
* ├── script.ts
|
|
106
|
+
* └── foo.ts
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* ```ts ignore
|
|
110
|
+
* // script.ts
|
|
111
|
+
* import { expandGlob } from "@std/fs/expand-glob";
|
|
112
|
+
*
|
|
113
|
+
* await Array.fromAsync(expandGlob("*.ts", { root: "./subdir" }));
|
|
114
|
+
* // [
|
|
115
|
+
* // {
|
|
116
|
+
* // path: "/Users/user/folder/subdir/bar.ts",
|
|
117
|
+
* // name: "bar.ts",
|
|
118
|
+
* // isFile: true,
|
|
119
|
+
* // isDirectory: false,
|
|
120
|
+
* // isSymlink: false,
|
|
121
|
+
* // },
|
|
122
|
+
* // ]
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
125
|
+
* @example Exclude files
|
|
126
|
+
*
|
|
127
|
+
* Setting the `exclude` option to `["foo.ts"]` will exclude the `foo.ts` file
|
|
128
|
+
* from the expansion.
|
|
129
|
+
*
|
|
130
|
+
* File structure:
|
|
131
|
+
* ```
|
|
132
|
+
* folder
|
|
133
|
+
* ├── script.ts
|
|
134
|
+
* └── foo.ts
|
|
135
|
+
* ```
|
|
136
|
+
*
|
|
137
|
+
* ```ts ignore
|
|
138
|
+
* // script.ts
|
|
139
|
+
* import { expandGlob } from "@std/fs/expand-glob";
|
|
140
|
+
*
|
|
141
|
+
* await Array.fromAsync(expandGlob("*.ts", { exclude: ["foo.ts"] }));
|
|
142
|
+
* // [
|
|
143
|
+
* // {
|
|
144
|
+
* // path: "/Users/user/folder/script.ts",
|
|
145
|
+
* // name: "true.ts",
|
|
146
|
+
* // isFile: false,
|
|
147
|
+
* // isDirectory: false,
|
|
148
|
+
* // isSymlink: false,
|
|
149
|
+
* // },
|
|
150
|
+
* // ]
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* @example Exclude directories
|
|
154
|
+
*
|
|
155
|
+
* Setting the `includeDirs` option to `false` will exclude directories from the
|
|
156
|
+
* expansion.
|
|
157
|
+
*
|
|
158
|
+
* File structure:
|
|
159
|
+
* ```
|
|
160
|
+
* folder
|
|
161
|
+
* ├── subdir
|
|
162
|
+
* │ └── bar.ts
|
|
163
|
+
* ├── script.ts
|
|
164
|
+
* └── foo.ts
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* ```ts ignore
|
|
168
|
+
* // script.ts
|
|
169
|
+
* import { expandGlob } from "@std/fs/expand-glob";
|
|
170
|
+
*
|
|
171
|
+
* await Array.fromAsync(expandGlob("*", { includeDirs: false }));
|
|
172
|
+
* // [
|
|
173
|
+
* // {
|
|
174
|
+
* // path: "/Users/user/folder/script.ts",
|
|
175
|
+
* // name: "script.ts",
|
|
176
|
+
* // isFile: true,
|
|
177
|
+
* // isDirectory: false,
|
|
178
|
+
* // isSymlink: false,
|
|
179
|
+
* // },
|
|
180
|
+
* // {
|
|
181
|
+
* // path: "/Users/user/folder/foo.ts",
|
|
182
|
+
* // name: "foo.ts",
|
|
183
|
+
* // isFile: true,
|
|
184
|
+
* // isDirectory: false,
|
|
185
|
+
* // isSymlink: false,
|
|
186
|
+
* // },
|
|
187
|
+
* // ]
|
|
188
|
+
* ```
|
|
189
|
+
*
|
|
190
|
+
* @example Follow symbolic links
|
|
191
|
+
*
|
|
192
|
+
* Setting the `followSymlinks` option to `true` will follow symbolic links.
|
|
193
|
+
*
|
|
194
|
+
* File structure:
|
|
195
|
+
* ```
|
|
196
|
+
* folder
|
|
197
|
+
* ├── script.ts
|
|
198
|
+
* └── link.ts -> script.ts (symbolic link)
|
|
199
|
+
* ```
|
|
200
|
+
*
|
|
201
|
+
* ```ts ignore
|
|
202
|
+
* // script.ts
|
|
203
|
+
* import { expandGlob } from "@std/fs/expand-glob";
|
|
204
|
+
*
|
|
205
|
+
* await Array.fromAsync(expandGlob("*.ts", { followSymlinks: true }));
|
|
206
|
+
* // [
|
|
207
|
+
* // {
|
|
208
|
+
* // path: "/Users/user/folder/script.ts",
|
|
209
|
+
* // name: "script.ts",
|
|
210
|
+
* // isFile: true,
|
|
211
|
+
* // isDirectory: false,
|
|
212
|
+
* // isSymlink: false,
|
|
213
|
+
* // },
|
|
214
|
+
* // {
|
|
215
|
+
* // path: "/Users/user/folder/symlink",
|
|
216
|
+
* // name: "symlink",
|
|
217
|
+
* // isFile: true,
|
|
218
|
+
* // isDirectory: false,
|
|
219
|
+
* // isSymlink: true,
|
|
220
|
+
* // },
|
|
221
|
+
* // ]
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
async function* expandGlob(glob, options) {
|
|
225
|
+
let { root, exclude = [], includeDirs = true, extended = true, globstar = true, caseInsensitive = false, followSymlinks = false, canonicalize = true, } = options ?? {};
|
|
226
|
+
const { segments, isAbsolute: isGlobAbsolute, hasTrailingSep, winRoot, } = split((0, _to_path_string_js_1.toPathString)(glob));
|
|
227
|
+
root ??= isGlobAbsolute ? winRoot ?? "/" : Deno.cwd();
|
|
228
|
+
const globOptions = { extended, globstar, caseInsensitive };
|
|
229
|
+
const absRoot = isGlobAbsolute ? root : (0, resolve_js_1.resolve)(root); // root is always string here
|
|
230
|
+
const resolveFromRoot = (path) => (0, resolve_js_1.resolve)(absRoot, path);
|
|
231
|
+
const excludePatterns = exclude
|
|
232
|
+
.map(resolveFromRoot)
|
|
233
|
+
.map((s) => (0, glob_to_regexp_js_1.globToRegExp)(s, globOptions));
|
|
234
|
+
const shouldInclude = (path) => !excludePatterns.some((p) => !!path.match(p));
|
|
235
|
+
let fixedRoot = isGlobAbsolute ? winRoot ?? "/" : absRoot;
|
|
236
|
+
while (segments.length > 0 && !(0, is_glob_js_1.isGlob)(segments[0])) {
|
|
237
|
+
const seg = segments.shift();
|
|
238
|
+
fixedRoot = (0, join_globs_js_1.joinGlobs)([fixedRoot, seg], globOptions);
|
|
239
|
+
}
|
|
240
|
+
let fixedRootInfo;
|
|
241
|
+
try {
|
|
242
|
+
fixedRootInfo = await (0, _create_walk_entry_js_1.createWalkEntry)(fixedRoot);
|
|
243
|
+
}
|
|
244
|
+
catch (error) {
|
|
245
|
+
return throwUnlessNotFound(error);
|
|
246
|
+
}
|
|
247
|
+
async function* advanceMatch(walkInfo, globSegment) {
|
|
248
|
+
if (!walkInfo.isDirectory) {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
else if (globSegment === "..") {
|
|
252
|
+
const parentPath = (0, join_globs_js_1.joinGlobs)([walkInfo.path, ".."], globOptions);
|
|
253
|
+
if (shouldInclude(parentPath)) {
|
|
254
|
+
return yield await (0, _create_walk_entry_js_1.createWalkEntry)(parentPath);
|
|
255
|
+
}
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
else if (globSegment === "**") {
|
|
259
|
+
return yield* (0, walk_js_1.walk)(walkInfo.path, {
|
|
260
|
+
skip: excludePatterns,
|
|
261
|
+
maxDepth: globstar ? Infinity : 1,
|
|
262
|
+
followSymlinks,
|
|
263
|
+
canonicalize,
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
const globPattern = (0, glob_to_regexp_js_1.globToRegExp)(globSegment, globOptions);
|
|
267
|
+
for await (const walkEntry of (0, walk_js_1.walk)(walkInfo.path, {
|
|
268
|
+
maxDepth: 1,
|
|
269
|
+
skip: excludePatterns,
|
|
270
|
+
followSymlinks,
|
|
271
|
+
})) {
|
|
272
|
+
if (walkEntry.path !== walkInfo.path &&
|
|
273
|
+
walkEntry.name.match(globPattern)) {
|
|
274
|
+
yield walkEntry;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
let currentMatches = [fixedRootInfo];
|
|
279
|
+
for (const segment of segments) {
|
|
280
|
+
// Advancing the list of current matches may introduce duplicates, so we
|
|
281
|
+
// pass everything through this Map.
|
|
282
|
+
const nextMatchMap = new Map();
|
|
283
|
+
await Promise.all(currentMatches.map(async (currentMatch) => {
|
|
284
|
+
for await (const nextMatch of advanceMatch(currentMatch, segment)) {
|
|
285
|
+
nextMatchMap.set(nextMatch.path, nextMatch);
|
|
286
|
+
}
|
|
287
|
+
}));
|
|
288
|
+
currentMatches = [...nextMatchMap.values()].sort(comparePath);
|
|
289
|
+
}
|
|
290
|
+
if (hasTrailingSep) {
|
|
291
|
+
currentMatches = currentMatches.filter((entry) => entry.isDirectory);
|
|
292
|
+
}
|
|
293
|
+
if (!includeDirs) {
|
|
294
|
+
currentMatches = currentMatches.filter((entry) => !entry.isDirectory);
|
|
295
|
+
}
|
|
296
|
+
yield* currentMatches;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Returns an iterator that yields each file path matching the given glob
|
|
300
|
+
* pattern. The file paths are relative to the provided `root` directory.
|
|
301
|
+
* If `root` is not provided, the current working directory is used.
|
|
302
|
+
* The `root` directory is not included in the yielded file paths.
|
|
303
|
+
*
|
|
304
|
+
* Requires the `--allow-read` flag.
|
|
305
|
+
*
|
|
306
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
307
|
+
* for more information on Deno's permissions system.
|
|
308
|
+
*
|
|
309
|
+
* @param glob The glob pattern to expand.
|
|
310
|
+
* @param options Additional options for the expansion.
|
|
311
|
+
*
|
|
312
|
+
* @returns An iterator that yields each walk entry matching the glob pattern.
|
|
313
|
+
*
|
|
314
|
+
* @example Usage
|
|
315
|
+
*
|
|
316
|
+
* File structure:
|
|
317
|
+
* ```
|
|
318
|
+
* folder
|
|
319
|
+
* ├── script.ts
|
|
320
|
+
* └── foo.ts
|
|
321
|
+
* ```
|
|
322
|
+
*
|
|
323
|
+
* ```ts ignore
|
|
324
|
+
* // script.ts
|
|
325
|
+
* import { expandGlobSync } from "@std/fs/expand-glob";
|
|
326
|
+
*
|
|
327
|
+
* const entries = [];
|
|
328
|
+
* for (const entry of expandGlobSync("*.ts")) {
|
|
329
|
+
* entries.push(entry);
|
|
330
|
+
* }
|
|
331
|
+
*
|
|
332
|
+
* entries[0]!.path; // "/Users/user/folder/script.ts"
|
|
333
|
+
* entries[0]!.name; // "script.ts"
|
|
334
|
+
* entries[0]!.isFile; // false
|
|
335
|
+
* entries[0]!.isDirectory; // true
|
|
336
|
+
* entries[0]!.isSymlink; // false
|
|
337
|
+
*
|
|
338
|
+
* entries[1]!.path; // "/Users/user/folder/foo.ts"
|
|
339
|
+
* entries[1]!.name; // "foo.ts"
|
|
340
|
+
* entries[1]!.isFile; // true
|
|
341
|
+
* entries[1]!.isDirectory; // false
|
|
342
|
+
* entries[1]!.isSymlink; // false
|
|
343
|
+
* ```
|
|
344
|
+
*/
|
|
345
|
+
function* expandGlobSync(glob, options) {
|
|
346
|
+
let { root, exclude = [], includeDirs = true, extended = true, globstar = true, caseInsensitive = false, followSymlinks = false, canonicalize = true, } = options ?? {};
|
|
347
|
+
const { segments, isAbsolute: isGlobAbsolute, hasTrailingSep, winRoot, } = split((0, _to_path_string_js_1.toPathString)(glob));
|
|
348
|
+
root ??= isGlobAbsolute ? winRoot ?? "/" : Deno.cwd();
|
|
349
|
+
const globOptions = { extended, globstar, caseInsensitive };
|
|
350
|
+
const absRoot = isGlobAbsolute ? root : (0, resolve_js_1.resolve)(root); // root is always string here
|
|
351
|
+
const resolveFromRoot = (path) => (0, resolve_js_1.resolve)(absRoot, path);
|
|
352
|
+
const excludePatterns = exclude
|
|
353
|
+
.map(resolveFromRoot)
|
|
354
|
+
.map((s) => (0, glob_to_regexp_js_1.globToRegExp)(s, globOptions));
|
|
355
|
+
const shouldInclude = (path) => !excludePatterns.some((p) => !!path.match(p));
|
|
356
|
+
let fixedRoot = isGlobAbsolute ? winRoot ?? "/" : absRoot;
|
|
357
|
+
while (segments.length > 0 && !(0, is_glob_js_1.isGlob)(segments[0])) {
|
|
358
|
+
const seg = segments.shift();
|
|
359
|
+
fixedRoot = (0, join_globs_js_1.joinGlobs)([fixedRoot, seg], globOptions);
|
|
360
|
+
}
|
|
361
|
+
let fixedRootInfo;
|
|
362
|
+
try {
|
|
363
|
+
fixedRootInfo = (0, _create_walk_entry_js_1.createWalkEntrySync)(fixedRoot);
|
|
364
|
+
}
|
|
365
|
+
catch (error) {
|
|
366
|
+
return throwUnlessNotFound(error);
|
|
367
|
+
}
|
|
368
|
+
function* advanceMatch(walkInfo, globSegment) {
|
|
369
|
+
if (!walkInfo.isDirectory) {
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
else if (globSegment === "..") {
|
|
373
|
+
const parentPath = (0, join_globs_js_1.joinGlobs)([walkInfo.path, ".."], globOptions);
|
|
374
|
+
if (shouldInclude(parentPath)) {
|
|
375
|
+
return yield (0, _create_walk_entry_js_1.createWalkEntrySync)(parentPath);
|
|
376
|
+
}
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
else if (globSegment === "**") {
|
|
380
|
+
return yield* (0, walk_js_1.walkSync)(walkInfo.path, {
|
|
381
|
+
skip: excludePatterns,
|
|
382
|
+
maxDepth: globstar ? Infinity : 1,
|
|
383
|
+
followSymlinks,
|
|
384
|
+
canonicalize,
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
const globPattern = (0, glob_to_regexp_js_1.globToRegExp)(globSegment, globOptions);
|
|
388
|
+
for (const walkEntry of (0, walk_js_1.walkSync)(walkInfo.path, {
|
|
389
|
+
maxDepth: 1,
|
|
390
|
+
skip: excludePatterns,
|
|
391
|
+
followSymlinks,
|
|
392
|
+
})) {
|
|
393
|
+
if (walkEntry.path !== walkInfo.path &&
|
|
394
|
+
walkEntry.name.match(globPattern)) {
|
|
395
|
+
yield walkEntry;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
let currentMatches = [fixedRootInfo];
|
|
400
|
+
for (const segment of segments) {
|
|
401
|
+
// Advancing the list of current matches may introduce duplicates, so we
|
|
402
|
+
// pass everything through this Map.
|
|
403
|
+
const nextMatchMap = new Map();
|
|
404
|
+
for (const currentMatch of currentMatches) {
|
|
405
|
+
for (const nextMatch of advanceMatch(currentMatch, segment)) {
|
|
406
|
+
nextMatchMap.set(nextMatch.path, nextMatch);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
currentMatches = [...nextMatchMap.values()].sort(comparePath);
|
|
410
|
+
}
|
|
411
|
+
if (hasTrailingSep) {
|
|
412
|
+
currentMatches = currentMatches.filter((entry) => entry.isDirectory);
|
|
413
|
+
}
|
|
414
|
+
if (!includeDirs) {
|
|
415
|
+
currentMatches = currentMatches.filter((entry) => !entry.isDirectory);
|
|
416
|
+
}
|
|
417
|
+
yield* currentMatches;
|
|
418
|
+
}
|