windmill-cli 1.586.4 → 1.587.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/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_create_walk_entry.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_same_path.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_subdir.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_to_path_string.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/copy.js +4 -5
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/empty_dir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_file.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_link.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_symlink.js +3 -4
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/expand_glob.js +36 -12
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/move.js +2 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/walk.js +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
- package/esm/deps/jsr.io/@std/io/0.225.2/read_all.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/assert_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/basename.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/dirname.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/glob_to_reg_exp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize_string.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/strip_trailing_separators.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/basename.js +4 -5
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/constants.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/dirname.js +4 -5
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/extname.js +4 -5
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/format.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/from_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/glob_to_regexp.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_absolute.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_glob.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/join.js +7 -7
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/join_globs.js +2 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.js +216 -0
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/normalize.js +4 -5
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/normalize_glob.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/parse.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/basename.js +7 -4
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/dirname.js +6 -4
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/extname.js +8 -4
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/join.js +11 -8
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/normalize.js +7 -6
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/resolve.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_namespaced_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/relative.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/resolve.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_namespaced_path.js +2 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/basename.js +7 -4
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/dirname.js +7 -6
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/extname.js +7 -6
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/join.js +10 -7
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/normalize.js +7 -6
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/resolve.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_namespaced_path.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_chars.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_dumper_state.js +14 -5
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_loader_state.js +168 -150
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_schema.js +11 -6
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/bool.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/float.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/int.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/map.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/merge.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/nil.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/omap.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/pairs.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/regexp.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/seq.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/set.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/str.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/timestamp.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/undefined.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_utils.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/parse.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/stringify.js +1 -1
- package/esm/deps.js +5 -5
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/src/commands/init/init.js +3 -3
- package/esm/src/main.js +1 -1
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.d.ts +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.8}/colors.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_create_walk_entry.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_get_file_info_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_same_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_subdir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_to_path_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/empty_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_file.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_link.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_symlink.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/eol.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/exists.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/expand_glob.d.ts +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/expand_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/move.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/walk.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/assert_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/glob_to_reg_exp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/basename.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/dirname.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/extname.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/join.d.ts +4 -4
- package/types/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.3/mod.d.ts +213 -0
- package/types/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/normalize.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/basename.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/dirname.d.ts +2 -4
- package/types/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/extname.d.ts +4 -4
- package/types/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/join.d.ts +4 -6
- package/types/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/normalize.d.ts +3 -6
- package/types/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/basename.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/extname.d.ts +3 -6
- package/types/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +18 -0
- package/types/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/normalize.d.ts +3 -6
- package/types/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_dumper_state.d.ts +8 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_dumper_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_loader_state.d.ts +14 -8
- package/types/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_schema.d.ts +7 -3
- package/types/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type.d.ts +16 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/stringify.d.ts.map +1 -0
- package/types/deps.d.ts +5 -5
- package/types/deps.d.ts.map +1 -1
- package/types/src/commands/init/init.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
- package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
- package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
- package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.js +0 -0
- /package/esm/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.8}/colors.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_dir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/eol.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/binary.js +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.8}/colors.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/empty_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_file.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_link.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_symlink.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/eol.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/exists.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/move.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/walk.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/assert_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/glob_to_reg_exp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/strip_trailing_separators.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_chars.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/binary.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/bool.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/float.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/int.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/map.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/merge.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/nil.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/omap.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/pairs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/seq.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/set.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/str.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/timestamp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/undefined.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_utils.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/stringify.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Ported from js-yaml v3.13.1:
|
|
2
2
|
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
3
3
|
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
4
|
-
// Copyright 2018-
|
|
4
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
5
5
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
6
6
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
7
7
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
@@ -186,12 +186,6 @@ export class LoaderState {
|
|
|
186
186
|
writable: true,
|
|
187
187
|
value: void 0
|
|
188
188
|
});
|
|
189
|
-
Object.defineProperty(this, "version", {
|
|
190
|
-
enumerable: true,
|
|
191
|
-
configurable: true,
|
|
192
|
-
writable: true,
|
|
193
|
-
value: void 0
|
|
194
|
-
});
|
|
195
189
|
Object.defineProperty(this, "checkLineBreaks", {
|
|
196
190
|
enumerable: true,
|
|
197
191
|
configurable: true,
|
|
@@ -240,9 +234,23 @@ export class LoaderState {
|
|
|
240
234
|
this.implicitTypes = schema.implicitTypes;
|
|
241
235
|
this.typeMap = schema.typeMap;
|
|
242
236
|
this.length = input.length;
|
|
243
|
-
this.version = null;
|
|
244
237
|
this.readIndent();
|
|
245
238
|
}
|
|
239
|
+
skipWhitespaces() {
|
|
240
|
+
let ch = this.peek();
|
|
241
|
+
while (isWhiteSpace(ch)) {
|
|
242
|
+
ch = this.next();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
skipComment() {
|
|
246
|
+
let ch = this.peek();
|
|
247
|
+
if (ch !== SHARP)
|
|
248
|
+
return;
|
|
249
|
+
ch = this.next();
|
|
250
|
+
while (ch !== 0 && !isEOL(ch)) {
|
|
251
|
+
ch = this.next();
|
|
252
|
+
}
|
|
253
|
+
}
|
|
246
254
|
readIndent() {
|
|
247
255
|
let char = this.peek();
|
|
248
256
|
while (char === SPACE) {
|
|
@@ -257,88 +265,78 @@ export class LoaderState {
|
|
|
257
265
|
this.position += 1;
|
|
258
266
|
return this.peek();
|
|
259
267
|
}
|
|
260
|
-
throwError(message) {
|
|
261
|
-
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, message);
|
|
262
|
-
}
|
|
263
268
|
dispatchWarning(message) {
|
|
264
269
|
const error = __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, message);
|
|
265
270
|
this.onWarning?.(error);
|
|
266
271
|
}
|
|
267
|
-
yamlDirectiveHandler(
|
|
268
|
-
if (this.version !== null) {
|
|
269
|
-
return this.throwError("Cannot handle YAML directive: duplication of %YAML directive");
|
|
270
|
-
}
|
|
272
|
+
yamlDirectiveHandler(args) {
|
|
271
273
|
if (args.length !== 1) {
|
|
272
|
-
|
|
274
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: YAML directive accepts exactly one argument");
|
|
273
275
|
}
|
|
274
276
|
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
275
277
|
if (match === null) {
|
|
276
|
-
|
|
278
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: ill-formed argument");
|
|
277
279
|
}
|
|
278
280
|
const major = parseInt(match[1], 10);
|
|
279
281
|
const minor = parseInt(match[2], 10);
|
|
280
282
|
if (major !== 1) {
|
|
281
|
-
|
|
283
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: unacceptable YAML version");
|
|
282
284
|
}
|
|
283
|
-
this.version = args[0] ?? null;
|
|
284
285
|
this.checkLineBreaks = minor < 2;
|
|
285
286
|
if (minor !== 1 && minor !== 2) {
|
|
286
|
-
|
|
287
|
+
this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version");
|
|
287
288
|
}
|
|
289
|
+
return args[0] ?? null;
|
|
288
290
|
}
|
|
289
|
-
tagDirectiveHandler(
|
|
291
|
+
tagDirectiveHandler(args) {
|
|
290
292
|
if (args.length !== 2) {
|
|
291
|
-
|
|
293
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`);
|
|
292
294
|
}
|
|
293
295
|
const handle = args[0];
|
|
294
296
|
const prefix = args[1];
|
|
295
297
|
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
296
|
-
|
|
298
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot handle tag directive: ill-formed handle (first argument) in "${handle}"`);
|
|
297
299
|
}
|
|
298
300
|
if (this.tagMap.has(handle)) {
|
|
299
|
-
|
|
301
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot handle tag directive: previously declared suffix for "${handle}" tag handle`);
|
|
300
302
|
}
|
|
301
303
|
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
302
|
-
|
|
304
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive");
|
|
303
305
|
}
|
|
304
306
|
this.tagMap.set(handle, prefix);
|
|
305
307
|
}
|
|
306
308
|
captureSegment(start, end, checkJson) {
|
|
307
|
-
let result;
|
|
308
309
|
if (start < end) {
|
|
309
|
-
result = this.input.slice(start, end);
|
|
310
|
+
const result = this.input.slice(start, end);
|
|
310
311
|
if (checkJson) {
|
|
311
312
|
for (let position = 0; position < result.length; position++) {
|
|
312
313
|
const character = result.charCodeAt(position);
|
|
313
314
|
if (!(character === 0x09 ||
|
|
314
315
|
(0x20 <= character && character <= 0x10ffff))) {
|
|
315
|
-
|
|
316
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Expected valid JSON character: received "${character}"`);
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
}
|
|
319
320
|
else if (PATTERN_NON_PRINTABLE.test(result)) {
|
|
320
|
-
|
|
321
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Stream contains non-printable characters");
|
|
321
322
|
}
|
|
322
323
|
this.result += result;
|
|
323
324
|
}
|
|
324
325
|
}
|
|
325
326
|
readBlockSequence(nodeIndent) {
|
|
326
|
-
let line;
|
|
327
|
-
let following;
|
|
328
327
|
let detected = false;
|
|
329
|
-
let ch;
|
|
330
328
|
const tag = this.tag;
|
|
331
329
|
const anchor = this.anchor;
|
|
332
330
|
const result = [];
|
|
333
331
|
if (this.anchor !== null && typeof this.anchor !== "undefined") {
|
|
334
332
|
this.anchorMap.set(this.anchor, result);
|
|
335
333
|
}
|
|
336
|
-
ch = this.peek();
|
|
334
|
+
let ch = this.peek();
|
|
337
335
|
while (ch !== 0) {
|
|
338
336
|
if (ch !== MINUS) {
|
|
339
337
|
break;
|
|
340
338
|
}
|
|
341
|
-
following = this.peek(1);
|
|
339
|
+
const following = this.peek(1);
|
|
342
340
|
if (!isWhiteSpaceOrEOL(following)) {
|
|
343
341
|
break;
|
|
344
342
|
}
|
|
@@ -351,13 +349,18 @@ export class LoaderState {
|
|
|
351
349
|
continue;
|
|
352
350
|
}
|
|
353
351
|
}
|
|
354
|
-
line = this.line;
|
|
355
|
-
this.composeNode(
|
|
352
|
+
const line = this.line;
|
|
353
|
+
this.composeNode({
|
|
354
|
+
parentIndent: nodeIndent,
|
|
355
|
+
nodeContext: CONTEXT_BLOCK_IN,
|
|
356
|
+
allowToSeek: false,
|
|
357
|
+
allowCompact: true,
|
|
358
|
+
});
|
|
356
359
|
result.push(this.result);
|
|
357
360
|
this.skipSeparationSpace(true, -1);
|
|
358
361
|
ch = this.peek();
|
|
359
362
|
if ((this.line === line || this.lineIndent > nodeIndent) && ch !== 0) {
|
|
360
|
-
|
|
363
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block sequence: bad indentation of a sequence entry");
|
|
361
364
|
}
|
|
362
365
|
else if (this.lineIndent < nodeIndent) {
|
|
363
366
|
break;
|
|
@@ -374,7 +377,7 @@ export class LoaderState {
|
|
|
374
377
|
}
|
|
375
378
|
mergeMappings(destination, source, overridableKeys) {
|
|
376
379
|
if (!isObject(source)) {
|
|
377
|
-
|
|
380
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot merge mappings: the provided source object is unacceptable");
|
|
378
381
|
}
|
|
379
382
|
for (const [key, value] of Object.entries(source)) {
|
|
380
383
|
if (Object.hasOwn(destination, key))
|
|
@@ -396,7 +399,7 @@ export class LoaderState {
|
|
|
396
399
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
397
400
|
for (let index = 0; index < keyNode.length; index++) {
|
|
398
401
|
if (Array.isArray(keyNode[index])) {
|
|
399
|
-
|
|
402
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot store mapping pair: nested arrays are not supported inside keys");
|
|
400
403
|
}
|
|
401
404
|
if (typeof keyNode === "object" && isPlainObject(keyNode[index])) {
|
|
402
405
|
keyNode[index] = "[object Object]";
|
|
@@ -426,7 +429,7 @@ export class LoaderState {
|
|
|
426
429
|
Object.hasOwn(result, keyNode)) {
|
|
427
430
|
this.line = startLine || this.line;
|
|
428
431
|
this.position = startPos || this.position;
|
|
429
|
-
|
|
432
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot store mapping pair: duplicated key");
|
|
430
433
|
}
|
|
431
434
|
Object.defineProperty(result, keyNode, {
|
|
432
435
|
value: valueNode,
|
|
@@ -450,7 +453,7 @@ export class LoaderState {
|
|
|
450
453
|
}
|
|
451
454
|
}
|
|
452
455
|
else {
|
|
453
|
-
|
|
456
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read line: line break not found");
|
|
454
457
|
}
|
|
455
458
|
this.line += 1;
|
|
456
459
|
this.lineStart = this.position;
|
|
@@ -459,13 +462,11 @@ export class LoaderState {
|
|
|
459
462
|
let lineBreaks = 0;
|
|
460
463
|
let ch = this.peek();
|
|
461
464
|
while (ch !== 0) {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
ch = this.next();
|
|
468
|
-
} while (ch !== LINE_FEED && ch !== CARRIAGE_RETURN && ch !== 0);
|
|
465
|
+
this.skipWhitespaces();
|
|
466
|
+
ch = this.peek();
|
|
467
|
+
if (allowComments) {
|
|
468
|
+
this.skipComment();
|
|
469
|
+
ch = this.peek();
|
|
469
470
|
}
|
|
470
471
|
if (isEOL(ch)) {
|
|
471
472
|
this.readLineBreak();
|
|
@@ -597,18 +598,17 @@ export class LoaderState {
|
|
|
597
598
|
return false;
|
|
598
599
|
}
|
|
599
600
|
readSingleQuotedScalar(nodeIndent) {
|
|
600
|
-
let ch;
|
|
601
|
-
let captureStart;
|
|
602
|
-
let captureEnd;
|
|
603
|
-
ch = this.peek();
|
|
601
|
+
let ch = this.peek();
|
|
604
602
|
if (ch !== SINGLE_QUOTE) {
|
|
605
603
|
return false;
|
|
606
604
|
}
|
|
607
605
|
this.kind = "scalar";
|
|
608
606
|
this.result = "";
|
|
609
607
|
this.position++;
|
|
610
|
-
captureStart =
|
|
611
|
-
|
|
608
|
+
let captureStart = this.position;
|
|
609
|
+
let captureEnd = this.position;
|
|
610
|
+
ch = this.peek();
|
|
611
|
+
while (ch !== 0) {
|
|
612
612
|
if (ch === SINGLE_QUOTE) {
|
|
613
613
|
this.captureSegment(captureStart, this.position, true);
|
|
614
614
|
ch = this.next();
|
|
@@ -628,14 +628,15 @@ export class LoaderState {
|
|
|
628
628
|
}
|
|
629
629
|
else if (this.position === this.lineStart &&
|
|
630
630
|
this.testDocumentSeparator()) {
|
|
631
|
-
|
|
631
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the document within a single quoted scalar");
|
|
632
632
|
}
|
|
633
633
|
else {
|
|
634
634
|
this.position++;
|
|
635
635
|
captureEnd = this.position;
|
|
636
636
|
}
|
|
637
|
+
ch = this.peek();
|
|
637
638
|
}
|
|
638
|
-
|
|
639
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the stream within a single quoted scalar");
|
|
639
640
|
}
|
|
640
641
|
readDoubleQuotedScalar(nodeIndent) {
|
|
641
642
|
let ch = this.peek();
|
|
@@ -648,7 +649,8 @@ export class LoaderState {
|
|
|
648
649
|
let captureEnd = this.position;
|
|
649
650
|
let captureStart = this.position;
|
|
650
651
|
let tmp;
|
|
651
|
-
|
|
652
|
+
ch = this.peek();
|
|
653
|
+
while (ch !== 0) {
|
|
652
654
|
if (ch === DOUBLE_QUOTE) {
|
|
653
655
|
this.captureSegment(captureStart, this.position, true);
|
|
654
656
|
this.position++;
|
|
@@ -673,14 +675,14 @@ export class LoaderState {
|
|
|
673
675
|
hexResult = (hexResult << 4) + tmp;
|
|
674
676
|
}
|
|
675
677
|
else {
|
|
676
|
-
|
|
678
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read double quoted scalar: expected hexadecimal character");
|
|
677
679
|
}
|
|
678
680
|
}
|
|
679
681
|
this.result += codepointToChar(hexResult);
|
|
680
682
|
this.position++;
|
|
681
683
|
}
|
|
682
684
|
else {
|
|
683
|
-
|
|
685
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read double quoted scalar: unknown escape sequence");
|
|
684
686
|
}
|
|
685
687
|
captureStart = captureEnd = this.position;
|
|
686
688
|
}
|
|
@@ -691,14 +693,15 @@ export class LoaderState {
|
|
|
691
693
|
}
|
|
692
694
|
else if (this.position === this.lineStart &&
|
|
693
695
|
this.testDocumentSeparator()) {
|
|
694
|
-
|
|
696
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the document within a double quoted scalar");
|
|
695
697
|
}
|
|
696
698
|
else {
|
|
697
699
|
this.position++;
|
|
698
700
|
captureEnd = this.position;
|
|
699
701
|
}
|
|
702
|
+
ch = this.peek();
|
|
700
703
|
}
|
|
701
|
-
|
|
704
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the stream within a double quoted scalar");
|
|
702
705
|
}
|
|
703
706
|
readFlowCollection(nodeIndent) {
|
|
704
707
|
let ch = this.peek();
|
|
@@ -743,7 +746,7 @@ export class LoaderState {
|
|
|
743
746
|
return true;
|
|
744
747
|
}
|
|
745
748
|
if (!readNext) {
|
|
746
|
-
|
|
749
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read flow collection: missing comma between flow collection entries");
|
|
747
750
|
}
|
|
748
751
|
keyTag = keyNode = valueNode = null;
|
|
749
752
|
isPair = isExplicitPair = false;
|
|
@@ -756,7 +759,12 @@ export class LoaderState {
|
|
|
756
759
|
}
|
|
757
760
|
}
|
|
758
761
|
line = this.line;
|
|
759
|
-
this.composeNode(
|
|
762
|
+
this.composeNode({
|
|
763
|
+
parentIndent: nodeIndent,
|
|
764
|
+
nodeContext: CONTEXT_FLOW_IN,
|
|
765
|
+
allowToSeek: false,
|
|
766
|
+
allowCompact: true,
|
|
767
|
+
});
|
|
760
768
|
keyTag = this.tag || null;
|
|
761
769
|
keyNode = this.result;
|
|
762
770
|
this.skipSeparationSpace(true, nodeIndent);
|
|
@@ -765,7 +773,12 @@ export class LoaderState {
|
|
|
765
773
|
isPair = true;
|
|
766
774
|
ch = this.next();
|
|
767
775
|
this.skipSeparationSpace(true, nodeIndent);
|
|
768
|
-
this.composeNode(
|
|
776
|
+
this.composeNode({
|
|
777
|
+
parentIndent: nodeIndent,
|
|
778
|
+
nodeContext: CONTEXT_FLOW_IN,
|
|
779
|
+
allowToSeek: false,
|
|
780
|
+
allowCompact: true,
|
|
781
|
+
});
|
|
769
782
|
valueNode = this.result;
|
|
770
783
|
}
|
|
771
784
|
if (isMapping) {
|
|
@@ -787,7 +800,7 @@ export class LoaderState {
|
|
|
787
800
|
readNext = false;
|
|
788
801
|
}
|
|
789
802
|
}
|
|
790
|
-
|
|
803
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read flow collection: unexpected end of the stream within a flow collection");
|
|
791
804
|
}
|
|
792
805
|
// Handles block scaler styles: e.g. '|', '>', '|-' and '>-'.
|
|
793
806
|
// https://yaml.org/spec/1.2.2/#81-block-scalar-styles
|
|
@@ -819,19 +832,19 @@ export class LoaderState {
|
|
|
819
832
|
chomping = ch === PLUS ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
820
833
|
}
|
|
821
834
|
else {
|
|
822
|
-
|
|
835
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: chomping mode identifier repeated");
|
|
823
836
|
}
|
|
824
837
|
}
|
|
825
838
|
else if ((tmp = decimalCharCodeToNumber(ch)) >= 0) {
|
|
826
839
|
if (tmp === 0) {
|
|
827
|
-
|
|
840
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: indentation width must be greater than 0");
|
|
828
841
|
}
|
|
829
842
|
else if (!detectedIndent) {
|
|
830
843
|
textIndent = nodeIndent + tmp - 1;
|
|
831
844
|
detectedIndent = true;
|
|
832
845
|
}
|
|
833
846
|
else {
|
|
834
|
-
|
|
847
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: indentation width identifier repeated");
|
|
835
848
|
}
|
|
836
849
|
}
|
|
837
850
|
else {
|
|
@@ -839,14 +852,9 @@ export class LoaderState {
|
|
|
839
852
|
}
|
|
840
853
|
}
|
|
841
854
|
if (isWhiteSpace(ch)) {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
if (ch === SHARP) {
|
|
846
|
-
do {
|
|
847
|
-
ch = this.next();
|
|
848
|
-
} while (!isEOL(ch) && ch !== 0);
|
|
849
|
-
}
|
|
855
|
+
this.skipWhitespaces();
|
|
856
|
+
this.skipComment();
|
|
857
|
+
ch = this.peek();
|
|
850
858
|
}
|
|
851
859
|
while (ch !== 0) {
|
|
852
860
|
this.readLineBreak();
|
|
@@ -925,7 +933,6 @@ export class LoaderState {
|
|
|
925
933
|
const anchor = this.anchor;
|
|
926
934
|
const result = {};
|
|
927
935
|
const overridableKeys = new Set();
|
|
928
|
-
let following;
|
|
929
936
|
let allowCompact = false;
|
|
930
937
|
let line;
|
|
931
938
|
let pos;
|
|
@@ -934,13 +941,12 @@ export class LoaderState {
|
|
|
934
941
|
let valueNode = null;
|
|
935
942
|
let atExplicitKey = false;
|
|
936
943
|
let detected = false;
|
|
937
|
-
let ch;
|
|
938
944
|
if (this.anchor !== null && typeof this.anchor !== "undefined") {
|
|
939
945
|
this.anchorMap.set(this.anchor, result);
|
|
940
946
|
}
|
|
941
|
-
ch = this.peek();
|
|
947
|
+
let ch = this.peek();
|
|
942
948
|
while (ch !== 0) {
|
|
943
|
-
following = this.peek(1);
|
|
949
|
+
const following = this.peek(1);
|
|
944
950
|
line = this.line; // Save the current line.
|
|
945
951
|
pos = this.position;
|
|
946
952
|
//
|
|
@@ -951,7 +957,9 @@ export class LoaderState {
|
|
|
951
957
|
if (ch === QUESTION) {
|
|
952
958
|
if (atExplicitKey) {
|
|
953
959
|
this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
|
|
954
|
-
keyTag =
|
|
960
|
+
keyTag = null;
|
|
961
|
+
keyNode = null;
|
|
962
|
+
valueNode = null;
|
|
955
963
|
}
|
|
956
964
|
detected = true;
|
|
957
965
|
atExplicitKey = true;
|
|
@@ -963,7 +971,7 @@ export class LoaderState {
|
|
|
963
971
|
allowCompact = true;
|
|
964
972
|
}
|
|
965
973
|
else {
|
|
966
|
-
|
|
974
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line");
|
|
967
975
|
}
|
|
968
976
|
this.position += 1;
|
|
969
977
|
ch = following;
|
|
@@ -971,20 +979,26 @@ export class LoaderState {
|
|
|
971
979
|
// Implicit notation case. Flow-style node as the key first, then ":", and the value.
|
|
972
980
|
//
|
|
973
981
|
}
|
|
974
|
-
else if (this.composeNode(
|
|
982
|
+
else if (this.composeNode({
|
|
983
|
+
parentIndent: flowIndent,
|
|
984
|
+
nodeContext: CONTEXT_FLOW_OUT,
|
|
985
|
+
allowToSeek: false,
|
|
986
|
+
allowCompact: true,
|
|
987
|
+
})) {
|
|
975
988
|
if (this.line === line) {
|
|
976
989
|
ch = this.peek();
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
}
|
|
990
|
+
this.skipWhitespaces();
|
|
991
|
+
ch = this.peek();
|
|
980
992
|
if (ch === COLON) {
|
|
981
993
|
ch = this.next();
|
|
982
994
|
if (!isWhiteSpaceOrEOL(ch)) {
|
|
983
|
-
|
|
995
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: a whitespace character is expected after the key-value separator within a block mapping");
|
|
984
996
|
}
|
|
985
997
|
if (atExplicitKey) {
|
|
986
998
|
this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
|
|
987
|
-
keyTag =
|
|
999
|
+
keyTag = null;
|
|
1000
|
+
keyNode = null;
|
|
1001
|
+
valueNode = null;
|
|
988
1002
|
}
|
|
989
1003
|
detected = true;
|
|
990
1004
|
atExplicitKey = false;
|
|
@@ -993,7 +1007,7 @@ export class LoaderState {
|
|
|
993
1007
|
keyNode = this.result;
|
|
994
1008
|
}
|
|
995
1009
|
else if (detected) {
|
|
996
|
-
|
|
1010
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read an implicit mapping pair: missing colon");
|
|
997
1011
|
}
|
|
998
1012
|
else {
|
|
999
1013
|
this.tag = tag;
|
|
@@ -1002,7 +1016,7 @@ export class LoaderState {
|
|
|
1002
1016
|
}
|
|
1003
1017
|
}
|
|
1004
1018
|
else if (detected) {
|
|
1005
|
-
|
|
1019
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read a block mapping entry: a multiline key may not be an implicit key");
|
|
1006
1020
|
}
|
|
1007
1021
|
else {
|
|
1008
1022
|
this.tag = tag;
|
|
@@ -1017,7 +1031,12 @@ export class LoaderState {
|
|
|
1017
1031
|
// Common reading code for both explicit and implicit notations.
|
|
1018
1032
|
//
|
|
1019
1033
|
if (this.line === line || this.lineIndent > nodeIndent) {
|
|
1020
|
-
if (this.composeNode(
|
|
1034
|
+
if (this.composeNode({
|
|
1035
|
+
parentIndent: nodeIndent,
|
|
1036
|
+
nodeContext: CONTEXT_BLOCK_OUT,
|
|
1037
|
+
allowToSeek: true,
|
|
1038
|
+
allowCompact,
|
|
1039
|
+
})) {
|
|
1021
1040
|
if (atExplicitKey) {
|
|
1022
1041
|
keyNode = this.result;
|
|
1023
1042
|
}
|
|
@@ -1033,7 +1052,7 @@ export class LoaderState {
|
|
|
1033
1052
|
ch = this.peek();
|
|
1034
1053
|
}
|
|
1035
1054
|
if (this.lineIndent > nodeIndent && ch !== 0) {
|
|
1036
|
-
|
|
1055
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: bad indentation of a mapping entry");
|
|
1037
1056
|
}
|
|
1038
1057
|
else if (this.lineIndent < nodeIndent) {
|
|
1039
1058
|
break;
|
|
@@ -1056,17 +1075,15 @@ export class LoaderState {
|
|
|
1056
1075
|
return detected;
|
|
1057
1076
|
}
|
|
1058
1077
|
readTagProperty() {
|
|
1059
|
-
let position;
|
|
1060
1078
|
let isVerbatim = false;
|
|
1061
1079
|
let isNamed = false;
|
|
1062
1080
|
let tagHandle = "";
|
|
1063
1081
|
let tagName;
|
|
1064
|
-
let ch;
|
|
1065
|
-
ch = this.peek();
|
|
1082
|
+
let ch = this.peek();
|
|
1066
1083
|
if (ch !== EXCLAMATION)
|
|
1067
1084
|
return false;
|
|
1068
1085
|
if (this.tag !== null) {
|
|
1069
|
-
|
|
1086
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: duplication of a tag property");
|
|
1070
1087
|
}
|
|
1071
1088
|
ch = this.next();
|
|
1072
1089
|
if (ch === SMALLER_THAN) {
|
|
@@ -1081,7 +1098,7 @@ export class LoaderState {
|
|
|
1081
1098
|
else {
|
|
1082
1099
|
tagHandle = "!";
|
|
1083
1100
|
}
|
|
1084
|
-
position = this.position;
|
|
1101
|
+
let position = this.position;
|
|
1085
1102
|
if (isVerbatim) {
|
|
1086
1103
|
do {
|
|
1087
1104
|
ch = this.next();
|
|
@@ -1091,7 +1108,7 @@ export class LoaderState {
|
|
|
1091
1108
|
ch = this.next();
|
|
1092
1109
|
}
|
|
1093
1110
|
else {
|
|
1094
|
-
|
|
1111
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: unexpected end of stream");
|
|
1095
1112
|
}
|
|
1096
1113
|
}
|
|
1097
1114
|
else {
|
|
@@ -1100,24 +1117,24 @@ export class LoaderState {
|
|
|
1100
1117
|
if (!isNamed) {
|
|
1101
1118
|
tagHandle = this.input.slice(position - 1, this.position + 1);
|
|
1102
1119
|
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
1103
|
-
|
|
1120
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: named tag handle contains invalid characters");
|
|
1104
1121
|
}
|
|
1105
1122
|
isNamed = true;
|
|
1106
1123
|
position = this.position + 1;
|
|
1107
1124
|
}
|
|
1108
1125
|
else {
|
|
1109
|
-
|
|
1126
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: tag suffix cannot contain an exclamation mark");
|
|
1110
1127
|
}
|
|
1111
1128
|
}
|
|
1112
1129
|
ch = this.next();
|
|
1113
1130
|
}
|
|
1114
1131
|
tagName = this.input.slice(position, this.position);
|
|
1115
1132
|
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
1116
|
-
|
|
1133
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: tag suffix cannot contain flow indicator characters");
|
|
1117
1134
|
}
|
|
1118
1135
|
}
|
|
1119
1136
|
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
1120
|
-
|
|
1137
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot read tag property: invalid characters in tag name "${tagName}"`);
|
|
1121
1138
|
}
|
|
1122
1139
|
if (isVerbatim) {
|
|
1123
1140
|
this.tag = tagName;
|
|
@@ -1132,7 +1149,7 @@ export class LoaderState {
|
|
|
1132
1149
|
this.tag = `tag:yaml.org,2002:${tagName}`;
|
|
1133
1150
|
}
|
|
1134
1151
|
else {
|
|
1135
|
-
|
|
1152
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot read tag property: undeclared tag handle "${tagHandle}"`);
|
|
1136
1153
|
}
|
|
1137
1154
|
return true;
|
|
1138
1155
|
}
|
|
@@ -1141,7 +1158,7 @@ export class LoaderState {
|
|
|
1141
1158
|
if (ch !== AMPERSAND)
|
|
1142
1159
|
return false;
|
|
1143
1160
|
if (this.anchor !== null) {
|
|
1144
|
-
|
|
1161
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read anchor property: duplicate anchor property");
|
|
1145
1162
|
}
|
|
1146
1163
|
ch = this.next();
|
|
1147
1164
|
const position = this.position;
|
|
@@ -1149,7 +1166,7 @@ export class LoaderState {
|
|
|
1149
1166
|
ch = this.next();
|
|
1150
1167
|
}
|
|
1151
1168
|
if (this.position === position) {
|
|
1152
|
-
|
|
1169
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read anchor property: name of an anchor node must contain at least one character");
|
|
1153
1170
|
}
|
|
1154
1171
|
this.anchor = this.input.slice(position, this.position);
|
|
1155
1172
|
return true;
|
|
@@ -1163,32 +1180,29 @@ export class LoaderState {
|
|
|
1163
1180
|
ch = this.next();
|
|
1164
1181
|
}
|
|
1165
1182
|
if (this.position === position) {
|
|
1166
|
-
|
|
1183
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read alias: alias name must contain at least one character");
|
|
1167
1184
|
}
|
|
1168
1185
|
const alias = this.input.slice(position, this.position);
|
|
1169
1186
|
if (!this.anchorMap.has(alias)) {
|
|
1170
|
-
|
|
1187
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot read alias: unidentified alias "${alias}"`);
|
|
1171
1188
|
}
|
|
1172
1189
|
this.result = this.anchorMap.get(alias);
|
|
1173
1190
|
this.skipSeparationSpace(true, -1);
|
|
1174
1191
|
return true;
|
|
1175
1192
|
}
|
|
1176
|
-
composeNode(parentIndent, nodeContext, allowToSeek, allowCompact) {
|
|
1177
|
-
let allowBlockScalars;
|
|
1178
|
-
let allowBlockCollections;
|
|
1193
|
+
composeNode({ parentIndent, nodeContext, allowToSeek, allowCompact }) {
|
|
1179
1194
|
let indentStatus = 1; // 1: this>parent, 0: this=parent, -1: this<parent
|
|
1180
1195
|
let atNewLine = false;
|
|
1181
1196
|
let hasContent = false;
|
|
1182
1197
|
let type;
|
|
1183
|
-
let flowIndent;
|
|
1184
|
-
let blockIndent;
|
|
1185
1198
|
this.tag = null;
|
|
1186
1199
|
this.anchor = null;
|
|
1187
1200
|
this.kind = null;
|
|
1188
1201
|
this.result = null;
|
|
1189
|
-
const
|
|
1190
|
-
|
|
1191
|
-
|
|
1202
|
+
const allowBlockScalars = CONTEXT_BLOCK_OUT === nodeContext ||
|
|
1203
|
+
CONTEXT_BLOCK_IN === nodeContext;
|
|
1204
|
+
let allowBlockCollections = allowBlockScalars;
|
|
1205
|
+
const allowBlockStyles = allowBlockScalars;
|
|
1192
1206
|
if (allowToSeek) {
|
|
1193
1207
|
if (this.skipSeparationSpace(true, -1)) {
|
|
1194
1208
|
atNewLine = true;
|
|
@@ -1229,8 +1243,8 @@ export class LoaderState {
|
|
|
1229
1243
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
1230
1244
|
const cond = CONTEXT_FLOW_IN === nodeContext ||
|
|
1231
1245
|
CONTEXT_FLOW_OUT === nodeContext;
|
|
1232
|
-
flowIndent = cond ? parentIndent : parentIndent + 1;
|
|
1233
|
-
blockIndent = this.position - this.lineStart;
|
|
1246
|
+
const flowIndent = cond ? parentIndent : parentIndent + 1;
|
|
1247
|
+
const blockIndent = this.position - this.lineStart;
|
|
1234
1248
|
if (indentStatus === 1) {
|
|
1235
1249
|
if ((allowBlockCollections &&
|
|
1236
1250
|
(this.readBlockSequence(blockIndent) ||
|
|
@@ -1247,7 +1261,7 @@ export class LoaderState {
|
|
|
1247
1261
|
else if (this.readAlias()) {
|
|
1248
1262
|
hasContent = true;
|
|
1249
1263
|
if (this.tag !== null || this.anchor !== null) {
|
|
1250
|
-
|
|
1264
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot compose node: alias node should not have any properties");
|
|
1251
1265
|
}
|
|
1252
1266
|
}
|
|
1253
1267
|
else if (this.readPlainScalar(flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
@@ -1290,11 +1304,11 @@ export class LoaderState {
|
|
|
1290
1304
|
const map = this.typeMap[this.kind ?? "fallback"];
|
|
1291
1305
|
type = map.get(this.tag);
|
|
1292
1306
|
if (this.result !== null && type.kind !== this.kind) {
|
|
1293
|
-
|
|
1307
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Unacceptable node kind for !<${this.tag}> tag: it should be "${type.kind}", not "${this.kind}"`);
|
|
1294
1308
|
}
|
|
1295
1309
|
if (!type.resolve(this.result)) {
|
|
1296
1310
|
// `state.result` updated in resolver if matched
|
|
1297
|
-
|
|
1311
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot resolve a node with !<${this.tag}> explicit tag`);
|
|
1298
1312
|
}
|
|
1299
1313
|
else {
|
|
1300
1314
|
this.result = type.construct(this.result);
|
|
@@ -1304,23 +1318,16 @@ export class LoaderState {
|
|
|
1304
1318
|
}
|
|
1305
1319
|
}
|
|
1306
1320
|
else {
|
|
1307
|
-
|
|
1321
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot resolve unknown tag !<${this.tag}>`);
|
|
1308
1322
|
}
|
|
1309
1323
|
}
|
|
1310
1324
|
return this.tag !== null || this.anchor !== null || hasContent;
|
|
1311
1325
|
}
|
|
1312
|
-
|
|
1313
|
-
const documentStart = this.position;
|
|
1314
|
-
let position;
|
|
1315
|
-
let directiveName;
|
|
1316
|
-
let directiveArgs;
|
|
1326
|
+
readDirectives() {
|
|
1317
1327
|
let hasDirectives = false;
|
|
1318
|
-
let
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
this.tagMap = new Map();
|
|
1322
|
-
this.anchorMap = new Map();
|
|
1323
|
-
while ((ch = this.peek()) !== 0) {
|
|
1328
|
+
let version = null;
|
|
1329
|
+
let ch = this.peek();
|
|
1330
|
+
while (ch !== 0) {
|
|
1324
1331
|
this.skipSeparationSpace(true, -1);
|
|
1325
1332
|
ch = this.peek();
|
|
1326
1333
|
if (this.lineIndent > 0 || ch !== PERCENT) {
|
|
@@ -1328,25 +1335,19 @@ export class LoaderState {
|
|
|
1328
1335
|
}
|
|
1329
1336
|
hasDirectives = true;
|
|
1330
1337
|
ch = this.next();
|
|
1331
|
-
position = this.position;
|
|
1338
|
+
let position = this.position;
|
|
1332
1339
|
while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
|
|
1333
1340
|
ch = this.next();
|
|
1334
1341
|
}
|
|
1335
|
-
directiveName = this.input.slice(position, this.position);
|
|
1336
|
-
directiveArgs = [];
|
|
1342
|
+
const directiveName = this.input.slice(position, this.position);
|
|
1343
|
+
const directiveArgs = [];
|
|
1337
1344
|
if (directiveName.length < 1) {
|
|
1338
|
-
|
|
1345
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read document: directive name length must be greater than zero");
|
|
1339
1346
|
}
|
|
1340
1347
|
while (ch !== 0) {
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
if (ch === SHARP) {
|
|
1345
|
-
do {
|
|
1346
|
-
ch = this.next();
|
|
1347
|
-
} while (ch !== 0 && !isEOL(ch));
|
|
1348
|
-
break;
|
|
1349
|
-
}
|
|
1348
|
+
this.skipWhitespaces();
|
|
1349
|
+
this.skipComment();
|
|
1350
|
+
ch = this.peek();
|
|
1350
1351
|
if (isEOL(ch))
|
|
1351
1352
|
break;
|
|
1352
1353
|
position = this.position;
|
|
@@ -1359,16 +1360,28 @@ export class LoaderState {
|
|
|
1359
1360
|
this.readLineBreak();
|
|
1360
1361
|
switch (directiveName) {
|
|
1361
1362
|
case "YAML":
|
|
1362
|
-
|
|
1363
|
+
if (version !== null) {
|
|
1364
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: duplication of %YAML directive");
|
|
1365
|
+
}
|
|
1366
|
+
version = this.yamlDirectiveHandler(directiveArgs);
|
|
1363
1367
|
break;
|
|
1364
1368
|
case "TAG":
|
|
1365
|
-
this.tagDirectiveHandler(
|
|
1369
|
+
this.tagDirectiveHandler(directiveArgs);
|
|
1366
1370
|
break;
|
|
1367
1371
|
default:
|
|
1368
1372
|
this.dispatchWarning(`unknown document directive "${directiveName}"`);
|
|
1369
1373
|
break;
|
|
1370
1374
|
}
|
|
1375
|
+
ch = this.peek();
|
|
1371
1376
|
}
|
|
1377
|
+
return hasDirectives;
|
|
1378
|
+
}
|
|
1379
|
+
readDocument() {
|
|
1380
|
+
const documentStart = this.position;
|
|
1381
|
+
this.checkLineBreaks = false;
|
|
1382
|
+
this.tagMap = new Map();
|
|
1383
|
+
this.anchorMap = new Map();
|
|
1384
|
+
const hasDirectives = this.readDirectives();
|
|
1372
1385
|
this.skipSeparationSpace(true, -1);
|
|
1373
1386
|
if (this.lineIndent === 0 &&
|
|
1374
1387
|
this.peek() === MINUS &&
|
|
@@ -1378,9 +1391,14 @@ export class LoaderState {
|
|
|
1378
1391
|
this.skipSeparationSpace(true, -1);
|
|
1379
1392
|
}
|
|
1380
1393
|
else if (hasDirectives) {
|
|
1381
|
-
|
|
1394
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read document: directives end mark is expected");
|
|
1382
1395
|
}
|
|
1383
|
-
this.composeNode(
|
|
1396
|
+
this.composeNode({
|
|
1397
|
+
parentIndent: this.lineIndent - 1,
|
|
1398
|
+
nodeContext: CONTEXT_BLOCK_OUT,
|
|
1399
|
+
allowToSeek: false,
|
|
1400
|
+
allowCompact: true,
|
|
1401
|
+
});
|
|
1384
1402
|
this.skipSeparationSpace(true, -1);
|
|
1385
1403
|
if (this.checkLineBreaks &&
|
|
1386
1404
|
PATTERN_NON_ASCII_LINE_BREAKS.test(this.input.slice(documentStart, this.position))) {
|
|
@@ -1393,7 +1411,7 @@ export class LoaderState {
|
|
|
1393
1411
|
}
|
|
1394
1412
|
}
|
|
1395
1413
|
else if (this.position < this.length - 1) {
|
|
1396
|
-
|
|
1414
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read document: end of the stream or a document separator is expected");
|
|
1397
1415
|
}
|
|
1398
1416
|
return this.result;
|
|
1399
1417
|
}
|