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,22 +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 strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
|
|
8
|
-
const _util_js_1 = require("./_util.js");
|
|
9
|
-
/**
|
|
10
|
-
* Return the last portion of a `path`.
|
|
11
|
-
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
12
|
-
*
|
|
13
|
-
* @param path - path to extract the name from.
|
|
14
|
-
* @param [suffix] - suffix to remove from extracted name.
|
|
15
|
-
*/
|
|
16
|
-
function basename(path, suffix = "") {
|
|
17
|
-
(0, basename_js_1.assertArgs)(path, suffix);
|
|
18
|
-
const lastSegment = (0, basename_js_1.lastPathSegment)(path, _util_js_1.isPosixPathSeparator);
|
|
19
|
-
const strippedSegment = (0, strip_trailing_separators_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPosixPathSeparator);
|
|
20
|
-
return suffix ? (0, basename_js_1.stripSuffix)(strippedSegment, suffix) : strippedSegment;
|
|
21
|
-
}
|
|
22
|
-
exports.basename = basename;
|
|
@@ -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,40 +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 strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
|
|
8
|
-
const _util_js_1 = require("./_util.js");
|
|
9
|
-
/**
|
|
10
|
-
* Return the directory path of a `path`.
|
|
11
|
-
* @param path - path to extract the directory from.
|
|
12
|
-
*/
|
|
13
|
-
function dirname(path) {
|
|
14
|
-
(0, dirname_js_1.assertArg)(path);
|
|
15
|
-
let end = -1;
|
|
16
|
-
let matchedNonSeparator = false;
|
|
17
|
-
for (let i = path.length - 1; i >= 1; --i) {
|
|
18
|
-
if ((0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(i))) {
|
|
19
|
-
if (matchedNonSeparator) {
|
|
20
|
-
end = i;
|
|
21
|
-
break;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
matchedNonSeparator = true;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
// No matches. Fallback based on provided path:
|
|
29
|
-
//
|
|
30
|
-
// - leading slashes paths
|
|
31
|
-
// "/foo" => "/"
|
|
32
|
-
// "///foo" => "/"
|
|
33
|
-
// - no slash path
|
|
34
|
-
// "foo" => "."
|
|
35
|
-
if (end === -1) {
|
|
36
|
-
return (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0)) ? "/" : ".";
|
|
37
|
-
}
|
|
38
|
-
return (0, strip_trailing_separators_js_1.stripTrailingSeparators)(path.slice(0, end), _util_js_1.isPosixPathSeparator);
|
|
39
|
-
}
|
|
40
|
-
exports.dirname = dirname;
|
|
@@ -1,63 +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.extname = void 0;
|
|
6
|
-
const constants_js_1 = require("../_common/constants.js");
|
|
7
|
-
const assert_path_js_1 = require("../_common/assert_path.js");
|
|
8
|
-
const _util_js_1 = require("./_util.js");
|
|
9
|
-
/**
|
|
10
|
-
* Return the extension of the `path` with leading period.
|
|
11
|
-
* @param path with extension
|
|
12
|
-
* @returns extension (ex. for `file.ts` returns `.ts`)
|
|
13
|
-
*/
|
|
14
|
-
function extname(path) {
|
|
15
|
-
(0, assert_path_js_1.assertPath)(path);
|
|
16
|
-
let startDot = -1;
|
|
17
|
-
let startPart = 0;
|
|
18
|
-
let end = -1;
|
|
19
|
-
let matchedSlash = true;
|
|
20
|
-
// Track the state of characters (if any) we see before our first dot and
|
|
21
|
-
// after any path separator we find
|
|
22
|
-
let preDotState = 0;
|
|
23
|
-
for (let i = path.length - 1; i >= 0; --i) {
|
|
24
|
-
const code = path.charCodeAt(i);
|
|
25
|
-
if ((0, _util_js_1.isPosixPathSeparator)(code)) {
|
|
26
|
-
// If we reached a path separator that was not part of a set of path
|
|
27
|
-
// separators at the end of the string, stop now
|
|
28
|
-
if (!matchedSlash) {
|
|
29
|
-
startPart = i + 1;
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
if (end === -1) {
|
|
35
|
-
// We saw the first non-path separator, mark this as the end of our
|
|
36
|
-
// extension
|
|
37
|
-
matchedSlash = false;
|
|
38
|
-
end = i + 1;
|
|
39
|
-
}
|
|
40
|
-
if (code === constants_js_1.CHAR_DOT) {
|
|
41
|
-
// If this is our first dot, mark it as the start of our extension
|
|
42
|
-
if (startDot === -1)
|
|
43
|
-
startDot = i;
|
|
44
|
-
else if (preDotState !== 1)
|
|
45
|
-
preDotState = 1;
|
|
46
|
-
}
|
|
47
|
-
else if (startDot !== -1) {
|
|
48
|
-
// We saw a non-dot and non-path separator before our dot, so we should
|
|
49
|
-
// have a good chance at having a non-empty extension
|
|
50
|
-
preDotState = -1;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
if (startDot === -1 ||
|
|
54
|
-
end === -1 ||
|
|
55
|
-
// We saw a non-dot character immediately before the dot
|
|
56
|
-
preDotState === 0 ||
|
|
57
|
-
// The (right-most) trimmed path component is exactly '..'
|
|
58
|
-
(preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
|
|
59
|
-
return "";
|
|
60
|
-
}
|
|
61
|
-
return path.slice(startDot, end);
|
|
62
|
-
}
|
|
63
|
-
exports.extname = extname;
|
|
@@ -1,15 +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.format = void 0;
|
|
6
|
-
const format_js_1 = require("../_common/format.js");
|
|
7
|
-
/**
|
|
8
|
-
* Generate a path from `FormatInputPathObject` object.
|
|
9
|
-
* @param pathObject with path
|
|
10
|
-
*/
|
|
11
|
-
function format(pathObject) {
|
|
12
|
-
(0, format_js_1.assertArg)(pathObject);
|
|
13
|
-
return (0, format_js_1._format)("/", pathObject);
|
|
14
|
-
}
|
|
15
|
-
exports.format = format;
|
|
@@ -1,21 +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.fromFileUrl = void 0;
|
|
6
|
-
const from_file_url_js_1 = require("../_common/from_file_url.js");
|
|
7
|
-
/**
|
|
8
|
-
* Converts a file URL to a path string.
|
|
9
|
-
*
|
|
10
|
-
* ```ts
|
|
11
|
-
* import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
|
|
12
|
-
*
|
|
13
|
-
* fromFileUrl("file:///home/foo"); // "/home/foo"
|
|
14
|
-
* ```
|
|
15
|
-
* @param url of a file URL
|
|
16
|
-
*/
|
|
17
|
-
function fromFileUrl(url) {
|
|
18
|
-
url = (0, from_file_url_js_1.assertArg)(url);
|
|
19
|
-
return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
|
|
20
|
-
}
|
|
21
|
-
exports.fromFileUrl = fromFileUrl;
|
|
@@ -1,73 +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.globToRegExp = void 0;
|
|
6
|
-
const glob_to_reg_exp_js_1 = require("../_common/glob_to_reg_exp.js");
|
|
7
|
-
const constants = {
|
|
8
|
-
sep: "/+",
|
|
9
|
-
sepMaybe: "/*",
|
|
10
|
-
seps: ["/"],
|
|
11
|
-
globstar: "(?:[^/]*(?:/|$)+)*",
|
|
12
|
-
wildcard: "[^/]*",
|
|
13
|
-
escapePrefix: "\\",
|
|
14
|
-
};
|
|
15
|
-
/** Convert a glob string to a regular expression.
|
|
16
|
-
*
|
|
17
|
-
* Tries to match bash glob expansion as closely as possible.
|
|
18
|
-
*
|
|
19
|
-
* Basic glob syntax:
|
|
20
|
-
* - `*` - Matches everything without leaving the path segment.
|
|
21
|
-
* - `?` - Matches any single character.
|
|
22
|
-
* - `{foo,bar}` - Matches `foo` or `bar`.
|
|
23
|
-
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
|
24
|
-
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
|
25
|
-
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
|
26
|
-
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
|
27
|
-
* - `[[:alnum:]]` - Matches any digit or letter.
|
|
28
|
-
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
|
29
|
-
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
|
30
|
-
* for a complete list of supported character classes.
|
|
31
|
-
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
|
32
|
-
* - \` - Escapes the next character for `os` set to `"windows"`.
|
|
33
|
-
* - `/` - Path separator.
|
|
34
|
-
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
|
35
|
-
*
|
|
36
|
-
* Extended syntax:
|
|
37
|
-
* - Requires `{ extended: true }`.
|
|
38
|
-
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
|
39
|
-
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
|
40
|
-
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
|
41
|
-
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
|
42
|
-
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
|
43
|
-
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
44
|
-
*
|
|
45
|
-
* Globstar syntax:
|
|
46
|
-
* - Requires `{ globstar: true }`.
|
|
47
|
-
* - `**` - Matches any number of any path segments.
|
|
48
|
-
* - Must comprise its entire path segment in the provided glob.
|
|
49
|
-
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
50
|
-
*
|
|
51
|
-
* Note the following properties:
|
|
52
|
-
* - The generated `RegExp` is anchored at both start and end.
|
|
53
|
-
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
|
54
|
-
* provided glob have no meaning and are discarded.
|
|
55
|
-
* - Absolute globs will only match absolute paths, etc.
|
|
56
|
-
* - Empty globs will match nothing.
|
|
57
|
-
* - Any special glob syntax must be contained to one path segment. For example,
|
|
58
|
-
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
|
59
|
-
* first segment ends with an unclosed group.
|
|
60
|
-
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
|
61
|
-
* parse error has occurred. Every character for that segment is taken
|
|
62
|
-
* literally in this event.
|
|
63
|
-
*
|
|
64
|
-
* Limitations:
|
|
65
|
-
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
|
66
|
-
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
|
67
|
-
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
68
|
-
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
69
|
-
* the group occurs not nested at the end of the segment. */
|
|
70
|
-
function globToRegExp(glob, options = {}) {
|
|
71
|
-
return (0, glob_to_reg_exp_js_1._globToRegExp)(constants, glob, options);
|
|
72
|
-
}
|
|
73
|
-
exports.globToRegExp = globToRegExp;
|
|
@@ -1,16 +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.isAbsolute = void 0;
|
|
6
|
-
const assert_path_js_1 = require("../_common/assert_path.js");
|
|
7
|
-
const _util_js_1 = require("./_util.js");
|
|
8
|
-
/**
|
|
9
|
-
* Verifies whether provided path is absolute
|
|
10
|
-
* @param path to be verified as absolute
|
|
11
|
-
*/
|
|
12
|
-
function isAbsolute(path) {
|
|
13
|
-
(0, assert_path_js_1.assertPath)(path);
|
|
14
|
-
return path.length > 0 && (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0));
|
|
15
|
-
}
|
|
16
|
-
exports.isAbsolute = isAbsolute;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { isGlob } from "../is_glob.js";
|
|
@@ -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.isGlob = void 0;
|
|
6
|
-
var is_glob_js_1 = require("../is_glob.js");
|
|
7
|
-
Object.defineProperty(exports, "isGlob", { enumerable: true, get: function () { return is_glob_js_1.isGlob; } });
|
|
@@ -1,30 +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.join = void 0;
|
|
6
|
-
const assert_path_js_1 = require("../_common/assert_path.js");
|
|
7
|
-
const normalize_js_1 = require("./normalize.js");
|
|
8
|
-
/**
|
|
9
|
-
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
10
|
-
* @param paths to be joined and normalized
|
|
11
|
-
*/
|
|
12
|
-
function join(...paths) {
|
|
13
|
-
if (paths.length === 0)
|
|
14
|
-
return ".";
|
|
15
|
-
let joined;
|
|
16
|
-
for (let i = 0, len = paths.length; i < len; ++i) {
|
|
17
|
-
const path = paths[i];
|
|
18
|
-
(0, assert_path_js_1.assertPath)(path);
|
|
19
|
-
if (path.length > 0) {
|
|
20
|
-
if (!joined)
|
|
21
|
-
joined = path;
|
|
22
|
-
else
|
|
23
|
-
joined += `/${path}`;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (!joined)
|
|
27
|
-
return ".";
|
|
28
|
-
return (0, normalize_js_1.normalize)(joined);
|
|
29
|
-
}
|
|
30
|
-
exports.join = join;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.joinGlobs = void 0;
|
|
6
|
-
const join_js_1 = require("./join.js");
|
|
7
|
-
const separator_js_1 = require("./separator.js");
|
|
8
|
-
const normalize_glob_js_1 = require("./normalize_glob.js");
|
|
9
|
-
/** Like join(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
10
|
-
function joinGlobs(globs, { extended = true, globstar = false } = {}) {
|
|
11
|
-
if (!globstar || globs.length === 0) {
|
|
12
|
-
return (0, join_js_1.join)(...globs);
|
|
13
|
-
}
|
|
14
|
-
if (globs.length === 0)
|
|
15
|
-
return ".";
|
|
16
|
-
let joined;
|
|
17
|
-
for (const glob of globs) {
|
|
18
|
-
const path = glob;
|
|
19
|
-
if (path.length > 0) {
|
|
20
|
-
if (!joined)
|
|
21
|
-
joined = path;
|
|
22
|
-
else
|
|
23
|
-
joined += `${separator_js_1.SEP}${path}`;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (!joined)
|
|
27
|
-
return ".";
|
|
28
|
-
return (0, normalize_glob_js_1.normalizeGlob)(joined, { extended, globstar });
|
|
29
|
-
}
|
|
30
|
-
exports.joinGlobs = joinGlobs;
|
|
@@ -1,61 +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 mostly from https://github.com/browserify/path-browserify/
|
|
5
|
-
// This module is browser compatible.
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
13
|
-
}) : (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
o[k2] = m[k];
|
|
16
|
-
}));
|
|
17
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.delimiter = exports.sep = void 0;
|
|
22
|
-
/**
|
|
23
|
-
* Utilities for working with OS-specific file paths.
|
|
24
|
-
*
|
|
25
|
-
* Codes in the examples uses POSIX path but it automatically use Windows path
|
|
26
|
-
* on Windows. Use methods under `posix` or `win32` object instead to handle non
|
|
27
|
-
* platform specific path like:
|
|
28
|
-
* ```ts
|
|
29
|
-
* import { posix, win32 } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
30
|
-
* const p1 = posix.fromFileUrl("file:///home/foo");
|
|
31
|
-
* const p2 = win32.fromFileUrl("file:///home/foo");
|
|
32
|
-
* console.log(p1); // "/home/foo"
|
|
33
|
-
* console.log(p2); // "\\home\\foo"
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* This module is browser compatible.
|
|
37
|
-
*
|
|
38
|
-
* @module
|
|
39
|
-
*/
|
|
40
|
-
exports.sep = "/";
|
|
41
|
-
exports.delimiter = ":";
|
|
42
|
-
__exportStar(require("./basename.js"), exports);
|
|
43
|
-
__exportStar(require("./dirname.js"), exports);
|
|
44
|
-
__exportStar(require("./extname.js"), exports);
|
|
45
|
-
__exportStar(require("./format.js"), exports);
|
|
46
|
-
__exportStar(require("./from_file_url.js"), exports);
|
|
47
|
-
__exportStar(require("./is_absolute.js"), exports);
|
|
48
|
-
__exportStar(require("./join.js"), exports);
|
|
49
|
-
__exportStar(require("./normalize.js"), exports);
|
|
50
|
-
__exportStar(require("./parse.js"), exports);
|
|
51
|
-
__exportStar(require("./relative.js"), exports);
|
|
52
|
-
__exportStar(require("./resolve.js"), exports);
|
|
53
|
-
__exportStar(require("./to_file_url.js"), exports);
|
|
54
|
-
__exportStar(require("./to_namespaced_path.js"), exports);
|
|
55
|
-
__exportStar(require("./common.js"), exports);
|
|
56
|
-
__exportStar(require("./separator.js"), exports);
|
|
57
|
-
__exportStar(require("../_interface.js"), exports);
|
|
58
|
-
__exportStar(require("./glob_to_regexp.js"), exports);
|
|
59
|
-
__exportStar(require("./is_glob.js"), exports);
|
|
60
|
-
__exportStar(require("./join_globs.js"), exports);
|
|
61
|
-
__exportStar(require("./normalize_glob.js"), exports);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
3
|
-
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
4
|
-
* A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
|
|
5
|
-
* @param path to be normalized
|
|
6
|
-
*/
|
|
7
|
-
export declare function normalize(path: string): string;
|
|
@@ -1,29 +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.normalize = void 0;
|
|
6
|
-
const normalize_js_1 = require("../_common/normalize.js");
|
|
7
|
-
const normalize_string_js_1 = require("../_common/normalize_string.js");
|
|
8
|
-
const _util_js_1 = require("./_util.js");
|
|
9
|
-
/**
|
|
10
|
-
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
11
|
-
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
12
|
-
* A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
|
|
13
|
-
* @param path to be normalized
|
|
14
|
-
*/
|
|
15
|
-
function normalize(path) {
|
|
16
|
-
(0, normalize_js_1.assertArg)(path);
|
|
17
|
-
const isAbsolute = (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0));
|
|
18
|
-
const trailingSeparator = (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(path.length - 1));
|
|
19
|
-
// Normalize the path
|
|
20
|
-
path = (0, normalize_string_js_1.normalizeString)(path, !isAbsolute, "/", _util_js_1.isPosixPathSeparator);
|
|
21
|
-
if (path.length === 0 && !isAbsolute)
|
|
22
|
-
path = ".";
|
|
23
|
-
if (path.length > 0 && trailingSeparator)
|
|
24
|
-
path += "/";
|
|
25
|
-
if (isAbsolute)
|
|
26
|
-
return `/${path}`;
|
|
27
|
-
return path;
|
|
28
|
-
}
|
|
29
|
-
exports.normalize = normalize;
|
|
@@ -1,20 +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.normalizeGlob = void 0;
|
|
6
|
-
const normalize_js_1 = require("./normalize.js");
|
|
7
|
-
const separator_js_1 = require("./separator.js");
|
|
8
|
-
/** Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. */
|
|
9
|
-
function normalizeGlob(glob, { globstar = false } = {}) {
|
|
10
|
-
if (glob.match(/\0/g)) {
|
|
11
|
-
throw new Error(`Glob contains invalid characters: "${glob}"`);
|
|
12
|
-
}
|
|
13
|
-
if (!globstar) {
|
|
14
|
-
return (0, normalize_js_1.normalize)(glob);
|
|
15
|
-
}
|
|
16
|
-
const s = separator_js_1.SEP_PATTERN.source;
|
|
17
|
-
const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
|
|
18
|
-
return (0, normalize_js_1.normalize)(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
|
|
19
|
-
}
|
|
20
|
-
exports.normalizeGlob = normalizeGlob;
|
|
@@ -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.parse = void 0;
|
|
6
|
-
const constants_js_1 = require("../_common/constants.js");
|
|
7
|
-
const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
|
|
8
|
-
const assert_path_js_1 = require("../_common/assert_path.js");
|
|
9
|
-
const _util_js_1 = require("./_util.js");
|
|
10
|
-
/**
|
|
11
|
-
* Return a `ParsedPath` object of the `path`.
|
|
12
|
-
* @param path to process
|
|
13
|
-
*/
|
|
14
|
-
function parse(path) {
|
|
15
|
-
(0, assert_path_js_1.assertPath)(path);
|
|
16
|
-
const ret = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
17
|
-
if (path.length === 0)
|
|
18
|
-
return ret;
|
|
19
|
-
const isAbsolute = (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0));
|
|
20
|
-
let start;
|
|
21
|
-
if (isAbsolute) {
|
|
22
|
-
ret.root = "/";
|
|
23
|
-
start = 1;
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
start = 0;
|
|
27
|
-
}
|
|
28
|
-
let startDot = -1;
|
|
29
|
-
let startPart = 0;
|
|
30
|
-
let end = -1;
|
|
31
|
-
let matchedSlash = true;
|
|
32
|
-
let i = path.length - 1;
|
|
33
|
-
// Track the state of characters (if any) we see before our first dot and
|
|
34
|
-
// after any path separator we find
|
|
35
|
-
let preDotState = 0;
|
|
36
|
-
// Get non-dir info
|
|
37
|
-
for (; i >= start; --i) {
|
|
38
|
-
const code = path.charCodeAt(i);
|
|
39
|
-
if ((0, _util_js_1.isPosixPathSeparator)(code)) {
|
|
40
|
-
// If we reached a path separator that was not part of a set of path
|
|
41
|
-
// separators at the end of the string, stop now
|
|
42
|
-
if (!matchedSlash) {
|
|
43
|
-
startPart = i + 1;
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
if (end === -1) {
|
|
49
|
-
// We saw the first non-path separator, mark this as the end of our
|
|
50
|
-
// extension
|
|
51
|
-
matchedSlash = false;
|
|
52
|
-
end = i + 1;
|
|
53
|
-
}
|
|
54
|
-
if (code === constants_js_1.CHAR_DOT) {
|
|
55
|
-
// If this is our first dot, mark it as the start of our extension
|
|
56
|
-
if (startDot === -1)
|
|
57
|
-
startDot = i;
|
|
58
|
-
else if (preDotState !== 1)
|
|
59
|
-
preDotState = 1;
|
|
60
|
-
}
|
|
61
|
-
else if (startDot !== -1) {
|
|
62
|
-
// We saw a non-dot and non-path separator before our dot, so we should
|
|
63
|
-
// have a good chance at having a non-empty extension
|
|
64
|
-
preDotState = -1;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
if (startDot === -1 ||
|
|
68
|
-
end === -1 ||
|
|
69
|
-
// We saw a non-dot character immediately before the dot
|
|
70
|
-
preDotState === 0 ||
|
|
71
|
-
// The (right-most) trimmed path component is exactly '..'
|
|
72
|
-
(preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
|
|
73
|
-
if (end !== -1) {
|
|
74
|
-
if (startPart === 0 && isAbsolute) {
|
|
75
|
-
ret.base = ret.name = path.slice(1, end);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
ret.base = ret.name = path.slice(startPart, end);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
// Fallback to '/' in case there is no basename
|
|
82
|
-
ret.base = ret.base || "/";
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
if (startPart === 0 && isAbsolute) {
|
|
86
|
-
ret.name = path.slice(1, startDot);
|
|
87
|
-
ret.base = path.slice(1, end);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
ret.name = path.slice(startPart, startDot);
|
|
91
|
-
ret.base = path.slice(startPart, end);
|
|
92
|
-
}
|
|
93
|
-
ret.ext = path.slice(startDot, end);
|
|
94
|
-
}
|
|
95
|
-
if (startPart > 0) {
|
|
96
|
-
ret.dir = (0, strip_trailing_separators_js_1.stripTrailingSeparators)(path.slice(0, startPart - 1), _util_js_1.isPosixPathSeparator);
|
|
97
|
-
}
|
|
98
|
-
else if (isAbsolute)
|
|
99
|
-
ret.dir = "/";
|
|
100
|
-
return ret;
|
|
101
|
-
}
|
|
102
|
-
exports.parse = parse;
|