@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 @@
|
|
|
1
|
+
{"version":3,"file":"ensure_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/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-2024 the Deno authors. All rights reserved. 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.4/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-2024 the Deno authors. All rights reserved. MIT license.
|
|
6
|
+
const dirname_js_1 = require("../../path/1.0.6/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.4/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-2024 the Deno authors. All rights reserved. MIT license.
|
|
6
|
+
const dirname_js_1 = require("../../path/1.0.6/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,52 @@
|
|
|
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.
|
|
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 Usage
|
|
20
|
+
* ```ts ignore
|
|
21
|
+
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
22
|
+
*
|
|
23
|
+
* await ensureSymlink("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function ensureSymlink(target: string | URL, linkName: string | URL): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Synchronously ensures that the link exists, and points to a valid file.
|
|
29
|
+
*
|
|
30
|
+
* If the parent directories for the link do not exist, they are created. If the
|
|
31
|
+
* link already exists, and it is not modified, this function does nothing. If
|
|
32
|
+
* the link already exists, and it does not point to the given target, an error
|
|
33
|
+
* is thrown.
|
|
34
|
+
*
|
|
35
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
36
|
+
*
|
|
37
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
38
|
+
* for more information on Deno's permissions system.
|
|
39
|
+
*
|
|
40
|
+
* @param target The source file path as a string or URL.
|
|
41
|
+
* @param linkName The destination link path as a string or URL.
|
|
42
|
+
* @returns A void value that returns once the link exists.
|
|
43
|
+
*
|
|
44
|
+
* @example Usage
|
|
45
|
+
* ```ts ignore
|
|
46
|
+
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
47
|
+
*
|
|
48
|
+
* ensureSymlinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function ensureSymlinkSync(target: string | URL, linkName: string | URL): void;
|
|
52
|
+
//# 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.4/ensure_symlink.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,QAAQ,EAAE,MAAM,GAAG,GAAG,iBA+BvB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,QAAQ,EAAE,MAAM,GAAG,GAAG,QA+BvB"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ensureSymlink = ensureSymlink;
|
|
4
|
+
exports.ensureSymlinkSync = ensureSymlinkSync;
|
|
5
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
6
|
+
const dirname_js_1 = require("../../path/1.0.6/dirname.js");
|
|
7
|
+
const resolve_js_1 = require("../../path/1.0.6/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 isWindows = Deno.build.os === "windows";
|
|
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 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.
|
|
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 Usage
|
|
44
|
+
* ```ts ignore
|
|
45
|
+
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
46
|
+
*
|
|
47
|
+
* await ensureSymlink("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
async function ensureSymlink(target, linkName) {
|
|
51
|
+
const targetRealPath = resolveSymlinkTarget(target, linkName);
|
|
52
|
+
const srcStatInfo = await Deno.lstat(targetRealPath);
|
|
53
|
+
const srcFilePathType = (0, _get_file_info_type_js_1.getFileInfoType)(srcStatInfo);
|
|
54
|
+
await (0, ensure_dir_js_1.ensureDir)((0, dirname_js_1.dirname)((0, _to_path_string_js_1.toPathString)(linkName)));
|
|
55
|
+
const options = getSymlinkOption(srcFilePathType);
|
|
56
|
+
try {
|
|
57
|
+
await Deno.symlink(target, linkName, options);
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
if (!(error instanceof Deno.errors.AlreadyExists)) {
|
|
61
|
+
throw error;
|
|
62
|
+
}
|
|
63
|
+
const linkStatInfo = await Deno.lstat(linkName);
|
|
64
|
+
if (!linkStatInfo.isSymlink) {
|
|
65
|
+
const type = (0, _get_file_info_type_js_1.getFileInfoType)(linkStatInfo);
|
|
66
|
+
throw new Deno.errors.AlreadyExists(`A '${type}' already exists at the path: ${linkName}`);
|
|
67
|
+
}
|
|
68
|
+
const linkPath = await Deno.readLink(linkName);
|
|
69
|
+
const linkRealPath = (0, resolve_js_1.resolve)(linkPath);
|
|
70
|
+
if (linkRealPath !== targetRealPath) {
|
|
71
|
+
throw new Deno.errors.AlreadyExists(`A symlink targeting to an undesired path already exists: ${linkName} -> ${linkRealPath}`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Synchronously ensures that the link exists, and points to a valid file.
|
|
77
|
+
*
|
|
78
|
+
* If the parent directories for the link do not exist, they are created. If the
|
|
79
|
+
* link already exists, and it is not modified, this function does nothing. If
|
|
80
|
+
* the link already exists, and it does not point to the given target, an error
|
|
81
|
+
* is thrown.
|
|
82
|
+
*
|
|
83
|
+
* Requires `--allow-read` and `--allow-write` permissions.
|
|
84
|
+
*
|
|
85
|
+
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
86
|
+
* for more information on Deno's permissions system.
|
|
87
|
+
*
|
|
88
|
+
* @param target The source file path as a string or URL.
|
|
89
|
+
* @param linkName The destination link path as a string or URL.
|
|
90
|
+
* @returns A void value that returns once the link exists.
|
|
91
|
+
*
|
|
92
|
+
* @example Usage
|
|
93
|
+
* ```ts ignore
|
|
94
|
+
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
95
|
+
*
|
|
96
|
+
* ensureSymlinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
function ensureSymlinkSync(target, linkName) {
|
|
100
|
+
const targetRealPath = resolveSymlinkTarget(target, linkName);
|
|
101
|
+
const srcStatInfo = Deno.lstatSync(targetRealPath);
|
|
102
|
+
const srcFilePathType = (0, _get_file_info_type_js_1.getFileInfoType)(srcStatInfo);
|
|
103
|
+
(0, ensure_dir_js_1.ensureDirSync)((0, dirname_js_1.dirname)((0, _to_path_string_js_1.toPathString)(linkName)));
|
|
104
|
+
const options = getSymlinkOption(srcFilePathType);
|
|
105
|
+
try {
|
|
106
|
+
Deno.symlinkSync(target, linkName, options);
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
if (!(error instanceof Deno.errors.AlreadyExists)) {
|
|
110
|
+
throw error;
|
|
111
|
+
}
|
|
112
|
+
const linkStatInfo = Deno.lstatSync(linkName);
|
|
113
|
+
if (!linkStatInfo.isSymlink) {
|
|
114
|
+
const type = (0, _get_file_info_type_js_1.getFileInfoType)(linkStatInfo);
|
|
115
|
+
throw new Deno.errors.AlreadyExists(`A '${type}' already exists at the path: ${linkName}`);
|
|
116
|
+
}
|
|
117
|
+
const linkPath = Deno.readLinkSync(linkName);
|
|
118
|
+
const linkRealPath = (0, resolve_js_1.resolve)(linkPath);
|
|
119
|
+
if (linkRealPath !== targetRealPath) {
|
|
120
|
+
throw new Deno.errors.AlreadyExists(`A symlink targeting to an undesired path already exists: ${linkName} -> ${linkRealPath}`);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** End-of-line character for POSIX platforms such as macOS and Linux. */
|
|
2
|
+
export declare const LF: "\n";
|
|
3
|
+
/** End-of-line character for Windows platforms. */
|
|
4
|
+
export declare const CRLF: "\r\n";
|
|
5
|
+
/**
|
|
6
|
+
* End-of-line character evaluated for the current platform.
|
|
7
|
+
*
|
|
8
|
+
* @example Usage
|
|
9
|
+
* ```ts ignore
|
|
10
|
+
* import { EOL } from "@std/fs/eol";
|
|
11
|
+
*
|
|
12
|
+
* EOL; // "\n" on POSIX platforms and "\r\n" on Windows
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const EOL: "\n" | "\r\n";
|
|
16
|
+
/**
|
|
17
|
+
* Returns the detected EOL character(s) detected in the input string. If no EOL
|
|
18
|
+
* character is detected, `null` is returned.
|
|
19
|
+
*
|
|
20
|
+
* @param content The input string to detect EOL characters.
|
|
21
|
+
*
|
|
22
|
+
* @returns The detected EOL character(s) or `null` if no EOL character is detected.
|
|
23
|
+
*
|
|
24
|
+
* @example Usage
|
|
25
|
+
* ```ts ignore
|
|
26
|
+
* import { detect } from "@std/fs/eol";
|
|
27
|
+
*
|
|
28
|
+
* detect("deno\r\nis not\r\nnode"); // "\r\n"
|
|
29
|
+
* detect("deno\nis not\r\nnode"); // "\r\n"
|
|
30
|
+
* detect("deno\nis not\nnode"); // "\n"
|
|
31
|
+
* detect("deno is not node"); // null
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function detect(content: string): typeof EOL | null;
|
|
35
|
+
/**
|
|
36
|
+
* Normalize the input string to the targeted EOL.
|
|
37
|
+
*
|
|
38
|
+
* @param content The input string to normalize.
|
|
39
|
+
* @param eol The EOL character(s) to normalize the input string to.
|
|
40
|
+
*
|
|
41
|
+
* @returns The input string normalized to the targeted EOL.
|
|
42
|
+
*
|
|
43
|
+
* @example Usage
|
|
44
|
+
* ```ts ignore
|
|
45
|
+
* import { LF, format } from "@std/fs/eol";
|
|
46
|
+
*
|
|
47
|
+
* const CRLFinput = "deno\r\nis not\r\nnode";
|
|
48
|
+
*
|
|
49
|
+
* format(CRLFinput, LF); // "deno\nis not\nnode"
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare function format(content: string, eol: typeof EOL): string;
|
|
53
|
+
//# sourceMappingURL=eol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eol.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/eol.ts"],"names":[],"mappings":"AAEA,yEAAyE;AACzE,eAAO,MAAM,EAAE,EAAG,IAAa,CAAC;AAEhC,mDAAmD;AACnD,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC;;;;;;;;;GASG;AACH,eAAO,MAAM,GAAG,EAAE,IAAI,GAAG,MAAiD,CAAC;AAI3E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,IAAI,CAQzD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,GAAG,MAAM,CAE/D"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.EOL = exports.CRLF = exports.LF = void 0;
|
|
5
|
+
exports.detect = detect;
|
|
6
|
+
exports.format = format;
|
|
7
|
+
/** End-of-line character for POSIX platforms such as macOS and Linux. */
|
|
8
|
+
exports.LF = "\n";
|
|
9
|
+
/** End-of-line character for Windows platforms. */
|
|
10
|
+
exports.CRLF = "\r\n";
|
|
11
|
+
/**
|
|
12
|
+
* End-of-line character evaluated for the current platform.
|
|
13
|
+
*
|
|
14
|
+
* @example Usage
|
|
15
|
+
* ```ts ignore
|
|
16
|
+
* import { EOL } from "@std/fs/eol";
|
|
17
|
+
*
|
|
18
|
+
* EOL; // "\n" on POSIX platforms and "\r\n" on Windows
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
exports.EOL = Deno?.build.os === "windows" ? exports.CRLF : exports.LF;
|
|
22
|
+
const regDetect = /(?:\r?\n)/g;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the detected EOL character(s) detected in the input string. If no EOL
|
|
25
|
+
* character is detected, `null` is returned.
|
|
26
|
+
*
|
|
27
|
+
* @param content The input string to detect EOL characters.
|
|
28
|
+
*
|
|
29
|
+
* @returns The detected EOL character(s) or `null` if no EOL character is detected.
|
|
30
|
+
*
|
|
31
|
+
* @example Usage
|
|
32
|
+
* ```ts ignore
|
|
33
|
+
* import { detect } from "@std/fs/eol";
|
|
34
|
+
*
|
|
35
|
+
* detect("deno\r\nis not\r\nnode"); // "\r\n"
|
|
36
|
+
* detect("deno\nis not\r\nnode"); // "\r\n"
|
|
37
|
+
* detect("deno\nis not\nnode"); // "\n"
|
|
38
|
+
* detect("deno is not node"); // null
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
function detect(content) {
|
|
42
|
+
const d = content.match(regDetect);
|
|
43
|
+
if (!d || d.length === 0) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
const hasCRLF = d.some((x) => x === exports.CRLF);
|
|
47
|
+
return hasCRLF ? exports.CRLF : exports.LF;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Normalize the input string to the targeted EOL.
|
|
51
|
+
*
|
|
52
|
+
* @param content The input string to normalize.
|
|
53
|
+
* @param eol The EOL character(s) to normalize the input string to.
|
|
54
|
+
*
|
|
55
|
+
* @returns The input string normalized to the targeted EOL.
|
|
56
|
+
*
|
|
57
|
+
* @example Usage
|
|
58
|
+
* ```ts ignore
|
|
59
|
+
* import { LF, format } from "@std/fs/eol";
|
|
60
|
+
*
|
|
61
|
+
* const CRLFinput = "deno\r\nis not\r\nnode";
|
|
62
|
+
*
|
|
63
|
+
* format(CRLFinput, LF); // "deno\nis not\nnode"
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
function format(content, eol) {
|
|
67
|
+
return content.replace(regDetect, eol);
|
|
68
|
+
}
|