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,32 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Return the directory path of a `path`.
|
3
|
-
*
|
4
|
-
* @example Usage
|
5
|
-
* ```ts
|
6
|
-
* import { dirname } from "@std/path/posix/dirname";
|
7
|
-
* import { assertEquals } from "@std/assert";
|
8
|
-
*
|
9
|
-
* assertEquals(dirname("/home/user/Documents/"), "/home/user");
|
10
|
-
* assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
|
11
|
-
* assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
|
12
|
-
* ```
|
13
|
-
*
|
14
|
-
* @example Working with URLs
|
15
|
-
*
|
16
|
-
* ```ts
|
17
|
-
* import { dirname } from "@std/path/posix/dirname";
|
18
|
-
* import { assertEquals } from "@std/assert";
|
19
|
-
*
|
20
|
-
* assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
|
21
|
-
* assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
|
22
|
-
* assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
|
23
|
-
* ```
|
24
|
-
*
|
25
|
-
* Note: If you are working with file URLs,
|
26
|
-
* use the new version of `dirname` from `@std/path/posix/unstable-dirname`.
|
27
|
-
*
|
28
|
-
* @param path The path to get the directory from.
|
29
|
-
* @returns The directory path.
|
30
|
-
*/
|
31
|
-
export declare function dirname(path: string): string;
|
32
|
-
//# sourceMappingURL=dirname.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dirname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/dirname.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgC5C"}
|
@@ -1,62 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
// This module is browser compatible.
|
3
|
-
import { assertArg } from "../_common/dirname.js";
|
4
|
-
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
5
|
-
import { isPosixPathSeparator } from "./_util.js";
|
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
|
-
* assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
|
17
|
-
* ```
|
18
|
-
*
|
19
|
-
* @example Working with URLs
|
20
|
-
*
|
21
|
-
* ```ts
|
22
|
-
* import { dirname } from "@std/path/posix/dirname";
|
23
|
-
* import { assertEquals } from "@std/assert";
|
24
|
-
*
|
25
|
-
* assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
|
26
|
-
* assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
|
27
|
-
* assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
|
28
|
-
* ```
|
29
|
-
*
|
30
|
-
* Note: If you are working with file URLs,
|
31
|
-
* use the new version of `dirname` from `@std/path/posix/unstable-dirname`.
|
32
|
-
*
|
33
|
-
* @param path The path to get the directory from.
|
34
|
-
* @returns The directory path.
|
35
|
-
*/
|
36
|
-
export function dirname(path) {
|
37
|
-
assertArg(path);
|
38
|
-
let end = -1;
|
39
|
-
let matchedNonSeparator = false;
|
40
|
-
for (let i = path.length - 1; i >= 1; --i) {
|
41
|
-
if (isPosixPathSeparator(path.charCodeAt(i))) {
|
42
|
-
if (matchedNonSeparator) {
|
43
|
-
end = i;
|
44
|
-
break;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
else {
|
48
|
-
matchedNonSeparator = true;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
// No matches. Fallback based on provided path:
|
52
|
-
//
|
53
|
-
// - leading slashes paths
|
54
|
-
// "/foo" => "/"
|
55
|
-
// "///foo" => "/"
|
56
|
-
// - no slash path
|
57
|
-
// "foo" => "."
|
58
|
-
if (end === -1) {
|
59
|
-
return isPosixPathSeparator(path.charCodeAt(0)) ? "/" : ".";
|
60
|
-
}
|
61
|
-
return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator);
|
62
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Return the extension of the `path` with leading period.
|
3
|
-
*
|
4
|
-
* @example Usage
|
5
|
-
* ```ts
|
6
|
-
* import { extname } from "@std/path/posix/extname";
|
7
|
-
* import { assertEquals } from "@std/assert";
|
8
|
-
*
|
9
|
-
* assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
|
10
|
-
* assertEquals(extname("/home/user/Documents/"), "");
|
11
|
-
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
12
|
-
* ```
|
13
|
-
*
|
14
|
-
* @example Working with URLs
|
15
|
-
*
|
16
|
-
* Note: This function doesn't automatically strip hash and query parts from
|
17
|
-
* URLs. If your URL contains a hash or query, remove them before passing the
|
18
|
-
* URL to the function. This can be done by passing the URL to `new URL(url)`,
|
19
|
-
* and setting the `hash` and `search` properties to empty strings.
|
20
|
-
*
|
21
|
-
* ```ts
|
22
|
-
* import { extname } from "@std/path/posix/extname";
|
23
|
-
* import { assertEquals } from "@std/assert";
|
24
|
-
*
|
25
|
-
* assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
|
26
|
-
* assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
|
27
|
-
* assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
|
28
|
-
* ```
|
29
|
-
*
|
30
|
-
* Note: If you are working with file URLs,
|
31
|
-
* use the new version of `extname` from `@std/path/posix/unstable-extname`.
|
32
|
-
*
|
33
|
-
* @param path The path to get the extension from.
|
34
|
-
* @returns The extension (ex. for `file.ts` returns `.ts`).
|
35
|
-
*/
|
36
|
-
export declare function extname(path: string): string;
|
37
|
-
//# sourceMappingURL=extname.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/extname.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiD5C"}
|
@@ -1,89 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
// This module is browser compatible.
|
3
|
-
import { CHAR_DOT } from "../_common/constants.js";
|
4
|
-
import { assertPath } from "../_common/assert_path.js";
|
5
|
-
import { isPosixPathSeparator } from "./_util.js";
|
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
|
-
* @example Working with URLs
|
20
|
-
*
|
21
|
-
* Note: This function doesn't automatically strip hash and query parts from
|
22
|
-
* URLs. If your URL contains a hash or query, remove them before passing the
|
23
|
-
* URL to the function. This can be done by passing the URL to `new URL(url)`,
|
24
|
-
* and setting the `hash` and `search` properties to empty strings.
|
25
|
-
*
|
26
|
-
* ```ts
|
27
|
-
* import { extname } from "@std/path/posix/extname";
|
28
|
-
* import { assertEquals } from "@std/assert";
|
29
|
-
*
|
30
|
-
* assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
|
31
|
-
* assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
|
32
|
-
* assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
|
33
|
-
* ```
|
34
|
-
*
|
35
|
-
* Note: If you are working with file URLs,
|
36
|
-
* use the new version of `extname` from `@std/path/posix/unstable-extname`.
|
37
|
-
*
|
38
|
-
* @param path The path to get the extension from.
|
39
|
-
* @returns The extension (ex. for `file.ts` returns `.ts`).
|
40
|
-
*/
|
41
|
-
export function extname(path) {
|
42
|
-
assertPath(path);
|
43
|
-
let startDot = -1;
|
44
|
-
let startPart = 0;
|
45
|
-
let end = -1;
|
46
|
-
let matchedSlash = true;
|
47
|
-
// Track the state of characters (if any) we see before our first dot and
|
48
|
-
// after any path separator we find
|
49
|
-
let preDotState = 0;
|
50
|
-
for (let i = path.length - 1; i >= 0; --i) {
|
51
|
-
const code = path.charCodeAt(i);
|
52
|
-
if (isPosixPathSeparator(code)) {
|
53
|
-
// If we reached a path separator that was not part of a set of path
|
54
|
-
// separators at the end of the string, stop now
|
55
|
-
if (!matchedSlash) {
|
56
|
-
startPart = i + 1;
|
57
|
-
break;
|
58
|
-
}
|
59
|
-
continue;
|
60
|
-
}
|
61
|
-
if (end === -1) {
|
62
|
-
// We saw the first non-path separator, mark this as the end of our
|
63
|
-
// extension
|
64
|
-
matchedSlash = false;
|
65
|
-
end = i + 1;
|
66
|
-
}
|
67
|
-
if (code === CHAR_DOT) {
|
68
|
-
// If this is our first dot, mark it as the start of our extension
|
69
|
-
if (startDot === -1)
|
70
|
-
startDot = i;
|
71
|
-
else if (preDotState !== 1)
|
72
|
-
preDotState = 1;
|
73
|
-
}
|
74
|
-
else if (startDot !== -1) {
|
75
|
-
// We saw a non-dot and non-path separator before our dot, so we should
|
76
|
-
// have a good chance at having a non-empty extension
|
77
|
-
preDotState = -1;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
if (startDot === -1 ||
|
81
|
-
end === -1 ||
|
82
|
-
// We saw a non-dot character immediately before the dot
|
83
|
-
preDotState === 0 ||
|
84
|
-
// The (right-most) trimmed path component is exactly '..'
|
85
|
-
(preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
|
86
|
-
return "";
|
87
|
-
}
|
88
|
-
return path.slice(startDot, end);
|
89
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import type { ParsedPath } from "../types.js";
|
2
|
-
/**
|
3
|
-
* Generate a path from `ParsedPath` object.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts
|
7
|
-
* import { format } from "@std/path/posix/format";
|
8
|
-
* import { assertEquals } from "@std/assert";
|
9
|
-
*
|
10
|
-
* const path = format({
|
11
|
-
* root: "/",
|
12
|
-
* dir: "/path/dir",
|
13
|
-
* base: "file.txt",
|
14
|
-
* ext: ".txt",
|
15
|
-
* name: "file"
|
16
|
-
* });
|
17
|
-
* assertEquals(path, "/path/dir/file.txt");
|
18
|
-
* ```
|
19
|
-
*
|
20
|
-
* @param pathObject The path object to format.
|
21
|
-
* @returns The formatted path.
|
22
|
-
*/
|
23
|
-
export declare function format(pathObject: Partial<ParsedPath>): string;
|
24
|
-
//# sourceMappingURL=format.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/format.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAG9D"}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
// This module is browser compatible.
|
3
|
-
import { _format, assertArg } from "../_common/format.js";
|
4
|
-
/**
|
5
|
-
* Generate a path from `ParsedPath` object.
|
6
|
-
*
|
7
|
-
* @example Usage
|
8
|
-
* ```ts
|
9
|
-
* import { format } from "@std/path/posix/format";
|
10
|
-
* import { assertEquals } from "@std/assert";
|
11
|
-
*
|
12
|
-
* const path = format({
|
13
|
-
* root: "/",
|
14
|
-
* dir: "/path/dir",
|
15
|
-
* base: "file.txt",
|
16
|
-
* ext: ".txt",
|
17
|
-
* name: "file"
|
18
|
-
* });
|
19
|
-
* assertEquals(path, "/path/dir/file.txt");
|
20
|
-
* ```
|
21
|
-
*
|
22
|
-
* @param pathObject The path object to format.
|
23
|
-
* @returns The formatted path.
|
24
|
-
*/
|
25
|
-
export function format(pathObject) {
|
26
|
-
assertArg(pathObject);
|
27
|
-
return _format("/", pathObject);
|
28
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
/**
|
3
|
-
* Converts a file URL to a path string.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts
|
7
|
-
* import { fromFileUrl } from "@std/path/posix/from-file-url";
|
8
|
-
* import { assertEquals } from "@std/assert";
|
9
|
-
*
|
10
|
-
* assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
|
11
|
-
* ```
|
12
|
-
*
|
13
|
-
* @param url The file URL to convert.
|
14
|
-
* @returns The path string.
|
15
|
-
*/
|
16
|
-
export declare function fromFileUrl(url: URL | string): string;
|
17
|
-
//# sourceMappingURL=from_file_url.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.ts"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAKrD"}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
// This module is browser compatible.
|
3
|
-
import { assertArg } from "../_common/from_file_url.js";
|
4
|
-
/**
|
5
|
-
* Converts a file URL to a path string.
|
6
|
-
*
|
7
|
-
* @example Usage
|
8
|
-
* ```ts
|
9
|
-
* import { fromFileUrl } from "@std/path/posix/from-file-url";
|
10
|
-
* import { assertEquals } from "@std/assert";
|
11
|
-
*
|
12
|
-
* assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
|
13
|
-
* ```
|
14
|
-
*
|
15
|
-
* @param url The file URL to convert.
|
16
|
-
* @returns The path string.
|
17
|
-
*/
|
18
|
-
export function fromFileUrl(url) {
|
19
|
-
url = assertArg(url);
|
20
|
-
return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
|
21
|
-
}
|
@@ -1,72 +0,0 @@
|
|
1
|
-
import { type GlobOptions } from "../_common/glob_to_reg_exp.js";
|
2
|
-
export type { GlobOptions };
|
3
|
-
/** Convert a glob string to a regular expression.
|
4
|
-
*
|
5
|
-
* Tries to match bash glob expansion as closely as possible.
|
6
|
-
*
|
7
|
-
* Basic glob syntax:
|
8
|
-
* - `*` - Matches everything without leaving the path segment.
|
9
|
-
* - `?` - Matches any single character.
|
10
|
-
* - `{foo,bar}` - Matches `foo` or `bar`.
|
11
|
-
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
12
|
-
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
13
|
-
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
14
|
-
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
15
|
-
* - `[[:alnum:]]` - Matches any digit or letter.
|
16
|
-
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
17
|
-
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
18
|
-
* for a complete list of supported character classes.
|
19
|
-
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
20
|
-
* - \` - Escapes the next character for `os` set to `"windows"`.
|
21
|
-
* - `/` - Path separator.
|
22
|
-
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
23
|
-
*
|
24
|
-
* Extended syntax:
|
25
|
-
* - Requires `{ extended: true }`.
|
26
|
-
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
27
|
-
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
28
|
-
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
29
|
-
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
30
|
-
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
31
|
-
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
32
|
-
*
|
33
|
-
* Globstar syntax:
|
34
|
-
* - Requires `{ globstar: true }`.
|
35
|
-
* - `**` - Matches any number of any path segments.
|
36
|
-
* - Must comprise its entire path segment in the provided glob.
|
37
|
-
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
38
|
-
*
|
39
|
-
* Note the following properties:
|
40
|
-
* - The generated `RegExp` is anchored at both start and end.
|
41
|
-
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
42
|
-
* provided glob have no meaning and are discarded.
|
43
|
-
* - Absolute globs will only match absolute paths, etc.
|
44
|
-
* - Empty globs will match nothing.
|
45
|
-
* - Any special glob syntax must be contained to one path segment. For example,
|
46
|
-
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
47
|
-
* first segment ends with an unclosed group.
|
48
|
-
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
49
|
-
* parse error has occurred. Every character for that segment is taken
|
50
|
-
* literally in this event.
|
51
|
-
*
|
52
|
-
* Limitations:
|
53
|
-
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
54
|
-
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
55
|
-
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
56
|
-
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
57
|
-
* the group occurs not nested at the end of the segment.
|
58
|
-
*
|
59
|
-
* @example Usage
|
60
|
-
* ```ts
|
61
|
-
* import { globToRegExp } from "@std/path/posix/glob-to-regexp";
|
62
|
-
* import { assertEquals } from "@std/assert";
|
63
|
-
*
|
64
|
-
* assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
|
65
|
-
* ```
|
66
|
-
*
|
67
|
-
* @param glob Glob string to convert.
|
68
|
-
* @param options Conversion options.
|
69
|
-
* @returns The regular expression equivalent to the glob.
|
70
|
-
*/
|
71
|
-
export declare function globToRegExp(glob: string, options?: GlobOptions): RegExp;
|
72
|
-
//# sourceMappingURL=glob_to_regexp.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"glob_to_regexp.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EAAE,WAAW,EAAE,CAAC;AAW5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,WAAgB,GACxB,MAAM,CAER"}
|
@@ -1,82 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
// This module is browser compatible.
|
3
|
-
import { _globToRegExp, } from "../_common/glob_to_reg_exp.js";
|
4
|
-
const constants = {
|
5
|
-
sep: "/+",
|
6
|
-
sepMaybe: "/*",
|
7
|
-
seps: ["/"],
|
8
|
-
globstar: "(?:[^/]*(?:/|$)+)*",
|
9
|
-
wildcard: "[^/]*",
|
10
|
-
escapePrefix: "\\",
|
11
|
-
};
|
12
|
-
/** Convert a glob string to a regular expression.
|
13
|
-
*
|
14
|
-
* Tries to match bash glob expansion as closely as possible.
|
15
|
-
*
|
16
|
-
* Basic glob syntax:
|
17
|
-
* - `*` - Matches everything without leaving the path segment.
|
18
|
-
* - `?` - Matches any single character.
|
19
|
-
* - `{foo,bar}` - Matches `foo` or `bar`.
|
20
|
-
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
21
|
-
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
22
|
-
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
23
|
-
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
24
|
-
* - `[[:alnum:]]` - Matches any digit or letter.
|
25
|
-
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
26
|
-
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
27
|
-
* for a complete list of supported character classes.
|
28
|
-
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
29
|
-
* - \` - Escapes the next character for `os` set to `"windows"`.
|
30
|
-
* - `/` - Path separator.
|
31
|
-
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
32
|
-
*
|
33
|
-
* Extended syntax:
|
34
|
-
* - Requires `{ extended: true }`.
|
35
|
-
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
36
|
-
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
37
|
-
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
38
|
-
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
39
|
-
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
40
|
-
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
41
|
-
*
|
42
|
-
* Globstar syntax:
|
43
|
-
* - Requires `{ globstar: true }`.
|
44
|
-
* - `**` - Matches any number of any path segments.
|
45
|
-
* - Must comprise its entire path segment in the provided glob.
|
46
|
-
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
47
|
-
*
|
48
|
-
* Note the following properties:
|
49
|
-
* - The generated `RegExp` is anchored at both start and end.
|
50
|
-
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
51
|
-
* provided glob have no meaning and are discarded.
|
52
|
-
* - Absolute globs will only match absolute paths, etc.
|
53
|
-
* - Empty globs will match nothing.
|
54
|
-
* - Any special glob syntax must be contained to one path segment. For example,
|
55
|
-
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
56
|
-
* first segment ends with an unclosed group.
|
57
|
-
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
58
|
-
* parse error has occurred. Every character for that segment is taken
|
59
|
-
* literally in this event.
|
60
|
-
*
|
61
|
-
* Limitations:
|
62
|
-
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
63
|
-
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
64
|
-
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
65
|
-
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
66
|
-
* the group occurs not nested at the end of the segment.
|
67
|
-
*
|
68
|
-
* @example Usage
|
69
|
-
* ```ts
|
70
|
-
* import { globToRegExp } from "@std/path/posix/glob-to-regexp";
|
71
|
-
* import { assertEquals } from "@std/assert";
|
72
|
-
*
|
73
|
-
* assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
|
74
|
-
* ```
|
75
|
-
*
|
76
|
-
* @param glob Glob string to convert.
|
77
|
-
* @param options Conversion options.
|
78
|
-
* @returns The regular expression equivalent to the glob.
|
79
|
-
*/
|
80
|
-
export function globToRegExp(glob, options = {}) {
|
81
|
-
return _globToRegExp(constants, glob, options);
|
82
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Verifies whether provided path is absolute.
|
3
|
-
*
|
4
|
-
* @example Usage
|
5
|
-
* ```ts
|
6
|
-
* import { isAbsolute } from "@std/path/posix/is-absolute";
|
7
|
-
* import { assert, assertFalse } from "@std/assert";
|
8
|
-
*
|
9
|
-
* assert(isAbsolute("/home/user/Documents/"));
|
10
|
-
* assertFalse(isAbsolute("home/user/Documents/"));
|
11
|
-
* ```
|
12
|
-
*
|
13
|
-
* @param path The path to verify.
|
14
|
-
* @returns Whether the path is absolute.
|
15
|
-
*/
|
16
|
-
export declare function isAbsolute(path: string): boolean;
|
17
|
-
//# sourceMappingURL=is_absolute.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGhD"}
|
@@ -1,23 +0,0 @@
|
|
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 { isPosixPathSeparator } from "./_util.js";
|
5
|
-
/**
|
6
|
-
* Verifies whether provided path is absolute.
|
7
|
-
*
|
8
|
-
* @example Usage
|
9
|
-
* ```ts
|
10
|
-
* import { isAbsolute } from "@std/path/posix/is-absolute";
|
11
|
-
* import { assert, assertFalse } from "@std/assert";
|
12
|
-
*
|
13
|
-
* assert(isAbsolute("/home/user/Documents/"));
|
14
|
-
* assertFalse(isAbsolute("home/user/Documents/"));
|
15
|
-
* ```
|
16
|
-
*
|
17
|
-
* @param path The path to verify.
|
18
|
-
* @returns Whether the path is absolute.
|
19
|
-
*/
|
20
|
-
export function isAbsolute(path) {
|
21
|
-
assertPath(path);
|
22
|
-
return path.length > 0 && isPosixPathSeparator(path.charCodeAt(0));
|
23
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"is_glob.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/is_glob.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC"}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
3
|
-
*
|
4
|
-
* @example Usage
|
5
|
-
* ```ts
|
6
|
-
* import { join } from "@std/path/posix/join";
|
7
|
-
* import { assertEquals } from "@std/assert";
|
8
|
-
*
|
9
|
-
* const path = join("/foo", "bar", "baz/asdf", "quux", "..");
|
10
|
-
* assertEquals(path, "/foo/bar/baz/asdf");
|
11
|
-
* ```
|
12
|
-
*
|
13
|
-
* @example Working with URLs
|
14
|
-
* ```ts
|
15
|
-
* import { join } from "@std/path/posix/join";
|
16
|
-
* import { assertEquals } from "@std/assert";
|
17
|
-
*
|
18
|
-
* const url = new URL("https://deno.land");
|
19
|
-
* url.pathname = join("std", "path", "mod.ts");
|
20
|
-
* assertEquals(url.href, "https://deno.land/std/path/mod.ts");
|
21
|
-
*
|
22
|
-
* url.pathname = join("//std", "path/", "/mod.ts");
|
23
|
-
* assertEquals(url.href, "https://deno.land/std/path/mod.ts");
|
24
|
-
* ```
|
25
|
-
*
|
26
|
-
* Note: If you are working with file URLs,
|
27
|
-
* use the new version of `join` from `@std/path/posix/unstable-join`.
|
28
|
-
*
|
29
|
-
* @param paths The paths to join.
|
30
|
-
* @returns The joined path.
|
31
|
-
*/
|
32
|
-
export declare function join(...paths: string[]): string;
|
33
|
-
//# sourceMappingURL=join.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/join.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAK/C"}
|
@@ -1,42 +0,0 @@
|
|
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
|
-
* @example Working with URLs
|
18
|
-
* ```ts
|
19
|
-
* import { join } from "@std/path/posix/join";
|
20
|
-
* import { assertEquals } from "@std/assert";
|
21
|
-
*
|
22
|
-
* const url = new URL("https://deno.land");
|
23
|
-
* url.pathname = join("std", "path", "mod.ts");
|
24
|
-
* assertEquals(url.href, "https://deno.land/std/path/mod.ts");
|
25
|
-
*
|
26
|
-
* url.pathname = join("//std", "path/", "/mod.ts");
|
27
|
-
* assertEquals(url.href, "https://deno.land/std/path/mod.ts");
|
28
|
-
* ```
|
29
|
-
*
|
30
|
-
* Note: If you are working with file URLs,
|
31
|
-
* use the new version of `join` from `@std/path/posix/unstable-join`.
|
32
|
-
*
|
33
|
-
* @param paths The paths to join.
|
34
|
-
* @returns The joined path.
|
35
|
-
*/
|
36
|
-
export function join(...paths) {
|
37
|
-
if (paths.length === 0)
|
38
|
-
return ".";
|
39
|
-
paths.forEach((path) => assertPath(path));
|
40
|
-
const joined = paths.filter((path) => path.length > 0).join("/");
|
41
|
-
return joined === "" ? "." : normalize(joined);
|
42
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import type { GlobOptions } from "../_common/glob_to_reg_exp.js";
|
2
|
-
export type { GlobOptions };
|
3
|
-
/**
|
4
|
-
* Like join(), but doesn't collapse "**\/.." when `globstar` is true.
|
5
|
-
*
|
6
|
-
* @example Usage
|
7
|
-
* ```ts
|
8
|
-
* import { joinGlobs } from "@std/path/posix/join-globs";
|
9
|
-
* import { assertEquals } from "@std/assert";
|
10
|
-
*
|
11
|
-
* const path = joinGlobs(["foo", "bar", "**"], { globstar: true });
|
12
|
-
* assertEquals(path, "foo/bar/**");
|
13
|
-
* ```
|
14
|
-
*
|
15
|
-
* @param globs The globs to join.
|
16
|
-
* @param options The options to use.
|
17
|
-
* @returns The joined path.
|
18
|
-
*/
|
19
|
-
export declare function joinGlobs(globs: string[], options?: Pick<GlobOptions, "globstar">): string;
|
20
|
-
//# 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/posix/join_globs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAKjE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,GAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAM,GAC1C,MAAM,CAeR"}
|