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
|
@@ -4,27 +4,8 @@
|
|
|
4
4
|
// Ported from https://github.com/browserify/path-browserify/
|
|
5
5
|
// This module is browser compatible.
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
8
|
-
const
|
|
9
|
-
function assertPath(path) {
|
|
10
|
-
if (typeof path !== "string") {
|
|
11
|
-
throw new TypeError(`Path must be a string. Received ${JSON.stringify(path)}`);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.assertPath = assertPath;
|
|
15
|
-
function isPosixPathSeparator(code) {
|
|
16
|
-
return code === _constants_js_1.CHAR_FORWARD_SLASH;
|
|
17
|
-
}
|
|
18
|
-
exports.isPosixPathSeparator = isPosixPathSeparator;
|
|
19
|
-
function isPathSeparator(code) {
|
|
20
|
-
return isPosixPathSeparator(code) || code === _constants_js_1.CHAR_BACKWARD_SLASH;
|
|
21
|
-
}
|
|
22
|
-
exports.isPathSeparator = isPathSeparator;
|
|
23
|
-
function isWindowsDeviceRoot(code) {
|
|
24
|
-
return ((code >= _constants_js_1.CHAR_LOWERCASE_A && code <= _constants_js_1.CHAR_LOWERCASE_Z) ||
|
|
25
|
-
(code >= _constants_js_1.CHAR_UPPERCASE_A && code <= _constants_js_1.CHAR_UPPERCASE_Z));
|
|
26
|
-
}
|
|
27
|
-
exports.isWindowsDeviceRoot = isWindowsDeviceRoot;
|
|
7
|
+
exports.normalizeString = void 0;
|
|
8
|
+
const constants_js_1 = require("./constants.js");
|
|
28
9
|
// Resolves . and .. elements in a path with directory names
|
|
29
10
|
function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
30
11
|
let res = "";
|
|
@@ -38,7 +19,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
38
19
|
else if (isPathSeparator(code))
|
|
39
20
|
break;
|
|
40
21
|
else
|
|
41
|
-
code =
|
|
22
|
+
code = constants_js_1.CHAR_FORWARD_SLASH;
|
|
42
23
|
if (isPathSeparator(code)) {
|
|
43
24
|
if (lastSlash === i - 1 || dots === 1) {
|
|
44
25
|
// NOOP
|
|
@@ -46,8 +27,8 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
46
27
|
else if (lastSlash !== i - 1 && dots === 2) {
|
|
47
28
|
if (res.length < 2 ||
|
|
48
29
|
lastSegmentLength !== 2 ||
|
|
49
|
-
res.charCodeAt(res.length - 1) !==
|
|
50
|
-
res.charCodeAt(res.length - 2) !==
|
|
30
|
+
res.charCodeAt(res.length - 1) !== constants_js_1.CHAR_DOT ||
|
|
31
|
+
res.charCodeAt(res.length - 2) !== constants_js_1.CHAR_DOT) {
|
|
51
32
|
if (res.length > 2) {
|
|
52
33
|
const lastSlashIndex = res.lastIndexOf(separator);
|
|
53
34
|
if (lastSlashIndex === -1) {
|
|
@@ -88,7 +69,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
88
69
|
lastSlash = i;
|
|
89
70
|
dots = 0;
|
|
90
71
|
}
|
|
91
|
-
else if (code ===
|
|
72
|
+
else if (code === constants_js_1.CHAR_DOT && dots !== -1) {
|
|
92
73
|
++dots;
|
|
93
74
|
}
|
|
94
75
|
else {
|
|
@@ -98,19 +79,3 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
98
79
|
return res;
|
|
99
80
|
}
|
|
100
81
|
exports.normalizeString = normalizeString;
|
|
101
|
-
function stripTrailingSeparators(segment, isSep) {
|
|
102
|
-
if (segment.length <= 1) {
|
|
103
|
-
return segment;
|
|
104
|
-
}
|
|
105
|
-
let end = segment.length;
|
|
106
|
-
for (let i = segment.length - 1; i > 0; i--) {
|
|
107
|
-
if (isSep(segment.charCodeAt(i))) {
|
|
108
|
-
end = i;
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return segment.slice(0, end);
|
|
115
|
-
}
|
|
116
|
-
exports.stripTrailingSeparators = stripTrailingSeparators;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function assertArgs(from: string, to: string): "" | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
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.assertArgs = void 0;
|
|
6
|
+
const assert_path_js_1 = require("./assert_path.js");
|
|
7
|
+
function assertArgs(from, to) {
|
|
8
|
+
(0, assert_path_js_1.assertPath)(from);
|
|
9
|
+
(0, assert_path_js_1.assertPath)(to);
|
|
10
|
+
if (from === to)
|
|
11
|
+
return "";
|
|
12
|
+
}
|
|
13
|
+
exports.assertArgs = assertArgs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function stripTrailingSeparators(segment: string, isSep: (char: number) => boolean): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// Copyright the Browserify authors. MIT License.
|
|
4
|
+
// Ported from https://github.com/browserify/path-browserify/
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.stripTrailingSeparators = void 0;
|
|
8
|
+
function stripTrailingSeparators(segment, isSep) {
|
|
9
|
+
if (segment.length <= 1) {
|
|
10
|
+
return segment;
|
|
11
|
+
}
|
|
12
|
+
let end = segment.length;
|
|
13
|
+
for (let i = segment.length - 1; i > 0; i--) {
|
|
14
|
+
if (isSep(segment.charCodeAt(i))) {
|
|
15
|
+
end = i;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return segment.slice(0, end);
|
|
22
|
+
}
|
|
23
|
+
exports.stripTrailingSeparators = stripTrailingSeparators;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function encodeWhitespace(string: string): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
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.encodeWhitespace = void 0;
|
|
6
|
+
const WHITESPACE_ENCODINGS = {
|
|
7
|
+
"\u0009": "%09",
|
|
8
|
+
"\u000A": "%0A",
|
|
9
|
+
"\u000B": "%0B",
|
|
10
|
+
"\u000C": "%0C",
|
|
11
|
+
"\u000D": "%0D",
|
|
12
|
+
"\u0020": "%20",
|
|
13
|
+
};
|
|
14
|
+
function encodeWhitespace(string) {
|
|
15
|
+
return string.replaceAll(/[\s]/g, (c) => {
|
|
16
|
+
return WHITESPACE_ENCODINGS[c] ?? c;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.encodeWhitespace = encodeWhitespace;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
2
4
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
5
|
if (k2 === undefined) k2 = k;
|
|
4
6
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -23,9 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
25
|
return result;
|
|
24
26
|
};
|
|
25
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
//
|
|
28
|
-
// This module is browser compatible.
|
|
28
|
+
exports.isWindows = exports.osType = void 0;
|
|
29
|
+
// Keep this up-to-date with Deno.build.os
|
|
29
30
|
const dntShim = __importStar(require("../../../../_dnt.shims.js"));
|
|
30
31
|
exports.osType = (() => {
|
|
31
32
|
// deno-lint-ignore no-explicit-any
|
|
@@ -41,4 +42,3 @@ exports.osType = (() => {
|
|
|
41
42
|
return "linux";
|
|
42
43
|
})();
|
|
43
44
|
exports.isWindows = exports.osType === "windows";
|
|
44
|
-
exports.isLinux = exports.osType === "linux";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the last portion of a `path`.
|
|
3
|
+
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
4
|
+
*
|
|
5
|
+
* @param path - path to extract the name from.
|
|
6
|
+
* @param [suffix] - suffix to remove from extracted name.
|
|
7
|
+
*/
|
|
8
|
+
export declare function basename(path: string, suffix?: string): string;
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.basename = void 0;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const
|
|
7
|
+
const basename_js_1 = require("./posix/basename.js");
|
|
8
|
+
const basename_js_2 = require("./windows/basename.js");
|
|
8
9
|
/**
|
|
9
10
|
* Return the last portion of a `path`.
|
|
10
11
|
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
@@ -14,7 +15,7 @@ const _basename_js_1 = require("./_basename.js");
|
|
|
14
15
|
*/
|
|
15
16
|
function basename(path, suffix = "") {
|
|
16
17
|
return _os_js_1.isWindows
|
|
17
|
-
? (0,
|
|
18
|
-
: (0,
|
|
18
|
+
? (0, basename_js_2.basename)(path, suffix)
|
|
19
|
+
: (0, basename_js_1.basename)(path, suffix);
|
|
19
20
|
}
|
|
20
21
|
exports.basename = basename;
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
@@ -0,0 +1,23 @@
|
|
|
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.common = void 0;
|
|
6
|
+
const common_js_1 = require("./_common/common.js");
|
|
7
|
+
const separator_js_1 = require("./separator.js");
|
|
8
|
+
/** Determines the common path from a set of paths, using an optional separator,
|
|
9
|
+
* which defaults to the OS default separator.
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
13
|
+
* const p = common([
|
|
14
|
+
* "./deno/std/path/mod.ts",
|
|
15
|
+
* "./deno/std/fs/mod.ts",
|
|
16
|
+
* ]);
|
|
17
|
+
* console.log(p); // "./deno/std/"
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
function common(paths, sep = separator_js_1.SEP) {
|
|
21
|
+
return (0, common_js_1._common)(paths, sep);
|
|
22
|
+
}
|
|
23
|
+
exports.common = common;
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.dirname = void 0;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const
|
|
7
|
+
const dirname_js_1 = require("./posix/dirname.js");
|
|
8
|
+
const dirname_js_2 = require("./windows/dirname.js");
|
|
8
9
|
/**
|
|
9
10
|
* Return the directory path of a `path`.
|
|
10
11
|
* @param path - path to extract the directory from.
|
|
11
12
|
*/
|
|
12
13
|
function dirname(path) {
|
|
13
|
-
return _os_js_1.isWindows ? (0,
|
|
14
|
+
return _os_js_1.isWindows ? (0, dirname_js_2.dirname)(path) : (0, dirname_js_1.dirname)(path);
|
|
14
15
|
}
|
|
15
16
|
exports.dirname = dirname;
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.extname = void 0;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const
|
|
7
|
+
const extname_js_1 = require("./posix/extname.js");
|
|
8
|
+
const extname_js_2 = require("./posix/extname.js");
|
|
8
9
|
/**
|
|
9
10
|
* Return the extension of the `path` with leading period.
|
|
10
11
|
* @param path with extension
|
|
11
12
|
* @returns extension (ex. for `file.ts` returns `.ts`)
|
|
12
13
|
*/
|
|
13
14
|
function extname(path) {
|
|
14
|
-
return _os_js_1.isWindows ? (0,
|
|
15
|
+
return _os_js_1.isWindows ? (0, extname_js_2.extname)(path) : (0, extname_js_1.extname)(path);
|
|
15
16
|
}
|
|
16
17
|
exports.extname = extname;
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.format = void 0;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const
|
|
7
|
+
const format_js_1 = require("./posix/format.js");
|
|
8
|
+
const format_js_2 = require("./windows/format.js");
|
|
8
9
|
/**
|
|
9
10
|
* Generate a path from `FormatInputPathObject` object.
|
|
10
11
|
* @param pathObject with path
|
|
11
12
|
*/
|
|
12
13
|
function format(pathObject) {
|
|
13
|
-
return _os_js_1.isWindows ? (0,
|
|
14
|
+
return _os_js_1.isWindows ? (0, format_js_2.format)(pathObject) : (0, format_js_1.format)(pathObject);
|
|
14
15
|
}
|
|
15
16
|
exports.format = format;
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.fromFileUrl = void 0;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const
|
|
7
|
+
const from_file_url_js_1 = require("./posix/from_file_url.js");
|
|
8
|
+
const from_file_url_js_2 = require("./windows/from_file_url.js");
|
|
8
9
|
/**
|
|
9
10
|
* Converts a file URL to a path string.
|
|
10
11
|
*
|
|
@@ -22,6 +23,6 @@ const _from_file_url_js_1 = require("./_from_file_url.js");
|
|
|
22
23
|
* @param url of a file URL
|
|
23
24
|
*/
|
|
24
25
|
function fromFileUrl(url) {
|
|
25
|
-
return _os_js_1.isWindows ? (0,
|
|
26
|
+
return _os_js_1.isWindows ? (0, from_file_url_js_2.fromFileUrl)(url) : (0, from_file_url_js_1.fromFileUrl)(url);
|
|
26
27
|
}
|
|
27
28
|
exports.fromFileUrl = fromFileUrl;
|
package/script/deps/deno.land/{std@0.201.0/path/glob.d.ts → std@0.208.0/path/glob_to_regexp.d.ts}
RENAMED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
5
|
-
*
|
|
6
|
-
* @default {true}
|
|
7
|
-
*/
|
|
8
|
-
extended?: boolean;
|
|
9
|
-
/** Globstar syntax.
|
|
10
|
-
* See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
11
|
-
* If false, `**` is treated like `*`.
|
|
12
|
-
*
|
|
13
|
-
* @default {true}
|
|
14
|
-
*/
|
|
15
|
-
globstar?: boolean;
|
|
16
|
-
/** Whether globstar should be case-insensitive. */
|
|
17
|
-
caseInsensitive?: boolean;
|
|
18
|
-
/** Operating system. Defaults to the native OS. */
|
|
1
|
+
import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
|
|
2
|
+
import { OSType } from "./_os.js";
|
|
3
|
+
export type GlobToRegExpOptions = GlobOptions & {
|
|
19
4
|
os?: OSType;
|
|
20
|
-
}
|
|
21
|
-
export type GlobToRegExpOptions = GlobOptions;
|
|
5
|
+
};
|
|
22
6
|
/** Convert a glob string to a regular expression.
|
|
23
7
|
*
|
|
24
8
|
* Tries to match bash glob expansion as closely as possible.
|
|
@@ -74,10 +58,4 @@ export type GlobToRegExpOptions = GlobOptions;
|
|
|
74
58
|
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
75
59
|
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
76
60
|
* the group occurs not nested at the end of the segment. */
|
|
77
|
-
export declare function globToRegExp(glob: string,
|
|
78
|
-
/** Test whether the given string is a glob */
|
|
79
|
-
export declare function isGlob(str: string): boolean;
|
|
80
|
-
/** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
81
|
-
export declare function normalizeGlob(glob: string, { globstar }?: GlobOptions): string;
|
|
82
|
-
/** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
83
|
-
export declare function joinGlobs(globs: string[], { extended, globstar }?: GlobOptions): string;
|
|
61
|
+
export declare function globToRegExp(glob: string, options?: GlobToRegExpOptions): RegExp;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.globToRegExp = void 0;
|
|
6
|
+
const _os_js_1 = require("./_os.js");
|
|
7
|
+
const glob_to_regexp_js_1 = require("./posix/glob_to_regexp.js");
|
|
8
|
+
const glob_to_regexp_js_2 = require("./windows/glob_to_regexp.js");
|
|
9
|
+
/** Convert a glob string to a regular expression.
|
|
10
|
+
*
|
|
11
|
+
* Tries to match bash glob expansion as closely as possible.
|
|
12
|
+
*
|
|
13
|
+
* Basic glob syntax:
|
|
14
|
+
* - `*` - Matches everything without leaving the path segment.
|
|
15
|
+
* - `?` - Matches any single character.
|
|
16
|
+
* - `{foo,bar}` - Matches `foo` or `bar`.
|
|
17
|
+
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
|
18
|
+
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
|
19
|
+
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
|
20
|
+
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
|
21
|
+
* - `[[:alnum:]]` - Matches any digit or letter.
|
|
22
|
+
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
|
23
|
+
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
|
24
|
+
* for a complete list of supported character classes.
|
|
25
|
+
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
|
26
|
+
* - \` - Escapes the next character for `os` set to `"windows"`.
|
|
27
|
+
* - `/` - Path separator.
|
|
28
|
+
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
|
29
|
+
*
|
|
30
|
+
* Extended syntax:
|
|
31
|
+
* - Requires `{ extended: true }`.
|
|
32
|
+
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
|
33
|
+
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
|
34
|
+
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
|
35
|
+
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
|
36
|
+
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
|
37
|
+
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
38
|
+
*
|
|
39
|
+
* Globstar syntax:
|
|
40
|
+
* - Requires `{ globstar: true }`.
|
|
41
|
+
* - `**` - Matches any number of any path segments.
|
|
42
|
+
* - Must comprise its entire path segment in the provided glob.
|
|
43
|
+
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
44
|
+
*
|
|
45
|
+
* Note the following properties:
|
|
46
|
+
* - The generated `RegExp` is anchored at both start and end.
|
|
47
|
+
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
|
48
|
+
* provided glob have no meaning and are discarded.
|
|
49
|
+
* - Absolute globs will only match absolute paths, etc.
|
|
50
|
+
* - Empty globs will match nothing.
|
|
51
|
+
* - Any special glob syntax must be contained to one path segment. For example,
|
|
52
|
+
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
|
53
|
+
* first segment ends with an unclosed group.
|
|
54
|
+
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
|
55
|
+
* parse error has occurred. Every character for that segment is taken
|
|
56
|
+
* literally in this event.
|
|
57
|
+
*
|
|
58
|
+
* Limitations:
|
|
59
|
+
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
|
60
|
+
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
|
61
|
+
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
62
|
+
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
63
|
+
* the group occurs not nested at the end of the segment. */
|
|
64
|
+
function globToRegExp(glob, options = {}) {
|
|
65
|
+
return options.os === "windows" || (!options.os && _os_js_1.isWindows)
|
|
66
|
+
? (0, glob_to_regexp_js_2.globToRegExp)(glob, options)
|
|
67
|
+
: (0, glob_to_regexp_js_1.globToRegExp)(glob, options);
|
|
68
|
+
}
|
|
69
|
+
exports.globToRegExp = globToRegExp;
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.isAbsolute = void 0;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const
|
|
7
|
+
const is_absolute_js_1 = require("./posix/is_absolute.js");
|
|
8
|
+
const is_absolute_js_2 = require("./windows/is_absolute.js");
|
|
8
9
|
/**
|
|
9
10
|
* Verifies whether provided path is absolute
|
|
10
11
|
* @param path to be verified as absolute
|
|
11
12
|
*/
|
|
12
13
|
function isAbsolute(path) {
|
|
13
|
-
return _os_js_1.isWindows ? (0,
|
|
14
|
+
return _os_js_1.isWindows ? (0, is_absolute_js_2.isAbsolute)(path) : (0, is_absolute_js_1.isAbsolute)(path);
|
|
14
15
|
}
|
|
15
16
|
exports.isAbsolute = isAbsolute;
|
|
@@ -0,0 +1,32 @@
|
|
|
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.isGlob = void 0;
|
|
6
|
+
/** Test whether the given string is a glob */
|
|
7
|
+
function isGlob(str) {
|
|
8
|
+
const chars = { "{": "}", "(": ")", "[": "]" };
|
|
9
|
+
const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
|
|
10
|
+
if (str === "") {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
let match;
|
|
14
|
+
while ((match = regex.exec(str))) {
|
|
15
|
+
if (match[2])
|
|
16
|
+
return true;
|
|
17
|
+
let idx = match.index + match[0].length;
|
|
18
|
+
// if an open bracket/brace/paren is escaped,
|
|
19
|
+
// set the index to the next closing character
|
|
20
|
+
const open = match[1];
|
|
21
|
+
const close = open ? chars[open] : null;
|
|
22
|
+
if (open && close) {
|
|
23
|
+
const n = str.indexOf(close, idx);
|
|
24
|
+
if (n !== -1) {
|
|
25
|
+
idx = n + 1;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
str = str.slice(idx);
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
exports.isGlob = isGlob;
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.join = void 0;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const
|
|
7
|
+
const join_js_1 = require("./posix/join.js");
|
|
8
|
+
const join_js_2 = require("./windows/join.js");
|
|
8
9
|
/**
|
|
9
10
|
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
10
11
|
* @param paths to be joined and normalized
|
|
11
12
|
*/
|
|
12
13
|
function join(...paths) {
|
|
13
|
-
return _os_js_1.isWindows ? (0,
|
|
14
|
+
return _os_js_1.isWindows ? (0, join_js_2.join)(...paths) : (0, join_js_1.join)(...paths);
|
|
14
15
|
}
|
|
15
16
|
exports.join = join;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 _os_js_1 = require("./_os.js");
|
|
7
|
+
const join_globs_js_1 = require("./posix/join_globs.js");
|
|
8
|
+
const join_globs_js_2 = require("./windows/join_globs.js");
|
|
9
|
+
/** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
10
|
+
function joinGlobs(globs, options = {}) {
|
|
11
|
+
return _os_js_1.isWindows
|
|
12
|
+
? (0, join_globs_js_2.joinGlobs)(globs, options)
|
|
13
|
+
: (0, join_globs_js_1.joinGlobs)(globs, options);
|
|
14
|
+
}
|
|
15
|
+
exports.joinGlobs = joinGlobs;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as _posix from "./posix.js";
|
|
3
|
-
|
|
1
|
+
import * as _windows from "./windows/mod.js";
|
|
2
|
+
import * as _posix from "./posix/mod.js";
|
|
3
|
+
/** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/path/windows/mod.ts} instead. */
|
|
4
|
+
export declare const win32: typeof _windows;
|
|
5
|
+
/** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/posix/mod.ts} instead. */
|
|
4
6
|
export declare const posix: typeof _posix;
|
|
7
|
+
export declare const sep: string;
|
|
5
8
|
export declare const delimiter: string;
|
|
6
9
|
export * from "./basename.js";
|
|
7
10
|
export * from "./dirname.js";
|
|
@@ -19,4 +22,7 @@ export * from "./to_namespaced_path.js";
|
|
|
19
22
|
export * from "./common.js";
|
|
20
23
|
export * from "./separator.js";
|
|
21
24
|
export * from "./_interface.js";
|
|
22
|
-
export * from "./
|
|
25
|
+
export * from "./glob_to_regexp.js";
|
|
26
|
+
export * from "./is_glob.js";
|
|
27
|
+
export * from "./join_globs.js";
|
|
28
|
+
export * from "./normalize_glob.js";
|