ventojs 0.10.2 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -93
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assert.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assertion_error.js +1 -1
- package/esm/deps/deno.land/std@0.219.1/html/entities.d.ts +39 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/html/entities.js +14 -15
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/html/mod.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/html/mod.js +2 -2
- package/esm/deps/deno.land/std@0.219.1/path/_common/assert_path.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/assert_path.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/basename.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/common.js +9 -9
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/constants.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/dirname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/format.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/from_file_url.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/glob_to_reg_exp.js +4 -2
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize_string.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/relative.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/strip_trailing_separators.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/to_file_url.js +1 -1
- package/esm/deps/deno.land/std@0.219.1/path/_interface.js +3 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_os.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/basename.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/common.js +3 -3
- package/esm/deps/deno.land/std@0.219.1/path/constants.d.ts +3 -0
- package/esm/deps/deno.land/std@0.219.1/path/constants.js +6 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/dirname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/extname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/format.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/format.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/from_file_url.js +1 -1
- package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/glob_to_regexp.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/glob_to_regexp.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_absolute.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_glob.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join_globs.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join_globs.js +1 -1
- package/esm/deps/deno.land/std@0.219.1/path/mod.d.ts +56 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/mod.js +3 -8
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/normalize.js +1 -1
- package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/normalize_glob.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/normalize_glob.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/parse.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/_util.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/basename.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/common.js +3 -3
- package/esm/deps/deno.land/std@0.219.1/path/posix/constants.d.ts +3 -0
- package/esm/deps/deno.land/std@0.219.1/path/posix/constants.js +5 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/dirname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/extname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/format.js +1 -1
- package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/posix/from_file_url.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/from_file_url.js +2 -2
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/glob_to_regexp.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/glob_to_regexp.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/is_absolute.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/is_glob.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/join.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/join_globs.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/join_globs.js +3 -3
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/mod.d.ts +1 -3
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/mod.js +2 -4
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/normalize.js +1 -1
- package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/posix/normalize_glob.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/normalize_glob.js +3 -3
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/parse.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/parse.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/relative.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/resolve.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_file_url.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_file_url.js +2 -2
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_namespaced_path.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/relative.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/resolve.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_file_url.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_namespaced_path.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/_util.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/basename.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path/windows}/common.js +3 -3
- package/esm/deps/deno.land/std@0.219.1/path/windows/constants.d.ts +3 -0
- package/esm/deps/deno.land/std@0.219.1/path/windows/constants.js +5 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/dirname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/extname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/format.js +1 -1
- package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/windows/from_file_url.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/from_file_url.js +2 -2
- package/{script/deps/deno.land/std@0.210.0/path/posix → esm/deps/deno.land/std@0.219.1/path/windows}/glob_to_regexp.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/glob_to_regexp.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/is_absolute.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path/windows}/is_glob.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/join.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path/windows}/join_globs.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/join_globs.js +3 -3
- package/{script/deps/deno.land/std@0.210.0/path/posix → esm/deps/deno.land/std@0.219.1/path/windows}/mod.d.ts +1 -3
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/mod.js +2 -4
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/normalize.js +1 -1
- package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/windows/normalize_glob.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/normalize_glob.js +3 -3
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/parse.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/parse.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/relative.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/resolve.js +1 -1
- package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.219.1}/path/windows/to_file_url.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/to_file_url.js +2 -2
- package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/to_namespaced_path.js +1 -1
- package/esm/deps/deno.land/x/astring@v1.8.6/src/astring.d.ts +109 -0
- package/esm/deps/deno.land/x/astring@v1.8.6/src/astring.js +1159 -0
- package/esm/deps.d.ts +6 -2
- package/esm/deps.js +5 -2
- package/esm/mod.d.ts +1 -0
- package/esm/mod.js +2 -0
- package/esm/plugins/auto_trim.d.ts +8 -0
- package/esm/plugins/auto_trim.js +36 -0
- package/esm/plugins/escape.js +2 -1
- package/esm/plugins/trim.d.ts +4 -0
- package/esm/plugins/trim.js +28 -0
- package/esm/plugins/unescape.js +2 -1
- package/esm/src/environment.d.ts +3 -0
- package/esm/src/environment.js +28 -7
- package/esm/src/tokenizer.js +6 -29
- package/esm/src/transformer.d.ts +1 -0
- package/esm/src/transformer.js +180 -0
- package/package.json +21 -8
- package/esm/deps/deno.land/std@0.210.0/html/entities.d.ts +0 -38
- package/esm/deps/deno.land/std@0.210.0/path/_common/assert_path.d.ts +0 -1
- package/esm/deps/deno.land/std@0.210.0/path/_interface.js +0 -3
- package/esm/deps/deno.land/std@0.210.0/path/common.d.ts +0 -13
- package/esm/deps/deno.land/std@0.210.0/path/glob_to_regexp.d.ts +0 -61
- package/esm/deps/deno.land/std@0.210.0/path/mod.d.ts +0 -28
- package/esm/deps/deno.land/std@0.210.0/path/normalize_glob.d.ts +0 -3
- package/esm/deps/deno.land/std@0.210.0/path/posix/from_file_url.d.ts +0 -12
- package/esm/deps/deno.land/std@0.210.0/path/posix/normalize_glob.d.ts +0 -3
- package/esm/deps/deno.land/std@0.210.0/path/posix/separator.d.ts +0 -2
- package/esm/deps/deno.land/std@0.210.0/path/posix/separator.js +0 -4
- package/esm/deps/deno.land/std@0.210.0/path/separator.d.ts +0 -2
- package/esm/deps/deno.land/std@0.210.0/path/separator.js +0 -5
- package/esm/deps/deno.land/std@0.210.0/path/windows/from_file_url.d.ts +0 -14
- package/esm/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.d.ts +0 -57
- package/esm/deps/deno.land/std@0.210.0/path/windows/mod.d.ts +0 -40
- package/esm/deps/deno.land/std@0.210.0/path/windows/normalize_glob.d.ts +0 -3
- package/esm/deps/deno.land/std@0.210.0/path/windows/separator.d.ts +0 -2
- package/esm/deps/deno.land/std@0.210.0/path/windows/separator.js +0 -4
- package/esm/deps/deno.land/std@0.210.0/path/windows/to_file_url.d.ts +0 -14
- package/script/_dnt.shims.d.ts +0 -5
- package/script/_dnt.shims.js +0 -65
- package/script/deps/deno.land/std@0.210.0/assert/assert.d.ts +0 -12
- package/script/deps/deno.land/std@0.210.0/assert/assert.js +0 -22
- package/script/deps/deno.land/std@0.210.0/assert/assertion_error.d.ts +0 -14
- package/script/deps/deno.land/std@0.210.0/assert/assertion_error.js +0 -22
- package/script/deps/deno.land/std@0.210.0/html/entities.d.ts +0 -38
- package/script/deps/deno.land/std@0.210.0/html/entities.js +0 -81
- package/script/deps/deno.land/std@0.210.0/html/mod.d.ts +0 -6
- package/script/deps/deno.land/std@0.210.0/html/mod.js +0 -24
- package/script/deps/deno.land/std@0.210.0/path/_common/assert_path.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/_common/assert_path.js +0 -11
- package/script/deps/deno.land/std@0.210.0/path/_common/basename.d.ts +0 -3
- package/script/deps/deno.land/std@0.210.0/path/_common/basename.js +0 -46
- package/script/deps/deno.land/std@0.210.0/path/_common/common.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/_common/common.js +0 -27
- package/script/deps/deno.land/std@0.210.0/path/_common/constants.d.ts +0 -39
- package/script/deps/deno.land/std@0.210.0/path/_common/constants.js +0 -49
- package/script/deps/deno.land/std@0.210.0/path/_common/dirname.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/_common/dirname.js +0 -12
- package/script/deps/deno.land/std@0.210.0/path/_common/format.d.ts +0 -3
- package/script/deps/deno.land/std@0.210.0/path/_common/format.js +0 -24
- package/script/deps/deno.land/std@0.210.0/path/_common/from_file_url.d.ts +0 -2
- package/script/deps/deno.land/std@0.210.0/path/_common/from_file_url.js +0 -13
- package/script/deps/deno.land/std@0.210.0/path/_common/glob_to_reg_exp.d.ts +0 -28
- package/script/deps/deno.land/std@0.210.0/path/_common/glob_to_reg_exp.js +0 -239
- package/script/deps/deno.land/std@0.210.0/path/_common/normalize.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/_common/normalize.js +0 -12
- package/script/deps/deno.land/std@0.210.0/path/_common/normalize_string.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/_common/normalize_string.js +0 -81
- package/script/deps/deno.land/std@0.210.0/path/_common/relative.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/_common/relative.js +0 -13
- package/script/deps/deno.land/std@0.210.0/path/_common/strip_trailing_separators.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/_common/strip_trailing_separators.js +0 -23
- package/script/deps/deno.land/std@0.210.0/path/_common/to_file_url.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/_common/to_file_url.js +0 -19
- package/script/deps/deno.land/std@0.210.0/path/_interface.d.ts +0 -26
- package/script/deps/deno.land/std@0.210.0/path/_interface.js +0 -4
- package/script/deps/deno.land/std@0.210.0/path/_os.d.ts +0 -3
- package/script/deps/deno.land/std@0.210.0/path/_os.js +0 -44
- package/script/deps/deno.land/std@0.210.0/path/basename.d.ts +0 -8
- package/script/deps/deno.land/std@0.210.0/path/basename.js +0 -21
- package/script/deps/deno.land/std@0.210.0/path/common.d.ts +0 -13
- package/script/deps/deno.land/std@0.210.0/path/common.js +0 -23
- package/script/deps/deno.land/std@0.210.0/path/dirname.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/dirname.js +0 -16
- package/script/deps/deno.land/std@0.210.0/path/extname.d.ts +0 -6
- package/script/deps/deno.land/std@0.210.0/path/extname.js +0 -17
- package/script/deps/deno.land/std@0.210.0/path/format.d.ts +0 -6
- package/script/deps/deno.land/std@0.210.0/path/format.js +0 -16
- package/script/deps/deno.land/std@0.210.0/path/from_file_url.d.ts +0 -18
- package/script/deps/deno.land/std@0.210.0/path/from_file_url.js +0 -28
- package/script/deps/deno.land/std@0.210.0/path/glob_to_regexp.js +0 -69
- package/script/deps/deno.land/std@0.210.0/path/is_absolute.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/is_absolute.js +0 -16
- package/script/deps/deno.land/std@0.210.0/path/is_glob.d.ts +0 -2
- package/script/deps/deno.land/std@0.210.0/path/is_glob.js +0 -32
- package/script/deps/deno.land/std@0.210.0/path/join.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/join.js +0 -16
- package/script/deps/deno.land/std@0.210.0/path/join_globs.d.ts +0 -3
- package/script/deps/deno.land/std@0.210.0/path/join_globs.js +0 -15
- package/script/deps/deno.land/std@0.210.0/path/mod.d.ts +0 -28
- package/script/deps/deno.land/std@0.210.0/path/mod.js +0 -94
- package/script/deps/deno.land/std@0.210.0/path/normalize.d.ts +0 -7
- package/script/deps/deno.land/std@0.210.0/path/normalize.js +0 -18
- package/script/deps/deno.land/std@0.210.0/path/normalize_glob.js +0 -15
- package/script/deps/deno.land/std@0.210.0/path/parse.d.ts +0 -6
- package/script/deps/deno.land/std@0.210.0/path/parse.js +0 -16
- package/script/deps/deno.land/std@0.210.0/path/posix/_util.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/posix/_util.js +0 -12
- package/script/deps/deno.land/std@0.210.0/path/posix/basename.d.ts +0 -8
- package/script/deps/deno.land/std@0.210.0/path/posix/basename.js +0 -22
- package/script/deps/deno.land/std@0.210.0/path/posix/common.js +0 -23
- package/script/deps/deno.land/std@0.210.0/path/posix/dirname.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/posix/dirname.js +0 -40
- package/script/deps/deno.land/std@0.210.0/path/posix/extname.d.ts +0 -6
- package/script/deps/deno.land/std@0.210.0/path/posix/extname.js +0 -63
- package/script/deps/deno.land/std@0.210.0/path/posix/format.d.ts +0 -6
- package/script/deps/deno.land/std@0.210.0/path/posix/format.js +0 -15
- package/script/deps/deno.land/std@0.210.0/path/posix/from_file_url.js +0 -21
- package/script/deps/deno.land/std@0.210.0/path/posix/glob_to_regexp.js +0 -73
- package/script/deps/deno.land/std@0.210.0/path/posix/is_absolute.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/posix/is_absolute.js +0 -16
- package/script/deps/deno.land/std@0.210.0/path/posix/is_glob.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/posix/is_glob.js +0 -7
- package/script/deps/deno.land/std@0.210.0/path/posix/join.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/posix/join.js +0 -30
- package/script/deps/deno.land/std@0.210.0/path/posix/join_globs.d.ts +0 -3
- package/script/deps/deno.land/std@0.210.0/path/posix/join_globs.js +0 -30
- package/script/deps/deno.land/std@0.210.0/path/posix/mod.js +0 -61
- package/script/deps/deno.land/std@0.210.0/path/posix/normalize.d.ts +0 -7
- package/script/deps/deno.land/std@0.210.0/path/posix/normalize.js +0 -29
- package/script/deps/deno.land/std@0.210.0/path/posix/normalize_glob.js +0 -20
- package/script/deps/deno.land/std@0.210.0/path/posix/parse.d.ts +0 -6
- package/script/deps/deno.land/std@0.210.0/path/posix/parse.js +0 -102
- package/script/deps/deno.land/std@0.210.0/path/posix/relative.d.ts +0 -7
- package/script/deps/deno.land/std@0.210.0/path/posix/relative.js +0 -98
- package/script/deps/deno.land/std@0.210.0/path/posix/resolve.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/posix/resolve.js +0 -75
- package/script/deps/deno.land/std@0.210.0/path/posix/separator.d.ts +0 -2
- package/script/deps/deno.land/std@0.210.0/path/posix/separator.js +0 -7
- package/script/deps/deno.land/std@0.210.0/path/posix/to_file_url.d.ts +0 -12
- package/script/deps/deno.land/std@0.210.0/path/posix/to_file_url.js +0 -26
- package/script/deps/deno.land/std@0.210.0/path/posix/to_namespaced_path.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/posix/to_namespaced_path.js +0 -14
- package/script/deps/deno.land/std@0.210.0/path/relative.d.ts +0 -12
- package/script/deps/deno.land/std@0.210.0/path/relative.js +0 -23
- package/script/deps/deno.land/std@0.210.0/path/resolve.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/resolve.js +0 -18
- package/script/deps/deno.land/std@0.210.0/path/separator.d.ts +0 -2
- package/script/deps/deno.land/std@0.210.0/path/separator.js +0 -8
- package/script/deps/deno.land/std@0.210.0/path/to_file_url.d.ts +0 -18
- package/script/deps/deno.land/std@0.210.0/path/to_file_url.js +0 -28
- package/script/deps/deno.land/std@0.210.0/path/to_namespaced_path.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/to_namespaced_path.js +0 -18
- package/script/deps/deno.land/std@0.210.0/path/windows/_util.d.ts +0 -3
- package/script/deps/deno.land/std@0.210.0/path/windows/_util.js +0 -21
- package/script/deps/deno.land/std@0.210.0/path/windows/basename.d.ts +0 -8
- package/script/deps/deno.land/std@0.210.0/path/windows/basename.js +0 -34
- package/script/deps/deno.land/std@0.210.0/path/windows/common.d.ts +0 -13
- package/script/deps/deno.land/std@0.210.0/path/windows/common.js +0 -23
- package/script/deps/deno.land/std@0.210.0/path/windows/dirname.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/windows/dirname.js +0 -102
- package/script/deps/deno.land/std@0.210.0/path/windows/extname.d.ts +0 -6
- package/script/deps/deno.land/std@0.210.0/path/windows/extname.js +0 -72
- package/script/deps/deno.land/std@0.210.0/path/windows/format.d.ts +0 -6
- package/script/deps/deno.land/std@0.210.0/path/windows/format.js +0 -15
- package/script/deps/deno.land/std@0.210.0/path/windows/from_file_url.js +0 -30
- package/script/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.d.ts +0 -57
- package/script/deps/deno.land/std@0.210.0/path/windows/glob_to_regexp.js +0 -73
- package/script/deps/deno.land/std@0.210.0/path/windows/is_absolute.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/windows/is_absolute.js +0 -31
- package/script/deps/deno.land/std@0.210.0/path/windows/is_glob.d.ts +0 -1
- package/script/deps/deno.land/std@0.210.0/path/windows/is_glob.js +0 -7
- package/script/deps/deno.land/std@0.210.0/path/windows/join.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/windows/join.js +0 -76
- package/script/deps/deno.land/std@0.210.0/path/windows/join_globs.d.ts +0 -3
- package/script/deps/deno.land/std@0.210.0/path/windows/join_globs.js +0 -30
- package/script/deps/deno.land/std@0.210.0/path/windows/mod.d.ts +0 -40
- package/script/deps/deno.land/std@0.210.0/path/windows/mod.js +0 -61
- package/script/deps/deno.land/std@0.210.0/path/windows/normalize.d.ts +0 -7
- package/script/deps/deno.land/std@0.210.0/path/windows/normalize.js +0 -134
- package/script/deps/deno.land/std@0.210.0/path/windows/normalize_glob.js +0 -20
- package/script/deps/deno.land/std@0.210.0/path/windows/parse.d.ts +0 -6
- package/script/deps/deno.land/std@0.210.0/path/windows/parse.js +0 -163
- package/script/deps/deno.land/std@0.210.0/path/windows/relative.d.ts +0 -12
- package/script/deps/deno.land/std@0.210.0/path/windows/relative.js +0 -125
- package/script/deps/deno.land/std@0.210.0/path/windows/resolve.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/windows/resolve.js +0 -170
- package/script/deps/deno.land/std@0.210.0/path/windows/separator.d.ts +0 -2
- package/script/deps/deno.land/std@0.210.0/path/windows/separator.js +0 -7
- package/script/deps/deno.land/std@0.210.0/path/windows/to_file_url.js +0 -35
- package/script/deps/deno.land/std@0.210.0/path/windows/to_namespaced_path.d.ts +0 -5
- package/script/deps/deno.land/std@0.210.0/path/windows/to_namespaced_path.js +0 -42
- package/script/deps.d.ts +0 -2
- package/script/deps.js +0 -28
- package/script/mod.d.ts +0 -9
- package/script/mod.js +0 -69
- package/script/package.json +0 -3
- package/script/plugins/echo.d.ts +0 -2
- package/script/plugins/echo.js +0 -16
- package/script/plugins/escape.d.ts +0 -2
- package/script/plugins/escape.js +0 -9
- package/script/plugins/export.d.ts +0 -2
- package/script/plugins/export.js +0 -50
- package/script/plugins/for.d.ts +0 -2
- package/script/plugins/for.js +0 -77
- package/script/plugins/function.d.ts +0 -2
- package/script/plugins/function.js +0 -40
- package/script/plugins/if.d.ts +0 -2
- package/script/plugins/if.js +0 -35
- package/script/plugins/import.d.ts +0 -2
- package/script/plugins/import.js +0 -20
- package/script/plugins/include.d.ts +0 -2
- package/script/plugins/include.js +0 -26
- package/script/plugins/js.d.ts +0 -2
- package/script/plugins/js.js +0 -14
- package/script/plugins/layout.d.ts +0 -2
- package/script/plugins/layout.js +0 -37
- package/script/plugins/set.d.ts +0 -2
- package/script/plugins/set.js +0 -48
- package/script/plugins/unescape.d.ts +0 -2
- package/script/plugins/unescape.js +0 -9
- package/script/src/environment.d.ts +0 -51
- package/script/src/environment.js +0 -208
- package/script/src/loader.d.ts +0 -14
- package/script/src/loader.js +0 -46
- package/script/src/tokenizer.d.ts +0 -13
- package/script/src/tokenizer.js +0 -249
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.219.1/path}/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.219.1/path/posix}/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/basename.d.ts +0 -0
- /package/{script/deps/deno.land/std@0.210.0/path/posix → esm/deps/deno.land/std@0.219.1/path/windows}/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.219.1}/path/windows/to_namespaced_path.d.ts +0 -0
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.relative = void 0;
|
|
6
|
-
const _util_js_1 = require("./_util.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
|
-
* @param from path in current working directory
|
|
13
|
-
* @param to path in current working directory
|
|
14
|
-
*/
|
|
15
|
-
function relative(from, to) {
|
|
16
|
-
(0, relative_js_1.assertArgs)(from, to);
|
|
17
|
-
from = (0, resolve_js_1.resolve)(from);
|
|
18
|
-
to = (0, resolve_js_1.resolve)(to);
|
|
19
|
-
if (from === to)
|
|
20
|
-
return "";
|
|
21
|
-
// Trim any leading backslashes
|
|
22
|
-
let fromStart = 1;
|
|
23
|
-
const fromEnd = from.length;
|
|
24
|
-
for (; fromStart < fromEnd; ++fromStart) {
|
|
25
|
-
if (!(0, _util_js_1.isPosixPathSeparator)(from.charCodeAt(fromStart)))
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
28
|
-
const fromLen = fromEnd - fromStart;
|
|
29
|
-
// Trim any leading backslashes
|
|
30
|
-
let toStart = 1;
|
|
31
|
-
const toEnd = to.length;
|
|
32
|
-
for (; toStart < toEnd; ++toStart) {
|
|
33
|
-
if (!(0, _util_js_1.isPosixPathSeparator)(to.charCodeAt(toStart)))
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
const toLen = toEnd - toStart;
|
|
37
|
-
// Compare paths to find the longest common path from root
|
|
38
|
-
const length = fromLen < toLen ? fromLen : toLen;
|
|
39
|
-
let lastCommonSep = -1;
|
|
40
|
-
let i = 0;
|
|
41
|
-
for (; i <= length; ++i) {
|
|
42
|
-
if (i === length) {
|
|
43
|
-
if (toLen > length) {
|
|
44
|
-
if ((0, _util_js_1.isPosixPathSeparator)(to.charCodeAt(toStart + i))) {
|
|
45
|
-
// We get here if `from` is the exact base path for `to`.
|
|
46
|
-
// For example: from='/foo/bar'; to='/foo/bar/baz'
|
|
47
|
-
return to.slice(toStart + i + 1);
|
|
48
|
-
}
|
|
49
|
-
else if (i === 0) {
|
|
50
|
-
// We get here if `from` is the root
|
|
51
|
-
// For example: from='/'; to='/foo'
|
|
52
|
-
return to.slice(toStart + i);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
else if (fromLen > length) {
|
|
56
|
-
if ((0, _util_js_1.isPosixPathSeparator)(from.charCodeAt(fromStart + i))) {
|
|
57
|
-
// We get here if `to` is the exact base path for `from`.
|
|
58
|
-
// For example: from='/foo/bar/baz'; to='/foo/bar'
|
|
59
|
-
lastCommonSep = i;
|
|
60
|
-
}
|
|
61
|
-
else if (i === 0) {
|
|
62
|
-
// We get here if `to` is the root.
|
|
63
|
-
// For example: from='/foo'; to='/'
|
|
64
|
-
lastCommonSep = 0;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
const fromCode = from.charCodeAt(fromStart + i);
|
|
70
|
-
const toCode = to.charCodeAt(toStart + i);
|
|
71
|
-
if (fromCode !== toCode)
|
|
72
|
-
break;
|
|
73
|
-
else if ((0, _util_js_1.isPosixPathSeparator)(fromCode))
|
|
74
|
-
lastCommonSep = i;
|
|
75
|
-
}
|
|
76
|
-
let out = "";
|
|
77
|
-
// Generate the relative path based on the path difference between `to`
|
|
78
|
-
// and `from`
|
|
79
|
-
for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
|
|
80
|
-
if (i === fromEnd || (0, _util_js_1.isPosixPathSeparator)(from.charCodeAt(i))) {
|
|
81
|
-
if (out.length === 0)
|
|
82
|
-
out += "..";
|
|
83
|
-
else
|
|
84
|
-
out += "/..";
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
// Lastly, append the rest of the destination (`to`) path that comes after
|
|
88
|
-
// the common path parts
|
|
89
|
-
if (out.length > 0)
|
|
90
|
-
return out + to.slice(toStart + lastCommonSep);
|
|
91
|
-
else {
|
|
92
|
-
toStart += lastCommonSep;
|
|
93
|
-
if ((0, _util_js_1.isPosixPathSeparator)(to.charCodeAt(toStart)))
|
|
94
|
-
++toStart;
|
|
95
|
-
return to.slice(toStart);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.relative = relative;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.resolve = void 0;
|
|
27
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
28
|
-
// This module is browser compatible.
|
|
29
|
-
const dntShim = __importStar(require("../../../../../_dnt.shims.js"));
|
|
30
|
-
const normalize_string_js_1 = require("../_common/normalize_string.js");
|
|
31
|
-
const assert_path_js_1 = require("../_common/assert_path.js");
|
|
32
|
-
const _util_js_1 = require("./_util.js");
|
|
33
|
-
/**
|
|
34
|
-
* Resolves path segments into a `path`
|
|
35
|
-
* @param pathSegments to process to path
|
|
36
|
-
*/
|
|
37
|
-
function resolve(...pathSegments) {
|
|
38
|
-
let resolvedPath = "";
|
|
39
|
-
let resolvedAbsolute = false;
|
|
40
|
-
for (let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|
41
|
-
let path;
|
|
42
|
-
if (i >= 0)
|
|
43
|
-
path = pathSegments[i];
|
|
44
|
-
else {
|
|
45
|
-
// deno-lint-ignore no-explicit-any
|
|
46
|
-
const { Deno } = dntShim.dntGlobalThis;
|
|
47
|
-
if (typeof Deno?.cwd !== "function") {
|
|
48
|
-
throw new TypeError("Resolved a relative path without a CWD.");
|
|
49
|
-
}
|
|
50
|
-
path = Deno.cwd();
|
|
51
|
-
}
|
|
52
|
-
(0, assert_path_js_1.assertPath)(path);
|
|
53
|
-
// Skip empty entries
|
|
54
|
-
if (path.length === 0) {
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
resolvedPath = `${path}/${resolvedPath}`;
|
|
58
|
-
resolvedAbsolute = (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0));
|
|
59
|
-
}
|
|
60
|
-
// At this point the path should be resolved to a full absolute path, but
|
|
61
|
-
// handle relative paths to be safe (might happen when Deno.cwd() fails)
|
|
62
|
-
// Normalize the path
|
|
63
|
-
resolvedPath = (0, normalize_string_js_1.normalizeString)(resolvedPath, !resolvedAbsolute, "/", _util_js_1.isPosixPathSeparator);
|
|
64
|
-
if (resolvedAbsolute) {
|
|
65
|
-
if (resolvedPath.length > 0)
|
|
66
|
-
return `/${resolvedPath}`;
|
|
67
|
-
else
|
|
68
|
-
return "/";
|
|
69
|
-
}
|
|
70
|
-
else if (resolvedPath.length > 0)
|
|
71
|
-
return resolvedPath;
|
|
72
|
-
else
|
|
73
|
-
return ".";
|
|
74
|
-
}
|
|
75
|
-
exports.resolve = resolve;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.SEP_PATTERN = exports.SEP = void 0;
|
|
6
|
-
exports.SEP = "/";
|
|
7
|
-
exports.SEP_PATTERN = /\/+/;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/**
|
|
3
|
-
* Converts a path string to a file URL.
|
|
4
|
-
*
|
|
5
|
-
* ```ts
|
|
6
|
-
* import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
|
|
7
|
-
*
|
|
8
|
-
* toFileUrl("/home/foo"); // new URL("file:///home/foo")
|
|
9
|
-
* ```
|
|
10
|
-
* @param path to convert to file URL
|
|
11
|
-
*/
|
|
12
|
-
export declare function toFileUrl(path: string): URL;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.toFileUrl = void 0;
|
|
6
|
-
const to_file_url_js_1 = require("../_common/to_file_url.js");
|
|
7
|
-
const is_absolute_js_1 = require("./is_absolute.js");
|
|
8
|
-
/**
|
|
9
|
-
* Converts a path string to a file URL.
|
|
10
|
-
*
|
|
11
|
-
* ```ts
|
|
12
|
-
* import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
|
|
13
|
-
*
|
|
14
|
-
* toFileUrl("/home/foo"); // new URL("file:///home/foo")
|
|
15
|
-
* ```
|
|
16
|
-
* @param path to convert to file URL
|
|
17
|
-
*/
|
|
18
|
-
function toFileUrl(path) {
|
|
19
|
-
if (!(0, is_absolute_js_1.isAbsolute)(path)) {
|
|
20
|
-
throw new TypeError("Must be an absolute path.");
|
|
21
|
-
}
|
|
22
|
-
const url = new URL("file:///");
|
|
23
|
-
url.pathname = (0, to_file_url_js_1.encodeWhitespace)(path.replace(/%/g, "%25").replace(/\\/g, "%5C"));
|
|
24
|
-
return url;
|
|
25
|
-
}
|
|
26
|
-
exports.toFileUrl = toFileUrl;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.toNamespacedPath = void 0;
|
|
6
|
-
/**
|
|
7
|
-
* Resolves path to a namespace path
|
|
8
|
-
* @param path to resolve to namespace
|
|
9
|
-
*/
|
|
10
|
-
function toNamespacedPath(path) {
|
|
11
|
-
// Non-op on posix systems
|
|
12
|
-
return path;
|
|
13
|
-
}
|
|
14
|
-
exports.toNamespacedPath = toNamespacedPath;
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.relative = void 0;
|
|
6
|
-
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const relative_js_1 = require("./posix/relative.js");
|
|
8
|
-
const relative_js_2 = require("./windows/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
|
-
return _os_js_1.isWindows ? (0, relative_js_2.relative)(from, to) : (0, relative_js_1.relative)(from, to);
|
|
22
|
-
}
|
|
23
|
-
exports.relative = relative;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.resolve = void 0;
|
|
6
|
-
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const resolve_js_1 = require("./posix/resolve.js");
|
|
8
|
-
const resolve_js_2 = require("./windows/resolve.js");
|
|
9
|
-
/**
|
|
10
|
-
* Resolves path segments into a `path`
|
|
11
|
-
* @param pathSegments to process to path
|
|
12
|
-
*/
|
|
13
|
-
function resolve(...pathSegments) {
|
|
14
|
-
return _os_js_1.isWindows
|
|
15
|
-
? (0, resolve_js_2.resolve)(...pathSegments)
|
|
16
|
-
: (0, resolve_js_1.resolve)(...pathSegments);
|
|
17
|
-
}
|
|
18
|
-
exports.resolve = resolve;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.SEP_PATTERN = exports.SEP = void 0;
|
|
6
|
-
const _os_js_1 = require("./_os.js");
|
|
7
|
-
exports.SEP = _os_js_1.isWindows ? "\\" : "/";
|
|
8
|
-
exports.SEP_PATTERN = _os_js_1.isWindows ? /[\\/]+/ : /\/+/;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/**
|
|
3
|
-
* Converts a path string to a file URL.
|
|
4
|
-
*
|
|
5
|
-
* ```ts
|
|
6
|
-
* import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/to_file_url.ts";
|
|
7
|
-
*
|
|
8
|
-
* // posix
|
|
9
|
-
* toFileUrl("/home/foo"); // new URL("file:///home/foo")
|
|
10
|
-
*
|
|
11
|
-
* // win32
|
|
12
|
-
* toFileUrl("\\home\\foo"); // new URL("file:///home/foo")
|
|
13
|
-
* toFileUrl("C:\\Users\\foo"); // new URL("file:///C:/Users/foo")
|
|
14
|
-
* toFileUrl("\\\\127.0.0.1\\home\\foo"); // new URL("file://127.0.0.1/home/foo")
|
|
15
|
-
* ```
|
|
16
|
-
* @param path to convert to file URL
|
|
17
|
-
*/
|
|
18
|
-
export declare function toFileUrl(path: string): URL;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.toFileUrl = void 0;
|
|
6
|
-
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const to_file_url_js_1 = require("./posix/to_file_url.js");
|
|
8
|
-
const to_file_url_js_2 = require("./windows/to_file_url.js");
|
|
9
|
-
/**
|
|
10
|
-
* Converts a path string to a file URL.
|
|
11
|
-
*
|
|
12
|
-
* ```ts
|
|
13
|
-
* import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/to_file_url.ts";
|
|
14
|
-
*
|
|
15
|
-
* // posix
|
|
16
|
-
* toFileUrl("/home/foo"); // new URL("file:///home/foo")
|
|
17
|
-
*
|
|
18
|
-
* // win32
|
|
19
|
-
* toFileUrl("\\home\\foo"); // new URL("file:///home/foo")
|
|
20
|
-
* toFileUrl("C:\\Users\\foo"); // new URL("file:///C:/Users/foo")
|
|
21
|
-
* toFileUrl("\\\\127.0.0.1\\home\\foo"); // new URL("file://127.0.0.1/home/foo")
|
|
22
|
-
* ```
|
|
23
|
-
* @param path to convert to file URL
|
|
24
|
-
*/
|
|
25
|
-
function toFileUrl(path) {
|
|
26
|
-
return _os_js_1.isWindows ? (0, to_file_url_js_2.toFileUrl)(path) : (0, to_file_url_js_1.toFileUrl)(path);
|
|
27
|
-
}
|
|
28
|
-
exports.toFileUrl = toFileUrl;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.toNamespacedPath = void 0;
|
|
6
|
-
const _os_js_1 = require("./_os.js");
|
|
7
|
-
const to_namespaced_path_js_1 = require("./posix/to_namespaced_path.js");
|
|
8
|
-
const to_namespaced_path_js_2 = require("./windows/to_namespaced_path.js");
|
|
9
|
-
/**
|
|
10
|
-
* Resolves path to a namespace path
|
|
11
|
-
* @param path to resolve to namespace
|
|
12
|
-
*/
|
|
13
|
-
function toNamespacedPath(path) {
|
|
14
|
-
return _os_js_1.isWindows
|
|
15
|
-
? (0, to_namespaced_path_js_2.toNamespacedPath)(path)
|
|
16
|
-
: (0, to_namespaced_path_js_1.toNamespacedPath)(path);
|
|
17
|
-
}
|
|
18
|
-
exports.toNamespacedPath = toNamespacedPath;
|
|
@@ -1,21 +0,0 @@
|
|
|
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.isWindowsDeviceRoot = exports.isPathSeparator = exports.isPosixPathSeparator = void 0;
|
|
8
|
-
const constants_js_1 = require("../_common/constants.js");
|
|
9
|
-
function isPosixPathSeparator(code) {
|
|
10
|
-
return code === constants_js_1.CHAR_FORWARD_SLASH;
|
|
11
|
-
}
|
|
12
|
-
exports.isPosixPathSeparator = isPosixPathSeparator;
|
|
13
|
-
function isPathSeparator(code) {
|
|
14
|
-
return code === constants_js_1.CHAR_FORWARD_SLASH || code === constants_js_1.CHAR_BACKWARD_SLASH;
|
|
15
|
-
}
|
|
16
|
-
exports.isPathSeparator = isPathSeparator;
|
|
17
|
-
function isWindowsDeviceRoot(code) {
|
|
18
|
-
return ((code >= constants_js_1.CHAR_LOWERCASE_A && code <= constants_js_1.CHAR_LOWERCASE_Z) ||
|
|
19
|
-
(code >= constants_js_1.CHAR_UPPERCASE_A && code <= constants_js_1.CHAR_UPPERCASE_Z));
|
|
20
|
-
}
|
|
21
|
-
exports.isWindowsDeviceRoot = isWindowsDeviceRoot;
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.basename = void 0;
|
|
6
|
-
const basename_js_1 = require("../_common/basename.js");
|
|
7
|
-
const constants_js_1 = require("../_common/constants.js");
|
|
8
|
-
const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
|
|
9
|
-
const _util_js_1 = require("./_util.js");
|
|
10
|
-
/**
|
|
11
|
-
* Return the last portion of a `path`.
|
|
12
|
-
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
13
|
-
*
|
|
14
|
-
* @param path - path to extract the name from.
|
|
15
|
-
* @param [suffix] - suffix to remove from extracted name.
|
|
16
|
-
*/
|
|
17
|
-
function basename(path, suffix = "") {
|
|
18
|
-
(0, basename_js_1.assertArgs)(path, suffix);
|
|
19
|
-
// Check for a drive letter prefix so as not to mistake the following
|
|
20
|
-
// path separator as an extra separator at the end of the path that can be
|
|
21
|
-
// disregarded
|
|
22
|
-
let start = 0;
|
|
23
|
-
if (path.length >= 2) {
|
|
24
|
-
const drive = path.charCodeAt(0);
|
|
25
|
-
if ((0, _util_js_1.isWindowsDeviceRoot)(drive)) {
|
|
26
|
-
if (path.charCodeAt(1) === constants_js_1.CHAR_COLON)
|
|
27
|
-
start = 2;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
const lastSegment = (0, basename_js_1.lastPathSegment)(path, _util_js_1.isPathSeparator, start);
|
|
31
|
-
const strippedSegment = (0, strip_trailing_separators_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPathSeparator);
|
|
32
|
-
return suffix ? (0, basename_js_1.stripSuffix)(strippedSegment, suffix) : strippedSegment;
|
|
33
|
-
}
|
|
34
|
-
exports.basename = basename;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Determines the common path from a set of paths, using an optional separator,
|
|
2
|
-
* which defaults to the OS default separator.
|
|
3
|
-
*
|
|
4
|
-
* ```ts
|
|
5
|
-
* import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
6
|
-
* const p = common([
|
|
7
|
-
* "./deno/std/path/mod.ts",
|
|
8
|
-
* "./deno/std/fs/mod.ts",
|
|
9
|
-
* ]);
|
|
10
|
-
* console.log(p); // "./deno/std/"
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
export declare function common(paths: string[], sep?: string): string;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.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;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.dirname = void 0;
|
|
6
|
-
const dirname_js_1 = require("../_common/dirname.js");
|
|
7
|
-
const constants_js_1 = require("../_common/constants.js");
|
|
8
|
-
const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
|
|
9
|
-
const _util_js_1 = require("./_util.js");
|
|
10
|
-
/**
|
|
11
|
-
* Return the directory path of a `path`.
|
|
12
|
-
* @param path - path to extract the directory from.
|
|
13
|
-
*/
|
|
14
|
-
function dirname(path) {
|
|
15
|
-
(0, dirname_js_1.assertArg)(path);
|
|
16
|
-
const len = path.length;
|
|
17
|
-
let rootEnd = -1;
|
|
18
|
-
let end = -1;
|
|
19
|
-
let matchedSlash = true;
|
|
20
|
-
let offset = 0;
|
|
21
|
-
const code = path.charCodeAt(0);
|
|
22
|
-
// Try to match a root
|
|
23
|
-
if (len > 1) {
|
|
24
|
-
if ((0, _util_js_1.isPathSeparator)(code)) {
|
|
25
|
-
// Possible UNC root
|
|
26
|
-
rootEnd = offset = 1;
|
|
27
|
-
if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(1))) {
|
|
28
|
-
// Matched double path separator at beginning
|
|
29
|
-
let j = 2;
|
|
30
|
-
let last = j;
|
|
31
|
-
// Match 1 or more non-path separators
|
|
32
|
-
for (; j < len; ++j) {
|
|
33
|
-
if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
if (j < len && j !== last) {
|
|
37
|
-
// Matched!
|
|
38
|
-
last = j;
|
|
39
|
-
// Match 1 or more path separators
|
|
40
|
-
for (; j < len; ++j) {
|
|
41
|
-
if (!(0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
if (j < len && j !== last) {
|
|
45
|
-
// Matched!
|
|
46
|
-
last = j;
|
|
47
|
-
// Match 1 or more non-path separators
|
|
48
|
-
for (; j < len; ++j) {
|
|
49
|
-
if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(j)))
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
if (j === len) {
|
|
53
|
-
// We matched a UNC root only
|
|
54
|
-
return path;
|
|
55
|
-
}
|
|
56
|
-
if (j !== last) {
|
|
57
|
-
// We matched a UNC root with leftovers
|
|
58
|
-
// Offset by 1 to include the separator after the UNC root to
|
|
59
|
-
// treat it as a "normal root" on top of a (UNC) root
|
|
60
|
-
rootEnd = offset = j + 1;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
else if ((0, _util_js_1.isWindowsDeviceRoot)(code)) {
|
|
67
|
-
// Possible device root
|
|
68
|
-
if (path.charCodeAt(1) === constants_js_1.CHAR_COLON) {
|
|
69
|
-
rootEnd = offset = 2;
|
|
70
|
-
if (len > 2) {
|
|
71
|
-
if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(2)))
|
|
72
|
-
rootEnd = offset = 3;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
else if ((0, _util_js_1.isPathSeparator)(code)) {
|
|
78
|
-
// `path` contains just a path separator, exit early to avoid
|
|
79
|
-
// unnecessary work
|
|
80
|
-
return path;
|
|
81
|
-
}
|
|
82
|
-
for (let i = len - 1; i >= offset; --i) {
|
|
83
|
-
if ((0, _util_js_1.isPathSeparator)(path.charCodeAt(i))) {
|
|
84
|
-
if (!matchedSlash) {
|
|
85
|
-
end = i;
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
// We saw the first non-path separator
|
|
91
|
-
matchedSlash = false;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
if (end === -1) {
|
|
95
|
-
if (rootEnd === -1)
|
|
96
|
-
return ".";
|
|
97
|
-
else
|
|
98
|
-
end = rootEnd;
|
|
99
|
-
}
|
|
100
|
-
return (0, strip_trailing_separators_js_1.stripTrailingSeparators)(path.slice(0, end), _util_js_1.isPosixPathSeparator);
|
|
101
|
-
}
|
|
102
|
-
exports.dirname = dirname;
|