ventojs 0.9.0 → 0.9.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.208.0/path/_common/assert_path.d.ts +1 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/assert_path.js +7 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/basename.d.ts +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/basename.js +40 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/common.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/_common}/common.js +1 -14
- package/esm/deps/deno.land/std@0.208.0/path/_common/dirname.d.ts +1 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/dirname.js +8 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/format.d.ts +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/format.js +19 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/from_file_url.d.ts +2 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/from_file_url.js +9 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/glob_to_reg_exp.d.ts +27 -0
- package/esm/deps/deno.land/{std@0.201.0/path/glob.js → std@0.208.0/path/_common/glob_to_reg_exp.js} +13 -139
- package/esm/deps/deno.land/std@0.208.0/path/_common/normalize.d.ts +1 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/normalize.js +8 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/normalize_string.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.201.0/path/_util.js → std@0.208.0/path/_common/normalize_string.js} +1 -31
- package/esm/deps/deno.land/std@0.208.0/path/_common/relative.d.ts +1 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/relative.js +9 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/strip_trailing_separators.d.ts +1 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/to_file_url.d.ts +1 -0
- package/esm/deps/deno.land/std@0.208.0/path/_common/to_file_url.js +15 -0
- package/esm/deps/deno.land/std@0.208.0/path/_os.d.ts +3 -0
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_os.js +1 -1
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/basename.js +2 -1
- package/esm/deps/deno.land/std@0.208.0/path/common.js +19 -0
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/dirname.js +2 -1
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/extname.js +2 -1
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/format.js +2 -1
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/from_file_url.js +2 -1
- package/esm/deps/deno.land/{std@0.201.0/path/glob.d.ts → std@0.208.0/path/glob_to_regexp.d.ts} +5 -27
- package/esm/deps/deno.land/std@0.208.0/path/glob_to_regexp.js +65 -0
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/is_absolute.js +2 -1
- package/esm/deps/deno.land/std@0.208.0/path/is_glob.d.ts +2 -0
- package/esm/deps/deno.land/std@0.208.0/path/is_glob.js +28 -0
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/join.js +2 -1
- package/esm/deps/deno.land/std@0.208.0/path/join_globs.d.ts +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/join_globs.js +11 -0
- package/{script/deps/deno.land/std@0.201.0 → esm/deps/deno.land/std@0.208.0}/path/mod.d.ts +10 -4
- package/esm/deps/deno.land/std@0.208.0/path/mod.js +63 -0
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/normalize.js +2 -1
- package/esm/deps/deno.land/std@0.208.0/path/normalize_glob.d.ts +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/normalize_glob.js +11 -0
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/parse.js +2 -1
- package/esm/deps/deno.land/std@0.208.0/path/posix/_util.d.ts +1 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/_util.js +8 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/basename.js +18 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/common.js +19 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/dirname.js +36 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/extname.js +59 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/format.d.ts +6 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/format.js +11 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/from_file_url.d.ts +12 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/from_file_url.js +17 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/glob_to_regexp.d.ts +57 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/glob_to_regexp.js +69 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/is_absolute.js +12 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/is_glob.d.ts +1 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/is_glob.js +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/join.js +26 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/join_globs.d.ts +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/join_globs.js +26 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/mod.d.ts +40 -0
- package/esm/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/posix}/mod.js +7 -8
- package/esm/deps/deno.land/std@0.208.0/path/posix/normalize.js +25 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/normalize_glob.d.ts +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/normalize_glob.js +16 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/parse.d.ts +6 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/parse.js +98 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/relative.d.ts +7 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/relative.js +94 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/resolve.js +48 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/separator.d.ts +2 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/separator.js +4 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/to_file_url.d.ts +12 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/to_file_url.js +22 -0
- package/esm/deps/deno.land/std@0.208.0/path/posix/to_namespaced_path.js +10 -0
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/relative.js +2 -1
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/resolve.js +2 -1
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_file_url.js +2 -1
- package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_namespaced_path.js +2 -1
- package/esm/deps/deno.land/std@0.208.0/path/windows/_util.d.ts +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/_util.js +15 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/basename.d.ts +8 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/basename.js +30 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/common.d.ts +13 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/common.js +19 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/dirname.d.ts +5 -0
- package/esm/deps/deno.land/{std@0.201.0/path/_dirname.js → std@0.208.0/path/windows/dirname.js} +5 -39
- package/esm/deps/deno.land/std@0.208.0/path/windows/extname.d.ts +6 -0
- package/esm/deps/deno.land/{std@0.201.0/path/_extname.js → std@0.208.0/path/windows/extname.js} +4 -57
- package/esm/deps/deno.land/std@0.208.0/path/windows/format.d.ts +6 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/format.js +11 -0
- package/esm/deps/deno.land/{std@0.201.0/path/_from_file_url.d.ts → std@0.208.0/path/windows/from_file_url.d.ts} +1 -12
- package/esm/deps/deno.land/{std@0.201.0/path/_from_file_url.js → std@0.208.0/path/windows/from_file_url.js} +2 -22
- package/esm/deps/deno.land/std@0.208.0/path/windows/glob_to_regexp.d.ts +57 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/glob_to_regexp.js +69 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/is_absolute.d.ts +5 -0
- package/esm/deps/deno.land/{std@0.201.0/path/_is_absolute.js → std@0.208.0/path/windows/is_absolute.js} +4 -11
- package/esm/deps/deno.land/std@0.208.0/path/windows/is_glob.d.ts +1 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/is_glob.js +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/join.d.ts +5 -0
- package/esm/deps/deno.land/{std@0.201.0/path/_join.js → std@0.208.0/path/windows/join.js} +6 -27
- package/esm/deps/deno.land/std@0.208.0/path/windows/join_globs.d.ts +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/join_globs.js +26 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/mod.d.ts +40 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/mod.js +44 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/normalize.d.ts +7 -0
- package/esm/deps/deno.land/{std@0.201.0/path/_normalize.js → std@0.208.0/path/windows/normalize.js} +5 -28
- package/esm/deps/deno.land/std@0.208.0/path/windows/normalize_glob.d.ts +3 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/normalize_glob.js +16 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/parse.d.ts +6 -0
- package/esm/deps/deno.land/{std@0.201.0/path/_parse.js → std@0.208.0/path/windows/parse.js} +4 -95
- package/esm/deps/deno.land/{std@0.201.0/path/_relative.js → std@0.208.0/path/windows/relative.js} +6 -101
- package/esm/deps/deno.land/std@0.208.0/path/windows/resolve.d.ts +5 -0
- package/esm/deps/deno.land/{std@0.201.0/path/_resolve.js → std@0.208.0/path/windows/resolve.js} +6 -46
- package/esm/deps/deno.land/std@0.208.0/path/windows/separator.d.ts +2 -0
- package/esm/deps/deno.land/std@0.208.0/path/windows/separator.js +4 -0
- package/{script/deps/deno.land/std@0.201.0/path/_to_file_url.d.ts → esm/deps/deno.land/std@0.208.0/path/windows/to_file_url.d.ts} +1 -12
- package/esm/deps/deno.land/{std@0.201.0/path/_to_file_url.js → std@0.208.0/path/windows/to_file_url.js} +4 -34
- package/esm/deps/deno.land/std@0.208.0/path/windows/to_namespaced_path.d.ts +5 -0
- package/esm/deps/deno.land/{std@0.201.0/path/_to_namespaced_path.js → std@0.208.0/path/windows/to_namespaced_path.js} +4 -12
- package/esm/deps.d.ts +2 -2
- package/esm/deps.js +2 -2
- package/esm/mod.js +2 -2
- package/esm/src/environment.d.ts +5 -0
- package/esm/src/environment.js +50 -23
- package/esm/src/tokenizer.d.ts +7 -2
- package/esm/src/tokenizer.js +77 -66
- package/package.json +1 -1
- package/script/deps/deno.land/std@0.208.0/path/_common/assert_path.d.ts +1 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/assert_path.js +11 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/basename.d.ts +3 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/basename.js +46 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/common.d.ts +1 -0
- package/script/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/_common}/common.js +3 -16
- package/script/deps/deno.land/std@0.208.0/path/_common/dirname.d.ts +1 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/dirname.js +12 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/format.d.ts +3 -0
- package/{esm/deps/deno.land/std@0.201.0/path/_format.js → script/deps/deno.land/std@0.208.0/path/_common/format.js} +5 -16
- package/script/deps/deno.land/std@0.208.0/path/_common/from_file_url.d.ts +2 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/from_file_url.js +13 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/glob_to_reg_exp.d.ts +27 -0
- package/script/deps/deno.land/{std@0.201.0/path/glob.js → std@0.208.0/path/_common/glob_to_reg_exp.js} +15 -167
- package/script/deps/deno.land/std@0.208.0/path/_common/normalize.d.ts +1 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/normalize.js +12 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/normalize_string.d.ts +1 -0
- package/script/deps/deno.land/{std@0.201.0/path/_util.js → std@0.208.0/path/_common/normalize_string.js} +6 -41
- package/script/deps/deno.land/std@0.208.0/path/_common/relative.d.ts +1 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/relative.js +13 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/strip_trailing_separators.d.ts +1 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/strip_trailing_separators.js +23 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/to_file_url.d.ts +1 -0
- package/script/deps/deno.land/std@0.208.0/path/_common/to_file_url.js +19 -0
- package/script/deps/deno.land/std@0.208.0/path/_os.d.ts +3 -0
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_os.js +4 -4
- package/script/deps/deno.land/std@0.208.0/path/basename.d.ts +8 -0
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/basename.js +4 -3
- package/script/deps/deno.land/std@0.208.0/path/common.d.ts +13 -0
- package/script/deps/deno.land/std@0.208.0/path/common.js +23 -0
- package/script/deps/deno.land/std@0.208.0/path/dirname.d.ts +5 -0
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/dirname.js +3 -2
- package/script/deps/deno.land/std@0.208.0/path/extname.d.ts +6 -0
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/extname.js +3 -2
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/format.js +3 -2
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/from_file_url.js +3 -2
- package/script/deps/deno.land/{std@0.201.0/path/glob.d.ts → std@0.208.0/path/glob_to_regexp.d.ts} +5 -27
- package/script/deps/deno.land/std@0.208.0/path/glob_to_regexp.js +69 -0
- package/script/deps/deno.land/std@0.208.0/path/is_absolute.d.ts +5 -0
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/is_absolute.js +3 -2
- package/script/deps/deno.land/std@0.208.0/path/is_glob.d.ts +2 -0
- package/script/deps/deno.land/std@0.208.0/path/is_glob.js +32 -0
- package/script/deps/deno.land/std@0.208.0/path/join.d.ts +5 -0
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/join.js +3 -2
- package/script/deps/deno.land/std@0.208.0/path/join_globs.d.ts +3 -0
- package/script/deps/deno.land/std@0.208.0/path/join_globs.js +15 -0
- package/{esm/deps/deno.land/std@0.201.0 → script/deps/deno.land/std@0.208.0}/path/mod.d.ts +10 -4
- package/script/deps/deno.land/std@0.208.0/path/mod.js +92 -0
- package/script/deps/deno.land/std@0.208.0/path/normalize.d.ts +7 -0
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/normalize.js +3 -2
- package/script/deps/deno.land/std@0.208.0/path/normalize_glob.d.ts +3 -0
- package/script/deps/deno.land/std@0.208.0/path/normalize_glob.js +15 -0
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/parse.js +3 -2
- package/script/deps/deno.land/std@0.208.0/path/posix/_util.d.ts +1 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/_util.js +12 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/basename.d.ts +8 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/basename.js +22 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/common.d.ts +13 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/common.js +23 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/dirname.d.ts +5 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/dirname.js +40 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/extname.d.ts +6 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/extname.js +63 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/format.d.ts +6 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/format.js +15 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/from_file_url.d.ts +12 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/from_file_url.js +21 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/glob_to_regexp.d.ts +57 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/glob_to_regexp.js +73 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/is_absolute.d.ts +5 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/is_absolute.js +16 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/is_glob.d.ts +1 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/is_glob.js +7 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/join.d.ts +5 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/join.js +30 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/join_globs.d.ts +3 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/join_globs.js +30 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/mod.d.ts +40 -0
- package/script/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/posix}/mod.js +8 -21
- package/script/deps/deno.land/std@0.208.0/path/posix/normalize.d.ts +7 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/normalize.js +29 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/normalize_glob.d.ts +3 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/normalize_glob.js +20 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/parse.d.ts +6 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/parse.js +102 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/relative.d.ts +7 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/relative.js +98 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/resolve.d.ts +5 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/resolve.js +75 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/separator.d.ts +2 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/separator.js +7 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/to_file_url.d.ts +12 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/to_file_url.js +26 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/to_namespaced_path.d.ts +5 -0
- package/script/deps/deno.land/std@0.208.0/path/posix/to_namespaced_path.js +14 -0
- package/script/deps/deno.land/{std@0.201.0/path/_relative.d.ts → std@0.208.0/path/relative.d.ts} +1 -8
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/relative.js +3 -2
- package/script/deps/deno.land/std@0.208.0/path/resolve.d.ts +5 -0
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/resolve.js +4 -3
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_file_url.js +3 -2
- package/script/deps/deno.land/std@0.208.0/path/to_namespaced_path.d.ts +5 -0
- package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_namespaced_path.js +4 -3
- package/script/deps/deno.land/std@0.208.0/path/windows/_util.d.ts +3 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/_util.js +21 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/basename.d.ts +8 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/basename.js +34 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/common.d.ts +13 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/common.js +23 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/dirname.d.ts +5 -0
- package/script/deps/deno.land/{std@0.201.0/path/_dirname.js → std@0.208.0/path/windows/dirname.js} +9 -44
- package/script/deps/deno.land/std@0.208.0/path/windows/extname.d.ts +6 -0
- package/script/deps/deno.land/{std@0.201.0/path/_extname.js → std@0.208.0/path/windows/extname.js} +8 -62
- package/script/deps/deno.land/std@0.208.0/path/windows/format.d.ts +6 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/format.js +15 -0
- package/script/deps/deno.land/{std@0.201.0/path/_from_file_url.d.ts → std@0.208.0/path/windows/from_file_url.d.ts} +1 -12
- package/script/deps/deno.land/{std@0.201.0/path/_from_file_url.js → std@0.208.0/path/windows/from_file_url.js} +5 -26
- package/script/deps/deno.land/std@0.208.0/path/windows/glob_to_regexp.d.ts +57 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/glob_to_regexp.js +73 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/is_absolute.d.ts +5 -0
- package/script/deps/deno.land/{std@0.201.0/path/_is_absolute.js → std@0.208.0/path/windows/is_absolute.js} +7 -15
- package/script/deps/deno.land/std@0.208.0/path/windows/is_glob.d.ts +1 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/is_glob.js +7 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/join.d.ts +5 -0
- package/script/deps/deno.land/{std@0.201.0/path/_join.js → std@0.208.0/path/windows/join.js} +8 -30
- package/script/deps/deno.land/std@0.208.0/path/windows/join_globs.d.ts +3 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/join_globs.js +30 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/mod.d.ts +40 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/mod.js +61 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/normalize.d.ts +7 -0
- package/script/deps/deno.land/{std@0.201.0/path/_normalize.js → std@0.208.0/path/windows/normalize.js} +9 -33
- package/script/deps/deno.land/std@0.208.0/path/windows/normalize_glob.d.ts +3 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/normalize_glob.js +20 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/parse.d.ts +6 -0
- package/script/deps/deno.land/{std@0.201.0/path/_parse.js → std@0.208.0/path/windows/parse.js} +8 -100
- package/script/deps/deno.land/std@0.208.0/path/windows/relative.d.ts +12 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/relative.js +125 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/resolve.d.ts +5 -0
- package/script/deps/deno.land/{std@0.201.0/path/_resolve.js → std@0.208.0/path/windows/resolve.js} +10 -51
- package/script/deps/deno.land/std@0.208.0/path/windows/separator.d.ts +2 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/separator.js +7 -0
- package/{esm/deps/deno.land/std@0.201.0/path/_to_file_url.d.ts → script/deps/deno.land/std@0.208.0/path/windows/to_file_url.d.ts} +1 -12
- package/script/deps/deno.land/std@0.208.0/path/windows/to_file_url.js +35 -0
- package/script/deps/deno.land/std@0.208.0/path/windows/to_namespaced_path.d.ts +5 -0
- package/script/deps/deno.land/{std@0.201.0/path/_to_namespaced_path.js → std@0.208.0/path/windows/to_namespaced_path.js} +11 -20
- package/script/deps.d.ts +2 -2
- package/script/deps.js +2 -2
- package/script/mod.js +2 -2
- package/script/src/environment.d.ts +5 -0
- package/script/src/environment.js +52 -24
- package/script/src/tokenizer.d.ts +7 -2
- package/script/src/tokenizer.js +77 -66
- package/esm/deps/deno.land/std@0.201.0/path/_basename.d.ts +0 -16
- package/esm/deps/deno.land/std@0.201.0/path/_basename.js +0 -78
- package/esm/deps/deno.land/std@0.201.0/path/_dirname.d.ts +0 -10
- package/esm/deps/deno.land/std@0.201.0/path/_extname.d.ts +0 -12
- package/esm/deps/deno.land/std@0.201.0/path/_format.d.ts +0 -11
- package/esm/deps/deno.land/std@0.201.0/path/_is_absolute.d.ts +0 -10
- package/esm/deps/deno.land/std@0.201.0/path/_join.d.ts +0 -10
- package/esm/deps/deno.land/std@0.201.0/path/_normalize.d.ts +0 -14
- package/esm/deps/deno.land/std@0.201.0/path/_os.d.ts +0 -4
- package/esm/deps/deno.land/std@0.201.0/path/_parse.d.ts +0 -11
- package/esm/deps/deno.land/std@0.201.0/path/_relative.d.ts +0 -19
- package/esm/deps/deno.land/std@0.201.0/path/_resolve.d.ts +0 -10
- package/esm/deps/deno.land/std@0.201.0/path/_to_namespaced_path.d.ts +0 -10
- package/esm/deps/deno.land/std@0.201.0/path/_util.d.ts +0 -6
- package/esm/deps/deno.land/std@0.201.0/path/posix.d.ts +0 -15
- package/esm/deps/deno.land/std@0.201.0/path/posix.js +0 -19
- package/esm/deps/deno.land/std@0.201.0/path/win32.d.ts +0 -15
- package/esm/deps/deno.land/std@0.201.0/path/win32.js +0 -19
- package/script/deps/deno.land/std@0.201.0/path/_basename.d.ts +0 -16
- package/script/deps/deno.land/std@0.201.0/path/_basename.js +0 -83
- package/script/deps/deno.land/std@0.201.0/path/_dirname.d.ts +0 -10
- package/script/deps/deno.land/std@0.201.0/path/_extname.d.ts +0 -12
- package/script/deps/deno.land/std@0.201.0/path/_format.d.ts +0 -11
- package/script/deps/deno.land/std@0.201.0/path/_format.js +0 -40
- package/script/deps/deno.land/std@0.201.0/path/_is_absolute.d.ts +0 -10
- package/script/deps/deno.land/std@0.201.0/path/_join.d.ts +0 -10
- package/script/deps/deno.land/std@0.201.0/path/_normalize.d.ts +0 -14
- package/script/deps/deno.land/std@0.201.0/path/_os.d.ts +0 -4
- package/script/deps/deno.land/std@0.201.0/path/_parse.d.ts +0 -11
- package/script/deps/deno.land/std@0.201.0/path/_relative.js +0 -221
- package/script/deps/deno.land/std@0.201.0/path/_resolve.d.ts +0 -10
- package/script/deps/deno.land/std@0.201.0/path/_to_file_url.js +0 -66
- package/script/deps/deno.land/std@0.201.0/path/_to_namespaced_path.d.ts +0 -10
- package/script/deps/deno.land/std@0.201.0/path/_util.d.ts +0 -6
- package/script/deps/deno.land/std@0.201.0/path/posix.d.ts +0 -15
- package/script/deps/deno.land/std@0.201.0/path/posix.js +0 -35
- package/script/deps/deno.land/std@0.201.0/path/win32.d.ts +0 -15
- package/script/deps/deno.land/std@0.201.0/path/win32.js +0 -35
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/entities.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/entities.js +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.201.0/path/_constants.d.ts → std@0.208.0/path/_common/constants.d.ts} +0 -0
- /package/esm/deps/deno.land/{std@0.201.0/path/_constants.js → std@0.208.0/path/_common/constants.js} +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/parse.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/basename.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/common.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/dirname.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/extname.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/is_absolute.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/join.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/posix}/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/posix}/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0/path → std@0.208.0/path/posix}/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/relative.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.201.0 → esm/deps/deno.land/std@0.208.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_file_url.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.201.0 → esm/deps/deno.land/std@0.208.0}/path/to_namespaced_path.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.201.0/path → esm/deps/deno.land/std@0.208.0/path/windows}/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/entities.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/entities.js +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/html/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.201.0/path/_constants.d.ts → std@0.208.0/path/_common/constants.d.ts} +0 -0
- /package/script/deps/deno.land/{std@0.201.0/path/_constants.js → std@0.208.0/path/_common/constants.js} +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.201.0 → std@0.208.0}/path/to_file_url.d.ts +0 -0
package/script/deps/deno.land/{std@0.201.0/path/_join.js → std@0.208.0/path/windows/join.js}
RENAMED
|
@@ -2,45 +2,23 @@
|
|
|
2
2
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
3
|
// This module is browser compatible.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
6
|
-
const assert_js_1 = require("
|
|
5
|
+
exports.join = void 0;
|
|
6
|
+
const assert_js_1 = require("../../assert/assert.js");
|
|
7
|
+
const assert_path_js_1 = require("../_common/assert_path.js");
|
|
7
8
|
const _util_js_1 = require("./_util.js");
|
|
8
|
-
const
|
|
9
|
+
const normalize_js_1 = require("./normalize.js");
|
|
9
10
|
/**
|
|
10
11
|
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
11
12
|
* @param paths to be joined and normalized
|
|
12
13
|
*/
|
|
13
|
-
function
|
|
14
|
-
if (paths.length === 0)
|
|
15
|
-
return ".";
|
|
16
|
-
let joined;
|
|
17
|
-
for (let i = 0, len = paths.length; i < len; ++i) {
|
|
18
|
-
const path = paths[i];
|
|
19
|
-
(0, _util_js_1.assertPath)(path);
|
|
20
|
-
if (path.length > 0) {
|
|
21
|
-
if (!joined)
|
|
22
|
-
joined = path;
|
|
23
|
-
else
|
|
24
|
-
joined += `/${path}`;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
if (!joined)
|
|
28
|
-
return ".";
|
|
29
|
-
return (0, _normalize_js_1.posixNormalize)(joined);
|
|
30
|
-
}
|
|
31
|
-
exports.posixJoin = posixJoin;
|
|
32
|
-
/**
|
|
33
|
-
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
34
|
-
* @param paths to be joined and normalized
|
|
35
|
-
*/
|
|
36
|
-
function windowsJoin(...paths) {
|
|
14
|
+
function join(...paths) {
|
|
37
15
|
if (paths.length === 0)
|
|
38
16
|
return ".";
|
|
39
17
|
let joined;
|
|
40
18
|
let firstPart = null;
|
|
41
19
|
for (let i = 0; i < paths.length; ++i) {
|
|
42
20
|
const path = paths[i];
|
|
43
|
-
(0,
|
|
21
|
+
(0, assert_path_js_1.assertPath)(path);
|
|
44
22
|
if (path.length > 0) {
|
|
45
23
|
if (joined === undefined)
|
|
46
24
|
joined = firstPart = path;
|
|
@@ -93,6 +71,6 @@ function windowsJoin(...paths) {
|
|
|
93
71
|
if (slashCount >= 2)
|
|
94
72
|
joined = `\\${joined.slice(slashCount)}`;
|
|
95
73
|
}
|
|
96
|
-
return (0,
|
|
74
|
+
return (0, normalize_js_1.normalize)(joined);
|
|
97
75
|
}
|
|
98
|
-
exports.
|
|
76
|
+
exports.join = join;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 = void 0;
|
|
6
|
+
const join_js_1 = require("./join.js");
|
|
7
|
+
const separator_js_1 = require("./separator.js");
|
|
8
|
+
const normalize_glob_js_1 = require("./normalize_glob.js");
|
|
9
|
+
/** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
10
|
+
function joinGlobs(globs, { extended = true, globstar = false } = {}) {
|
|
11
|
+
if (!globstar || globs.length === 0) {
|
|
12
|
+
return (0, join_js_1.join)(...globs);
|
|
13
|
+
}
|
|
14
|
+
if (globs.length === 0)
|
|
15
|
+
return ".";
|
|
16
|
+
let joined;
|
|
17
|
+
for (const glob of globs) {
|
|
18
|
+
const path = glob;
|
|
19
|
+
if (path.length > 0) {
|
|
20
|
+
if (!joined)
|
|
21
|
+
joined = path;
|
|
22
|
+
else
|
|
23
|
+
joined += `${separator_js_1.SEP}${path}`;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (!joined)
|
|
27
|
+
return ".";
|
|
28
|
+
return (0, normalize_glob_js_1.normalizeGlob)(joined, { extended, globstar });
|
|
29
|
+
}
|
|
30
|
+
exports.joinGlobs = joinGlobs;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities for working with OS-specific file paths.
|
|
3
|
+
*
|
|
4
|
+
* Codes in the examples uses POSIX path but it automatically use Windows path
|
|
5
|
+
* on Windows. Use methods under `posix` or `win32` object instead to handle non
|
|
6
|
+
* platform specific path like:
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { posix, win32 } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
9
|
+
* const p1 = posix.fromFileUrl("file:///home/foo");
|
|
10
|
+
* const p2 = win32.fromFileUrl("file:///home/foo");
|
|
11
|
+
* console.log(p1); // "/home/foo"
|
|
12
|
+
* console.log(p2); // "\\home\\foo"
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* This module is browser compatible.
|
|
16
|
+
*
|
|
17
|
+
* @module
|
|
18
|
+
*/
|
|
19
|
+
export declare const sep = "\\";
|
|
20
|
+
export declare const delimiter = ";";
|
|
21
|
+
export * from "./basename.js";
|
|
22
|
+
export * from "./dirname.js";
|
|
23
|
+
export * from "./extname.js";
|
|
24
|
+
export * from "./format.js";
|
|
25
|
+
export * from "./from_file_url.js";
|
|
26
|
+
export * from "./is_absolute.js";
|
|
27
|
+
export * from "./join.js";
|
|
28
|
+
export * from "./normalize.js";
|
|
29
|
+
export * from "./parse.js";
|
|
30
|
+
export * from "./relative.js";
|
|
31
|
+
export * from "./resolve.js";
|
|
32
|
+
export * from "./to_file_url.js";
|
|
33
|
+
export * from "./to_namespaced_path.js";
|
|
34
|
+
export * from "./common.js";
|
|
35
|
+
export * from "./separator.js";
|
|
36
|
+
export * from "../_interface.js";
|
|
37
|
+
export * from "./glob_to_regexp.js";
|
|
38
|
+
export * from "./is_glob.js";
|
|
39
|
+
export * from "./join_globs.js";
|
|
40
|
+
export * from "./normalize_glob.js";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// Copyright the Browserify authors. MIT License.
|
|
4
|
+
// Ported mostly from https://github.com/browserify/path-browserify/
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.delimiter = exports.sep = void 0;
|
|
22
|
+
/**
|
|
23
|
+
* Utilities for working with OS-specific file paths.
|
|
24
|
+
*
|
|
25
|
+
* Codes in the examples uses POSIX path but it automatically use Windows path
|
|
26
|
+
* on Windows. Use methods under `posix` or `win32` object instead to handle non
|
|
27
|
+
* platform specific path like:
|
|
28
|
+
* ```ts
|
|
29
|
+
* import { posix, win32 } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
30
|
+
* const p1 = posix.fromFileUrl("file:///home/foo");
|
|
31
|
+
* const p2 = win32.fromFileUrl("file:///home/foo");
|
|
32
|
+
* console.log(p1); // "/home/foo"
|
|
33
|
+
* console.log(p2); // "\\home\\foo"
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* This module is browser compatible.
|
|
37
|
+
*
|
|
38
|
+
* @module
|
|
39
|
+
*/
|
|
40
|
+
exports.sep = "\\";
|
|
41
|
+
exports.delimiter = ";";
|
|
42
|
+
__exportStar(require("./basename.js"), exports);
|
|
43
|
+
__exportStar(require("./dirname.js"), exports);
|
|
44
|
+
__exportStar(require("./extname.js"), exports);
|
|
45
|
+
__exportStar(require("./format.js"), exports);
|
|
46
|
+
__exportStar(require("./from_file_url.js"), exports);
|
|
47
|
+
__exportStar(require("./is_absolute.js"), exports);
|
|
48
|
+
__exportStar(require("./join.js"), exports);
|
|
49
|
+
__exportStar(require("./normalize.js"), exports);
|
|
50
|
+
__exportStar(require("./parse.js"), exports);
|
|
51
|
+
__exportStar(require("./relative.js"), exports);
|
|
52
|
+
__exportStar(require("./resolve.js"), exports);
|
|
53
|
+
__exportStar(require("./to_file_url.js"), exports);
|
|
54
|
+
__exportStar(require("./to_namespaced_path.js"), exports);
|
|
55
|
+
__exportStar(require("./common.js"), exports);
|
|
56
|
+
__exportStar(require("./separator.js"), exports);
|
|
57
|
+
__exportStar(require("../_interface.js"), exports);
|
|
58
|
+
__exportStar(require("./glob_to_regexp.js"), exports);
|
|
59
|
+
__exportStar(require("./is_glob.js"), exports);
|
|
60
|
+
__exportStar(require("./join_globs.js"), exports);
|
|
61
|
+
__exportStar(require("./normalize_glob.js"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
3
|
+
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
4
|
+
* A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
|
|
5
|
+
* @param path to be normalized
|
|
6
|
+
*/
|
|
7
|
+
export declare function normalize(path: string): string;
|
|
@@ -2,43 +2,19 @@
|
|
|
2
2
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
3
|
// This module is browser compatible.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
6
|
-
const
|
|
5
|
+
exports.normalize = void 0;
|
|
6
|
+
const normalize_js_1 = require("../_common/normalize.js");
|
|
7
|
+
const constants_js_1 = require("../_common/constants.js");
|
|
8
|
+
const normalize_string_js_1 = require("../_common/normalize_string.js");
|
|
7
9
|
const _util_js_1 = require("./_util.js");
|
|
8
|
-
function assertArg(path) {
|
|
9
|
-
(0, _util_js_1.assertPath)(path);
|
|
10
|
-
if (path.length === 0)
|
|
11
|
-
return ".";
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
15
|
-
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
16
|
-
* A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
|
|
17
|
-
* @param path to be normalized
|
|
18
|
-
*/
|
|
19
|
-
function posixNormalize(path) {
|
|
20
|
-
assertArg(path);
|
|
21
|
-
const isAbsolute = (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0));
|
|
22
|
-
const trailingSeparator = (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(path.length - 1));
|
|
23
|
-
// Normalize the path
|
|
24
|
-
path = (0, _util_js_1.normalizeString)(path, !isAbsolute, "/", _util_js_1.isPosixPathSeparator);
|
|
25
|
-
if (path.length === 0 && !isAbsolute)
|
|
26
|
-
path = ".";
|
|
27
|
-
if (path.length > 0 && trailingSeparator)
|
|
28
|
-
path += "/";
|
|
29
|
-
if (isAbsolute)
|
|
30
|
-
return `/${path}`;
|
|
31
|
-
return path;
|
|
32
|
-
}
|
|
33
|
-
exports.posixNormalize = posixNormalize;
|
|
34
10
|
/**
|
|
35
11
|
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
36
12
|
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
37
13
|
* A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
|
|
38
14
|
* @param path to be normalized
|
|
39
15
|
*/
|
|
40
|
-
function
|
|
41
|
-
assertArg(path);
|
|
16
|
+
function normalize(path) {
|
|
17
|
+
(0, normalize_js_1.assertArg)(path);
|
|
42
18
|
const len = path.length;
|
|
43
19
|
let rootEnd = 0;
|
|
44
20
|
let device;
|
|
@@ -97,7 +73,7 @@ function windowsNormalize(path) {
|
|
|
97
73
|
}
|
|
98
74
|
else if ((0, _util_js_1.isWindowsDeviceRoot)(code)) {
|
|
99
75
|
// Possible device root
|
|
100
|
-
if (path.charCodeAt(1) ===
|
|
76
|
+
if (path.charCodeAt(1) === constants_js_1.CHAR_COLON) {
|
|
101
77
|
device = path.slice(0, 2);
|
|
102
78
|
rootEnd = 2;
|
|
103
79
|
if (len > 2) {
|
|
@@ -118,7 +94,7 @@ function windowsNormalize(path) {
|
|
|
118
94
|
}
|
|
119
95
|
let tail;
|
|
120
96
|
if (rootEnd < len) {
|
|
121
|
-
tail = (0,
|
|
97
|
+
tail = (0, normalize_string_js_1.normalizeString)(path.slice(rootEnd), !isAbsolute, "\\", _util_js_1.isPathSeparator);
|
|
122
98
|
}
|
|
123
99
|
else {
|
|
124
100
|
tail = "";
|
|
@@ -155,4 +131,4 @@ function windowsNormalize(path) {
|
|
|
155
131
|
return device;
|
|
156
132
|
}
|
|
157
133
|
}
|
|
158
|
-
exports.
|
|
134
|
+
exports.normalize = normalize;
|
|
@@ -0,0 +1,20 @@
|
|
|
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.normalizeGlob = void 0;
|
|
6
|
+
const normalize_js_1 = require("./normalize.js");
|
|
7
|
+
const separator_js_1 = require("./separator.js");
|
|
8
|
+
/** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
9
|
+
function normalizeGlob(glob, { globstar = false } = {}) {
|
|
10
|
+
if (glob.match(/\0/g)) {
|
|
11
|
+
throw new Error(`Glob contains invalid characters: "${glob}"`);
|
|
12
|
+
}
|
|
13
|
+
if (!globstar) {
|
|
14
|
+
return (0, normalize_js_1.normalize)(glob);
|
|
15
|
+
}
|
|
16
|
+
const s = separator_js_1.SEP_PATTERN.source;
|
|
17
|
+
const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
|
|
18
|
+
return (0, normalize_js_1.normalize)(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
|
|
19
|
+
}
|
|
20
|
+
exports.normalizeGlob = normalizeGlob;
|
package/script/deps/deno.land/{std@0.201.0/path/_parse.js → std@0.208.0/path/windows/parse.js}
RENAMED
|
@@ -2,108 +2,16 @@
|
|
|
2
2
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
3
|
// This module is browser compatible.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
6
|
-
const
|
|
5
|
+
exports.parse = void 0;
|
|
6
|
+
const constants_js_1 = require("../_common/constants.js");
|
|
7
|
+
const assert_path_js_1 = require("../_common/assert_path.js");
|
|
7
8
|
const _util_js_1 = require("./_util.js");
|
|
8
9
|
/**
|
|
9
10
|
* Return a `ParsedPath` object of the `path`.
|
|
10
11
|
* @param path to process
|
|
11
12
|
*/
|
|
12
|
-
function
|
|
13
|
-
(0,
|
|
14
|
-
const ret = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
15
|
-
if (path.length === 0)
|
|
16
|
-
return ret;
|
|
17
|
-
const isAbsolute = (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0));
|
|
18
|
-
let start;
|
|
19
|
-
if (isAbsolute) {
|
|
20
|
-
ret.root = "/";
|
|
21
|
-
start = 1;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
start = 0;
|
|
25
|
-
}
|
|
26
|
-
let startDot = -1;
|
|
27
|
-
let startPart = 0;
|
|
28
|
-
let end = -1;
|
|
29
|
-
let matchedSlash = true;
|
|
30
|
-
let i = path.length - 1;
|
|
31
|
-
// Track the state of characters (if any) we see before our first dot and
|
|
32
|
-
// after any path separator we find
|
|
33
|
-
let preDotState = 0;
|
|
34
|
-
// Get non-dir info
|
|
35
|
-
for (; i >= start; --i) {
|
|
36
|
-
const code = path.charCodeAt(i);
|
|
37
|
-
if ((0, _util_js_1.isPosixPathSeparator)(code)) {
|
|
38
|
-
// If we reached a path separator that was not part of a set of path
|
|
39
|
-
// separators at the end of the string, stop now
|
|
40
|
-
if (!matchedSlash) {
|
|
41
|
-
startPart = i + 1;
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
if (end === -1) {
|
|
47
|
-
// We saw the first non-path separator, mark this as the end of our
|
|
48
|
-
// extension
|
|
49
|
-
matchedSlash = false;
|
|
50
|
-
end = i + 1;
|
|
51
|
-
}
|
|
52
|
-
if (code === _constants_js_1.CHAR_DOT) {
|
|
53
|
-
// If this is our first dot, mark it as the start of our extension
|
|
54
|
-
if (startDot === -1)
|
|
55
|
-
startDot = i;
|
|
56
|
-
else if (preDotState !== 1)
|
|
57
|
-
preDotState = 1;
|
|
58
|
-
}
|
|
59
|
-
else if (startDot !== -1) {
|
|
60
|
-
// We saw a non-dot and non-path separator before our dot, so we should
|
|
61
|
-
// have a good chance at having a non-empty extension
|
|
62
|
-
preDotState = -1;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
if (startDot === -1 ||
|
|
66
|
-
end === -1 ||
|
|
67
|
-
// We saw a non-dot character immediately before the dot
|
|
68
|
-
preDotState === 0 ||
|
|
69
|
-
// The (right-most) trimmed path component is exactly '..'
|
|
70
|
-
(preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
|
|
71
|
-
if (end !== -1) {
|
|
72
|
-
if (startPart === 0 && isAbsolute) {
|
|
73
|
-
ret.base = ret.name = path.slice(1, end);
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
ret.base = ret.name = path.slice(startPart, end);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
// Fallback to '/' in case there is no basename
|
|
80
|
-
ret.base = ret.base || "/";
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
if (startPart === 0 && isAbsolute) {
|
|
84
|
-
ret.name = path.slice(1, startDot);
|
|
85
|
-
ret.base = path.slice(1, end);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
ret.name = path.slice(startPart, startDot);
|
|
89
|
-
ret.base = path.slice(startPart, end);
|
|
90
|
-
}
|
|
91
|
-
ret.ext = path.slice(startDot, end);
|
|
92
|
-
}
|
|
93
|
-
if (startPart > 0) {
|
|
94
|
-
ret.dir = (0, _util_js_1.stripTrailingSeparators)(path.slice(0, startPart - 1), _util_js_1.isPosixPathSeparator);
|
|
95
|
-
}
|
|
96
|
-
else if (isAbsolute)
|
|
97
|
-
ret.dir = "/";
|
|
98
|
-
return ret;
|
|
99
|
-
}
|
|
100
|
-
exports.posixParse = posixParse;
|
|
101
|
-
/**
|
|
102
|
-
* Return a `ParsedPath` object of the `path`.
|
|
103
|
-
* @param path to process
|
|
104
|
-
*/
|
|
105
|
-
function windowsParse(path) {
|
|
106
|
-
(0, _util_js_1.assertPath)(path);
|
|
13
|
+
function parse(path) {
|
|
14
|
+
(0, assert_path_js_1.assertPath)(path);
|
|
107
15
|
const ret = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
108
16
|
const len = path.length;
|
|
109
17
|
if (len === 0)
|
|
@@ -154,7 +62,7 @@ function windowsParse(path) {
|
|
|
154
62
|
}
|
|
155
63
|
else if ((0, _util_js_1.isWindowsDeviceRoot)(code)) {
|
|
156
64
|
// Possible device root
|
|
157
|
-
if (path.charCodeAt(1) ===
|
|
65
|
+
if (path.charCodeAt(1) === constants_js_1.CHAR_COLON) {
|
|
158
66
|
rootEnd = 2;
|
|
159
67
|
if (len > 2) {
|
|
160
68
|
if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(2))) {
|
|
@@ -212,7 +120,7 @@ function windowsParse(path) {
|
|
|
212
120
|
matchedSlash = false;
|
|
213
121
|
end = i + 1;
|
|
214
122
|
}
|
|
215
|
-
if (code ===
|
|
123
|
+
if (code === constants_js_1.CHAR_DOT) {
|
|
216
124
|
// If this is our first dot, mark it as the start of our extension
|
|
217
125
|
if (startDot === -1)
|
|
218
126
|
startDot = i;
|
|
@@ -252,4 +160,4 @@ function windowsParse(path) {
|
|
|
252
160
|
ret.dir = ret.root;
|
|
253
161
|
return ret;
|
|
254
162
|
}
|
|
255
|
-
exports.
|
|
163
|
+
exports.parse = parse;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the relative path from `from` to `to` based on current working directory.
|
|
3
|
+
*
|
|
4
|
+
* An example in windws, for instance:
|
|
5
|
+
* from = 'C:\\orandea\\test\\aaa'
|
|
6
|
+
* to = 'C:\\orandea\\impl\\bbb'
|
|
7
|
+
* The output of the function should be: '..\\..\\impl\\bbb'
|
|
8
|
+
*
|
|
9
|
+
* @param from path in current working directory
|
|
10
|
+
* @param to path in current working directory
|
|
11
|
+
*/
|
|
12
|
+
export declare function relative(from: string, to: string): string;
|
|
@@ -0,0 +1,125 @@
|
|
|
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.relative = void 0;
|
|
6
|
+
const constants_js_1 = require("../_common/constants.js");
|
|
7
|
+
const resolve_js_1 = require("./resolve.js");
|
|
8
|
+
const relative_js_1 = require("../_common/relative.js");
|
|
9
|
+
/**
|
|
10
|
+
* Return the relative path from `from` to `to` based on current working directory.
|
|
11
|
+
*
|
|
12
|
+
* An example in windws, for instance:
|
|
13
|
+
* from = 'C:\\orandea\\test\\aaa'
|
|
14
|
+
* to = 'C:\\orandea\\impl\\bbb'
|
|
15
|
+
* The output of the function should be: '..\\..\\impl\\bbb'
|
|
16
|
+
*
|
|
17
|
+
* @param from path in current working directory
|
|
18
|
+
* @param to path in current working directory
|
|
19
|
+
*/
|
|
20
|
+
function relative(from, to) {
|
|
21
|
+
(0, relative_js_1.assertArgs)(from, to);
|
|
22
|
+
const fromOrig = (0, resolve_js_1.resolve)(from);
|
|
23
|
+
const toOrig = (0, resolve_js_1.resolve)(to);
|
|
24
|
+
if (fromOrig === toOrig)
|
|
25
|
+
return "";
|
|
26
|
+
from = fromOrig.toLowerCase();
|
|
27
|
+
to = toOrig.toLowerCase();
|
|
28
|
+
if (from === to)
|
|
29
|
+
return "";
|
|
30
|
+
// Trim any leading backslashes
|
|
31
|
+
let fromStart = 0;
|
|
32
|
+
let fromEnd = from.length;
|
|
33
|
+
for (; fromStart < fromEnd; ++fromStart) {
|
|
34
|
+
if (from.charCodeAt(fromStart) !== constants_js_1.CHAR_BACKWARD_SLASH)
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
// Trim trailing backslashes (applicable to UNC paths only)
|
|
38
|
+
for (; fromEnd - 1 > fromStart; --fromEnd) {
|
|
39
|
+
if (from.charCodeAt(fromEnd - 1) !== constants_js_1.CHAR_BACKWARD_SLASH)
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
const fromLen = fromEnd - fromStart;
|
|
43
|
+
// Trim any leading backslashes
|
|
44
|
+
let toStart = 0;
|
|
45
|
+
let toEnd = to.length;
|
|
46
|
+
for (; toStart < toEnd; ++toStart) {
|
|
47
|
+
if (to.charCodeAt(toStart) !== constants_js_1.CHAR_BACKWARD_SLASH)
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
// Trim trailing backslashes (applicable to UNC paths only)
|
|
51
|
+
for (; toEnd - 1 > toStart; --toEnd) {
|
|
52
|
+
if (to.charCodeAt(toEnd - 1) !== constants_js_1.CHAR_BACKWARD_SLASH)
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
const toLen = toEnd - toStart;
|
|
56
|
+
// Compare paths to find the longest common path from root
|
|
57
|
+
const length = fromLen < toLen ? fromLen : toLen;
|
|
58
|
+
let lastCommonSep = -1;
|
|
59
|
+
let i = 0;
|
|
60
|
+
for (; i <= length; ++i) {
|
|
61
|
+
if (i === length) {
|
|
62
|
+
if (toLen > length) {
|
|
63
|
+
if (to.charCodeAt(toStart + i) === constants_js_1.CHAR_BACKWARD_SLASH) {
|
|
64
|
+
// We get here if `from` is the exact base path for `to`.
|
|
65
|
+
// For example: from='C:\\foo\\bar'; to='C:\\foo\\bar\\baz'
|
|
66
|
+
return toOrig.slice(toStart + i + 1);
|
|
67
|
+
}
|
|
68
|
+
else if (i === 2) {
|
|
69
|
+
// We get here if `from` is the device root.
|
|
70
|
+
// For example: from='C:\\'; to='C:\\foo'
|
|
71
|
+
return toOrig.slice(toStart + i);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (fromLen > length) {
|
|
75
|
+
if (from.charCodeAt(fromStart + i) === constants_js_1.CHAR_BACKWARD_SLASH) {
|
|
76
|
+
// We get here if `to` is the exact base path for `from`.
|
|
77
|
+
// For example: from='C:\\foo\\bar'; to='C:\\foo'
|
|
78
|
+
lastCommonSep = i;
|
|
79
|
+
}
|
|
80
|
+
else if (i === 2) {
|
|
81
|
+
// We get here if `to` is the device root.
|
|
82
|
+
// For example: from='C:\\foo\\bar'; to='C:\\'
|
|
83
|
+
lastCommonSep = 3;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
const fromCode = from.charCodeAt(fromStart + i);
|
|
89
|
+
const toCode = to.charCodeAt(toStart + i);
|
|
90
|
+
if (fromCode !== toCode)
|
|
91
|
+
break;
|
|
92
|
+
else if (fromCode === constants_js_1.CHAR_BACKWARD_SLASH)
|
|
93
|
+
lastCommonSep = i;
|
|
94
|
+
}
|
|
95
|
+
// We found a mismatch before the first common path separator was seen, so
|
|
96
|
+
// return the original `to`.
|
|
97
|
+
if (i !== length && lastCommonSep === -1) {
|
|
98
|
+
return toOrig;
|
|
99
|
+
}
|
|
100
|
+
let out = "";
|
|
101
|
+
if (lastCommonSep === -1)
|
|
102
|
+
lastCommonSep = 0;
|
|
103
|
+
// Generate the relative path based on the path difference between `to` and
|
|
104
|
+
// `from`
|
|
105
|
+
for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
|
|
106
|
+
if (i === fromEnd || from.charCodeAt(i) === constants_js_1.CHAR_BACKWARD_SLASH) {
|
|
107
|
+
if (out.length === 0)
|
|
108
|
+
out += "..";
|
|
109
|
+
else
|
|
110
|
+
out += "\\..";
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
// Lastly, append the rest of the destination (`to`) path that comes after
|
|
114
|
+
// the common path parts
|
|
115
|
+
if (out.length > 0) {
|
|
116
|
+
return out + toOrig.slice(toStart + lastCommonSep, toEnd);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
toStart += lastCommonSep;
|
|
120
|
+
if (toOrig.charCodeAt(toStart) === constants_js_1.CHAR_BACKWARD_SLASH)
|
|
121
|
+
++toStart;
|
|
122
|
+
return toOrig.slice(toStart, toEnd);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.relative = relative;
|