ventojs 1.14.0 → 1.15.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/bare.d.ts +1 -1
- package/esm/bare.d.ts.map +1 -1
- package/esm/bare.js +1 -1
- package/esm/deps.d.ts +0 -3
- package/esm/deps.d.ts.map +1 -1
- package/esm/deps.js +0 -3
- package/esm/plugins/echo.d.ts +1 -0
- package/esm/plugins/echo.d.ts.map +1 -1
- package/esm/plugins/echo.js +23 -4
- package/esm/plugins/escape.d.ts +1 -0
- package/esm/plugins/escape.d.ts.map +1 -1
- package/esm/plugins/escape.js +14 -3
- package/esm/plugins/export.d.ts +1 -0
- package/esm/plugins/export.d.ts.map +1 -1
- package/esm/plugins/export.js +55 -33
- package/esm/plugins/for.d.ts +1 -0
- package/esm/plugins/for.d.ts.map +1 -1
- package/esm/plugins/for.js +7 -10
- package/esm/plugins/function.d.ts +1 -0
- package/esm/plugins/function.d.ts.map +1 -1
- package/esm/plugins/function.js +1 -0
- package/esm/plugins/if.d.ts +1 -0
- package/esm/plugins/if.d.ts.map +1 -1
- package/esm/plugins/if.js +1 -0
- package/esm/plugins/import.d.ts +1 -0
- package/esm/plugins/import.d.ts.map +1 -1
- package/esm/plugins/import.js +45 -3
- package/esm/plugins/include.d.ts +1 -0
- package/esm/plugins/include.d.ts.map +1 -1
- package/esm/plugins/include.js +16 -11
- package/esm/plugins/js.d.ts +1 -0
- package/esm/plugins/js.d.ts.map +1 -1
- package/esm/plugins/js.js +1 -0
- package/esm/plugins/layout.d.ts +1 -0
- package/esm/plugins/layout.d.ts.map +1 -1
- package/esm/plugins/layout.js +1 -0
- package/esm/plugins/set.d.ts +1 -0
- package/esm/plugins/set.d.ts.map +1 -1
- package/esm/plugins/set.js +1 -0
- package/esm/plugins/trim.d.ts +1 -0
- package/esm/plugins/trim.d.ts.map +1 -1
- package/esm/plugins/trim.js +1 -0
- package/esm/plugins/unescape.d.ts +1 -0
- package/esm/plugins/unescape.d.ts.map +1 -1
- package/esm/plugins/unescape.js +22 -3
- package/esm/src/environment.d.ts +2 -2
- package/esm/src/environment.d.ts.map +1 -1
- package/esm/src/environment.js +13 -16
- package/esm/src/errors.d.ts +1 -0
- package/esm/src/errors.d.ts.map +1 -1
- package/esm/src/errors.js +1 -0
- package/esm/src/js.d.ts +11 -4
- package/esm/src/js.d.ts.map +1 -1
- package/esm/src/js.js +160 -174
- package/esm/src/{loader.node.d.ts → loader.d.ts} +1 -1
- package/esm/src/loader.d.ts.map +1 -0
- package/esm/src/{loader.node.js → loader.js} +1 -1
- package/esm/src/tokenizer.d.ts +1 -6
- package/esm/src/tokenizer.d.ts.map +1 -1
- package/esm/src/tokenizer.js +66 -72
- package/esm/src/transformer.d.ts +1 -0
- package/esm/src/transformer.d.ts.map +1 -1
- package/esm/src/transformer.js +1 -0
- package/esm/src/url_loader.d.ts +10 -0
- package/esm/src/url_loader.d.ts.map +1 -0
- package/esm/src/url_loader.js +19 -0
- package/esm/test/utils.d.ts.map +1 -1
- package/package.json +53 -2
- package/esm/deps/jsr.io/@std/html/1.0.3/entities.d.ts +0 -57
- package/esm/deps/jsr.io/@std/html/1.0.3/entities.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/html/1.0.3/entities.js +0 -92
- package/esm/deps/jsr.io/@std/html/1.0.3/mod.d.ts +0 -15
- package/esm/deps/jsr.io/@std/html/1.0.3/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/html/1.0.3/mod.js +0 -16
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +0 -7
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts +0 -4
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js +0 -46
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +0 -3
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -234
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/basename.js +0 -36
- package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/common.js +0 -33
- package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
- package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/extname.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/format.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
- package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -83
- package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -42
- package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/join.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -33
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
- package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +0 -39
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js +0 -49
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/common.d.ts +0 -19
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/common.js +0 -24
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -62
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +0 -37
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js +0 -89
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -21
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_glob.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_glob.js +0 -3
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +0 -33
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js +0 -42
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/mod.d.ts +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/mod.js +0 -43
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +0 -57
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -115
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -106
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -59
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts +0 -18
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
- package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
- package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts +0 -4
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js +0 -44
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -112
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js +0 -81
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +0 -19
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +0 -38
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js +0 -74
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -41
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +0 -134
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -176
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -131
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -154
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts +0 -18
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -49
- package/esm/src/loader.node.d.ts.map +0 -1
@@ -1,29 +0,0 @@
|
|
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
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
|
2
|
-
export type { GlobOptions };
|
3
|
-
/**
|
4
|
-
* Joins a sequence of globs, then normalizes the resulting glob.
|
5
|
-
*
|
6
|
-
* Behaves like {@linkcode https://jsr.io/@std/path/doc/~/join | join()}, but
|
7
|
-
* doesn't collapse `**\/..` when `globstar` is true.
|
8
|
-
*
|
9
|
-
* @example Usage
|
10
|
-
* ```ts
|
11
|
-
* import { joinGlobs } from "@std/path/join-globs";
|
12
|
-
* import { assertEquals } from "@std/assert";
|
13
|
-
*
|
14
|
-
* if (Deno.build.os === "windows") {
|
15
|
-
* assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo\\baz");
|
16
|
-
* assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo\\**\\baz");
|
17
|
-
* } else {
|
18
|
-
* assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo/baz");
|
19
|
-
* assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo/**\/baz");
|
20
|
-
* }
|
21
|
-
* ```
|
22
|
-
*
|
23
|
-
* @param globs Globs to be joined and normalized.
|
24
|
-
* @param options Glob options.
|
25
|
-
* @returns The joined and normalized glob string.
|
26
|
-
*/
|
27
|
-
export declare function joinGlobs(globs: string[], options?: GlobOptions): string;
|
28
|
-
//# sourceMappingURL=join_globs.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"join_globs.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/join_globs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAKhE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,GAAE,WAAgB,GACxB,MAAM,CAIR"}
|
@@ -1,34 +0,0 @@
|
|
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 { joinGlobs as posixJoinGlobs } from "./posix/join_globs.js";
|
5
|
-
import { joinGlobs as windowsJoinGlobs } from "./windows/join_globs.js";
|
6
|
-
/**
|
7
|
-
* Joins a sequence of globs, then normalizes the resulting glob.
|
8
|
-
*
|
9
|
-
* Behaves like {@linkcode https://jsr.io/@std/path/doc/~/join | join()}, but
|
10
|
-
* doesn't collapse `**\/..` when `globstar` is true.
|
11
|
-
*
|
12
|
-
* @example Usage
|
13
|
-
* ```ts
|
14
|
-
* import { joinGlobs } from "@std/path/join-globs";
|
15
|
-
* import { assertEquals } from "@std/assert";
|
16
|
-
*
|
17
|
-
* if (Deno.build.os === "windows") {
|
18
|
-
* assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo\\baz");
|
19
|
-
* assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo\\**\\baz");
|
20
|
-
* } else {
|
21
|
-
* assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo/baz");
|
22
|
-
* assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo/**\/baz");
|
23
|
-
* }
|
24
|
-
* ```
|
25
|
-
*
|
26
|
-
* @param globs Globs to be joined and normalized.
|
27
|
-
* @param options Glob options.
|
28
|
-
* @returns The joined and normalized glob string.
|
29
|
-
*/
|
30
|
-
export function joinGlobs(globs, options = {}) {
|
31
|
-
return isWindows
|
32
|
-
? windowsJoinGlobs(globs, options)
|
33
|
-
: posixJoinGlobs(globs, options);
|
34
|
-
}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Utilities for working with OS-specific file paths.
|
3
|
-
*
|
4
|
-
* Functions from this module will automatically switch to support the path style
|
5
|
-
* of the current OS, either `windows` for Microsoft Windows, or `posix` for
|
6
|
-
* every other operating system, eg. Linux, MacOS, BSD etc.
|
7
|
-
*
|
8
|
-
* To use functions for a specific path style regardless of the current OS
|
9
|
-
* import the modules from the platform sub directory instead.
|
10
|
-
*
|
11
|
-
* Example, for POSIX:
|
12
|
-
*
|
13
|
-
* ```ts
|
14
|
-
* import { fromFileUrl } from "@std/path/posix/from-file-url";
|
15
|
-
* import { assertEquals } from "@std/assert";
|
16
|
-
*
|
17
|
-
* assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
|
18
|
-
* ```
|
19
|
-
*
|
20
|
-
* Or, for Windows:
|
21
|
-
*
|
22
|
-
* ```ts
|
23
|
-
* import { fromFileUrl } from "@std/path/windows/from-file-url";
|
24
|
-
* import { assertEquals } from "@std/assert";
|
25
|
-
*
|
26
|
-
* assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
|
27
|
-
* ```
|
28
|
-
*
|
29
|
-
* Functions for working with URLs can be found in
|
30
|
-
* {@link ./doc/posix/~ | @std/path/posix}.
|
31
|
-
*
|
32
|
-
* @module
|
33
|
-
*/
|
34
|
-
export * from "./basename.js";
|
35
|
-
export * from "./constants.js";
|
36
|
-
export * from "./dirname.js";
|
37
|
-
export * from "./extname.js";
|
38
|
-
export * from "./format.js";
|
39
|
-
export * from "./from_file_url.js";
|
40
|
-
export * from "./is_absolute.js";
|
41
|
-
export * from "./join.js";
|
42
|
-
export * from "./normalize.js";
|
43
|
-
export * from "./parse.js";
|
44
|
-
export * from "./relative.js";
|
45
|
-
export * from "./resolve.js";
|
46
|
-
export * from "./to_file_url.js";
|
47
|
-
export * from "./to_namespaced_path.js";
|
48
|
-
export * from "./common.js";
|
49
|
-
export * from "./types.js";
|
50
|
-
export * from "./glob_to_regexp.js";
|
51
|
-
export * from "./is_glob.js";
|
52
|
-
export * from "./join_globs.js";
|
53
|
-
export * from "./normalize_glob.js";
|
54
|
-
//# sourceMappingURL=mod.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/mod.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
@@ -1,57 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
// Copyright the Browserify authors. MIT License.
|
3
|
-
// Ported mostly from https://github.com/browserify/path-browserify/
|
4
|
-
// This module is browser compatible.
|
5
|
-
/**
|
6
|
-
* Utilities for working with OS-specific file paths.
|
7
|
-
*
|
8
|
-
* Functions from this module will automatically switch to support the path style
|
9
|
-
* of the current OS, either `windows` for Microsoft Windows, or `posix` for
|
10
|
-
* every other operating system, eg. Linux, MacOS, BSD etc.
|
11
|
-
*
|
12
|
-
* To use functions for a specific path style regardless of the current OS
|
13
|
-
* import the modules from the platform sub directory instead.
|
14
|
-
*
|
15
|
-
* Example, for POSIX:
|
16
|
-
*
|
17
|
-
* ```ts
|
18
|
-
* import { fromFileUrl } from "@std/path/posix/from-file-url";
|
19
|
-
* import { assertEquals } from "@std/assert";
|
20
|
-
*
|
21
|
-
* assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
|
22
|
-
* ```
|
23
|
-
*
|
24
|
-
* Or, for Windows:
|
25
|
-
*
|
26
|
-
* ```ts
|
27
|
-
* import { fromFileUrl } from "@std/path/windows/from-file-url";
|
28
|
-
* import { assertEquals } from "@std/assert";
|
29
|
-
*
|
30
|
-
* assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
|
31
|
-
* ```
|
32
|
-
*
|
33
|
-
* Functions for working with URLs can be found in
|
34
|
-
* {@link ./doc/posix/~ | @std/path/posix}.
|
35
|
-
*
|
36
|
-
* @module
|
37
|
-
*/
|
38
|
-
export * from "./basename.js";
|
39
|
-
export * from "./constants.js";
|
40
|
-
export * from "./dirname.js";
|
41
|
-
export * from "./extname.js";
|
42
|
-
export * from "./format.js";
|
43
|
-
export * from "./from_file_url.js";
|
44
|
-
export * from "./is_absolute.js";
|
45
|
-
export * from "./join.js";
|
46
|
-
export * from "./normalize.js";
|
47
|
-
export * from "./parse.js";
|
48
|
-
export * from "./relative.js";
|
49
|
-
export * from "./resolve.js";
|
50
|
-
export * from "./to_file_url.js";
|
51
|
-
export * from "./to_namespaced_path.js";
|
52
|
-
export * from "./common.js";
|
53
|
-
export * from "./types.js";
|
54
|
-
export * from "./glob_to_regexp.js";
|
55
|
-
export * from "./is_glob.js";
|
56
|
-
export * from "./join_globs.js";
|
57
|
-
export * from "./normalize_glob.js";
|
@@ -1,27 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Normalize the path, resolving `'..'` and `'.'` segments.
|
3
|
-
*
|
4
|
-
* Note: Resolving these segments does not necessarily mean that all will be
|
5
|
-
* eliminated. A `'..'` at the top-level will be preserved, and an empty path is
|
6
|
-
* canonically `'.'`.
|
7
|
-
*
|
8
|
-
* @example Usage
|
9
|
-
* ```ts
|
10
|
-
* import { normalize } from "@std/path/normalize";
|
11
|
-
* import { assertEquals } from "@std/assert";
|
12
|
-
*
|
13
|
-
* if (Deno.build.os === "windows") {
|
14
|
-
* assertEquals(normalize("C:\\foo\\bar\\..\\baz\\quux"), "C:\\foo\\baz\\quux");
|
15
|
-
* } else {
|
16
|
-
* assertEquals(normalize("/foo/bar/../baz/quux"), "/foo/baz/quux");
|
17
|
-
* }
|
18
|
-
* ```
|
19
|
-
*
|
20
|
-
* Note: If you are working with file URLs,
|
21
|
-
* use the new version of `normalize` from `@std/path/unstable-normalize`.
|
22
|
-
*
|
23
|
-
* @param path Path to be normalized
|
24
|
-
* @returns The normalized path.
|
25
|
-
*/
|
26
|
-
export declare function normalize(path: string): string;
|
27
|
-
//# sourceMappingURL=normalize.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/normalize.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C"}
|
@@ -1,33 +0,0 @@
|
|
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
|
-
}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
|
2
|
-
export type { GlobOptions };
|
3
|
-
/**
|
4
|
-
* Normalizes a glob string.
|
5
|
-
*
|
6
|
-
* Behaves like
|
7
|
-
* {@linkcode https://jsr.io/@std/path/doc/~/normalize | normalize()}, but
|
8
|
-
* doesn't collapse "**\/.." when `globstar` is true.
|
9
|
-
*
|
10
|
-
* @example Usage
|
11
|
-
* ```ts
|
12
|
-
* import { normalizeGlob } from "@std/path/normalize-glob";
|
13
|
-
* import { assertEquals } from "@std/assert";
|
14
|
-
*
|
15
|
-
* if (Deno.build.os === "windows") {
|
16
|
-
* assertEquals(normalizeGlob("foo\\bar\\..\\baz"), "foo\\baz");
|
17
|
-
* assertEquals(normalizeGlob("foo\\**\\..\\bar\\..\\baz", { globstar: true }), "foo\\**\\..\\baz");
|
18
|
-
* } else {
|
19
|
-
* assertEquals(normalizeGlob("foo/bar/../baz"), "foo/baz");
|
20
|
-
* assertEquals(normalizeGlob("foo/**\/../bar/../baz", { globstar: true }), "foo/**\/../baz");
|
21
|
-
* }
|
22
|
-
* ```
|
23
|
-
*
|
24
|
-
* @param glob Glob string to normalize.
|
25
|
-
* @param options Glob options.
|
26
|
-
* @returns The normalized glob string.
|
27
|
-
*/
|
28
|
-
export declare function normalizeGlob(glob: string, options?: GlobOptions): string;
|
29
|
-
//# sourceMappingURL=normalize_glob.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"normalize_glob.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/normalize_glob.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAOhE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,WAAgB,GACxB,MAAM,CAIR"}
|
@@ -1,35 +0,0 @@
|
|
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 { normalizeGlob as posixNormalizeGlob } from "./posix/normalize_glob.js";
|
5
|
-
import { normalizeGlob as windowsNormalizeGlob, } from "./windows/normalize_glob.js";
|
6
|
-
/**
|
7
|
-
* Normalizes a glob string.
|
8
|
-
*
|
9
|
-
* Behaves like
|
10
|
-
* {@linkcode https://jsr.io/@std/path/doc/~/normalize | normalize()}, but
|
11
|
-
* doesn't collapse "**\/.." when `globstar` is true.
|
12
|
-
*
|
13
|
-
* @example Usage
|
14
|
-
* ```ts
|
15
|
-
* import { normalizeGlob } from "@std/path/normalize-glob";
|
16
|
-
* import { assertEquals } from "@std/assert";
|
17
|
-
*
|
18
|
-
* if (Deno.build.os === "windows") {
|
19
|
-
* assertEquals(normalizeGlob("foo\\bar\\..\\baz"), "foo\\baz");
|
20
|
-
* assertEquals(normalizeGlob("foo\\**\\..\\bar\\..\\baz", { globstar: true }), "foo\\**\\..\\baz");
|
21
|
-
* } else {
|
22
|
-
* assertEquals(normalizeGlob("foo/bar/../baz"), "foo/baz");
|
23
|
-
* assertEquals(normalizeGlob("foo/**\/../bar/../baz", { globstar: true }), "foo/**\/../baz");
|
24
|
-
* }
|
25
|
-
* ```
|
26
|
-
*
|
27
|
-
* @param glob Glob string to normalize.
|
28
|
-
* @param options Glob options.
|
29
|
-
* @returns The normalized glob string.
|
30
|
-
*/
|
31
|
-
export function normalizeGlob(glob, options = {}) {
|
32
|
-
return isWindows
|
33
|
-
? windowsNormalizeGlob(glob, options)
|
34
|
-
: posixNormalizeGlob(glob, options);
|
35
|
-
}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import type { ParsedPath } from "./types.js";
|
2
|
-
export type { ParsedPath } from "./types.js";
|
3
|
-
/**
|
4
|
-
* Return an object containing the parsed components of the path.
|
5
|
-
*
|
6
|
-
* Use {@linkcode https://jsr.io/@std/path/doc/~/format | format()} to reverse
|
7
|
-
* the result.
|
8
|
-
*
|
9
|
-
* @example Usage
|
10
|
-
* ```ts
|
11
|
-
* import { parse } from "@std/path/parse";
|
12
|
-
* import { assertEquals } from "@std/assert";
|
13
|
-
*
|
14
|
-
* if (Deno.build.os === "windows") {
|
15
|
-
* const parsedPathObj = parse("C:\\path\\to\\script.ts");
|
16
|
-
* assertEquals(parsedPathObj.root, "C:\\");
|
17
|
-
* assertEquals(parsedPathObj.dir, "C:\\path\\to");
|
18
|
-
* assertEquals(parsedPathObj.base, "script.ts");
|
19
|
-
* assertEquals(parsedPathObj.ext, ".ts");
|
20
|
-
* assertEquals(parsedPathObj.name, "script");
|
21
|
-
* } else {
|
22
|
-
* const parsedPathObj = parse("/path/to/dir/script.ts");
|
23
|
-
* parsedPathObj.root; // "/"
|
24
|
-
* parsedPathObj.dir; // "/path/to/dir"
|
25
|
-
* parsedPathObj.base; // "script.ts"
|
26
|
-
* parsedPathObj.ext; // ".ts"
|
27
|
-
* parsedPathObj.name; // "script"
|
28
|
-
* }
|
29
|
-
* ```
|
30
|
-
*
|
31
|
-
* @param path Path to process
|
32
|
-
* @returns An object with the parsed path components.
|
33
|
-
*/
|
34
|
-
export declare function parse(path: string): ParsedPath;
|
35
|
-
//# sourceMappingURL=parse.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/parse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAI7C,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE9C"}
|
@@ -1,39 +0,0 @@
|
|
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 { parse as posixParse } from "./posix/parse.js";
|
5
|
-
import { parse as windowsParse } from "./windows/parse.js";
|
6
|
-
/**
|
7
|
-
* Return an object containing the parsed components of the path.
|
8
|
-
*
|
9
|
-
* Use {@linkcode https://jsr.io/@std/path/doc/~/format | format()} to reverse
|
10
|
-
* the result.
|
11
|
-
*
|
12
|
-
* @example Usage
|
13
|
-
* ```ts
|
14
|
-
* import { parse } from "@std/path/parse";
|
15
|
-
* import { assertEquals } from "@std/assert";
|
16
|
-
*
|
17
|
-
* if (Deno.build.os === "windows") {
|
18
|
-
* const parsedPathObj = parse("C:\\path\\to\\script.ts");
|
19
|
-
* assertEquals(parsedPathObj.root, "C:\\");
|
20
|
-
* assertEquals(parsedPathObj.dir, "C:\\path\\to");
|
21
|
-
* assertEquals(parsedPathObj.base, "script.ts");
|
22
|
-
* assertEquals(parsedPathObj.ext, ".ts");
|
23
|
-
* assertEquals(parsedPathObj.name, "script");
|
24
|
-
* } else {
|
25
|
-
* const parsedPathObj = parse("/path/to/dir/script.ts");
|
26
|
-
* parsedPathObj.root; // "/"
|
27
|
-
* parsedPathObj.dir; // "/path/to/dir"
|
28
|
-
* parsedPathObj.base; // "script.ts"
|
29
|
-
* parsedPathObj.ext; // ".ts"
|
30
|
-
* parsedPathObj.name; // "script"
|
31
|
-
* }
|
32
|
-
* ```
|
33
|
-
*
|
34
|
-
* @param path Path to process
|
35
|
-
* @returns An object with the parsed path components.
|
36
|
-
*/
|
37
|
-
export function parse(path) {
|
38
|
-
return isWindows ? windowsParse(path) : posixParse(path);
|
39
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/_util.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
// Copyright the Browserify authors. MIT License.
|
3
|
-
// Ported from https://github.com/browserify/path-browserify/
|
4
|
-
// This module is browser compatible.
|
5
|
-
import { CHAR_FORWARD_SLASH } from "../_common/constants.js";
|
6
|
-
export function isPosixPathSeparator(code) {
|
7
|
-
return code === CHAR_FORWARD_SLASH;
|
8
|
-
}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Return the last portion of a `path`.
|
3
|
-
* Trailing directory separators are ignored, and optional suffix is removed.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts
|
7
|
-
* import { basename } from "@std/path/posix/basename";
|
8
|
-
* import { assertEquals } from "@std/assert";
|
9
|
-
*
|
10
|
-
* assertEquals(basename("/home/user/Documents/"), "Documents");
|
11
|
-
* assertEquals(basename("/home/user/Documents/image.png"), "image.png");
|
12
|
-
* assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
|
13
|
-
* ```
|
14
|
-
*
|
15
|
-
* @example Working with URLs
|
16
|
-
*
|
17
|
-
* Note: This function doesn't automatically strip hash and query parts from
|
18
|
-
* URLs. If your URL contains a hash or query, remove them before passing the
|
19
|
-
* URL to the function. This can be done by passing the URL to `new URL(url)`,
|
20
|
-
* and setting the `hash` and `search` properties to empty strings.
|
21
|
-
*
|
22
|
-
* ```ts
|
23
|
-
* import { basename } from "@std/path/posix/basename";
|
24
|
-
* import { assertEquals } from "@std/assert";
|
25
|
-
*
|
26
|
-
* assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts");
|
27
|
-
* assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
|
28
|
-
* assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
|
29
|
-
* assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
|
30
|
-
* ```
|
31
|
-
*
|
32
|
-
* Note: If you are working with file URLs,
|
33
|
-
* use the new version of `basename` from `@std/path/posix/unstable-basename`.
|
34
|
-
*
|
35
|
-
* @param path The path to extract the name from.
|
36
|
-
* @param suffix The suffix to remove from extracted name.
|
37
|
-
* @returns The extracted name.
|
38
|
-
*/
|
39
|
-
export declare function basename(path: string, suffix?: string): string;
|
40
|
-
//# sourceMappingURL=basename.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/basename.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,SAAK,GAAG,MAAM,CAS1D"}
|
@@ -1,49 +0,0 @@
|
|
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
|
-
* @example Working with URLs
|
21
|
-
*
|
22
|
-
* Note: This function doesn't automatically strip hash and query parts from
|
23
|
-
* URLs. If your URL contains a hash or query, remove them before passing the
|
24
|
-
* URL to the function. This can be done by passing the URL to `new URL(url)`,
|
25
|
-
* and setting the `hash` and `search` properties to empty strings.
|
26
|
-
*
|
27
|
-
* ```ts
|
28
|
-
* import { basename } from "@std/path/posix/basename";
|
29
|
-
* import { assertEquals } from "@std/assert";
|
30
|
-
*
|
31
|
-
* assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts");
|
32
|
-
* assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
|
33
|
-
* assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
|
34
|
-
* assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
|
35
|
-
* ```
|
36
|
-
*
|
37
|
-
* Note: If you are working with file URLs,
|
38
|
-
* use the new version of `basename` from `@std/path/posix/unstable-basename`.
|
39
|
-
*
|
40
|
-
* @param path The path to extract the name from.
|
41
|
-
* @param suffix The suffix to remove from extracted name.
|
42
|
-
* @returns The extracted name.
|
43
|
-
*/
|
44
|
-
export function basename(path, suffix = "") {
|
45
|
-
assertArgs(path, suffix);
|
46
|
-
const lastSegment = lastPathSegment(path, isPosixPathSeparator);
|
47
|
-
const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
|
48
|
-
return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
|
49
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
/** Determines the common path from a set of paths for POSIX systems.
|
2
|
-
*
|
3
|
-
* @example Usage
|
4
|
-
* ```ts
|
5
|
-
* import { common } from "@std/path/posix/common";
|
6
|
-
* import { assertEquals } from "@std/assert";
|
7
|
-
*
|
8
|
-
* const path = common([
|
9
|
-
* "./deno/std/path/mod.ts",
|
10
|
-
* "./deno/std/fs/mod.ts",
|
11
|
-
* ]);
|
12
|
-
* assertEquals(path, "./deno/std/");
|
13
|
-
* ```
|
14
|
-
*
|
15
|
-
* @param paths The paths to compare.
|
16
|
-
* @returns The common path.
|
17
|
-
*/
|
18
|
-
export declare function common(paths: string[]): string;
|
19
|
-
//# sourceMappingURL=common.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/common.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAE9C"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
// This module is browser compatible.
|
3
|
-
import { common as _common } from "../_common/common.js";
|
4
|
-
import { SEPARATOR } from "./constants.js";
|
5
|
-
/** Determines the common path from a set of paths for POSIX systems.
|
6
|
-
*
|
7
|
-
* @example Usage
|
8
|
-
* ```ts
|
9
|
-
* import { common } from "@std/path/posix/common";
|
10
|
-
* import { assertEquals } from "@std/assert";
|
11
|
-
*
|
12
|
-
* const path = common([
|
13
|
-
* "./deno/std/path/mod.ts",
|
14
|
-
* "./deno/std/fs/mod.ts",
|
15
|
-
* ]);
|
16
|
-
* assertEquals(path, "./deno/std/");
|
17
|
-
* ```
|
18
|
-
*
|
19
|
-
* @param paths The paths to compare.
|
20
|
-
* @returns The common path.
|
21
|
-
*/
|
22
|
-
export function common(paths) {
|
23
|
-
return _common(paths, SEPARATOR);
|
24
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* The character used to separate entries in the PATH environment variable.
|
3
|
-
*/
|
4
|
-
export declare const DELIMITER: ":";
|
5
|
-
/**
|
6
|
-
* The character used to separate components of a file path.
|
7
|
-
*/
|
8
|
-
export declare const SEPARATOR: "/";
|
9
|
-
/**
|
10
|
-
* A regular expression that matches one or more path separators.
|
11
|
-
*/
|
12
|
-
export declare const SEPARATOR_PATTERN: RegExp;
|
13
|
-
//# sourceMappingURL=constants.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
// This module is browser compatible.
|
3
|
-
/**
|
4
|
-
* The character used to separate entries in the PATH environment variable.
|
5
|
-
*/
|
6
|
-
export const DELIMITER = ":";
|
7
|
-
/**
|
8
|
-
* The character used to separate components of a file path.
|
9
|
-
*/
|
10
|
-
export const SEPARATOR = "/";
|
11
|
-
/**
|
12
|
-
* A regular expression that matches one or more path separators.
|
13
|
-
*/
|
14
|
-
export const SEPARATOR_PATTERN = /\/+/;
|