@effectionx/jsonl-store 0.1.2 → 0.3.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/README.md +4 -4
- 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.d.ts.map +1 -1
- package/esm/context.js +3 -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.20/_create_walk_entry.d.ts +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.js +33 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.js +20 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts +10 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.js +17 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.js +25 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts +9 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.js +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.d.ts +117 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.js +312 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts +48 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.js +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.js +101 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts +47 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.js +89 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.js +60 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts +70 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.js +155 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.d.ts +52 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.js +67 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.d.ts +219 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.js +269 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts +267 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.js +439 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.d.ts +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.js +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.d.ts +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.js +141 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.d.ts +777 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.js +845 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/_common.d.ts +4 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/_common.js +11 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts +70 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.js +196 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/mod.d.ts +23 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/mod.js +23 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts +53 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/parse_stream.js +66 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts +95 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/stringify_stream.js +88 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/types.d.ts +5 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.js +234 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.d.ts +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/common.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/common.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.js +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/format.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/format.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.d.ts +213 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.js +216 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts +26 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts +39 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.js +52 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.js +64 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.js +93 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts +72 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts +31 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.js +45 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.js +58 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.js +115 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.js +106 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.js +59 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/types.d.ts +38 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.js +47 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.js +113 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts +71 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.js +41 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.js +135 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.js +176 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.js +131 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.js +154 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.js +49 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/_common.d.ts +5 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/_common.js +27 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts +300 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/buffer.js +411 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts +44 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.js +85 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts +27 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.js +48 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts +66 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.js +291 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts +83 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.js +102 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts +101 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.js +122 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts +84 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.js +106 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts +38 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.js +69 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/mod.d.ts +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/mod.js +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts +58 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.js +123 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts +72 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_line_stream.js +107 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.js +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_blob.js +25 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts +38 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_json.js +42 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts +29 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_text.js +45 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts +61 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.js +103 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts +76 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.js +102 -0
- package/esm/jsonl.d.ts +2 -2
- package/esm/jsonl.d.ts.map +1 -1
- package/esm/jsonl.js +23 -35
- 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.d.ts.map +1 -1
- package/script/context.js +6 -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.20/_create_walk_entry.d.ts +13 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.js +37 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.js +23 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts +10 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.js +20 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.js +28 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts +9 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.js +16 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.d.ts +117 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.js +316 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts +48 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.js +90 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.js +105 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts +47 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.js +93 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.js +64 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts +70 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.js +159 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.d.ts +52 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.js +105 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.d.ts +219 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.js +273 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts +267 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.js +443 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.d.ts +29 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.js +45 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/move.d.ts +86 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/move.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/move.js +145 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.d.ts +777 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.js +849 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +48 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.js +8 -0
- package/script/deps/jsr.io/@std/json/1.0.2/_common.d.ts +4 -0
- package/script/deps/jsr.io/@std/json/1.0.2/_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/_common.js +14 -0
- package/script/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts +70 -0
- package/script/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.js +200 -0
- package/script/deps/jsr.io/@std/json/1.0.2/mod.d.ts +23 -0
- package/script/deps/jsr.io/@std/json/1.0.2/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/mod.js +39 -0
- package/script/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts +53 -0
- package/script/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/parse_stream.js +70 -0
- package/script/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts +95 -0
- package/script/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/stringify_stream.js +92 -0
- package/script/deps/jsr.io/@std/json/1.0.2/types.d.ts +5 -0
- package/script/deps/jsr.io/@std/json/1.0.2/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.js +26 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.js +23 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.js +237 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.js +12 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.1.3/basename.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/basename.js +38 -0
- package/script/deps/jsr.io/@std/path/1.1.3/common.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.1.3/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/common.js +36 -0
- package/script/deps/jsr.io/@std/path/1.1.3/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.1.3/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/extname.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/extname.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/format.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/format.js +30 -0
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.1.3/mod.d.ts +213 -0
- package/script/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/mod.js +232 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts +26 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.js +38 -0
- package/script/deps/jsr.io/@std/path/1.1.3/parse.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.1.3/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/parse.js +42 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts +39 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.js +55 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts +30 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.js +67 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts +37 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.js +96 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.js +48 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts +37 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.js +61 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.js +118 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.js +109 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.js +95 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.js +23 -0
- package/script/deps/jsr.io/@std/path/1.1.3/relative.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.1.3/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/relative.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.js +32 -0
- package/script/deps/jsr.io/@std/path/1.1.3/types.d.ts +38 -0
- package/script/deps/jsr.io/@std/path/1.1.3/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.js +50 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.js +116 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.js +80 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.js +44 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts +19 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.js +138 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.js +179 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.js +134 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.js +190 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.js +52 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/_common.d.ts +5 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/_common.js +31 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts +300 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/buffer.js +415 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts +44 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.js +89 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts +27 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.js +51 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts +66 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.js +295 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts +83 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.js +105 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts +101 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.js +126 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts +84 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.js +110 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.js +72 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/mod.d.ts +35 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/mod.js +51 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts +58 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.js +127 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts +72 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_line_stream.js +111 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.js +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_blob.js +28 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_json.js +45 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts +29 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_text.js +48 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts +61 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.js +106 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts +76 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.js +105 -0
- package/script/jsonl.d.ts +2 -2
- package/script/jsonl.d.ts.map +1 -1
- package/script/jsonl.js +62 -41
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asynchronously ensures that the directory exists, like
|
|
3
|
+
* {@linkcode https://www.ibm.com/docs/en/aix/7.3?topic=m-mkdir-command#mkdir__row-d3e133766 | mkdir -p}.
|
|
4
|
+
*
|
|
5
|
+
* If the directory already exists, this function does nothing. If the directory
|
|
6
|
+
* does not exist, it is created.
|
|
7
|
+
*
|
|
8
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
9
|
+
*
|
|
10
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
11
|
+
* for more information on Deno's permissions system.
|
|
12
|
+
*
|
|
13
|
+
* @param dir The path of the directory to ensure, as a string or URL.
|
|
14
|
+
*
|
|
15
|
+
* @returns A promise that resolves once the directory exists.
|
|
16
|
+
*
|
|
17
|
+
* @example Usage
|
|
18
|
+
* ```ts ignore
|
|
19
|
+
* import { ensureDir } from "@std/fs/ensure-dir";
|
|
20
|
+
*
|
|
21
|
+
* await ensureDir("./bar");
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function ensureDir(dir: string | URL): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Synchronously ensures that the directory exists, like
|
|
27
|
+
* {@linkcode https://www.ibm.com/docs/en/aix/7.3?topic=m-mkdir-command#mkdir__row-d3e133766 | mkdir -p}.
|
|
28
|
+
*
|
|
29
|
+
* If the directory already exists, this function does nothing. If the directory
|
|
30
|
+
* does not exist, it is created.
|
|
31
|
+
*
|
|
32
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
33
|
+
*
|
|
34
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
35
|
+
* for more information on Deno's permissions system.
|
|
36
|
+
*
|
|
37
|
+
* @param dir The path of the directory to ensure, as a string or URL.
|
|
38
|
+
*
|
|
39
|
+
* @returns A void value that returns once the directory exists.
|
|
40
|
+
*
|
|
41
|
+
* @example Usage
|
|
42
|
+
* ```ts ignore
|
|
43
|
+
* import { ensureDirSync } from "@std/fs/ensure-dir";
|
|
44
|
+
*
|
|
45
|
+
* ensureDirSync("./bar");
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare function ensureDirSync(dir: string | URL): void;
|
|
49
|
+
//# sourceMappingURL=ensure_dir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.20/ensure_dir.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,iBAuBhD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,QAuB9C"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ensureDir = ensureDir;
|
|
4
|
+
exports.ensureDirSync = ensureDirSync;
|
|
5
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
6
|
+
const _get_file_info_type_js_1 = require("./_get_file_info_type.js");
|
|
7
|
+
/**
|
|
8
|
+
* Asynchronously ensures that the directory exists, like
|
|
9
|
+
* {@linkcode https://www.ibm.com/docs/en/aix/7.3?topic=m-mkdir-command#mkdir__row-d3e133766 | mkdir -p}.
|
|
10
|
+
*
|
|
11
|
+
* If the directory already exists, this function does nothing. If the directory
|
|
12
|
+
* does not exist, it is created.
|
|
13
|
+
*
|
|
14
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
15
|
+
*
|
|
16
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
17
|
+
* for more information on Deno's permissions system.
|
|
18
|
+
*
|
|
19
|
+
* @param dir The path of the directory to ensure, as a string or URL.
|
|
20
|
+
*
|
|
21
|
+
* @returns A promise that resolves once the directory exists.
|
|
22
|
+
*
|
|
23
|
+
* @example Usage
|
|
24
|
+
* ```ts ignore
|
|
25
|
+
* import { ensureDir } from "@std/fs/ensure-dir";
|
|
26
|
+
*
|
|
27
|
+
* await ensureDir("./bar");
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
async function ensureDir(dir) {
|
|
31
|
+
try {
|
|
32
|
+
const fileInfo = await Deno.stat(dir);
|
|
33
|
+
throwIfNotDirectory(fileInfo);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
catch (err) {
|
|
37
|
+
if (!(err instanceof Deno.errors.NotFound)) {
|
|
38
|
+
throw err;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
// The dir doesn't exist. Create it.
|
|
42
|
+
// This can be racy. So we catch AlreadyExists and check stat again.
|
|
43
|
+
try {
|
|
44
|
+
await Deno.mkdir(dir, { recursive: true });
|
|
45
|
+
}
|
|
46
|
+
catch (err) {
|
|
47
|
+
if (!(err instanceof Deno.errors.AlreadyExists)) {
|
|
48
|
+
throw err;
|
|
49
|
+
}
|
|
50
|
+
const fileInfo = await Deno.stat(dir);
|
|
51
|
+
throwIfNotDirectory(fileInfo);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Synchronously ensures that the directory exists, like
|
|
56
|
+
* {@linkcode https://www.ibm.com/docs/en/aix/7.3?topic=m-mkdir-command#mkdir__row-d3e133766 | mkdir -p}.
|
|
57
|
+
*
|
|
58
|
+
* If the directory already exists, this function does nothing. If the directory
|
|
59
|
+
* does not exist, it is created.
|
|
60
|
+
*
|
|
61
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
62
|
+
*
|
|
63
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
64
|
+
* for more information on Deno's permissions system.
|
|
65
|
+
*
|
|
66
|
+
* @param dir The path of the directory to ensure, as a string or URL.
|
|
67
|
+
*
|
|
68
|
+
* @returns A void value that returns once the directory exists.
|
|
69
|
+
*
|
|
70
|
+
* @example Usage
|
|
71
|
+
* ```ts ignore
|
|
72
|
+
* import { ensureDirSync } from "@std/fs/ensure-dir";
|
|
73
|
+
*
|
|
74
|
+
* ensureDirSync("./bar");
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
function ensureDirSync(dir) {
|
|
78
|
+
try {
|
|
79
|
+
const fileInfo = Deno.statSync(dir);
|
|
80
|
+
throwIfNotDirectory(fileInfo);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
catch (err) {
|
|
84
|
+
if (!(err instanceof Deno.errors.NotFound)) {
|
|
85
|
+
throw err;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// The dir doesn't exist. Create it.
|
|
89
|
+
// This can be racy. So we catch AlreadyExists and check stat again.
|
|
90
|
+
try {
|
|
91
|
+
Deno.mkdirSync(dir, { recursive: true });
|
|
92
|
+
}
|
|
93
|
+
catch (err) {
|
|
94
|
+
if (!(err instanceof Deno.errors.AlreadyExists)) {
|
|
95
|
+
throw err;
|
|
96
|
+
}
|
|
97
|
+
const fileInfo = Deno.statSync(dir);
|
|
98
|
+
throwIfNotDirectory(fileInfo);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function throwIfNotDirectory(fileInfo) {
|
|
102
|
+
if (!fileInfo.isDirectory) {
|
|
103
|
+
throw new Error(`Failed to ensure directory exists: expected 'dir', got '${(0, _get_file_info_type_js_1.getFileInfoType)(fileInfo)}'`);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asynchronously ensures that the file exists.
|
|
3
|
+
*
|
|
4
|
+
* If the file already exists, this function does nothing. If the parent
|
|
5
|
+
* directories for the file do not exist, they are created.
|
|
6
|
+
*
|
|
7
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
10
|
+
* for more information on Deno's permissions system.
|
|
11
|
+
*
|
|
12
|
+
* @param filePath The path of the file to ensure, as a string or URL.
|
|
13
|
+
*
|
|
14
|
+
* @returns A void promise that resolves once the file exists.
|
|
15
|
+
*
|
|
16
|
+
* @example Usage
|
|
17
|
+
* ```ts ignore
|
|
18
|
+
* import { ensureFile } from "@std/fs/ensure-file";
|
|
19
|
+
*
|
|
20
|
+
* await ensureFile("./folder/targetFile.dat");
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function ensureFile(filePath: string | URL): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Synchronously ensures that the file exists.
|
|
26
|
+
*
|
|
27
|
+
* If the file already exists, this function does nothing. If the parent
|
|
28
|
+
* directories for the file do not exist, they are created.
|
|
29
|
+
*
|
|
30
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
31
|
+
*
|
|
32
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
33
|
+
* for more information on Deno's permissions system.
|
|
34
|
+
*
|
|
35
|
+
* @param filePath The path of the file to ensure, as a string or URL.
|
|
36
|
+
*
|
|
37
|
+
* @returns A void value that returns once the file exists.
|
|
38
|
+
*
|
|
39
|
+
* @example Usage
|
|
40
|
+
* ```ts ignore
|
|
41
|
+
* import { ensureFileSync } from "@std/fs/ensure-file";
|
|
42
|
+
*
|
|
43
|
+
* ensureFileSync("./folder/targetFile.dat");
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function ensureFileSync(filePath: string | URL): void;
|
|
47
|
+
//# sourceMappingURL=ensure_file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure_file.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.20/ensure_file.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBtE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAsB3D"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ensureFile = ensureFile;
|
|
4
|
+
exports.ensureFileSync = ensureFileSync;
|
|
5
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
6
|
+
const dirname_js_1 = require("../../path/1.1.3/dirname.js");
|
|
7
|
+
const ensure_dir_js_1 = require("./ensure_dir.js");
|
|
8
|
+
const _get_file_info_type_js_1 = require("./_get_file_info_type.js");
|
|
9
|
+
const _to_path_string_js_1 = require("./_to_path_string.js");
|
|
10
|
+
/**
|
|
11
|
+
* Asynchronously ensures that the file exists.
|
|
12
|
+
*
|
|
13
|
+
* If the file already exists, this function does nothing. If the parent
|
|
14
|
+
* directories for the file do not exist, they are created.
|
|
15
|
+
*
|
|
16
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
17
|
+
*
|
|
18
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
19
|
+
* for more information on Deno's permissions system.
|
|
20
|
+
*
|
|
21
|
+
* @param filePath The path of the file to ensure, as a string or URL.
|
|
22
|
+
*
|
|
23
|
+
* @returns A void promise that resolves once the file exists.
|
|
24
|
+
*
|
|
25
|
+
* @example Usage
|
|
26
|
+
* ```ts ignore
|
|
27
|
+
* import { ensureFile } from "@std/fs/ensure-file";
|
|
28
|
+
*
|
|
29
|
+
* await ensureFile("./folder/targetFile.dat");
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
async function ensureFile(filePath) {
|
|
33
|
+
try {
|
|
34
|
+
// if file exists
|
|
35
|
+
const stat = await Deno.lstat(filePath);
|
|
36
|
+
if (!stat.isFile) {
|
|
37
|
+
throw new Error(`Failed to ensure file exists: expected 'file', got '${(0, _get_file_info_type_js_1.getFileInfoType)(stat)}'`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
catch (err) {
|
|
41
|
+
// if file not exists
|
|
42
|
+
if (err instanceof Deno.errors.NotFound) {
|
|
43
|
+
// ensure dir exists
|
|
44
|
+
await (0, ensure_dir_js_1.ensureDir)((0, dirname_js_1.dirname)((0, _to_path_string_js_1.toPathString)(filePath)));
|
|
45
|
+
// create file
|
|
46
|
+
await Deno.writeFile(filePath, new Uint8Array());
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
throw err;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Synchronously ensures that the file exists.
|
|
54
|
+
*
|
|
55
|
+
* If the file already exists, this function does nothing. If the parent
|
|
56
|
+
* directories for the file do not exist, they are created.
|
|
57
|
+
*
|
|
58
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
59
|
+
*
|
|
60
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
61
|
+
* for more information on Deno's permissions system.
|
|
62
|
+
*
|
|
63
|
+
* @param filePath The path of the file to ensure, as a string or URL.
|
|
64
|
+
*
|
|
65
|
+
* @returns A void value that returns once the file exists.
|
|
66
|
+
*
|
|
67
|
+
* @example Usage
|
|
68
|
+
* ```ts ignore
|
|
69
|
+
* import { ensureFileSync } from "@std/fs/ensure-file";
|
|
70
|
+
*
|
|
71
|
+
* ensureFileSync("./folder/targetFile.dat");
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
function ensureFileSync(filePath) {
|
|
75
|
+
try {
|
|
76
|
+
// if file exists
|
|
77
|
+
const stat = Deno.lstatSync(filePath);
|
|
78
|
+
if (!stat.isFile) {
|
|
79
|
+
throw new Error(`Failed to ensure file exists: expected 'file', got '${(0, _get_file_info_type_js_1.getFileInfoType)(stat)}'`);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
catch (err) {
|
|
83
|
+
// if file not exists
|
|
84
|
+
if (err instanceof Deno.errors.NotFound) {
|
|
85
|
+
// ensure dir exists
|
|
86
|
+
(0, ensure_dir_js_1.ensureDirSync)((0, dirname_js_1.dirname)((0, _to_path_string_js_1.toPathString)(filePath)));
|
|
87
|
+
// create file
|
|
88
|
+
Deno.writeFileSync(filePath, new Uint8Array());
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
throw err;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asynchronously ensures that the hard link exists.
|
|
3
|
+
*
|
|
4
|
+
* If the parent directories for the hard link do not exist, they are created.
|
|
5
|
+
*
|
|
6
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
9
|
+
* for more information on Deno's permissions system.
|
|
10
|
+
*
|
|
11
|
+
* @param src The source file path as a string or URL. Directory hard links are
|
|
12
|
+
* not allowed.
|
|
13
|
+
* @param dest The destination link path as a string or URL.
|
|
14
|
+
*
|
|
15
|
+
* @returns A void promise that resolves once the hard link exists.
|
|
16
|
+
*
|
|
17
|
+
* @example Usage
|
|
18
|
+
* ```ts ignore
|
|
19
|
+
* import { ensureLink } from "@std/fs/ensure-link";
|
|
20
|
+
*
|
|
21
|
+
* await ensureLink("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function ensureLink(src: string | URL, dest: string | URL): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Synchronously ensures that the hard link exists.
|
|
27
|
+
*
|
|
28
|
+
* If the parent directories for the hard link do not exist, they are created.
|
|
29
|
+
*
|
|
30
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
31
|
+
*
|
|
32
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
33
|
+
* for more information on Deno's permissions system.
|
|
34
|
+
*
|
|
35
|
+
* @param src The source file path as a string or URL. Directory hard links are
|
|
36
|
+
* not allowed.
|
|
37
|
+
* @param dest The destination link path as a string or URL.
|
|
38
|
+
*
|
|
39
|
+
* @returns A void value that returns once the hard link exists.
|
|
40
|
+
*
|
|
41
|
+
* @example Usage
|
|
42
|
+
* ```ts ignore
|
|
43
|
+
* import { ensureLinkSync } from "@std/fs/ensure-link";
|
|
44
|
+
*
|
|
45
|
+
* ensureLinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare function ensureLinkSync(src: string | URL, dest: string | URL): void;
|
|
49
|
+
//# sourceMappingURL=ensure_link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure_link.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.20/ensure_link.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,iBAKrE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,QAKnE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ensureLink = ensureLink;
|
|
4
|
+
exports.ensureLinkSync = ensureLinkSync;
|
|
5
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
6
|
+
const dirname_js_1 = require("../../path/1.1.3/dirname.js");
|
|
7
|
+
const ensure_dir_js_1 = require("./ensure_dir.js");
|
|
8
|
+
const _to_path_string_js_1 = require("./_to_path_string.js");
|
|
9
|
+
/**
|
|
10
|
+
* Asynchronously ensures that the hard link exists.
|
|
11
|
+
*
|
|
12
|
+
* If the parent directories for the hard link do not exist, they are created.
|
|
13
|
+
*
|
|
14
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
15
|
+
*
|
|
16
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
17
|
+
* for more information on Deno's permissions system.
|
|
18
|
+
*
|
|
19
|
+
* @param src The source file path as a string or URL. Directory hard links are
|
|
20
|
+
* not allowed.
|
|
21
|
+
* @param dest The destination link path as a string or URL.
|
|
22
|
+
*
|
|
23
|
+
* @returns A void promise that resolves once the hard link exists.
|
|
24
|
+
*
|
|
25
|
+
* @example Usage
|
|
26
|
+
* ```ts ignore
|
|
27
|
+
* import { ensureLink } from "@std/fs/ensure-link";
|
|
28
|
+
*
|
|
29
|
+
* await ensureLink("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
async function ensureLink(src, dest) {
|
|
33
|
+
dest = (0, _to_path_string_js_1.toPathString)(dest);
|
|
34
|
+
await (0, ensure_dir_js_1.ensureDir)((0, dirname_js_1.dirname)(dest));
|
|
35
|
+
await Deno.link((0, _to_path_string_js_1.toPathString)(src), dest);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Synchronously ensures that the hard link exists.
|
|
39
|
+
*
|
|
40
|
+
* If the parent directories for the hard link do not exist, they are created.
|
|
41
|
+
*
|
|
42
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
43
|
+
*
|
|
44
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
45
|
+
* for more information on Deno's permissions system.
|
|
46
|
+
*
|
|
47
|
+
* @param src The source file path as a string or URL. Directory hard links are
|
|
48
|
+
* not allowed.
|
|
49
|
+
* @param dest The destination link path as a string or URL.
|
|
50
|
+
*
|
|
51
|
+
* @returns A void value that returns once the hard link exists.
|
|
52
|
+
*
|
|
53
|
+
* @example Usage
|
|
54
|
+
* ```ts ignore
|
|
55
|
+
* import { ensureLinkSync } from "@std/fs/ensure-link";
|
|
56
|
+
*
|
|
57
|
+
* ensureLinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
function ensureLinkSync(src, dest) {
|
|
61
|
+
dest = (0, _to_path_string_js_1.toPathString)(dest);
|
|
62
|
+
(0, ensure_dir_js_1.ensureDirSync)((0, dirname_js_1.dirname)(dest));
|
|
63
|
+
Deno.linkSync((0, _to_path_string_js_1.toPathString)(src), dest);
|
|
64
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asynchronously ensures that the link exists, and points to a valid file.
|
|
3
|
+
*
|
|
4
|
+
* If the parent directories for the link do not exist, they are created. If the
|
|
5
|
+
* link already exists, and it is not modified, this function does nothing. If
|
|
6
|
+
* the link already exists, and it does not point to the given target, an error
|
|
7
|
+
* is thrown.
|
|
8
|
+
*
|
|
9
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
10
|
+
*
|
|
11
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
12
|
+
* for more information on Deno's permissions system.
|
|
13
|
+
*
|
|
14
|
+
* @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
|
|
15
|
+
* @param linkName The destination link path as a string or URL.
|
|
16
|
+
*
|
|
17
|
+
* @returns A void promise that resolves once the link exists.
|
|
18
|
+
*
|
|
19
|
+
* @example Basic usage
|
|
20
|
+
* ```ts ignore
|
|
21
|
+
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
22
|
+
*
|
|
23
|
+
* // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
|
|
24
|
+
* await ensureSymlink("./targetFile.dat", "./targetFile.link.dat");
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @example Ensuring a link in a folder
|
|
28
|
+
* ```ts ignore
|
|
29
|
+
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
30
|
+
*
|
|
31
|
+
* // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
|
|
32
|
+
* await ensureSymlink("./targetFile.dat", "./folder/targetFile.link.dat");
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function ensureSymlink(target: string | URL, linkName: string | URL): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Synchronously ensures that the link exists, and points to a valid file.
|
|
38
|
+
*
|
|
39
|
+
* If the parent directories for the link do not exist, they are created. If the
|
|
40
|
+
* link already exists, and it is not modified, this function does nothing. If
|
|
41
|
+
* the link already exists, and it does not point to the given target, an error
|
|
42
|
+
* is thrown.
|
|
43
|
+
*
|
|
44
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
45
|
+
*
|
|
46
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
47
|
+
* for more information on Deno's permissions system.
|
|
48
|
+
*
|
|
49
|
+
* @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
|
|
50
|
+
* @param linkName The destination link path as a string or URL.
|
|
51
|
+
* @returns A void value that returns once the link exists.
|
|
52
|
+
*
|
|
53
|
+
* @example Basic usage
|
|
54
|
+
* ```ts ignore
|
|
55
|
+
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
56
|
+
*
|
|
57
|
+
* // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
|
|
58
|
+
* ensureSymlinkSync("./targetFile.dat", "./targetFile.link.dat");
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @example Ensuring a link in a folder
|
|
62
|
+
* ```ts ignore
|
|
63
|
+
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
64
|
+
*
|
|
65
|
+
* // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
|
|
66
|
+
* ensureSymlinkSync("./targetFile.dat", "./folder/targetFile.link.dat");
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare function ensureSymlinkSync(target: string | URL, linkName: string | URL): void;
|
|
70
|
+
//# sourceMappingURL=ensure_symlink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure_symlink.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.ts"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,QAAQ,EAAE,MAAM,GAAG,GAAG,iBAyCvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,QAAQ,EAAE,MAAM,GAAG,GAAG,QAyCvB"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ensureSymlink = ensureSymlink;
|
|
4
|
+
exports.ensureSymlinkSync = ensureSymlinkSync;
|
|
5
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
6
|
+
const dirname_js_1 = require("../../path/1.1.3/dirname.js");
|
|
7
|
+
const resolve_js_1 = require("../../path/1.1.3/resolve.js");
|
|
8
|
+
const ensure_dir_js_1 = require("./ensure_dir.js");
|
|
9
|
+
const _get_file_info_type_js_1 = require("./_get_file_info_type.js");
|
|
10
|
+
const _to_path_string_js_1 = require("./_to_path_string.js");
|
|
11
|
+
const os_js_1 = require("../../internal/1.0.12/os.js");
|
|
12
|
+
function resolveSymlinkTarget(target, linkName) {
|
|
13
|
+
if (typeof target !== "string")
|
|
14
|
+
return target; // URL is always absolute path
|
|
15
|
+
if (typeof linkName === "string") {
|
|
16
|
+
return (0, resolve_js_1.resolve)((0, dirname_js_1.dirname)(linkName), target);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
return new URL(target, linkName);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function getSymlinkOption(type) {
|
|
23
|
+
return os_js_1.isWindows ? { type: type === "dir" ? "dir" : "file" } : undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Asynchronously ensures that the link exists, and points to a valid file.
|
|
27
|
+
*
|
|
28
|
+
* If the parent directories for the link do not exist, they are created. If the
|
|
29
|
+
* link already exists, and it is not modified, this function does nothing. If
|
|
30
|
+
* the link already exists, and it does not point to the given target, an error
|
|
31
|
+
* is thrown.
|
|
32
|
+
*
|
|
33
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
34
|
+
*
|
|
35
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
36
|
+
* for more information on Deno's permissions system.
|
|
37
|
+
*
|
|
38
|
+
* @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
|
|
39
|
+
* @param linkName The destination link path as a string or URL.
|
|
40
|
+
*
|
|
41
|
+
* @returns A void promise that resolves once the link exists.
|
|
42
|
+
*
|
|
43
|
+
* @example Basic usage
|
|
44
|
+
* ```ts ignore
|
|
45
|
+
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
46
|
+
*
|
|
47
|
+
* // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
|
|
48
|
+
* await ensureSymlink("./targetFile.dat", "./targetFile.link.dat");
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @example Ensuring a link in a folder
|
|
52
|
+
* ```ts ignore
|
|
53
|
+
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
54
|
+
*
|
|
55
|
+
* // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
|
|
56
|
+
* await ensureSymlink("./targetFile.dat", "./folder/targetFile.link.dat");
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
async function ensureSymlink(target, linkName) {
|
|
60
|
+
const targetRealPath = resolveSymlinkTarget(target, linkName);
|
|
61
|
+
let srcStatInfo;
|
|
62
|
+
try {
|
|
63
|
+
srcStatInfo = await Deno.lstat(targetRealPath);
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
if (error instanceof Deno.errors.NotFound) {
|
|
67
|
+
throw new Deno.errors.NotFound(`Cannot ensure symlink as the target path does not exist: ${targetRealPath}`);
|
|
68
|
+
}
|
|
69
|
+
throw error;
|
|
70
|
+
}
|
|
71
|
+
const srcFilePathType = (0, _get_file_info_type_js_1.getFileInfoType)(srcStatInfo);
|
|
72
|
+
await (0, ensure_dir_js_1.ensureDir)((0, dirname_js_1.dirname)((0, _to_path_string_js_1.toPathString)(linkName)));
|
|
73
|
+
const options = getSymlinkOption(srcFilePathType);
|
|
74
|
+
try {
|
|
75
|
+
await Deno.symlink(target, linkName, options);
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
if (!(error instanceof Deno.errors.AlreadyExists)) {
|
|
79
|
+
throw error;
|
|
80
|
+
}
|
|
81
|
+
const linkStatInfo = await Deno.lstat(linkName);
|
|
82
|
+
if (!linkStatInfo.isSymlink) {
|
|
83
|
+
const type = (0, _get_file_info_type_js_1.getFileInfoType)(linkStatInfo);
|
|
84
|
+
throw new Deno.errors.AlreadyExists(`A '${type}' already exists at the path: ${linkName}`);
|
|
85
|
+
}
|
|
86
|
+
const linkPath = await Deno.readLink(linkName);
|
|
87
|
+
const linkRealPath = (0, resolve_js_1.resolve)(linkPath);
|
|
88
|
+
if (linkRealPath !== targetRealPath) {
|
|
89
|
+
throw new Deno.errors.AlreadyExists(`A symlink targeting to an undesired path already exists: ${linkName} -> ${linkRealPath}`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Synchronously ensures that the link exists, and points to a valid file.
|
|
95
|
+
*
|
|
96
|
+
* If the parent directories for the link do not exist, they are created. If the
|
|
97
|
+
* link already exists, and it is not modified, this function does nothing. If
|
|
98
|
+
* the link already exists, and it does not point to the given target, an error
|
|
99
|
+
* is thrown.
|
|
100
|
+
*
|
|
101
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
102
|
+
*
|
|
103
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
104
|
+
* for more information on Deno's permissions system.
|
|
105
|
+
*
|
|
106
|
+
* @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
|
|
107
|
+
* @param linkName The destination link path as a string or URL.
|
|
108
|
+
* @returns A void value that returns once the link exists.
|
|
109
|
+
*
|
|
110
|
+
* @example Basic usage
|
|
111
|
+
* ```ts ignore
|
|
112
|
+
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
113
|
+
*
|
|
114
|
+
* // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
|
|
115
|
+
* ensureSymlinkSync("./targetFile.dat", "./targetFile.link.dat");
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* @example Ensuring a link in a folder
|
|
119
|
+
* ```ts ignore
|
|
120
|
+
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
121
|
+
*
|
|
122
|
+
* // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
|
|
123
|
+
* ensureSymlinkSync("./targetFile.dat", "./folder/targetFile.link.dat");
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
function ensureSymlinkSync(target, linkName) {
|
|
127
|
+
const targetRealPath = resolveSymlinkTarget(target, linkName);
|
|
128
|
+
let srcStatInfo;
|
|
129
|
+
try {
|
|
130
|
+
srcStatInfo = Deno.lstatSync(targetRealPath);
|
|
131
|
+
}
|
|
132
|
+
catch (error) {
|
|
133
|
+
if (error instanceof Deno.errors.NotFound) {
|
|
134
|
+
throw new Deno.errors.NotFound(`Cannot ensure symlink as the target path does not exist: ${targetRealPath}`);
|
|
135
|
+
}
|
|
136
|
+
throw error;
|
|
137
|
+
}
|
|
138
|
+
const srcFilePathType = (0, _get_file_info_type_js_1.getFileInfoType)(srcStatInfo);
|
|
139
|
+
(0, ensure_dir_js_1.ensureDirSync)((0, dirname_js_1.dirname)((0, _to_path_string_js_1.toPathString)(linkName)));
|
|
140
|
+
const options = getSymlinkOption(srcFilePathType);
|
|
141
|
+
try {
|
|
142
|
+
Deno.symlinkSync(target, linkName, options);
|
|
143
|
+
}
|
|
144
|
+
catch (error) {
|
|
145
|
+
if (!(error instanceof Deno.errors.AlreadyExists)) {
|
|
146
|
+
throw error;
|
|
147
|
+
}
|
|
148
|
+
const linkStatInfo = Deno.lstatSync(linkName);
|
|
149
|
+
if (!linkStatInfo.isSymlink) {
|
|
150
|
+
const type = (0, _get_file_info_type_js_1.getFileInfoType)(linkStatInfo);
|
|
151
|
+
throw new Deno.errors.AlreadyExists(`A '${type}' already exists at the path: ${linkName}`);
|
|
152
|
+
}
|
|
153
|
+
const linkPath = Deno.readLinkSync(linkName);
|
|
154
|
+
const linkRealPath = (0, resolve_js_1.resolve)(linkPath);
|
|
155
|
+
if (linkRealPath !== targetRealPath) {
|
|
156
|
+
throw new Deno.errors.AlreadyExists(`A symlink targeting to an undesired path already exists: ${linkName} -> ${linkRealPath}`);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|