ventojs 0.9.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/deps/deno.land/std@0.210.0/assert/assert.d.ts +12 -0
- package/esm/deps/deno.land/std@0.210.0/assert/assert.js +18 -0
- package/esm/deps/deno.land/std@0.210.0/assert/assertion_error.d.ts +14 -0
- package/esm/deps/deno.land/std@0.210.0/assert/assertion_error.js +18 -0
- package/{script/deps/deno.land/std@0.205.0 → esm/deps/deno.land/std@0.210.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
- package/esm/deps/deno.land/std@0.210.0/path/common.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/extname.js +1 -1
- package/esm/deps/deno.land/{std@0.205.0/path/glob.d.ts → std@0.210.0/path/glob_to_regexp.d.ts} +1 -7
- package/esm/deps/deno.land/std@0.210.0/path/glob_to_regexp.js +65 -0
- package/esm/deps/deno.land/std@0.210.0/path/join_globs.d.ts +3 -0
- package/esm/deps/deno.land/std@0.210.0/path/join_globs.js +11 -0
- package/{script/deps/deno.land/std@0.205.0 → esm/deps/deno.land/std@0.210.0}/path/mod.d.ts +8 -5
- package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/mod.js +9 -4
- package/esm/deps/deno.land/std@0.210.0/path/normalize_glob.d.ts +3 -0
- package/esm/deps/deno.land/std@0.210.0/path/normalize_glob.js +11 -0
- package/esm/deps/deno.land/{std@0.205.0/path/posix/glob.d.ts → std@0.210.0/path/posix/glob_to_regexp.d.ts} +1 -6
- package/esm/deps/deno.land/std@0.210.0/path/posix/glob_to_regexp.js +69 -0
- package/esm/deps/deno.land/std@0.210.0/path/posix/is_glob.d.ts +1 -0
- package/esm/deps/deno.land/std@0.210.0/path/posix/is_glob.js +3 -0
- package/esm/deps/deno.land/std@0.210.0/path/posix/join_globs.d.ts +3 -0
- package/esm/deps/deno.land/std@0.210.0/path/posix/join_globs.js +26 -0
- package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/mod.d.ts +4 -1
- package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/mod.js +4 -1
- package/esm/deps/deno.land/std@0.210.0/path/posix/normalize_glob.d.ts +3 -0
- package/esm/deps/deno.land/std@0.210.0/path/posix/normalize_glob.js +16 -0
- package/{script/deps/deno.land/std@0.205.0 → esm/deps/deno.land/std@0.210.0}/path/posix/to_file_url.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/separator.d.ts +1 -1
- package/{script/deps/deno.land/std@0.205.0/path/posix/glob.d.ts → esm/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.d.ts} +1 -6
- package/esm/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.js +69 -0
- package/esm/deps/deno.land/std@0.210.0/path/windows/is_glob.d.ts +1 -0
- package/esm/deps/deno.land/std@0.210.0/path/windows/is_glob.js +3 -0
- package/esm/deps/deno.land/std@0.210.0/path/windows/join_globs.d.ts +3 -0
- package/esm/deps/deno.land/std@0.210.0/path/windows/join_globs.js +26 -0
- package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/mod.d.ts +4 -1
- package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/mod.js +4 -1
- package/esm/deps/deno.land/std@0.210.0/path/windows/normalize_glob.d.ts +3 -0
- package/esm/deps/deno.land/std@0.210.0/path/windows/normalize_glob.js +16 -0
- package/esm/deps.d.ts +2 -2
- package/esm/deps.js +2 -2
- package/esm/mod.js +2 -2
- package/esm/plugins/for.js +27 -1
- package/esm/plugins/js.js +1 -1
- package/esm/src/environment.d.ts +5 -1
- package/esm/src/environment.js +5 -1
- package/esm/src/tokenizer.js +59 -11
- package/package.json +1 -1
- package/script/deps/deno.land/std@0.210.0/assert/assert.d.ts +12 -0
- package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/assert/assert.js +11 -1
- package/script/deps/deno.land/std@0.210.0/assert/assertion_error.d.ts +14 -0
- package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/assert/assertion_error.js +13 -2
- package/{esm/deps/deno.land/std@0.205.0 → script/deps/deno.land/std@0.210.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
- package/script/deps/deno.land/std@0.210.0/path/common.d.ts +13 -0
- package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/extname.js +1 -1
- package/script/deps/deno.land/{std@0.205.0/path/glob.d.ts → std@0.210.0/path/glob_to_regexp.d.ts} +1 -7
- package/script/deps/deno.land/std@0.210.0/path/glob_to_regexp.js +69 -0
- package/script/deps/deno.land/std@0.210.0/path/join_globs.d.ts +3 -0
- package/script/deps/deno.land/std@0.210.0/path/join_globs.js +15 -0
- package/{esm/deps/deno.land/std@0.205.0 → script/deps/deno.land/std@0.210.0}/path/mod.d.ts +8 -5
- package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/mod.js +9 -4
- package/script/deps/deno.land/std@0.210.0/path/normalize_glob.d.ts +3 -0
- package/script/deps/deno.land/std@0.210.0/path/normalize_glob.js +15 -0
- package/script/deps/deno.land/{std@0.205.0/path/windows/glob.d.ts → std@0.210.0/path/posix/glob_to_regexp.d.ts} +1 -6
- package/script/deps/deno.land/std@0.210.0/path/posix/glob_to_regexp.js +73 -0
- package/script/deps/deno.land/std@0.210.0/path/posix/is_glob.d.ts +1 -0
- package/script/deps/deno.land/std@0.210.0/path/posix/is_glob.js +7 -0
- package/script/deps/deno.land/std@0.210.0/path/posix/join_globs.d.ts +3 -0
- package/script/deps/deno.land/std@0.210.0/path/posix/join_globs.js +30 -0
- package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/mod.d.ts +4 -1
- package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/mod.js +4 -1
- package/script/deps/deno.land/std@0.210.0/path/posix/normalize_glob.d.ts +3 -0
- package/script/deps/deno.land/std@0.210.0/path/posix/normalize_glob.js +20 -0
- package/{esm/deps/deno.land/std@0.205.0 → script/deps/deno.land/std@0.210.0}/path/posix/to_file_url.d.ts +1 -1
- package/script/deps/deno.land/std@0.210.0/path/separator.d.ts +2 -0
- package/{esm/deps/deno.land/std@0.205.0/path/windows/glob.d.ts → script/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.d.ts} +1 -6
- package/script/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.js +73 -0
- package/script/deps/deno.land/std@0.210.0/path/windows/is_glob.d.ts +1 -0
- package/script/deps/deno.land/std@0.210.0/path/windows/is_glob.js +7 -0
- package/script/deps/deno.land/std@0.210.0/path/windows/join_globs.d.ts +3 -0
- package/script/deps/deno.land/std@0.210.0/path/windows/join_globs.js +30 -0
- package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/mod.d.ts +4 -1
- package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/mod.js +4 -1
- package/script/deps/deno.land/std@0.210.0/path/windows/normalize_glob.d.ts +3 -0
- package/script/deps/deno.land/std@0.210.0/path/windows/normalize_glob.js +20 -0
- package/script/deps.d.ts +2 -2
- package/script/deps.js +2 -2
- package/script/mod.js +2 -2
- package/script/plugins/for.js +27 -1
- package/script/plugins/js.js +1 -1
- package/script/src/environment.d.ts +5 -1
- package/script/src/environment.js +5 -1
- package/script/src/tokenizer.js +59 -11
- package/esm/deps/deno.land/std@0.205.0/assert/assert.d.ts +0 -2
- package/esm/deps/deno.land/std@0.205.0/assert/assert.js +0 -8
- package/esm/deps/deno.land/std@0.205.0/assert/assertion_error.d.ts +0 -4
- package/esm/deps/deno.land/std@0.205.0/assert/assertion_error.js +0 -7
- package/esm/deps/deno.land/std@0.205.0/path/glob.js +0 -78
- package/esm/deps/deno.land/std@0.205.0/path/posix/glob.js +0 -106
- package/esm/deps/deno.land/std@0.205.0/path/windows/glob.js +0 -106
- package/script/deps/deno.land/std@0.205.0/assert/assert.d.ts +0 -2
- package/script/deps/deno.land/std@0.205.0/assert/assertion_error.d.ts +0 -4
- package/script/deps/deno.land/std@0.205.0/path/glob.js +0 -85
- package/script/deps/deno.land/std@0.205.0/path/posix/common.d.ts +0 -13
- package/script/deps/deno.land/std@0.205.0/path/posix/glob.js +0 -113
- package/script/deps/deno.land/std@0.205.0/path/separator.d.ts +0 -2
- package/script/deps/deno.land/std@0.205.0/path/windows/common.d.ts +0 -13
- package/script/deps/deno.land/std@0.205.0/path/windows/glob.js +0 -113
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/html/entities.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/html/entities.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/html/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/html/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0/path/_common → std@0.210.0/path}/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0/path/_common → std@0.210.0/path}/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0/path → std@0.210.0/path/posix}/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0/path/posix → std@0.210.0/path/windows}/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/html/entities.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/html/entities.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/html/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/html/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0/path/_common → std@0.210.0/path}/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0/path/_common → std@0.210.0/path}/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/basename.js +0 -0
- /package/{esm/deps/deno.land/std@0.205.0/path/windows → script/deps/deno.land/std@0.210.0/path/posix}/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0/path → std@0.210.0/path/windows}/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/windows/to_namespaced_path.js +0 -0
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2023 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
|
-
import { normalize } from "./normalize.js";
|
|
5
|
-
import { join } from "./join.js";
|
|
6
|
-
import { SEP, SEP_PATTERN } from "./separator.js";
|
|
7
|
-
export { isGlob } from "../_common/is_glob.js";
|
|
8
|
-
const constants = {
|
|
9
|
-
sep: "/+",
|
|
10
|
-
sepMaybe: "/*",
|
|
11
|
-
seps: ["/"],
|
|
12
|
-
globstar: "(?:[^/]*(?:/|$)+)*",
|
|
13
|
-
wildcard: "[^/]*",
|
|
14
|
-
escapePrefix: "\\",
|
|
15
|
-
};
|
|
16
|
-
/** Convert a glob string to a regular expression.
|
|
17
|
-
*
|
|
18
|
-
* Tries to match bash glob expansion as closely as possible.
|
|
19
|
-
*
|
|
20
|
-
* Basic glob syntax:
|
|
21
|
-
* - `*` - Matches everything without leaving the path segment.
|
|
22
|
-
* - `?` - Matches any single character.
|
|
23
|
-
* - `{foo,bar}` - Matches `foo` or `bar`.
|
|
24
|
-
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
|
25
|
-
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
|
26
|
-
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
|
27
|
-
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
|
28
|
-
* - `[[:alnum:]]` - Matches any digit or letter.
|
|
29
|
-
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
|
30
|
-
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
|
31
|
-
* for a complete list of supported character classes.
|
|
32
|
-
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
|
33
|
-
* - \` - Escapes the next character for `os` set to `"windows"`.
|
|
34
|
-
* - `/` - Path separator.
|
|
35
|
-
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
|
36
|
-
*
|
|
37
|
-
* Extended syntax:
|
|
38
|
-
* - Requires `{ extended: true }`.
|
|
39
|
-
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
|
40
|
-
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
|
41
|
-
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
|
42
|
-
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
|
43
|
-
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
|
44
|
-
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
45
|
-
*
|
|
46
|
-
* Globstar syntax:
|
|
47
|
-
* - Requires `{ globstar: true }`.
|
|
48
|
-
* - `**` - Matches any number of any path segments.
|
|
49
|
-
* - Must comprise its entire path segment in the provided glob.
|
|
50
|
-
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
51
|
-
*
|
|
52
|
-
* Note the following properties:
|
|
53
|
-
* - The generated `RegExp` is anchored at both start and end.
|
|
54
|
-
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
|
55
|
-
* provided glob have no meaning and are discarded.
|
|
56
|
-
* - Absolute globs will only match absolute paths, etc.
|
|
57
|
-
* - Empty globs will match nothing.
|
|
58
|
-
* - Any special glob syntax must be contained to one path segment. For example,
|
|
59
|
-
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
|
60
|
-
* first segment ends with an unclosed group.
|
|
61
|
-
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
|
62
|
-
* parse error has occurred. Every character for that segment is taken
|
|
63
|
-
* literally in this event.
|
|
64
|
-
*
|
|
65
|
-
* Limitations:
|
|
66
|
-
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
|
67
|
-
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
|
68
|
-
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
69
|
-
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
70
|
-
* the group occurs not nested at the end of the segment. */
|
|
71
|
-
export function globToRegExp(glob, options = {}) {
|
|
72
|
-
return _globToRegExp(constants, glob, options);
|
|
73
|
-
}
|
|
74
|
-
/** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
75
|
-
export function normalizeGlob(glob, { globstar = false } = {}) {
|
|
76
|
-
if (glob.match(/\0/g)) {
|
|
77
|
-
throw new Error(`Glob contains invalid characters: "${glob}"`);
|
|
78
|
-
}
|
|
79
|
-
if (!globstar) {
|
|
80
|
-
return normalize(glob);
|
|
81
|
-
}
|
|
82
|
-
const s = SEP_PATTERN.source;
|
|
83
|
-
const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
|
|
84
|
-
return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
|
|
85
|
-
}
|
|
86
|
-
/** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
87
|
-
export function joinGlobs(globs, { extended = true, globstar = false } = {}) {
|
|
88
|
-
if (!globstar || globs.length === 0) {
|
|
89
|
-
return join(...globs);
|
|
90
|
-
}
|
|
91
|
-
if (globs.length === 0)
|
|
92
|
-
return ".";
|
|
93
|
-
let joined;
|
|
94
|
-
for (const glob of globs) {
|
|
95
|
-
const path = glob;
|
|
96
|
-
if (path.length > 0) {
|
|
97
|
-
if (!joined)
|
|
98
|
-
joined = path;
|
|
99
|
-
else
|
|
100
|
-
joined += `${SEP}${path}`;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
if (!joined)
|
|
104
|
-
return ".";
|
|
105
|
-
return normalizeGlob(joined, { extended, globstar });
|
|
106
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2023 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
|
-
import { normalize } from "./normalize.js";
|
|
5
|
-
import { join } from "./join.js";
|
|
6
|
-
import { SEP, SEP_PATTERN } from "./separator.js";
|
|
7
|
-
export { isGlob } from "../_common/is_glob.js";
|
|
8
|
-
const constants = {
|
|
9
|
-
sep: "(?:\\\\|/)+",
|
|
10
|
-
sepMaybe: "(?:\\\\|/)*",
|
|
11
|
-
seps: ["\\", "/"],
|
|
12
|
-
globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*",
|
|
13
|
-
wildcard: "[^\\\\/]*",
|
|
14
|
-
escapePrefix: "`",
|
|
15
|
-
};
|
|
16
|
-
/** Convert a glob string to a regular expression.
|
|
17
|
-
*
|
|
18
|
-
* Tries to match bash glob expansion as closely as possible.
|
|
19
|
-
*
|
|
20
|
-
* Basic glob syntax:
|
|
21
|
-
* - `*` - Matches everything without leaving the path segment.
|
|
22
|
-
* - `?` - Matches any single character.
|
|
23
|
-
* - `{foo,bar}` - Matches `foo` or `bar`.
|
|
24
|
-
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
|
25
|
-
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
|
26
|
-
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
|
27
|
-
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
|
28
|
-
* - `[[:alnum:]]` - Matches any digit or letter.
|
|
29
|
-
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
|
30
|
-
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
|
31
|
-
* for a complete list of supported character classes.
|
|
32
|
-
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
|
33
|
-
* - \` - Escapes the next character for `os` set to `"windows"`.
|
|
34
|
-
* - `/` - Path separator.
|
|
35
|
-
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
|
36
|
-
*
|
|
37
|
-
* Extended syntax:
|
|
38
|
-
* - Requires `{ extended: true }`.
|
|
39
|
-
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
|
40
|
-
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
|
41
|
-
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
|
42
|
-
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
|
43
|
-
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
|
44
|
-
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
45
|
-
*
|
|
46
|
-
* Globstar syntax:
|
|
47
|
-
* - Requires `{ globstar: true }`.
|
|
48
|
-
* - `**` - Matches any number of any path segments.
|
|
49
|
-
* - Must comprise its entire path segment in the provided glob.
|
|
50
|
-
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
51
|
-
*
|
|
52
|
-
* Note the following properties:
|
|
53
|
-
* - The generated `RegExp` is anchored at both start and end.
|
|
54
|
-
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
|
55
|
-
* provided glob have no meaning and are discarded.
|
|
56
|
-
* - Absolute globs will only match absolute paths, etc.
|
|
57
|
-
* - Empty globs will match nothing.
|
|
58
|
-
* - Any special glob syntax must be contained to one path segment. For example,
|
|
59
|
-
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
|
60
|
-
* first segment ends with an unclosed group.
|
|
61
|
-
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
|
62
|
-
* parse error has occurred. Every character for that segment is taken
|
|
63
|
-
* literally in this event.
|
|
64
|
-
*
|
|
65
|
-
* Limitations:
|
|
66
|
-
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
|
67
|
-
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
|
68
|
-
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
69
|
-
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
70
|
-
* the group occurs not nested at the end of the segment. */
|
|
71
|
-
export function globToRegExp(glob, options = {}) {
|
|
72
|
-
return _globToRegExp(constants, glob, options);
|
|
73
|
-
}
|
|
74
|
-
/** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
75
|
-
export function normalizeGlob(glob, { globstar = false } = {}) {
|
|
76
|
-
if (glob.match(/\0/g)) {
|
|
77
|
-
throw new Error(`Glob contains invalid characters: "${glob}"`);
|
|
78
|
-
}
|
|
79
|
-
if (!globstar) {
|
|
80
|
-
return normalize(glob);
|
|
81
|
-
}
|
|
82
|
-
const s = SEP_PATTERN.source;
|
|
83
|
-
const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
|
|
84
|
-
return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
|
|
85
|
-
}
|
|
86
|
-
/** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
87
|
-
export function joinGlobs(globs, { extended = true, globstar = false } = {}) {
|
|
88
|
-
if (!globstar || globs.length === 0) {
|
|
89
|
-
return join(...globs);
|
|
90
|
-
}
|
|
91
|
-
if (globs.length === 0)
|
|
92
|
-
return ".";
|
|
93
|
-
let joined;
|
|
94
|
-
for (const glob of globs) {
|
|
95
|
-
const path = glob;
|
|
96
|
-
if (path.length > 0) {
|
|
97
|
-
if (!joined)
|
|
98
|
-
joined = path;
|
|
99
|
-
else
|
|
100
|
-
joined += `${SEP}${path}`;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
if (!joined)
|
|
104
|
-
return ".";
|
|
105
|
-
return normalizeGlob(joined, { extended, globstar });
|
|
106
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.joinGlobs = exports.normalizeGlob = exports.globToRegExp = exports.isGlob = void 0;
|
|
6
|
-
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const glob_js_1 = require("./posix/glob.js");
|
|
8
|
-
const glob_js_2 = require("./windows/glob.js");
|
|
9
|
-
var is_glob_js_1 = require("./_common/is_glob.js");
|
|
10
|
-
Object.defineProperty(exports, "isGlob", { enumerable: true, get: function () { return is_glob_js_1.isGlob; } });
|
|
11
|
-
/** Convert a glob string to a regular expression.
|
|
12
|
-
*
|
|
13
|
-
* Tries to match bash glob expansion as closely as possible.
|
|
14
|
-
*
|
|
15
|
-
* Basic glob syntax:
|
|
16
|
-
* - `*` - Matches everything without leaving the path segment.
|
|
17
|
-
* - `?` - Matches any single character.
|
|
18
|
-
* - `{foo,bar}` - Matches `foo` or `bar`.
|
|
19
|
-
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
|
20
|
-
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
|
21
|
-
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
|
22
|
-
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
|
23
|
-
* - `[[:alnum:]]` - Matches any digit or letter.
|
|
24
|
-
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
|
25
|
-
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
|
26
|
-
* for a complete list of supported character classes.
|
|
27
|
-
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
|
28
|
-
* - \` - Escapes the next character for `os` set to `"windows"`.
|
|
29
|
-
* - `/` - Path separator.
|
|
30
|
-
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
|
31
|
-
*
|
|
32
|
-
* Extended syntax:
|
|
33
|
-
* - Requires `{ extended: true }`.
|
|
34
|
-
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
|
35
|
-
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
|
36
|
-
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
|
37
|
-
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
|
38
|
-
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
|
39
|
-
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
40
|
-
*
|
|
41
|
-
* Globstar syntax:
|
|
42
|
-
* - Requires `{ globstar: true }`.
|
|
43
|
-
* - `**` - Matches any number of any path segments.
|
|
44
|
-
* - Must comprise its entire path segment in the provided glob.
|
|
45
|
-
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
46
|
-
*
|
|
47
|
-
* Note the following properties:
|
|
48
|
-
* - The generated `RegExp` is anchored at both start and end.
|
|
49
|
-
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
|
50
|
-
* provided glob have no meaning and are discarded.
|
|
51
|
-
* - Absolute globs will only match absolute paths, etc.
|
|
52
|
-
* - Empty globs will match nothing.
|
|
53
|
-
* - Any special glob syntax must be contained to one path segment. For example,
|
|
54
|
-
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
|
55
|
-
* first segment ends with an unclosed group.
|
|
56
|
-
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
|
57
|
-
* parse error has occurred. Every character for that segment is taken
|
|
58
|
-
* literally in this event.
|
|
59
|
-
*
|
|
60
|
-
* Limitations:
|
|
61
|
-
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
|
62
|
-
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
|
63
|
-
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
64
|
-
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
65
|
-
* the group occurs not nested at the end of the segment. */
|
|
66
|
-
function globToRegExp(glob, options = {}) {
|
|
67
|
-
return options.os === "windows" || (!options.os && _os_js_1.isWindows)
|
|
68
|
-
? (0, glob_js_2.globToRegExp)(glob, options)
|
|
69
|
-
: (0, glob_js_1.globToRegExp)(glob, options);
|
|
70
|
-
}
|
|
71
|
-
exports.globToRegExp = globToRegExp;
|
|
72
|
-
/** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
73
|
-
function normalizeGlob(glob, options = {}) {
|
|
74
|
-
return _os_js_1.isWindows
|
|
75
|
-
? (0, glob_js_2.normalizeGlob)(glob, options)
|
|
76
|
-
: (0, glob_js_1.normalizeGlob)(glob, options);
|
|
77
|
-
}
|
|
78
|
-
exports.normalizeGlob = normalizeGlob;
|
|
79
|
-
/** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
80
|
-
function joinGlobs(globs, options = {}) {
|
|
81
|
-
return _os_js_1.isWindows
|
|
82
|
-
? (0, glob_js_2.joinGlobs)(globs, options)
|
|
83
|
-
: (0, glob_js_1.joinGlobs)(globs, options);
|
|
84
|
-
}
|
|
85
|
-
exports.joinGlobs = joinGlobs;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Determines the common path from a set of paths, using an optional separator,
|
|
2
|
-
* which defaults to the OS default separator.
|
|
3
|
-
*
|
|
4
|
-
* ```ts
|
|
5
|
-
* import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
6
|
-
* const p = common([
|
|
7
|
-
* "./deno/std/path/mod.ts",
|
|
8
|
-
* "./deno/std/fs/mod.ts",
|
|
9
|
-
* ]);
|
|
10
|
-
* console.log(p); // "./deno/std/"
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
export declare function common(paths: string[], sep?: string): string;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.joinGlobs = exports.normalizeGlob = exports.globToRegExp = exports.isGlob = void 0;
|
|
6
|
-
const glob_to_reg_exp_js_1 = require("../_common/glob_to_reg_exp.js");
|
|
7
|
-
const normalize_js_1 = require("./normalize.js");
|
|
8
|
-
const join_js_1 = require("./join.js");
|
|
9
|
-
const separator_js_1 = require("./separator.js");
|
|
10
|
-
var is_glob_js_1 = require("../_common/is_glob.js");
|
|
11
|
-
Object.defineProperty(exports, "isGlob", { enumerable: true, get: function () { return is_glob_js_1.isGlob; } });
|
|
12
|
-
const constants = {
|
|
13
|
-
sep: "/+",
|
|
14
|
-
sepMaybe: "/*",
|
|
15
|
-
seps: ["/"],
|
|
16
|
-
globstar: "(?:[^/]*(?:/|$)+)*",
|
|
17
|
-
wildcard: "[^/]*",
|
|
18
|
-
escapePrefix: "\\",
|
|
19
|
-
};
|
|
20
|
-
/** Convert a glob string to a regular expression.
|
|
21
|
-
*
|
|
22
|
-
* Tries to match bash glob expansion as closely as possible.
|
|
23
|
-
*
|
|
24
|
-
* Basic glob syntax:
|
|
25
|
-
* - `*` - Matches everything without leaving the path segment.
|
|
26
|
-
* - `?` - Matches any single character.
|
|
27
|
-
* - `{foo,bar}` - Matches `foo` or `bar`.
|
|
28
|
-
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
|
29
|
-
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
|
30
|
-
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
|
31
|
-
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
|
32
|
-
* - `[[:alnum:]]` - Matches any digit or letter.
|
|
33
|
-
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
|
34
|
-
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
|
35
|
-
* for a complete list of supported character classes.
|
|
36
|
-
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
|
37
|
-
* - \` - Escapes the next character for `os` set to `"windows"`.
|
|
38
|
-
* - `/` - Path separator.
|
|
39
|
-
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
|
40
|
-
*
|
|
41
|
-
* Extended syntax:
|
|
42
|
-
* - Requires `{ extended: true }`.
|
|
43
|
-
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
|
44
|
-
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
|
45
|
-
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
|
46
|
-
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
|
47
|
-
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
|
48
|
-
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
49
|
-
*
|
|
50
|
-
* Globstar syntax:
|
|
51
|
-
* - Requires `{ globstar: true }`.
|
|
52
|
-
* - `**` - Matches any number of any path segments.
|
|
53
|
-
* - Must comprise its entire path segment in the provided glob.
|
|
54
|
-
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
55
|
-
*
|
|
56
|
-
* Note the following properties:
|
|
57
|
-
* - The generated `RegExp` is anchored at both start and end.
|
|
58
|
-
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
|
59
|
-
* provided glob have no meaning and are discarded.
|
|
60
|
-
* - Absolute globs will only match absolute paths, etc.
|
|
61
|
-
* - Empty globs will match nothing.
|
|
62
|
-
* - Any special glob syntax must be contained to one path segment. For example,
|
|
63
|
-
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
|
64
|
-
* first segment ends with an unclosed group.
|
|
65
|
-
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
|
66
|
-
* parse error has occurred. Every character for that segment is taken
|
|
67
|
-
* literally in this event.
|
|
68
|
-
*
|
|
69
|
-
* Limitations:
|
|
70
|
-
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
|
71
|
-
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
|
72
|
-
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
73
|
-
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
74
|
-
* the group occurs not nested at the end of the segment. */
|
|
75
|
-
function globToRegExp(glob, options = {}) {
|
|
76
|
-
return (0, glob_to_reg_exp_js_1._globToRegExp)(constants, glob, options);
|
|
77
|
-
}
|
|
78
|
-
exports.globToRegExp = globToRegExp;
|
|
79
|
-
/** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
80
|
-
function normalizeGlob(glob, { globstar = false } = {}) {
|
|
81
|
-
if (glob.match(/\0/g)) {
|
|
82
|
-
throw new Error(`Glob contains invalid characters: "${glob}"`);
|
|
83
|
-
}
|
|
84
|
-
if (!globstar) {
|
|
85
|
-
return (0, normalize_js_1.normalize)(glob);
|
|
86
|
-
}
|
|
87
|
-
const s = separator_js_1.SEP_PATTERN.source;
|
|
88
|
-
const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
|
|
89
|
-
return (0, normalize_js_1.normalize)(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
|
|
90
|
-
}
|
|
91
|
-
exports.normalizeGlob = normalizeGlob;
|
|
92
|
-
/** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
93
|
-
function joinGlobs(globs, { extended = true, globstar = false } = {}) {
|
|
94
|
-
if (!globstar || globs.length === 0) {
|
|
95
|
-
return (0, join_js_1.join)(...globs);
|
|
96
|
-
}
|
|
97
|
-
if (globs.length === 0)
|
|
98
|
-
return ".";
|
|
99
|
-
let joined;
|
|
100
|
-
for (const glob of globs) {
|
|
101
|
-
const path = glob;
|
|
102
|
-
if (path.length > 0) {
|
|
103
|
-
if (!joined)
|
|
104
|
-
joined = path;
|
|
105
|
-
else
|
|
106
|
-
joined += `${separator_js_1.SEP}${path}`;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
if (!joined)
|
|
110
|
-
return ".";
|
|
111
|
-
return normalizeGlob(joined, { extended, globstar });
|
|
112
|
-
}
|
|
113
|
-
exports.joinGlobs = joinGlobs;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Determines the common path from a set of paths, using an optional separator,
|
|
2
|
-
* which defaults to the OS default separator.
|
|
3
|
-
*
|
|
4
|
-
* ```ts
|
|
5
|
-
* import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
6
|
-
* const p = common([
|
|
7
|
-
* "./deno/std/path/mod.ts",
|
|
8
|
-
* "./deno/std/fs/mod.ts",
|
|
9
|
-
* ]);
|
|
10
|
-
* console.log(p); // "./deno/std/"
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
export declare function common(paths: string[], sep?: string): string;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.joinGlobs = exports.normalizeGlob = exports.globToRegExp = exports.isGlob = void 0;
|
|
6
|
-
const glob_to_reg_exp_js_1 = require("../_common/glob_to_reg_exp.js");
|
|
7
|
-
const normalize_js_1 = require("./normalize.js");
|
|
8
|
-
const join_js_1 = require("./join.js");
|
|
9
|
-
const separator_js_1 = require("./separator.js");
|
|
10
|
-
var is_glob_js_1 = require("../_common/is_glob.js");
|
|
11
|
-
Object.defineProperty(exports, "isGlob", { enumerable: true, get: function () { return is_glob_js_1.isGlob; } });
|
|
12
|
-
const constants = {
|
|
13
|
-
sep: "(?:\\\\|/)+",
|
|
14
|
-
sepMaybe: "(?:\\\\|/)*",
|
|
15
|
-
seps: ["\\", "/"],
|
|
16
|
-
globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*",
|
|
17
|
-
wildcard: "[^\\\\/]*",
|
|
18
|
-
escapePrefix: "`",
|
|
19
|
-
};
|
|
20
|
-
/** Convert a glob string to a regular expression.
|
|
21
|
-
*
|
|
22
|
-
* Tries to match bash glob expansion as closely as possible.
|
|
23
|
-
*
|
|
24
|
-
* Basic glob syntax:
|
|
25
|
-
* - `*` - Matches everything without leaving the path segment.
|
|
26
|
-
* - `?` - Matches any single character.
|
|
27
|
-
* - `{foo,bar}` - Matches `foo` or `bar`.
|
|
28
|
-
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
|
29
|
-
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
|
30
|
-
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
|
31
|
-
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
|
32
|
-
* - `[[:alnum:]]` - Matches any digit or letter.
|
|
33
|
-
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
|
34
|
-
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
|
35
|
-
* for a complete list of supported character classes.
|
|
36
|
-
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
|
37
|
-
* - \` - Escapes the next character for `os` set to `"windows"`.
|
|
38
|
-
* - `/` - Path separator.
|
|
39
|
-
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
|
40
|
-
*
|
|
41
|
-
* Extended syntax:
|
|
42
|
-
* - Requires `{ extended: true }`.
|
|
43
|
-
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
|
44
|
-
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
|
45
|
-
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
|
46
|
-
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
|
47
|
-
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
|
48
|
-
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
49
|
-
*
|
|
50
|
-
* Globstar syntax:
|
|
51
|
-
* - Requires `{ globstar: true }`.
|
|
52
|
-
* - `**` - Matches any number of any path segments.
|
|
53
|
-
* - Must comprise its entire path segment in the provided glob.
|
|
54
|
-
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
55
|
-
*
|
|
56
|
-
* Note the following properties:
|
|
57
|
-
* - The generated `RegExp` is anchored at both start and end.
|
|
58
|
-
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
|
59
|
-
* provided glob have no meaning and are discarded.
|
|
60
|
-
* - Absolute globs will only match absolute paths, etc.
|
|
61
|
-
* - Empty globs will match nothing.
|
|
62
|
-
* - Any special glob syntax must be contained to one path segment. For example,
|
|
63
|
-
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
|
64
|
-
* first segment ends with an unclosed group.
|
|
65
|
-
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
|
66
|
-
* parse error has occurred. Every character for that segment is taken
|
|
67
|
-
* literally in this event.
|
|
68
|
-
*
|
|
69
|
-
* Limitations:
|
|
70
|
-
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
|
71
|
-
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
|
72
|
-
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
73
|
-
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
74
|
-
* the group occurs not nested at the end of the segment. */
|
|
75
|
-
function globToRegExp(glob, options = {}) {
|
|
76
|
-
return (0, glob_to_reg_exp_js_1._globToRegExp)(constants, glob, options);
|
|
77
|
-
}
|
|
78
|
-
exports.globToRegExp = globToRegExp;
|
|
79
|
-
/** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
80
|
-
function normalizeGlob(glob, { globstar = false } = {}) {
|
|
81
|
-
if (glob.match(/\0/g)) {
|
|
82
|
-
throw new Error(`Glob contains invalid characters: "${glob}"`);
|
|
83
|
-
}
|
|
84
|
-
if (!globstar) {
|
|
85
|
-
return (0, normalize_js_1.normalize)(glob);
|
|
86
|
-
}
|
|
87
|
-
const s = separator_js_1.SEP_PATTERN.source;
|
|
88
|
-
const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
|
|
89
|
-
return (0, normalize_js_1.normalize)(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
|
|
90
|
-
}
|
|
91
|
-
exports.normalizeGlob = normalizeGlob;
|
|
92
|
-
/** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
93
|
-
function joinGlobs(globs, { extended = true, globstar = false } = {}) {
|
|
94
|
-
if (!globstar || globs.length === 0) {
|
|
95
|
-
return (0, join_js_1.join)(...globs);
|
|
96
|
-
}
|
|
97
|
-
if (globs.length === 0)
|
|
98
|
-
return ".";
|
|
99
|
-
let joined;
|
|
100
|
-
for (const glob of globs) {
|
|
101
|
-
const path = glob;
|
|
102
|
-
if (path.length > 0) {
|
|
103
|
-
if (!joined)
|
|
104
|
-
joined = path;
|
|
105
|
-
else
|
|
106
|
-
joined += `${separator_js_1.SEP}${path}`;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
if (!joined)
|
|
110
|
-
return ".";
|
|
111
|
-
return normalizeGlob(joined, { extended, globstar });
|
|
112
|
-
}
|
|
113
|
-
exports.joinGlobs = joinGlobs;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/strip_trailing_separators.d.ts
RENAMED
|
File without changes
|
/package/esm/deps/deno.land/{std@0.205.0 → std@0.210.0}/path/_common/strip_trailing_separators.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|