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,28 +0,0 @@
|
|
|
1
|
-
import * as _windows from "./windows/mod.js";
|
|
2
|
-
import * as _posix from "./posix/mod.js";
|
|
3
|
-
/** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/path/windows/mod.ts} instead. */
|
|
4
|
-
export declare const win32: typeof _windows;
|
|
5
|
-
/** @deprecated (will be removed after 1.0.0) Import from {@link https://deno.land/std/posix/mod.ts} instead. */
|
|
6
|
-
export declare const posix: typeof _posix;
|
|
7
|
-
export declare const sep: "/" | "\\";
|
|
8
|
-
export declare const delimiter: ":" | ";";
|
|
9
|
-
export * from "./basename.js";
|
|
10
|
-
export * from "./dirname.js";
|
|
11
|
-
export * from "./extname.js";
|
|
12
|
-
export * from "./format.js";
|
|
13
|
-
export * from "./from_file_url.js";
|
|
14
|
-
export * from "./is_absolute.js";
|
|
15
|
-
export * from "./join.js";
|
|
16
|
-
export * from "./normalize.js";
|
|
17
|
-
export * from "./parse.js";
|
|
18
|
-
export * from "./relative.js";
|
|
19
|
-
export * from "./resolve.js";
|
|
20
|
-
export * from "./to_file_url.js";
|
|
21
|
-
export * from "./to_namespaced_path.js";
|
|
22
|
-
export * from "./common.js";
|
|
23
|
-
export * from "./separator.js";
|
|
24
|
-
export * from "./_interface.js";
|
|
25
|
-
export * from "./glob_to_regexp.js";
|
|
26
|
-
export * from "./is_glob.js";
|
|
27
|
-
export * from "./join_globs.js";
|
|
28
|
-
export * from "./normalize_glob.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/**
|
|
3
|
-
* Converts a file URL to a path string.
|
|
4
|
-
*
|
|
5
|
-
* ```ts
|
|
6
|
-
* import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
|
|
7
|
-
*
|
|
8
|
-
* fromFileUrl("file:///home/foo"); // "/home/foo"
|
|
9
|
-
* ```
|
|
10
|
-
* @param url of a file URL
|
|
11
|
-
*/
|
|
12
|
-
export declare function fromFileUrl(url: URL | string): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/**
|
|
3
|
-
* Converts a file URL to a path string.
|
|
4
|
-
*
|
|
5
|
-
* ```ts
|
|
6
|
-
* import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/win32.ts";
|
|
7
|
-
*
|
|
8
|
-
* fromFileUrl("file:///home/foo"); // "\\home\\foo"
|
|
9
|
-
* fromFileUrl("file:///C:/Users/foo"); // "C:\\Users\\foo"
|
|
10
|
-
* fromFileUrl("file://localhost/home/foo"); // "\\\\localhost\\home\\foo"
|
|
11
|
-
* ```
|
|
12
|
-
* @param url of a file URL
|
|
13
|
-
*/
|
|
14
|
-
export declare function fromFileUrl(url: URL | string): string;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { GlobToRegExpOptions } from "../_common/glob_to_reg_exp.js";
|
|
2
|
-
/** Convert a glob string to a regular expression.
|
|
3
|
-
*
|
|
4
|
-
* Tries to match bash glob expansion as closely as possible.
|
|
5
|
-
*
|
|
6
|
-
* Basic glob syntax:
|
|
7
|
-
* - `*` - Matches everything without leaving the path segment.
|
|
8
|
-
* - `?` - Matches any single character.
|
|
9
|
-
* - `{foo,bar}` - Matches `foo` or `bar`.
|
|
10
|
-
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
|
11
|
-
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
|
12
|
-
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
|
13
|
-
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
|
14
|
-
* - `[[:alnum:]]` - Matches any digit or letter.
|
|
15
|
-
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
|
16
|
-
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
|
17
|
-
* for a complete list of supported character classes.
|
|
18
|
-
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
|
19
|
-
* - \` - Escapes the next character for `os` set to `"windows"`.
|
|
20
|
-
* - `/` - Path separator.
|
|
21
|
-
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
|
22
|
-
*
|
|
23
|
-
* Extended syntax:
|
|
24
|
-
* - Requires `{ extended: true }`.
|
|
25
|
-
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
|
26
|
-
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
|
27
|
-
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
|
28
|
-
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
|
29
|
-
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
|
30
|
-
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
31
|
-
*
|
|
32
|
-
* Globstar syntax:
|
|
33
|
-
* - Requires `{ globstar: true }`.
|
|
34
|
-
* - `**` - Matches any number of any path segments.
|
|
35
|
-
* - Must comprise its entire path segment in the provided glob.
|
|
36
|
-
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
37
|
-
*
|
|
38
|
-
* Note the following properties:
|
|
39
|
-
* - The generated `RegExp` is anchored at both start and end.
|
|
40
|
-
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
|
41
|
-
* provided glob have no meaning and are discarded.
|
|
42
|
-
* - Absolute globs will only match absolute paths, etc.
|
|
43
|
-
* - Empty globs will match nothing.
|
|
44
|
-
* - Any special glob syntax must be contained to one path segment. For example,
|
|
45
|
-
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
|
46
|
-
* first segment ends with an unclosed group.
|
|
47
|
-
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
|
48
|
-
* parse error has occurred. Every character for that segment is taken
|
|
49
|
-
* literally in this event.
|
|
50
|
-
*
|
|
51
|
-
* Limitations:
|
|
52
|
-
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
|
53
|
-
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
|
54
|
-
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
55
|
-
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
56
|
-
* the group occurs not nested at the end of the segment. */
|
|
57
|
-
export declare function globToRegExp(glob: string, options?: GlobToRegExpOptions): RegExp;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utilities for working with OS-specific file paths.
|
|
3
|
-
*
|
|
4
|
-
* Codes in the examples uses POSIX path but it automatically use Windows path
|
|
5
|
-
* on Windows. Use methods under `posix` or `win32` object instead to handle non
|
|
6
|
-
* platform specific path like:
|
|
7
|
-
* ```ts
|
|
8
|
-
* import { posix, win32 } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
9
|
-
* const p1 = posix.fromFileUrl("file:///home/foo");
|
|
10
|
-
* const p2 = win32.fromFileUrl("file:///home/foo");
|
|
11
|
-
* console.log(p1); // "/home/foo"
|
|
12
|
-
* console.log(p2); // "\\home\\foo"
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* This module is browser compatible.
|
|
16
|
-
*
|
|
17
|
-
* @module
|
|
18
|
-
*/
|
|
19
|
-
export declare const sep = "\\";
|
|
20
|
-
export declare const delimiter = ";";
|
|
21
|
-
export * from "./basename.js";
|
|
22
|
-
export * from "./dirname.js";
|
|
23
|
-
export * from "./extname.js";
|
|
24
|
-
export * from "./format.js";
|
|
25
|
-
export * from "./from_file_url.js";
|
|
26
|
-
export * from "./is_absolute.js";
|
|
27
|
-
export * from "./join.js";
|
|
28
|
-
export * from "./normalize.js";
|
|
29
|
-
export * from "./parse.js";
|
|
30
|
-
export * from "./relative.js";
|
|
31
|
-
export * from "./resolve.js";
|
|
32
|
-
export * from "./to_file_url.js";
|
|
33
|
-
export * from "./to_namespaced_path.js";
|
|
34
|
-
export * from "./common.js";
|
|
35
|
-
export * from "./separator.js";
|
|
36
|
-
export * from "../_interface.js";
|
|
37
|
-
export * from "./glob_to_regexp.js";
|
|
38
|
-
export * from "./is_glob.js";
|
|
39
|
-
export * from "./join_globs.js";
|
|
40
|
-
export * from "./normalize_glob.js";
|
|
@@ -1,14 +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/win32.ts";
|
|
7
|
-
*
|
|
8
|
-
* toFileUrl("\\home\\foo"); // new URL("file:///home/foo")
|
|
9
|
-
* toFileUrl("C:\\Users\\foo"); // new URL("file:///C:/Users/foo")
|
|
10
|
-
* toFileUrl("\\\\127.0.0.1\\home\\foo"); // new URL("file://127.0.0.1/home/foo")
|
|
11
|
-
* ```
|
|
12
|
-
* @param path to convert to file URL
|
|
13
|
-
*/
|
|
14
|
-
export declare function toFileUrl(path: string): URL;
|
package/script/_dnt.shims.d.ts
DELETED
package/script/_dnt.shims.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dntGlobalThis = exports.Deno = void 0;
|
|
4
|
-
const shim_deno_1 = require("@deno/shim-deno");
|
|
5
|
-
var shim_deno_2 = require("@deno/shim-deno");
|
|
6
|
-
Object.defineProperty(exports, "Deno", { enumerable: true, get: function () { return shim_deno_2.Deno; } });
|
|
7
|
-
const dntGlobals = {
|
|
8
|
-
Deno: shim_deno_1.Deno,
|
|
9
|
-
};
|
|
10
|
-
exports.dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
|
|
11
|
-
function createMergeProxy(baseObj, extObj) {
|
|
12
|
-
return new Proxy(baseObj, {
|
|
13
|
-
get(_target, prop, _receiver) {
|
|
14
|
-
if (prop in extObj) {
|
|
15
|
-
return extObj[prop];
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return baseObj[prop];
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
set(_target, prop, value) {
|
|
22
|
-
if (prop in extObj) {
|
|
23
|
-
delete extObj[prop];
|
|
24
|
-
}
|
|
25
|
-
baseObj[prop] = value;
|
|
26
|
-
return true;
|
|
27
|
-
},
|
|
28
|
-
deleteProperty(_target, prop) {
|
|
29
|
-
let success = false;
|
|
30
|
-
if (prop in extObj) {
|
|
31
|
-
delete extObj[prop];
|
|
32
|
-
success = true;
|
|
33
|
-
}
|
|
34
|
-
if (prop in baseObj) {
|
|
35
|
-
delete baseObj[prop];
|
|
36
|
-
success = true;
|
|
37
|
-
}
|
|
38
|
-
return success;
|
|
39
|
-
},
|
|
40
|
-
ownKeys(_target) {
|
|
41
|
-
const baseKeys = Reflect.ownKeys(baseObj);
|
|
42
|
-
const extKeys = Reflect.ownKeys(extObj);
|
|
43
|
-
const extKeysSet = new Set(extKeys);
|
|
44
|
-
return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
|
|
45
|
-
},
|
|
46
|
-
defineProperty(_target, prop, desc) {
|
|
47
|
-
if (prop in extObj) {
|
|
48
|
-
delete extObj[prop];
|
|
49
|
-
}
|
|
50
|
-
Reflect.defineProperty(baseObj, prop, desc);
|
|
51
|
-
return true;
|
|
52
|
-
},
|
|
53
|
-
getOwnPropertyDescriptor(_target, prop) {
|
|
54
|
-
if (prop in extObj) {
|
|
55
|
-
return Reflect.getOwnPropertyDescriptor(extObj, prop);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
return Reflect.getOwnPropertyDescriptor(baseObj, prop);
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
has(_target, prop) {
|
|
62
|
-
return prop in extObj || prop in baseObj;
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Make an assertion, error will be thrown if `expr` does not have truthy value.
|
|
3
|
-
*
|
|
4
|
-
* @example
|
|
5
|
-
* ```ts
|
|
6
|
-
* import { assert } from "https://deno.land/std@$STD_VERSION/assert/assert.ts";
|
|
7
|
-
*
|
|
8
|
-
* assert("hello".includes("ello")); // Doesn't throw
|
|
9
|
-
* assert("hello".includes("world")); // Throws
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
export declare function assert(expr: unknown, msg?: string): asserts expr;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assert = void 0;
|
|
4
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
5
|
-
const assertion_error_js_1 = require("./assertion_error.js");
|
|
6
|
-
/**
|
|
7
|
-
* Make an assertion, error will be thrown if `expr` does not have truthy value.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* import { assert } from "https://deno.land/std@$STD_VERSION/assert/assert.ts";
|
|
12
|
-
*
|
|
13
|
-
* assert("hello".includes("ello")); // Doesn't throw
|
|
14
|
-
* assert("hello".includes("world")); // Throws
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
function assert(expr, msg = "") {
|
|
18
|
-
if (!expr) {
|
|
19
|
-
throw new assertion_error_js_1.AssertionError(msg);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.assert = assert;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error thrown when an assertion fails.
|
|
3
|
-
*
|
|
4
|
-
* @example
|
|
5
|
-
* ```ts
|
|
6
|
-
* import { AssertionError } from "https://deno.land/std@$STD_VERSION/assert/assertion_error.ts";
|
|
7
|
-
*
|
|
8
|
-
* throw new AssertionError("Assertion failed");
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export declare class AssertionError extends Error {
|
|
12
|
-
/** Constructs a new instance. */
|
|
13
|
-
constructor(message: string);
|
|
14
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AssertionError = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Error thrown when an assertion fails.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* import { AssertionError } from "https://deno.land/std@$STD_VERSION/assert/assertion_error.ts";
|
|
11
|
-
*
|
|
12
|
-
* throw new AssertionError("Assertion failed");
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
class AssertionError extends Error {
|
|
16
|
-
/** Constructs a new instance. */
|
|
17
|
-
constructor(message) {
|
|
18
|
-
super(message);
|
|
19
|
-
this.name = "AssertionError";
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.AssertionError = AssertionError;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export type EntityList = Record<string, string>;
|
|
2
|
-
/**
|
|
3
|
-
* Escapes text for safe interpolation into HTML text content and quoted attributes
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```ts
|
|
7
|
-
* import { escape } from "https://deno.land/std@$STD_VERSION/html/entities.ts";
|
|
8
|
-
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
|
|
9
|
-
*
|
|
10
|
-
* assertEquals(escape("<>'&AA"), "<>'&AA");
|
|
11
|
-
*
|
|
12
|
-
* // characters that don't need to be escaped will be left alone,
|
|
13
|
-
* // even if named HTML entities exist for them
|
|
14
|
-
* assertEquals(escape("þð"), "þð");
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare function escape(str: string): string;
|
|
18
|
-
export type UnescapeOptions = {
|
|
19
|
-
entityList: EntityList;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Unescapes HTML entities in text
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* import { unescape } from "https://deno.land/std@$STD_VERSION/html/entities.ts";
|
|
27
|
-
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
|
|
28
|
-
*
|
|
29
|
-
* // default options (only handles &<>'" and numeric entities)
|
|
30
|
-
* assertEquals(unescape("<>'&AA"), "<>'&AA");
|
|
31
|
-
* assertEquals(unescape("þð"), "þð");
|
|
32
|
-
*
|
|
33
|
-
* // using the full named entity list from the HTML spec (~47K unminified)
|
|
34
|
-
* import entityList from "https://deno.land/std@$STD_VERSION/html/named_entity_list.json" assert { type: "json" };
|
|
35
|
-
* assertEquals(unescape("þð", { entityList }), "þð");
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare function unescape(str: string, options?: Partial<UnescapeOptions>): string;
|
|
@@ -1,81 +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.unescape = exports.escape = void 0;
|
|
6
|
-
const rawToEntityEntries = [
|
|
7
|
-
["&", "&"],
|
|
8
|
-
["<", "<"],
|
|
9
|
-
[">", ">"],
|
|
10
|
-
['"', """],
|
|
11
|
-
["'", "'"],
|
|
12
|
-
];
|
|
13
|
-
const defaultEntityList = Object.fromEntries([
|
|
14
|
-
...rawToEntityEntries.map(([raw, entity]) => [entity, raw]),
|
|
15
|
-
["'", "'"],
|
|
16
|
-
[" ", "\xa0"],
|
|
17
|
-
]);
|
|
18
|
-
const rawToEntity = new Map(rawToEntityEntries);
|
|
19
|
-
const rawRe = new RegExp(`[${[...rawToEntity.keys()].join("")}]`, "g");
|
|
20
|
-
/**
|
|
21
|
-
* Escapes text for safe interpolation into HTML text content and quoted attributes
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* import { escape } from "https://deno.land/std@$STD_VERSION/html/entities.ts";
|
|
26
|
-
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
|
|
27
|
-
*
|
|
28
|
-
* assertEquals(escape("<>'&AA"), "<>'&AA");
|
|
29
|
-
*
|
|
30
|
-
* // characters that don't need to be escaped will be left alone,
|
|
31
|
-
* // even if named HTML entities exist for them
|
|
32
|
-
* assertEquals(escape("þð"), "þð");
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
function escape(str) {
|
|
36
|
-
return str.replaceAll(rawRe, (m) => rawToEntity.get(m));
|
|
37
|
-
}
|
|
38
|
-
exports.escape = escape;
|
|
39
|
-
const defaultUnescapeOptions = {
|
|
40
|
-
entityList: defaultEntityList,
|
|
41
|
-
};
|
|
42
|
-
const MAX_CODE_POINT = 0x10ffff;
|
|
43
|
-
const RX_DEC_ENTITY = /&#([0-9]+);/g;
|
|
44
|
-
const RX_HEX_ENTITY = /&#x(\p{AHex}+);/gu;
|
|
45
|
-
const entityListRegexCache = new WeakMap();
|
|
46
|
-
/**
|
|
47
|
-
* Unescapes HTML entities in text
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* import { unescape } from "https://deno.land/std@$STD_VERSION/html/entities.ts";
|
|
52
|
-
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
|
|
53
|
-
*
|
|
54
|
-
* // default options (only handles &<>'" and numeric entities)
|
|
55
|
-
* assertEquals(unescape("<>'&AA"), "<>'&AA");
|
|
56
|
-
* assertEquals(unescape("þð"), "þð");
|
|
57
|
-
*
|
|
58
|
-
* // using the full named entity list from the HTML spec (~47K unminified)
|
|
59
|
-
* import entityList from "https://deno.land/std@$STD_VERSION/html/named_entity_list.json" assert { type: "json" };
|
|
60
|
-
* assertEquals(unescape("þð", { entityList }), "þð");
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
function unescape(str, options = {}) {
|
|
64
|
-
const { entityList } = { ...defaultUnescapeOptions, ...options };
|
|
65
|
-
let entityRe = entityListRegexCache.get(entityList);
|
|
66
|
-
if (!entityRe) {
|
|
67
|
-
entityRe = new RegExp(`(${Object.keys(entityList)
|
|
68
|
-
.sort((a, b) => b.length - a.length)
|
|
69
|
-
.join("|")})`, "g");
|
|
70
|
-
entityListRegexCache.set(entityList, entityRe);
|
|
71
|
-
}
|
|
72
|
-
return str
|
|
73
|
-
.replaceAll(entityRe, (m) => entityList[m])
|
|
74
|
-
.replaceAll(RX_DEC_ENTITY, (_, dec) => codePointStrToChar(dec, 10))
|
|
75
|
-
.replaceAll(RX_HEX_ENTITY, (_, hex) => codePointStrToChar(hex, 16));
|
|
76
|
-
}
|
|
77
|
-
exports.unescape = unescape;
|
|
78
|
-
function codePointStrToChar(codePointStr, radix) {
|
|
79
|
-
const codePoint = parseInt(codePointStr, radix);
|
|
80
|
-
return codePoint > MAX_CODE_POINT ? "�" : String.fromCodePoint(codePoint);
|
|
81
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
-
}
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
/**
|
|
20
|
-
* Functions for HTML tasks such as escaping or unescaping HTML entities
|
|
21
|
-
*
|
|
22
|
-
* @module
|
|
23
|
-
*/
|
|
24
|
-
__exportStar(require("./entities.js"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function assertPath(path: string): void;
|
|
@@ -1,11 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.assertPath = void 0;
|
|
6
|
-
function assertPath(path) {
|
|
7
|
-
if (typeof path !== "string") {
|
|
8
|
-
throw new TypeError(`Path must be a string. Received ${JSON.stringify(path)}`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.assertPath = assertPath;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function stripSuffix(name: string, suffix: string): string;
|
|
2
|
-
export declare function lastPathSegment(path: string, isSep: (char: number) => boolean, start?: number): string;
|
|
3
|
-
export declare function assertArgs(path: string, suffix: string): string | undefined;
|
|
@@ -1,46 +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.assertArgs = exports.lastPathSegment = exports.stripSuffix = void 0;
|
|
6
|
-
const assert_path_js_1 = require("./assert_path.js");
|
|
7
|
-
function stripSuffix(name, suffix) {
|
|
8
|
-
if (suffix.length >= name.length) {
|
|
9
|
-
return name;
|
|
10
|
-
}
|
|
11
|
-
const lenDiff = name.length - suffix.length;
|
|
12
|
-
for (let i = suffix.length - 1; i >= 0; --i) {
|
|
13
|
-
if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
|
|
14
|
-
return name;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return name.slice(0, -suffix.length);
|
|
18
|
-
}
|
|
19
|
-
exports.stripSuffix = stripSuffix;
|
|
20
|
-
function lastPathSegment(path, isSep, start = 0) {
|
|
21
|
-
let matchedNonSeparator = false;
|
|
22
|
-
let end = path.length;
|
|
23
|
-
for (let i = path.length - 1; i >= start; --i) {
|
|
24
|
-
if (isSep(path.charCodeAt(i))) {
|
|
25
|
-
if (matchedNonSeparator) {
|
|
26
|
-
start = i + 1;
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
else if (!matchedNonSeparator) {
|
|
31
|
-
matchedNonSeparator = true;
|
|
32
|
-
end = i + 1;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return path.slice(start, end);
|
|
36
|
-
}
|
|
37
|
-
exports.lastPathSegment = lastPathSegment;
|
|
38
|
-
function assertArgs(path, suffix) {
|
|
39
|
-
(0, assert_path_js_1.assertPath)(path);
|
|
40
|
-
if (path.length === 0)
|
|
41
|
-
return path;
|
|
42
|
-
if (typeof suffix !== "string") {
|
|
43
|
-
throw new TypeError(`Suffix must be a string. Received ${JSON.stringify(suffix)}`);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.assertArgs = assertArgs;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function _common(paths: string[], sep: string): string;
|
|
@@ -1,27 +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
|
-
function _common(paths, sep) {
|
|
7
|
-
const [first = "", ...remaining] = paths;
|
|
8
|
-
if (first === "" || remaining.length === 0) {
|
|
9
|
-
return first.substring(0, first.lastIndexOf(sep) + 1);
|
|
10
|
-
}
|
|
11
|
-
const parts = first.split(sep);
|
|
12
|
-
let endOfPrefix = parts.length;
|
|
13
|
-
for (const path of remaining) {
|
|
14
|
-
const compare = path.split(sep);
|
|
15
|
-
for (let i = 0; i < endOfPrefix; i++) {
|
|
16
|
-
if (compare[i] !== parts[i]) {
|
|
17
|
-
endOfPrefix = i;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
if (endOfPrefix === 0) {
|
|
21
|
-
return "";
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
const prefix = parts.slice(0, endOfPrefix).join(sep);
|
|
25
|
-
return prefix.endsWith(sep) ? prefix : `${prefix}${sep}`;
|
|
26
|
-
}
|
|
27
|
-
exports._common = _common;
|