windmill-cli 1.394.3 → 1.394.4
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/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/mod.js +0 -6
- package/esm/deps/jsr.io/@std/fs/1.0.3/_create_walk_entry.js +2 -2
- package/esm/deps/jsr.io/@std/fs/1.0.3/_is_same_path.js +1 -1
- package/esm/deps/jsr.io/@std/fs/1.0.3/_is_subdir.js +2 -2
- package/esm/deps/jsr.io/@std/fs/1.0.3/_to_path_string.js +1 -1
- package/esm/deps/jsr.io/@std/fs/1.0.3/copy.js +3 -3
- package/esm/deps/jsr.io/@std/fs/1.0.3/empty_dir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/1.0.3/ensure_file.js +1 -1
- package/esm/deps/jsr.io/@std/fs/1.0.3/ensure_link.js +1 -1
- package/esm/deps/jsr.io/@std/fs/1.0.3/ensure_symlink.js +2 -2
- package/esm/deps/jsr.io/@std/fs/1.0.3/expand_glob.js +6 -6
- package/esm/deps/jsr.io/@std/fs/1.0.3/walk.js +1 -1
- package/esm/deps/jsr.io/@std/io/0.224.8/types.js +15 -0
- package/esm/deps/jsr.io/@std/log/0.224.7/file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.0.6/basename.js +36 -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.js +29 -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/normalize.js +33 -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.4 → 1.0.6}/posix/dirname.js +18 -4
- package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/extname.js +19 -4
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/normalize.js +20 -2
- package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/basename.js +21 -2
- package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/dirname.js +18 -4
- package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/extname.js +18 -4
- package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/join.js +19 -4
- package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/normalize.js +20 -2
- package/esm/deps.js +6 -6
- package/esm/main.js +1 -1
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_base32_common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_validate_binary_like.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/ascii85.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base32.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base58.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/hex.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/mod.d.ts +0 -6
- package/types/deps/jsr.io/@std/encoding/1.0.5/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/varint.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/1.0.3/expand_glob.d.ts +1 -1
- package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/_constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/read_all.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/types.d.ts +56 -5
- package/types/deps/jsr.io/@std/io/0.224.8/types.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/assert_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/glob_to_reg_exp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
- package/types/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
- package/types/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
- package/types/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/cursor_position.d.ts +1 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/tty.d.ts +1 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_prompt.d.ts +1 -1
- package/types/deps.d.ts +6 -6
- package/types/main.d.ts +1 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base32_stream.js +0 -92
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base32hex.js +0 -77
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.js +0 -92
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base64_stream.js +0 -92
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.js +0 -93
- package/esm/deps/jsr.io/@std/encoding/1.0.4/hex_stream.js +0 -81
- package/esm/deps/jsr.io/@std/path/1.0.4/basename.js +0 -10
- package/esm/deps/jsr.io/@std/path/1.0.4/dirname.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.4/extname.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.4/join.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.4/normalize.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.4/posix/basename.js +0 -13
- package/esm/deps/jsr.io/@std/path/1.0.4/posix/join.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.0.4/types.js +0 -3
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32_stream.d.ts +0 -48
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32_stream.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex.d.ts +0 -42
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.d.ts +0 -48
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64_stream.d.ts +0 -48
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64_stream.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.d.ts +0 -49
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/hex_stream.d.ts +0 -48
- package/types/deps/jsr.io/@std/encoding/1.0.4/hex_stream.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/io/0.224.7/types.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/_os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/basename.d.ts +0 -53
- package/types/deps/jsr.io/@std/path/1.0.4/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/dirname.d.ts +0 -43
- package/types/deps/jsr.io/@std/path/1.0.4/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/extname.d.ts +0 -43
- package/types/deps/jsr.io/@std/path/1.0.4/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/join.d.ts +0 -39
- package/types/deps/jsr.io/@std/path/1.0.4/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/normalize.d.ts +0 -51
- package/types/deps/jsr.io/@std/path/1.0.4/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/posix/basename.d.ts +0 -43
- package/types/deps/jsr.io/@std/path/1.0.4/posix/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/posix/dirname.d.ts +0 -36
- package/types/deps/jsr.io/@std/path/1.0.4/posix/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/posix/extname.d.ts +0 -43
- package/types/deps/jsr.io/@std/path/1.0.4/posix/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/posix/join.d.ts +0 -36
- package/types/deps/jsr.io/@std/path/1.0.4/posix/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/posix/normalize.d.ts +0 -39
- package/types/deps/jsr.io/@std/path/1.0.4/posix/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/windows/basename.d.ts +0 -43
- package/types/deps/jsr.io/@std/path/1.0.4/windows/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/windows/dirname.d.ts +0 -35
- package/types/deps/jsr.io/@std/path/1.0.4/windows/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/windows/extname.d.ts +0 -35
- package/types/deps/jsr.io/@std/path/1.0.4/windows/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/windows/join.d.ts +0 -36
- package/types/deps/jsr.io/@std/path/1.0.4/windows/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.4/windows/normalize.d.ts +0 -39
- package/types/deps/jsr.io/@std/path/1.0.4/windows/normalize.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_base32_common.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_validate_binary_like.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/ascii85.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base32.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base58.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64url.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/hex.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/varint.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/_constants.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/copy.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/read_all.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/assert_path.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/common.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/dirname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/format.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize_string.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/relative.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_os.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/common.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/glob_to_regexp.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_glob.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/join_globs.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/normalize_glob.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/parse.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/format.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/join_globs.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/normalize_glob.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/parse.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/relative.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/resolve.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/relative.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/resolve.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_namespaced_path.js +0 -0
- /package/esm/deps/jsr.io/@std/{io/0.224.7 → path/1.0.6}/types.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/format.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/join_globs.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/normalize_glob.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/parse.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/relative.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/resolve.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_namespaced_path.js +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_base32_common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_validate_binary_like.d.ts +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/ascii85.d.ts +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base32.d.ts +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base58.d.ts +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64.d.ts +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/hex.d.ts +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/varint.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/_constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/read_all.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/assert_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/glob_to_reg_exp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/strip_trailing_separators.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_os.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_namespaced_path.d.ts +0 -0
|
@@ -15,14 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export * from "./ascii85.js";
|
|
17
17
|
export * from "./base32.js";
|
|
18
|
-
export * from "./base32_stream.js";
|
|
19
|
-
export * from "./base32hex.js";
|
|
20
|
-
export * from "./base32hex_stream.js";
|
|
21
18
|
export * from "./base58.js";
|
|
22
19
|
export * from "./base64.js";
|
|
23
|
-
export * from "./base64_stream.js";
|
|
24
20
|
export * from "./base64url.js";
|
|
25
|
-
export * from "./base64url_stream.js";
|
|
26
21
|
export * from "./hex.js";
|
|
27
|
-
export * from "./hex_stream.js";
|
|
28
22
|
export * from "./varint.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
// Copyright the Browserify authors. MIT License.
|
|
3
3
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
4
|
-
import { basename } from "../../path/1.0.
|
|
5
|
-
import { normalize } from "../../path/1.0.
|
|
4
|
+
import { basename } from "../../path/1.0.6/basename.js";
|
|
5
|
+
import { normalize } from "../../path/1.0.6/normalize.js";
|
|
6
6
|
import { toPathString } from "./_to_path_string.js";
|
|
7
7
|
/** Create {@linkcode WalkEntry} for the `path` synchronously. */
|
|
8
8
|
export function createWalkEntrySync(path) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
// Copyright the Browserify authors. MIT License.
|
|
3
|
-
import { resolve } from "../../path/1.0.
|
|
3
|
+
import { resolve } from "../../path/1.0.6/resolve.js";
|
|
4
4
|
import { toPathString } from "./_to_path_string.js";
|
|
5
5
|
/**
|
|
6
6
|
* Checks if two paths are the same.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
// Copyright the Browserify authors. MIT License.
|
|
3
|
-
import { resolve } from "../../path/1.0.
|
|
4
|
-
import { SEPARATOR } from "../../path/1.0.
|
|
3
|
+
import { resolve } from "../../path/1.0.6/resolve.js";
|
|
4
|
+
import { SEPARATOR } from "../../path/1.0.6/constants.js";
|
|
5
5
|
import { toPathString } from "./_to_path_string.js";
|
|
6
6
|
/**
|
|
7
7
|
* Checks whether `src` is a sub-directory of `dest`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
// Copyright the Browserify authors. MIT License.
|
|
3
|
-
import { fromFileUrl } from "../../path/1.0.
|
|
3
|
+
import { fromFileUrl } from "../../path/1.0.6/from_file_url.js";
|
|
4
4
|
/**
|
|
5
5
|
* Convert a URL or string to a path.
|
|
6
6
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
3
|
-
import { basename } from "../../path/1.0.
|
|
4
|
-
import { join } from "../../path/1.0.
|
|
5
|
-
import { resolve } from "../../path/1.0.
|
|
3
|
+
import { basename } from "../../path/1.0.6/basename.js";
|
|
4
|
+
import { join } from "../../path/1.0.6/join.js";
|
|
5
|
+
import { resolve } from "../../path/1.0.6/resolve.js";
|
|
6
6
|
import { ensureDir, ensureDirSync } from "./ensure_dir.js";
|
|
7
7
|
import { getFileInfoType } from "./_get_file_info_type.js";
|
|
8
8
|
import { toPathString } from "./_to_path_string.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
3
|
-
import { join } from "../../path/1.0.
|
|
3
|
+
import { join } from "../../path/1.0.6/join.js";
|
|
4
4
|
import { toPathString } from "./_to_path_string.js";
|
|
5
5
|
/**
|
|
6
6
|
* Asynchronously ensures that a directory is empty.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
3
|
-
import { dirname } from "../../path/1.0.
|
|
3
|
+
import { dirname } from "../../path/1.0.6/dirname.js";
|
|
4
4
|
import { ensureDir, ensureDirSync } from "./ensure_dir.js";
|
|
5
5
|
import { getFileInfoType } from "./_get_file_info_type.js";
|
|
6
6
|
import { toPathString } from "./_to_path_string.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
3
|
-
import { dirname } from "../../path/1.0.
|
|
3
|
+
import { dirname } from "../../path/1.0.6/dirname.js";
|
|
4
4
|
import { ensureDir, ensureDirSync } from "./ensure_dir.js";
|
|
5
5
|
import { toPathString } from "./_to_path_string.js";
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
3
|
-
import { dirname } from "../../path/1.0.
|
|
4
|
-
import { resolve } from "../../path/1.0.
|
|
3
|
+
import { dirname } from "../../path/1.0.6/dirname.js";
|
|
4
|
+
import { resolve } from "../../path/1.0.6/resolve.js";
|
|
5
5
|
import { ensureDir, ensureDirSync } from "./ensure_dir.js";
|
|
6
6
|
import { getFileInfoType } from "./_get_file_info_type.js";
|
|
7
7
|
import { toPathString } from "./_to_path_string.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
3
|
-
import { globToRegExp } from "../../path/1.0.
|
|
4
|
-
import { joinGlobs } from "../../path/1.0.
|
|
5
|
-
import { isGlob } from "../../path/1.0.
|
|
6
|
-
import { isAbsolute } from "../../path/1.0.
|
|
7
|
-
import { resolve } from "../../path/1.0.
|
|
8
|
-
import { SEPARATOR_PATTERN } from "../../path/1.0.
|
|
3
|
+
import { globToRegExp } from "../../path/1.0.6/glob_to_regexp.js";
|
|
4
|
+
import { joinGlobs } from "../../path/1.0.6/join_globs.js";
|
|
5
|
+
import { isGlob } from "../../path/1.0.6/is_glob.js";
|
|
6
|
+
import { isAbsolute } from "../../path/1.0.6/is_absolute.js";
|
|
7
|
+
import { resolve } from "../../path/1.0.6/resolve.js";
|
|
8
|
+
import { SEPARATOR_PATTERN } from "../../path/1.0.6/constants.js";
|
|
9
9
|
import { walk, walkSync } from "./walk.js";
|
|
10
10
|
import { toPathString } from "./_to_path_string.js";
|
|
11
11
|
import { createWalkEntry, createWalkEntrySync, } from "./_create_walk_entry.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// https://golang.org/pkg/path/filepath/#Walk
|
|
4
4
|
// Copyright 2009 The Go Authors. All rights reserved. BSD license.
|
|
5
5
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
6
|
-
import { join } from "../../path/1.0.
|
|
6
|
+
import { join } from "../../path/1.0.6/join.js";
|
|
7
7
|
import { toPathString } from "./_to_path_string.js";
|
|
8
8
|
import { createWalkEntry, createWalkEntrySync, } from "./_create_walk_entry.js";
|
|
9
9
|
function include(path, exts, match, skip) {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
/**
|
|
4
|
+
* A enum which defines the seek mode for IO related APIs that support
|
|
5
|
+
* seeking.
|
|
6
|
+
*/
|
|
7
|
+
export var SeekMode;
|
|
8
|
+
(function (SeekMode) {
|
|
9
|
+
/* Seek from the start of the file/resource. */
|
|
10
|
+
SeekMode[SeekMode["Start"] = 0] = "Start";
|
|
11
|
+
/* Seek from the current position within the file/resource. */
|
|
12
|
+
SeekMode[SeekMode["Current"] = 1] = "Current";
|
|
13
|
+
/* Seek from the end of the current file/resource. */
|
|
14
|
+
SeekMode[SeekMode["End"] = 2] = "End";
|
|
15
|
+
})(SeekMode || (SeekMode = {}));
|
|
@@ -8,7 +8,7 @@ var _FileHandler_instances, _FileHandler_unloadCallback, _FileHandler_resetBuffe
|
|
|
8
8
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
9
9
|
import { LogLevels } from "./levels.js";
|
|
10
10
|
import { BaseHandler } from "./base_handler.js";
|
|
11
|
-
import { writeAllSync } from "../../io/0.224.
|
|
11
|
+
import { writeAllSync } from "../../io/0.224.8/write_all.js";
|
|
12
12
|
import { bufSymbol, encoderSymbol, filenameSymbol, fileSymbol, modeSymbol, openOptionsSymbol, pointerSymbol, } from "./_file_handler_symbols.js";
|
|
13
13
|
/**
|
|
14
14
|
* This handler will output to a file using an optional mode (default is `a`,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { isWindows } from "./_os.js";
|
|
4
|
+
import { basename as posixBasename } from "./posix/basename.js";
|
|
5
|
+
import { basename as windowsBasename } from "./windows/basename.js";
|
|
6
|
+
/**
|
|
7
|
+
* Return the last portion of a path.
|
|
8
|
+
*
|
|
9
|
+
* The trailing directory separators are ignored, and optional suffix is
|
|
10
|
+
* removed.
|
|
11
|
+
*
|
|
12
|
+
* @example Usage
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { basename } from "@std/path/basename";
|
|
15
|
+
* import { assertEquals } from "@std/assert";
|
|
16
|
+
*
|
|
17
|
+
* if (Deno.build.os === "windows") {
|
|
18
|
+
* assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
|
|
19
|
+
* } else {
|
|
20
|
+
* assertEquals(basename("/home/user/Documents/image.png"), "image.png");
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* Note: If you are working with file URLs,
|
|
25
|
+
* use the new version of `basename` from `@std/path/unstable-basename`.
|
|
26
|
+
*
|
|
27
|
+
* @param path Path to extract the name from.
|
|
28
|
+
* @param suffix Suffix to remove from extracted name.
|
|
29
|
+
*
|
|
30
|
+
* @returns The basename of the path.
|
|
31
|
+
*/
|
|
32
|
+
export function basename(path, suffix = "") {
|
|
33
|
+
return isWindows
|
|
34
|
+
? windowsBasename(path, suffix)
|
|
35
|
+
: posixBasename(path, suffix);
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { isWindows } from "./_os.js";
|
|
4
|
+
import { dirname as posixDirname } from "./posix/dirname.js";
|
|
5
|
+
import { dirname as windowsDirname } from "./windows/dirname.js";
|
|
6
|
+
/**
|
|
7
|
+
* Return the directory path of a path.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { dirname } from "@std/path/dirname";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* if (Deno.build.os === "windows") {
|
|
15
|
+
* assertEquals(dirname("C:\\home\\user\\Documents\\image.png"), "C:\\home\\user\\Documents");
|
|
16
|
+
* } else {
|
|
17
|
+
* assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Note: If you are working with file URLs,
|
|
22
|
+
* use the new version of `dirname` from `@std/path/unstable-dirname`.
|
|
23
|
+
*
|
|
24
|
+
* @param path Path to extract the directory from.
|
|
25
|
+
* @returns The directory path.
|
|
26
|
+
*/
|
|
27
|
+
export function dirname(path) {
|
|
28
|
+
return isWindows ? windowsDirname(path) : posixDirname(path);
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { isWindows } from "./_os.js";
|
|
4
|
+
import { extname as posixExtname } from "./posix/extname.js";
|
|
5
|
+
import { extname as windowsExtname } from "./windows/extname.js";
|
|
6
|
+
/**
|
|
7
|
+
* Return the extension of the path with leading period (".").
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { extname } from "@std/path/extname";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* if (Deno.build.os === "windows") {
|
|
15
|
+
* assertEquals(extname("C:\\home\\user\\Documents\\image.png"), ".png");
|
|
16
|
+
* } else {
|
|
17
|
+
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Note: If you are working with file URLs,
|
|
22
|
+
* use the new version of `extname` from `@std/path/unstable-extname`.
|
|
23
|
+
*
|
|
24
|
+
* @param path Path with extension.
|
|
25
|
+
* @returns The file extension. E.g. returns `.ts` for `file.ts`.
|
|
26
|
+
*/
|
|
27
|
+
export function extname(path) {
|
|
28
|
+
return isWindows ? windowsExtname(path) : posixExtname(path);
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { isWindows } from "./_os.js";
|
|
4
|
+
import { join as posixJoin } from "./posix/join.js";
|
|
5
|
+
import { join as windowsJoin } from "./windows/join.js";
|
|
6
|
+
/**
|
|
7
|
+
* Joins a sequence of paths, then normalizes the resulting path.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { join } from "@std/path/join";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* if (Deno.build.os === "windows") {
|
|
15
|
+
* assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
|
|
16
|
+
* } else {
|
|
17
|
+
* assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Note: If you are working with file URLs,
|
|
22
|
+
* use the new version of `join` from `@std/path/unstable-join`.
|
|
23
|
+
*
|
|
24
|
+
* @param paths Paths to be joined and normalized.
|
|
25
|
+
* @returns The joined and normalized path.
|
|
26
|
+
*/
|
|
27
|
+
export function join(...paths) {
|
|
28
|
+
return isWindows ? windowsJoin(...paths) : posixJoin(...paths);
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { isWindows } from "./_os.js";
|
|
4
|
+
import { normalize as posixNormalize } from "./posix/normalize.js";
|
|
5
|
+
import { normalize as windowsNormalize } from "./windows/normalize.js";
|
|
6
|
+
/**
|
|
7
|
+
* Normalize the path, resolving `'..'` and `'.'` segments.
|
|
8
|
+
*
|
|
9
|
+
* Note: Resolving these segments does not necessarily mean that all will be
|
|
10
|
+
* eliminated. A `'..'` at the top-level will be preserved, and an empty path is
|
|
11
|
+
* canonically `'.'`.
|
|
12
|
+
*
|
|
13
|
+
* @example Usage
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { normalize } from "@std/path/normalize";
|
|
16
|
+
* import { assertEquals } from "@std/assert";
|
|
17
|
+
*
|
|
18
|
+
* if (Deno.build.os === "windows") {
|
|
19
|
+
* assertEquals(normalize("C:\\foo\\bar\\..\\baz\\quux"), "C:\\foo\\baz\\quux");
|
|
20
|
+
* } else {
|
|
21
|
+
* assertEquals(normalize("/foo/bar/../baz/quux"), "/foo/baz/quux");
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* Note: If you are working with file URLs,
|
|
26
|
+
* use the new version of `normalize` from `@std/path/unstable-normalize`.
|
|
27
|
+
*
|
|
28
|
+
* @param path Path to be normalized
|
|
29
|
+
* @returns The normalized path.
|
|
30
|
+
*/
|
|
31
|
+
export function normalize(path) {
|
|
32
|
+
return isWindows ? windowsNormalize(path) : posixNormalize(path);
|
|
33
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
|
|
4
|
+
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
5
|
+
import { isPosixPathSeparator } from "./_util.js";
|
|
6
|
+
/**
|
|
7
|
+
* Return the last portion of a `path`.
|
|
8
|
+
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
9
|
+
*
|
|
10
|
+
* @example Usage
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { basename } from "@std/path/posix/basename";
|
|
13
|
+
* import { assertEquals } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* assertEquals(basename("/home/user/Documents/"), "Documents");
|
|
16
|
+
* assertEquals(basename("/home/user/Documents/image.png"), "image.png");
|
|
17
|
+
* assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Note: If you are working with file URLs,
|
|
21
|
+
* use the new version of `basename` from `@std/path/posix/unstable-basename`.
|
|
22
|
+
*
|
|
23
|
+
* @param path The path to extract the name from.
|
|
24
|
+
* @param suffix The suffix to remove from extracted name.
|
|
25
|
+
* @returns The extracted name.
|
|
26
|
+
*/
|
|
27
|
+
export function basename(path, suffix = "") {
|
|
28
|
+
assertArgs(path, suffix);
|
|
29
|
+
const lastSegment = lastPathSegment(path, isPosixPathSeparator);
|
|
30
|
+
const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
|
|
31
|
+
return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
|
|
32
|
+
}
|
|
@@ -3,11 +3,25 @@
|
|
|
3
3
|
import { assertArg } from "../_common/dirname.js";
|
|
4
4
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
5
5
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Return the directory path of a `path`.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { dirname } from "@std/path/posix/dirname";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* assertEquals(dirname("/home/user/Documents/"), "/home/user");
|
|
15
|
+
* assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* Note: If you are working with file URLs,
|
|
19
|
+
* use the new version of `dirname` from `@std/path/posix/unstable-dirname`.
|
|
20
|
+
*
|
|
21
|
+
* @param path The path to get the directory from.
|
|
22
|
+
* @returns The directory path.
|
|
23
|
+
*/
|
|
7
24
|
export function dirname(path) {
|
|
8
|
-
if (path instanceof URL) {
|
|
9
|
-
path = fromFileUrl(path);
|
|
10
|
-
}
|
|
11
25
|
assertArg(path);
|
|
12
26
|
let end = -1;
|
|
13
27
|
let matchedNonSeparator = false;
|
|
@@ -3,11 +3,26 @@
|
|
|
3
3
|
import { CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
5
5
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Return the extension of the `path` with leading period.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { extname } from "@std/path/posix/extname";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
|
|
15
|
+
* assertEquals(extname("/home/user/Documents/"), "");
|
|
16
|
+
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Note: If you are working with file URLs,
|
|
20
|
+
* use the new version of `extname` from `@std/path/posix/unstable-extname`.
|
|
21
|
+
*
|
|
22
|
+
* @param path The path to get the extension from.
|
|
23
|
+
* @returns The extension (ex. for `file.ts` returns `.ts`).
|
|
24
|
+
*/
|
|
7
25
|
export function extname(path) {
|
|
8
|
-
if (path instanceof URL) {
|
|
9
|
-
path = fromFileUrl(path);
|
|
10
|
-
}
|
|
11
26
|
assertPath(path);
|
|
12
27
|
let startDot = -1;
|
|
13
28
|
let startPart = 0;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { assertPath } from "../_common/assert_path.js";
|
|
4
|
+
import { normalize } from "./normalize.js";
|
|
5
|
+
/**
|
|
6
|
+
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
7
|
+
*
|
|
8
|
+
* @example Usage
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { join } from "@std/path/posix/join";
|
|
11
|
+
* import { assertEquals } from "@std/assert";
|
|
12
|
+
*
|
|
13
|
+
* const path = join("/foo", "bar", "baz/asdf", "quux", "..");
|
|
14
|
+
* assertEquals(path, "/foo/bar/baz/asdf");
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* Note: If you are working with file URLs,
|
|
18
|
+
* use the new version of `join` from `@std/path/posix/unstable-join`.
|
|
19
|
+
*
|
|
20
|
+
* @param paths The paths to join.
|
|
21
|
+
* @returns The joined path.
|
|
22
|
+
*/
|
|
23
|
+
export function join(...paths) {
|
|
24
|
+
if (paths.length === 0)
|
|
25
|
+
return ".";
|
|
26
|
+
paths.forEach((path) => assertPath(path));
|
|
27
|
+
const joined = paths.filter((path) => path.length > 0).join("/");
|
|
28
|
+
return joined === "" ? "." : normalize(joined);
|
|
29
|
+
}
|
|
@@ -3,9 +3,27 @@
|
|
|
3
3
|
import { assertArg } from "../_common/normalize.js";
|
|
4
4
|
import { normalizeString } from "../_common/normalize_string.js";
|
|
5
5
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
8
|
+
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
9
|
+
* A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { normalize } from "@std/path/posix/normalize";
|
|
14
|
+
* import { assertEquals } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* const path = normalize("/foo/bar//baz/asdf/quux/..");
|
|
17
|
+
* assertEquals(path, "/foo/bar/baz/asdf");
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Note: If you are working with file URLs,
|
|
21
|
+
* use the new version of `normalize` from `@std/path/posix/unstable-normalize`.
|
|
22
|
+
*
|
|
23
|
+
* @param path The path to normalize.
|
|
24
|
+
* @returns The normalized path.
|
|
25
|
+
*/
|
|
7
26
|
export function normalize(path) {
|
|
8
|
-
path = path instanceof URL ? fromFileUrl(path) : path;
|
|
9
27
|
assertArg(path);
|
|
10
28
|
const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
|
|
11
29
|
const trailingSeparator = isPosixPathSeparator(path.charCodeAt(path.length - 1));
|
|
@@ -4,9 +4,28 @@ import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.j
|
|
|
4
4
|
import { CHAR_COLON } from "../_common/constants.js";
|
|
5
5
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
6
6
|
import { isPathSeparator, isWindowsDeviceRoot } from "./_util.js";
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Return the last portion of a `path`.
|
|
9
|
+
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { basename } from "@std/path/windows/basename";
|
|
14
|
+
* import { assertEquals } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* assertEquals(basename("C:\\user\\Documents\\"), "Documents");
|
|
17
|
+
* assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
|
|
18
|
+
* assertEquals(basename("C:\\user\\Documents\\image.png", ".png"), "image");
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Note: If you are working with file URLs,
|
|
22
|
+
* use the new version of `basename` from `@std/path/windows/unstable-basename`.
|
|
23
|
+
*
|
|
24
|
+
* @param path The path to extract the name from.
|
|
25
|
+
* @param suffix The suffix to remove from extracted name.
|
|
26
|
+
* @returns The extracted name.
|
|
27
|
+
*/
|
|
8
28
|
export function basename(path, suffix = "") {
|
|
9
|
-
path = path instanceof URL ? fromFileUrl(path) : path;
|
|
10
29
|
assertArgs(path, suffix);
|
|
11
30
|
// Check for a drive letter prefix so as not to mistake the following
|
|
12
31
|
// path separator as an extra separator at the end of the path that can be
|
|
@@ -4,11 +4,25 @@ import { assertArg } from "../_common/dirname.js";
|
|
|
4
4
|
import { CHAR_COLON } from "../_common/constants.js";
|
|
5
5
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
6
6
|
import { isPathSeparator, isPosixPathSeparator, isWindowsDeviceRoot, } from "./_util.js";
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Return the directory path of a `path`.
|
|
9
|
+
*
|
|
10
|
+
* @example Usage
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { dirname } from "@std/path/windows/dirname";
|
|
13
|
+
* import { assertEquals } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* const dir = dirname("C:\\foo\\bar\\baz.ext");
|
|
16
|
+
* assertEquals(dir, "C:\\foo\\bar");
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Note: If you are working with file URLs,
|
|
20
|
+
* use the new version of `dirname` from `@std/path/windows/unstable-dirname`.
|
|
21
|
+
*
|
|
22
|
+
* @param path The path to get the directory from.
|
|
23
|
+
* @returns The directory path.
|
|
24
|
+
*/
|
|
8
25
|
export function dirname(path) {
|
|
9
|
-
if (path instanceof URL) {
|
|
10
|
-
path = fromFileUrl(path);
|
|
11
|
-
}
|
|
12
26
|
assertArg(path);
|
|
13
27
|
const len = path.length;
|
|
14
28
|
let rootEnd = -1;
|
|
@@ -3,11 +3,25 @@
|
|
|
3
3
|
import { CHAR_COLON, CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
5
5
|
import { isPathSeparator, isWindowsDeviceRoot } from "./_util.js";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Return the extension of the `path` with leading period.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { extname } from "@std/path/windows/extname";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* const ext = extname("file.ts");
|
|
15
|
+
* assertEquals(ext, ".ts");
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* Note: If you are working with file URLs,
|
|
19
|
+
* use the new version of `extname` from `@std/path/windows/unstable-extname`.
|
|
20
|
+
*
|
|
21
|
+
* @param path The path to get the extension from.
|
|
22
|
+
* @returns The extension of the `path`.
|
|
23
|
+
*/
|
|
7
24
|
export function extname(path) {
|
|
8
|
-
if (path instanceof URL) {
|
|
9
|
-
path = fromFileUrl(path);
|
|
10
|
-
}
|
|
11
25
|
assertPath(path);
|
|
12
26
|
let start = 0;
|
|
13
27
|
let startDot = -1;
|
|
@@ -3,10 +3,25 @@
|
|
|
3
3
|
import { assertPath } from "../_common/assert_path.js";
|
|
4
4
|
import { isPathSeparator } from "./_util.js";
|
|
5
5
|
import { normalize } from "./normalize.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { join } from "@std/path/windows/join";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* const joined = join("C:\\foo", "bar", "baz\\..");
|
|
15
|
+
* assertEquals(joined, "C:\\foo\\bar");
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* Note: If you are working with file URLs,
|
|
19
|
+
* use the new version of `join` from `@std/path/windows/unstable-join`.
|
|
20
|
+
*
|
|
21
|
+
* @param paths The paths to join.
|
|
22
|
+
* @returns The joined path.
|
|
23
|
+
*/
|
|
24
|
+
export function join(...paths) {
|
|
10
25
|
paths.forEach((path) => assertPath(path));
|
|
11
26
|
paths = paths.filter((path) => path.length > 0);
|
|
12
27
|
if (paths.length === 0)
|
|
@@ -4,9 +4,27 @@ import { assertArg } from "../_common/normalize.js";
|
|
|
4
4
|
import { CHAR_COLON } from "../_common/constants.js";
|
|
5
5
|
import { normalizeString } from "../_common/normalize_string.js";
|
|
6
6
|
import { isPathSeparator, isWindowsDeviceRoot } from "./_util.js";
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
9
|
+
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
10
|
+
* A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
|
|
11
|
+
*
|
|
12
|
+
* @example Usage
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { normalize } from "@std/path/windows/normalize";
|
|
15
|
+
* import { assertEquals } from "@std/assert";
|
|
16
|
+
*
|
|
17
|
+
* const normalized = normalize("C:\\foo\\..\\bar");
|
|
18
|
+
* assertEquals(normalized, "C:\\bar");
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Note: If you are working with file URLs,
|
|
22
|
+
* use the new version of `normalize` from `@std/path/windows/unstable-normalize`.
|
|
23
|
+
*
|
|
24
|
+
* @param path The path to normalize
|
|
25
|
+
* @returns The normalized path
|
|
26
|
+
*/
|
|
8
27
|
export function normalize(path) {
|
|
9
|
-
path = path instanceof URL ? fromFileUrl(path) : path;
|
|
10
28
|
assertArg(path);
|
|
11
29
|
const len = path.length;
|
|
12
30
|
let rootEnd = 0;
|