@skmtc/core 0.0.491 → 0.0.493
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/context/GenerateContext.d.ts +6 -6
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +6 -3
- package/esm/dsl/ContentSettings.d.ts +6 -4
- package/esm/dsl/ContentSettings.d.ts.map +1 -1
- package/esm/dsl/ContentSettings.js +10 -2
- package/esm/dsl/GatewayBase.d.ts +5 -5
- package/esm/dsl/GatewayBase.d.ts.map +1 -1
- package/esm/dsl/Inserted.d.ts +5 -5
- package/esm/dsl/Inserted.d.ts.map +1 -1
- package/esm/dsl/model/ModelBase.d.ts +6 -6
- package/esm/dsl/model/ModelBase.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.d.ts +1 -1
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelInsertable.d.ts +4 -3
- package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.d.ts +7 -5
- package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.js +6 -0
- package/esm/dsl/operation/OperationBase.d.ts +7 -7
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/OperationInsertable.d.ts +8 -6
- package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationGateway.d.ts +4 -2
- package/esm/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationGateway.js +6 -0
- package/esm/dsl/operation/toOperationInsertable.d.ts +6 -6
- package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/package.json +27 -13
- package/script/_dnt.polyfills.d.ts +12 -0
- package/script/_dnt.polyfills.d.ts.map +1 -0
- package/script/_dnt.polyfills.js +16 -0
- package/script/_dnt.shims.d.ts +6 -0
- package/script/_dnt.shims.d.ts.map +1 -0
- package/script/_dnt.shims.js +65 -0
- package/script/context/CoreContext.d.ts +58 -0
- package/script/context/CoreContext.d.ts.map +1 -0
- package/script/context/CoreContext.js +227 -0
- package/script/context/GenerateContext.d.ts +232 -0
- package/script/context/GenerateContext.d.ts.map +1 -0
- package/script/context/GenerateContext.js +513 -0
- package/script/context/ParseContext.d.ts +34 -0
- package/script/context/ParseContext.d.ts.map +1 -0
- package/script/context/ParseContext.js +131 -0
- package/script/context/RenderContext.d.ts +38 -0
- package/script/context/RenderContext.d.ts.map +1 -0
- package/script/context/RenderContext.js +227 -0
- package/script/context/ResultsHandler.d.ts +19 -0
- package/script/context/ResultsHandler.d.ts.map +1 -0
- package/script/context/ResultsHandler.js +56 -0
- package/script/context/StackTrail.d.ts +14 -0
- package/script/context/StackTrail.d.ts.map +1 -0
- package/script/context/StackTrail.js +85 -0
- package/script/context/types.d.ts +23 -0
- package/script/context/types.d.ts.map +1 -0
- package/script/context/types.js +2 -0
- package/script/deps/jsr.io/@std/fmt/1.0.2/colors.d.ts +700 -0
- package/script/deps/jsr.io/@std/fmt/1.0.2/colors.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fmt/1.0.2/colors.js +976 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +218 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.js +298 -0
- package/script/deps/jsr.io/@std/io/0.224.9/types.d.ts +146 -0
- package/script/deps/jsr.io/@std/io/0.224.9/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/io/0.224.9/types.js +18 -0
- package/script/deps/jsr.io/@std/io/0.224.9/write_all.d.ts +51 -0
- package/script/deps/jsr.io/@std/io/0.224.9/write_all.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/io/0.224.9/write_all.js +65 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_config.d.ts +4 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_config.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_config.js +17 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.d.ts +8 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.js +11 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_state.d.ts +8 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_state.js +10 -0
- package/script/deps/jsr.io/@std/log/0.224.8/base_handler.d.ts +22 -0
- package/script/deps/jsr.io/@std/log/0.224.8/base_handler.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/base_handler.js +64 -0
- package/script/deps/jsr.io/@std/log/0.224.8/console_handler.d.ts +18 -0
- package/script/deps/jsr.io/@std/log/0.224.8/console_handler.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/console_handler.js +63 -0
- package/script/deps/jsr.io/@std/log/0.224.8/critical.d.ts +5 -0
- package/script/deps/jsr.io/@std/log/0.224.8/critical.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/critical.js +13 -0
- package/script/deps/jsr.io/@std/log/0.224.8/debug.d.ts +5 -0
- package/script/deps/jsr.io/@std/log/0.224.8/debug.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/debug.js +13 -0
- package/script/deps/jsr.io/@std/log/0.224.8/error.d.ts +5 -0
- package/script/deps/jsr.io/@std/log/0.224.8/error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/error.js +13 -0
- package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts +54 -0
- package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/file_handler.js +162 -0
- package/script/deps/jsr.io/@std/log/0.224.8/formatters.d.ts +6 -0
- package/script/deps/jsr.io/@std/log/0.224.8/formatters.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/formatters.js +23 -0
- package/script/deps/jsr.io/@std/log/0.224.8/get_logger.d.ts +4 -0
- package/script/deps/jsr.io/@std/log/0.224.8/get_logger.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/get_logger.js +24 -0
- package/script/deps/jsr.io/@std/log/0.224.8/info.d.ts +5 -0
- package/script/deps/jsr.io/@std/log/0.224.8/info.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/info.js +13 -0
- package/script/deps/jsr.io/@std/log/0.224.8/levels.d.ts +26 -0
- package/script/deps/jsr.io/@std/log/0.224.8/levels.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/levels.js +48 -0
- package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts +63 -0
- package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/logger.js +185 -0
- package/script/deps/jsr.io/@std/log/0.224.8/mod.d.ts +390 -0
- package/script/deps/jsr.io/@std/log/0.224.8/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/mod.js +406 -0
- package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.d.ts +53 -0
- package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.js +152 -0
- package/script/deps/jsr.io/@std/log/0.224.8/setup.d.ts +4 -0
- package/script/deps/jsr.io/@std/log/0.224.8/setup.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/setup.js +44 -0
- package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts +51 -0
- package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/warn.js +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +237 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.js +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.js +39 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts +54 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.js +73 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +38 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +53 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +76 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +118 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +109 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts +38 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +47 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +115 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +84 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +77 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +137 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +179 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +134 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +180 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +52 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +6 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +710 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +73 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +152 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +7 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.js +23 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +5 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +1324 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +44 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +154 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +11 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.js +85 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +6 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.js +19 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.js +110 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +35 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.js +109 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +41 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.js +171 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.js +14 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.js +15 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +17 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +39 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +40 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +43 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +38 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.js +40 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.js +14 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +28 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.js +13 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.js +81 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.js +23 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +20 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.js +74 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +49 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.js +67 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +36 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.js +22 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.js +15 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +18 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +31 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +40 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +15 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +17 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +6 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +18 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +23 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.js +107 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +9 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.js +17 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +29 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.js +87 -0
- package/script/dsl/ContentSettings.d.ts +21 -0
- package/script/dsl/ContentSettings.d.ts.map +1 -0
- package/script/dsl/ContentSettings.js +44 -0
- package/script/dsl/Definition.d.ts +19 -0
- package/script/dsl/Definition.d.ts.map +1 -0
- package/script/dsl/Definition.js +41 -0
- package/script/dsl/EntityType.d.ts +6 -0
- package/script/dsl/EntityType.d.ts.map +1 -0
- package/script/dsl/EntityType.js +22 -0
- package/script/dsl/File.d.ts +26 -0
- package/script/dsl/File.d.ts.map +1 -0
- package/script/dsl/File.js +101 -0
- package/script/dsl/GatewayBase.d.ts +13 -0
- package/script/dsl/GatewayBase.d.ts.map +1 -0
- package/script/dsl/GatewayBase.js +23 -0
- package/script/dsl/GeneratedValueList.d.ts +9 -0
- package/script/dsl/GeneratedValueList.d.ts.map +1 -0
- package/script/dsl/GeneratedValueList.js +31 -0
- package/script/dsl/Identifier.d.ts +11 -0
- package/script/dsl/Identifier.d.ts.map +1 -0
- package/script/dsl/Identifier.js +52 -0
- package/script/dsl/Import.d.ts +22 -0
- package/script/dsl/Import.d.ts.map +1 -0
- package/script/dsl/Import.js +60 -0
- package/script/dsl/Inserted.d.ts +18 -0
- package/script/dsl/Inserted.d.ts.map +1 -0
- package/script/dsl/Inserted.js +34 -0
- package/script/dsl/Stringable.d.ts +4 -0
- package/script/dsl/Stringable.d.ts.map +1 -0
- package/script/dsl/Stringable.js +2 -0
- package/script/dsl/ValueBase.d.ts +16 -0
- package/script/dsl/ValueBase.d.ts.map +1 -0
- package/script/dsl/ValueBase.js +46 -0
- package/script/dsl/constants.d.ts +2 -0
- package/script/dsl/constants.d.ts.map +1 -0
- package/script/dsl/constants.js +4 -0
- package/script/dsl/model/ModelBase.d.ts +23 -0
- package/script/dsl/model/ModelBase.d.ts.map +1 -0
- package/script/dsl/model/ModelBase.js +45 -0
- package/script/dsl/model/ModelDriver.d.ts +27 -0
- package/script/dsl/model/ModelDriver.d.ts.map +1 -0
- package/script/dsl/model/ModelDriver.js +105 -0
- package/script/dsl/model/ModelInsertable.d.ts +30 -0
- package/script/dsl/model/ModelInsertable.d.ts.map +1 -0
- package/script/dsl/model/ModelInsertable.js +2 -0
- package/script/dsl/model/toModelInsertable.d.ts +38 -0
- package/script/dsl/model/toModelInsertable.d.ts.map +1 -0
- package/script/dsl/model/toModelInsertable.js +81 -0
- package/script/dsl/operation/OperationBase.d.ts +36 -0
- package/script/dsl/operation/OperationBase.d.ts.map +1 -0
- package/script/dsl/operation/OperationBase.js +61 -0
- package/script/dsl/operation/OperationDriver.d.ts +27 -0
- package/script/dsl/operation/OperationDriver.d.ts.map +1 -0
- package/script/dsl/operation/OperationDriver.js +107 -0
- package/script/dsl/operation/OperationInsertable.d.ts +45 -0
- package/script/dsl/operation/OperationInsertable.d.ts.map +1 -0
- package/script/dsl/operation/OperationInsertable.js +2 -0
- package/script/dsl/operation/toOperationGateway.d.ts +31 -0
- package/script/dsl/operation/toOperationGateway.d.ts.map +1 -0
- package/script/dsl/operation/toOperationGateway.js +74 -0
- package/script/dsl/operation/toOperationInsertable.d.ts +44 -0
- package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -0
- package/script/dsl/operation/toOperationInsertable.js +75 -0
- package/script/helpers/ResultsLog.d.ts +8 -0
- package/script/helpers/ResultsLog.d.ts.map +1 -0
- package/script/helpers/ResultsLog.js +50 -0
- package/script/helpers/isImported.d.ts +2 -0
- package/script/helpers/isImported.d.ts.map +1 -0
- package/script/helpers/isImported.js +8 -0
- package/script/helpers/naming.d.ts +9 -0
- package/script/helpers/naming.d.ts.map +1 -0
- package/script/helpers/naming.js +33 -0
- package/script/helpers/refFns.d.ts +8 -0
- package/script/helpers/refFns.d.ts.map +1 -0
- package/script/helpers/refFns.js +24 -0
- package/script/helpers/strings.d.ts +9 -0
- package/script/helpers/strings.d.ts.map +1 -0
- package/script/helpers/strings.js +25 -0
- package/script/helpers/toResolvedArtifactPath.d.ts +8 -0
- package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -0
- package/script/helpers/toResolvedArtifactPath.js +9 -0
- package/script/helpers/tracer.d.ts +3 -0
- package/script/helpers/tracer.d.ts.map +1 -0
- package/script/helpers/tracer.js +10 -0
- package/script/mod.d.ts +75 -0
- package/script/mod.d.ts.map +1 -0
- package/script/mod.js +90 -0
- package/script/oas/array/Array.d.ts +58 -0
- package/script/oas/array/Array.d.ts.map +1 -0
- package/script/oas/array/Array.js +117 -0
- package/script/oas/array/array-types.d.ts +13 -0
- package/script/oas/array/array-types.d.ts.map +1 -0
- package/script/oas/array/array-types.js +20 -0
- package/script/oas/array/toArray.d.ts +10 -0
- package/script/oas/array/toArray.d.ts.map +1 -0
- package/script/oas/array/toArray.js +20 -0
- package/script/oas/boolean/Boolean.d.ts +48 -0
- package/script/oas/boolean/Boolean.d.ts.map +1 -0
- package/script/oas/boolean/Boolean.js +97 -0
- package/script/oas/boolean/boolean-types.d.ts +10 -0
- package/script/oas/boolean/boolean-types.d.ts.map +1 -0
- package/script/oas/boolean/boolean-types.js +11 -0
- package/script/oas/boolean/toBoolean.d.ts +10 -0
- package/script/oas/boolean/toBoolean.d.ts.map +1 -0
- package/script/oas/boolean/toBoolean.js +17 -0
- package/script/oas/components/Components.d.ts +43 -0
- package/script/oas/components/Components.d.ts.map +1 -0
- package/script/oas/components/Components.js +66 -0
- package/script/oas/components/toComponentsV3.d.ts +10 -0
- package/script/oas/components/toComponentsV3.d.ts.map +1 -0
- package/script/oas/components/toComponentsV3.js +37 -0
- package/script/oas/contact/Contact.d.ts +15 -0
- package/script/oas/contact/Contact.d.ts.map +1 -0
- package/script/oas/contact/Contact.js +42 -0
- package/script/oas/contact/toContactV3.d.ts +5 -0
- package/script/oas/contact/toContactV3.d.ts.map +1 -0
- package/script/oas/contact/toContactV3.js +19 -0
- package/script/oas/discriminator/Discriminator.d.ts +9 -0
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -0
- package/script/oas/discriminator/Discriminator.js +21 -0
- package/script/oas/discriminator/discriminator-types.d.ts +8 -0
- package/script/oas/discriminator/discriminator-types.d.ts.map +1 -0
- package/script/oas/discriminator/discriminator-types.js +9 -0
- package/script/oas/discriminator/toDiscriminatorV3.d.ts +10 -0
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -0
- package/script/oas/discriminator/toDiscriminatorV3.js +16 -0
- package/script/oas/document/Document.d.ts +33 -0
- package/script/oas/document/Document.d.ts.map +1 -0
- package/script/oas/document/Document.js +77 -0
- package/script/oas/document/toDocumentFieldsV3.d.ts +10 -0
- package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -0
- package/script/oas/document/toDocumentFieldsV3.js +25 -0
- package/script/oas/example/Example.d.ts +28 -0
- package/script/oas/example/Example.d.ts.map +1 -0
- package/script/oas/example/Example.js +59 -0
- package/script/oas/example/example-types.d.ts +9 -0
- package/script/oas/example/example-types.d.ts.map +1 -0
- package/script/oas/example/example-types.js +12 -0
- package/script/oas/example/toExamplesV3.d.ts +22 -0
- package/script/oas/example/toExamplesV3.d.ts.map +1 -0
- package/script/oas/example/toExamplesV3.js +49 -0
- package/script/oas/header/Header.d.ts +45 -0
- package/script/oas/header/Header.d.ts.map +1 -0
- package/script/oas/header/Header.js +84 -0
- package/script/oas/header/toHeadersV3.d.ts +11 -0
- package/script/oas/header/toHeadersV3.d.ts.map +1 -0
- package/script/oas/header/toHeadersV3.js +41 -0
- package/script/oas/info/Info.d.ts +25 -0
- package/script/oas/info/Info.d.ts.map +1 -0
- package/script/oas/info/Info.js +51 -0
- package/script/oas/info/toInfoV3.d.ts +10 -0
- package/script/oas/info/toInfoV3.d.ts.map +1 -0
- package/script/oas/info/toInfoV3.js +24 -0
- package/script/oas/integer/Integer.d.ts +55 -0
- package/script/oas/integer/Integer.d.ts.map +1 -0
- package/script/oas/integer/Integer.js +116 -0
- package/script/oas/integer/integer-types.d.ts +13 -0
- package/script/oas/integer/integer-types.d.ts.map +1 -0
- package/script/oas/integer/integer-types.js +22 -0
- package/script/oas/integer/toInteger.d.ts +10 -0
- package/script/oas/integer/toInteger.d.ts.map +1 -0
- package/script/oas/integer/toInteger.js +20 -0
- package/script/oas/intersection/Intersection.d.ts +30 -0
- package/script/oas/intersection/Intersection.d.ts.map +1 -0
- package/script/oas/intersection/Intersection.js +87 -0
- package/script/oas/intersection/intersection-types.d.ts +14 -0
- package/script/oas/intersection/intersection-types.d.ts.map +1 -0
- package/script/oas/intersection/intersection-types.js +15 -0
- package/script/oas/intersection/toIntersection.d.ts +11 -0
- package/script/oas/intersection/toIntersection.d.ts.map +1 -0
- package/script/oas/intersection/toIntersection.js +20 -0
- package/script/oas/license/License.d.ts +13 -0
- package/script/oas/license/License.d.ts.map +1 -0
- package/script/oas/license/License.js +35 -0
- package/script/oas/license/toLicenseV3.d.ts +5 -0
- package/script/oas/license/toLicenseV3.d.ts.map +1 -0
- package/script/oas/license/toLicenseV3.js +18 -0
- package/script/oas/markdown/markdown-types.d.ts +3 -0
- package/script/oas/markdown/markdown-types.d.ts.map +1 -0
- package/script/oas/markdown/markdown-types.js +5 -0
- package/script/oas/mediaType/MediaType.d.ts +18 -0
- package/script/oas/mediaType/MediaType.d.ts.map +1 -0
- package/script/oas/mediaType/MediaType.js +42 -0
- package/script/oas/mediaType/mediaType-types.d.ts +12 -0
- package/script/oas/mediaType/mediaType-types.d.ts.map +1 -0
- package/script/oas/mediaType/mediaType-types.js +15 -0
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts +21 -0
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
- package/script/oas/mediaType/toMediaTypeItemV3.js +45 -0
- package/script/oas/null/null-types.d.ts +10 -0
- package/script/oas/null/null-types.d.ts.map +1 -0
- package/script/oas/null/null-types.js +11 -0
- package/script/oas/number/Number.d.ts +48 -0
- package/script/oas/number/Number.d.ts.map +1 -0
- package/script/oas/number/Number.js +97 -0
- package/script/oas/number/number-types.d.ts +10 -0
- package/script/oas/number/number-types.d.ts.map +1 -0
- package/script/oas/number/number-types.js +17 -0
- package/script/oas/number/toNumber.d.ts +10 -0
- package/script/oas/number/toNumber.d.ts.map +1 -0
- package/script/oas/number/toNumber.js +20 -0
- package/script/oas/object/Object.d.ts +92 -0
- package/script/oas/object/Object.d.ts.map +1 -0
- package/script/oas/object/Object.js +196 -0
- package/script/oas/object/object-types.d.ts +15 -0
- package/script/oas/object/object-types.d.ts.map +1 -0
- package/script/oas/object/object-types.js +30 -0
- package/script/oas/object/toAdditionalPropertiesV3.d.ts +11 -0
- package/script/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -0
- package/script/oas/object/toAdditionalPropertiesV3.js +14 -0
- package/script/oas/object/toObject.d.ts +10 -0
- package/script/oas/object/toObject.d.ts.map +1 -0
- package/script/oas/object/toObject.js +29 -0
- package/script/oas/operation/Operation.d.ts +56 -0
- package/script/oas/operation/Operation.d.ts.map +1 -0
- package/script/oas/operation/Operation.js +134 -0
- package/script/oas/operation/toOperationsV3.d.ts +23 -0
- package/script/oas/operation/toOperationsV3.d.ts.map +1 -0
- package/script/oas/operation/toOperationsV3.js +84 -0
- package/script/oas/parameter/Parameter.d.ts +42 -0
- package/script/oas/parameter/Parameter.d.ts.map +1 -0
- package/script/oas/parameter/Parameter.js +126 -0
- package/script/oas/parameter/parameter-types.d.ts +26 -0
- package/script/oas/parameter/parameter-types.d.ts.map +1 -0
- package/script/oas/parameter/parameter-types.js +41 -0
- package/script/oas/parameter/toParameterV3.d.ts +21 -0
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -0
- package/script/oas/parameter/toParameterV3.js +87 -0
- package/script/oas/pathItem/PathItem.d.ts +17 -0
- package/script/oas/pathItem/PathItem.d.ts.map +1 -0
- package/script/oas/pathItem/PathItem.js +42 -0
- package/script/oas/pathItem/toPathItemV3.d.ts +10 -0
- package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -0
- package/script/oas/pathItem/toPathItemV3.js +16 -0
- package/script/oas/ref/Ref.d.ts +37 -0
- package/script/oas/ref/Ref.d.ts.map +1 -0
- package/script/oas/ref/Ref.js +106 -0
- package/script/oas/ref/ref-types.d.ts +52 -0
- package/script/oas/ref/ref-types.d.ts.map +1 -0
- package/script/oas/ref/ref-types.js +57 -0
- package/script/oas/ref/toRefV31.d.ts +12 -0
- package/script/oas/ref/toRefV31.d.ts.map +1 -0
- package/script/oas/ref/toRefV31.js +16 -0
- package/script/oas/requestBody/RequestBody.d.ts +22 -0
- package/script/oas/requestBody/RequestBody.d.ts.map +1 -0
- package/script/oas/requestBody/RequestBody.js +54 -0
- package/script/oas/requestBody/toRequestBodiesV3.d.ts +17 -0
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -0
- package/script/oas/requestBody/toRequestBodiesV3.js +43 -0
- package/script/oas/response/Response.d.ts +23 -0
- package/script/oas/response/Response.d.ts.map +1 -0
- package/script/oas/response/Response.js +54 -0
- package/script/oas/response/toResponseV3.d.ts +21 -0
- package/script/oas/response/toResponseV3.d.ts.map +1 -0
- package/script/oas/response/toResponseV3.js +40 -0
- package/script/oas/schema/Schema.d.ts +14 -0
- package/script/oas/schema/Schema.d.ts.map +1 -0
- package/script/oas/schema/Schema.js +2 -0
- package/script/oas/schema/schema-types.d.ts +14 -0
- package/script/oas/schema/schema-types.d.ts.map +1 -0
- package/script/oas/schema/schema-types.js +26 -0
- package/script/oas/schema/toSchemasV3.d.ts +28 -0
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -0
- package/script/oas/schema/toSchemasV3.js +101 -0
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +12 -0
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -0
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +26 -0
- package/script/oas/string/String.d.ts +66 -0
- package/script/oas/string/String.d.ts.map +1 -0
- package/script/oas/string/String.js +142 -0
- package/script/oas/string/string-types.d.ts +18 -0
- package/script/oas/string/string-types.d.ts.map +1 -0
- package/script/oas/string/string-types.js +35 -0
- package/script/oas/string/toString.d.ts +10 -0
- package/script/oas/string/toString.d.ts.map +1 -0
- package/script/oas/string/toString.js +44 -0
- package/script/oas/tag/Tag.d.ts +15 -0
- package/script/oas/tag/Tag.d.ts.map +1 -0
- package/script/oas/tag/Tag.js +39 -0
- package/script/oas/tag/toTagsV3.d.ts +15 -0
- package/script/oas/tag/toTagsV3.d.ts.map +1 -0
- package/script/oas/tag/toTagsV3.js +26 -0
- package/script/oas/union/Union.d.ts +66 -0
- package/script/oas/union/Union.d.ts.map +1 -0
- package/script/oas/union/Union.js +122 -0
- package/script/oas/union/toUnion.d.ts +11 -0
- package/script/oas/union/toUnion.d.ts.map +1 -0
- package/script/oas/union/toUnion.js +24 -0
- package/script/oas/union/union-types.d.ts +14 -0
- package/script/oas/union/union-types.d.ts.map +1 -0
- package/script/oas/union/union-types.js +15 -0
- package/script/oas/unknown/Unknown.d.ts +45 -0
- package/script/oas/unknown/Unknown.d.ts.map +1 -0
- package/script/oas/unknown/Unknown.js +86 -0
- package/script/oas/unknown/toUnknown.d.ts +10 -0
- package/script/oas/unknown/toUnknown.d.ts.map +1 -0
- package/script/oas/unknown/toUnknown.js +19 -0
- package/script/oas/unknown/unknown-types.d.ts +10 -0
- package/script/oas/unknown/unknown-types.d.ts.map +1 -0
- package/script/oas/unknown/unknown-types.js +11 -0
- package/script/oas/void/Void.d.ts +35 -0
- package/script/oas/void/Void.d.ts.map +1 -0
- package/script/oas/void/Void.js +64 -0
- package/script/package.json +3 -0
- package/script/run/enrichSettings.d.ts +9 -0
- package/script/run/enrichSettings.d.ts.map +1 -0
- package/script/run/enrichSettings.js +13 -0
- package/script/run/handleEnrichment.d.ts +3 -0
- package/script/run/handleEnrichment.d.ts.map +1 -0
- package/script/run/handleEnrichment.js +71 -0
- package/script/run/toEnrichments.d.ts +13 -0
- package/script/run/toEnrichments.d.ts.map +1 -0
- package/script/run/toEnrichments.js +42 -0
- package/script/run/toSettings.d.ts +12 -0
- package/script/run/toSettings.d.ts.map +1 -0
- package/script/run/toSettings.js +78 -0
- package/script/run/transform.d.ts +20 -0
- package/script/run/transform.d.ts.map +1 -0
- package/script/run/transform.js +51 -0
- package/script/types/Brand.d.ts +7 -0
- package/script/types/Brand.d.ts.map +1 -0
- package/script/types/Brand.js +3 -0
- package/script/types/CustomValue.d.ts +22 -0
- package/script/types/CustomValue.d.ts.map +1 -0
- package/script/types/CustomValue.js +39 -0
- package/script/types/EnrichmentRequest.d.ts +8 -0
- package/script/types/EnrichmentRequest.d.ts.map +1 -0
- package/script/types/EnrichmentRequest.js +3 -0
- package/script/types/Extensions.d.ts +7 -0
- package/script/types/Extensions.d.ts.map +1 -0
- package/script/types/Extensions.js +6 -0
- package/script/types/GeneratedValue.d.ts +19 -0
- package/script/types/GeneratedValue.d.ts.map +1 -0
- package/script/types/GeneratedValue.js +2 -0
- package/script/types/GeneratorKeys.d.ts +50 -0
- package/script/types/GeneratorKeys.d.ts.map +1 -0
- package/script/types/GeneratorKeys.js +95 -0
- package/script/types/GeneratorType.d.ts +9 -0
- package/script/types/GeneratorType.d.ts.map +1 -0
- package/script/types/GeneratorType.js +2 -0
- package/script/types/Manifest.d.ts +121 -0
- package/script/types/Manifest.d.ts.map +1 -0
- package/script/types/Manifest.js +30 -0
- package/script/types/Method.d.ts +11 -0
- package/script/types/Method.d.ts.map +1 -0
- package/script/types/Method.js +39 -0
- package/script/types/Modifiers.d.ts +6 -0
- package/script/types/Modifiers.d.ts.map +1 -0
- package/script/types/Modifiers.js +2 -0
- package/script/types/RefName.d.ts +4 -0
- package/script/types/RefName.d.ts.map +1 -0
- package/script/types/RefName.js +3 -0
- package/script/types/Results.d.ts +10 -0
- package/script/types/Results.d.ts.map +1 -0
- package/script/types/Results.js +7 -0
- package/script/types/Settings.d.ts +306 -0
- package/script/types/Settings.d.ts.map +1 -0
- package/script/types/Settings.js +45 -0
- package/script/types/TypeSystem.d.ts +152 -0
- package/script/types/TypeSystem.d.ts.map +1 -0
- package/script/types/TypeSystem.js +2 -0
- package/script/types/prettierConfig.d.ts +27 -0
- package/script/types/prettierConfig.d.ts.map +1 -0
- package/script/types/prettierConfig.js +49 -0
- package/script/typescript/FunctionParameter.d.ts +34 -0
- package/script/typescript/FunctionParameter.d.ts.map +1 -0
- package/script/typescript/FunctionParameter.js +84 -0
- package/script/typescript/List.d.ts +147 -0
- package/script/typescript/List.d.ts.map +1 -0
- package/script/typescript/List.js +312 -0
- package/script/typescript/PathParams.d.ts +20 -0
- package/script/typescript/PathParams.d.ts.map +1 -0
- package/script/typescript/PathParams.js +53 -0
- package/script/typescript/ReactRouterPathParams.d.ts +20 -0
- package/script/typescript/ReactRouterPathParams.d.ts.map +1 -0
- package/script/typescript/ReactRouterPathParams.js +53 -0
- package/script/typescript/identifiers.d.ts +3 -0
- package/script/typescript/identifiers.d.ts.map +1 -0
- package/script/typescript/identifiers.js +12 -0
- package/script/typescript/keyValues.d.ts +3 -0
- package/script/typescript/keyValues.d.ts.map +1 -0
- package/script/typescript/keyValues.js +15 -0
- package/script/typescript/toPathTemplate.d.ts +2 -0
- package/script/typescript/toPathTemplate.d.ts.map +1 -0
- package/script/typescript/toPathTemplate.js +7 -0
- package/script/typescript/withDescription.d.ts +4 -0
- package/script/typescript/withDescription.d.ts.map +1 -0
- package/script/typescript/withDescription.js +7 -0
|
@@ -0,0 +1,1324 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Ported from js-yaml v3.13.1:
|
|
3
|
+
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
4
|
+
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
5
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
+
if (mod && mod.__esModule) return mod;
|
|
24
|
+
var result = {};
|
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
+
__setModuleDefault(result, mod);
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.loadAll = loadAll;
|
|
31
|
+
exports.load = load;
|
|
32
|
+
const _error_js_1 = require("../_error.js");
|
|
33
|
+
const _mark_js_1 = require("../_mark.js");
|
|
34
|
+
const common = __importStar(require("../_utils.js"));
|
|
35
|
+
const loader_state_js_1 = require("./loader_state.js");
|
|
36
|
+
const { hasOwn } = Object;
|
|
37
|
+
const CONTEXT_FLOW_IN = 1;
|
|
38
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
39
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
40
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
41
|
+
const CHOMPING_CLIP = 1;
|
|
42
|
+
const CHOMPING_STRIP = 2;
|
|
43
|
+
const CHOMPING_KEEP = 3;
|
|
44
|
+
const PATTERN_NON_PRINTABLE =
|
|
45
|
+
// deno-lint-ignore no-control-regex
|
|
46
|
+
/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
47
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
48
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
|
|
49
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
|
|
50
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
51
|
+
function _class(obj) {
|
|
52
|
+
return Object.prototype.toString.call(obj);
|
|
53
|
+
}
|
|
54
|
+
function isEOL(c) {
|
|
55
|
+
return c === 0x0a || /* LF */ c === 0x0d /* CR */;
|
|
56
|
+
}
|
|
57
|
+
function isWhiteSpace(c) {
|
|
58
|
+
return c === 0x09 || /* Tab */ c === 0x20 /* Space */;
|
|
59
|
+
}
|
|
60
|
+
function isWsOrEol(c) {
|
|
61
|
+
return (c === 0x09 /* Tab */ ||
|
|
62
|
+
c === 0x20 /* Space */ ||
|
|
63
|
+
c === 0x0a /* LF */ ||
|
|
64
|
+
c === 0x0d /* CR */);
|
|
65
|
+
}
|
|
66
|
+
function isFlowIndicator(c) {
|
|
67
|
+
return (c === 0x2c /* , */ ||
|
|
68
|
+
c === 0x5b /* [ */ ||
|
|
69
|
+
c === 0x5d /* ] */ ||
|
|
70
|
+
c === 0x7b /* { */ ||
|
|
71
|
+
c === 0x7d /* } */);
|
|
72
|
+
}
|
|
73
|
+
function fromHexCode(c) {
|
|
74
|
+
if (0x30 <= /* 0 */ c && c <= 0x39 /* 9 */) {
|
|
75
|
+
return c - 0x30;
|
|
76
|
+
}
|
|
77
|
+
const lc = c | 0x20;
|
|
78
|
+
if (0x61 <= /* a */ lc && lc <= 0x66 /* f */) {
|
|
79
|
+
return lc - 0x61 + 10;
|
|
80
|
+
}
|
|
81
|
+
return -1;
|
|
82
|
+
}
|
|
83
|
+
function escapedHexLen(c) {
|
|
84
|
+
if (c === 0x78 /* x */) {
|
|
85
|
+
return 2;
|
|
86
|
+
}
|
|
87
|
+
if (c === 0x75 /* u */) {
|
|
88
|
+
return 4;
|
|
89
|
+
}
|
|
90
|
+
if (c === 0x55 /* U */) {
|
|
91
|
+
return 8;
|
|
92
|
+
}
|
|
93
|
+
return 0;
|
|
94
|
+
}
|
|
95
|
+
function fromDecimalCode(c) {
|
|
96
|
+
if (0x30 <= /* 0 */ c && c <= 0x39 /* 9 */) {
|
|
97
|
+
return c - 0x30;
|
|
98
|
+
}
|
|
99
|
+
return -1;
|
|
100
|
+
}
|
|
101
|
+
function simpleEscapeSequence(c) {
|
|
102
|
+
return c === 0x30 /* 0 */
|
|
103
|
+
? "\x00"
|
|
104
|
+
: c === 0x61 /* a */
|
|
105
|
+
? "\x07"
|
|
106
|
+
: c === 0x62 /* b */
|
|
107
|
+
? "\x08"
|
|
108
|
+
: c === 0x74 /* t */
|
|
109
|
+
? "\x09"
|
|
110
|
+
: c === 0x09 /* Tab */
|
|
111
|
+
? "\x09"
|
|
112
|
+
: c === 0x6e /* n */
|
|
113
|
+
? "\x0A"
|
|
114
|
+
: c === 0x76 /* v */
|
|
115
|
+
? "\x0B"
|
|
116
|
+
: c === 0x66 /* f */
|
|
117
|
+
? "\x0C"
|
|
118
|
+
: c === 0x72 /* r */
|
|
119
|
+
? "\x0D"
|
|
120
|
+
: c === 0x65 /* e */
|
|
121
|
+
? "\x1B"
|
|
122
|
+
: c === 0x20 /* Space */
|
|
123
|
+
? " "
|
|
124
|
+
: c === 0x22 /* " */
|
|
125
|
+
? "\x22"
|
|
126
|
+
: c === 0x2f /* / */
|
|
127
|
+
? "/"
|
|
128
|
+
: c === 0x5c /* \ */
|
|
129
|
+
? "\x5C"
|
|
130
|
+
: c === 0x4e /* N */
|
|
131
|
+
? "\x85"
|
|
132
|
+
: c === 0x5f /* _ */
|
|
133
|
+
? "\xA0"
|
|
134
|
+
: c === 0x4c /* L */
|
|
135
|
+
? "\u2028"
|
|
136
|
+
: c === 0x50 /* P */
|
|
137
|
+
? "\u2029"
|
|
138
|
+
: "";
|
|
139
|
+
}
|
|
140
|
+
function charFromCodepoint(c) {
|
|
141
|
+
if (c <= 0xffff) {
|
|
142
|
+
return String.fromCharCode(c);
|
|
143
|
+
}
|
|
144
|
+
// Encode UTF-16 surrogate pair
|
|
145
|
+
// https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
|
|
146
|
+
return String.fromCharCode(((c - 0x010000) >> 10) + 0xd800, ((c - 0x010000) & 0x03ff) + 0xdc00);
|
|
147
|
+
}
|
|
148
|
+
const simpleEscapeCheck = Array.from({ length: 256 }); // integer, for fast access
|
|
149
|
+
const simpleEscapeMap = Array.from({ length: 256 });
|
|
150
|
+
for (let i = 0; i < 256; i++) {
|
|
151
|
+
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
152
|
+
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
153
|
+
}
|
|
154
|
+
function generateError(state, message) {
|
|
155
|
+
return new _error_js_1.YAMLError(message, new _mark_js_1.Mark(state.filename, state.input, state.position, state.line, state.position - state.lineStart));
|
|
156
|
+
}
|
|
157
|
+
function throwError(state, message) {
|
|
158
|
+
throw generateError(state, message);
|
|
159
|
+
}
|
|
160
|
+
function throwWarning(state, message) {
|
|
161
|
+
if (state.onWarning) {
|
|
162
|
+
state.onWarning.call(null, generateError(state, message));
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
const directiveHandlers = {
|
|
166
|
+
YAML(state, _name, ...args) {
|
|
167
|
+
if (state.version !== null) {
|
|
168
|
+
return throwError(state, "duplication of %YAML directive");
|
|
169
|
+
}
|
|
170
|
+
if (args.length !== 1) {
|
|
171
|
+
return throwError(state, "YAML directive accepts exactly one argument");
|
|
172
|
+
}
|
|
173
|
+
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
174
|
+
if (match === null) {
|
|
175
|
+
return throwError(state, "ill-formed argument of the YAML directive");
|
|
176
|
+
}
|
|
177
|
+
const major = parseInt(match[1], 10);
|
|
178
|
+
const minor = parseInt(match[2], 10);
|
|
179
|
+
if (major !== 1) {
|
|
180
|
+
return throwError(state, "unacceptable YAML version of the document");
|
|
181
|
+
}
|
|
182
|
+
state.version = args[0];
|
|
183
|
+
state.checkLineBreaks = minor < 2;
|
|
184
|
+
if (minor !== 1 && minor !== 2) {
|
|
185
|
+
return throwWarning(state, "unsupported YAML version of the document");
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
TAG(state, _name, ...args) {
|
|
189
|
+
if (args.length !== 2) {
|
|
190
|
+
return throwError(state, "TAG directive accepts exactly two arguments");
|
|
191
|
+
}
|
|
192
|
+
const handle = args[0];
|
|
193
|
+
const prefix = args[1];
|
|
194
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
195
|
+
return throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
196
|
+
}
|
|
197
|
+
if (state.tagMap && hasOwn(state.tagMap, handle)) {
|
|
198
|
+
return throwError(state, `there is a previously declared suffix for "${handle}" tag handle`);
|
|
199
|
+
}
|
|
200
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
201
|
+
return throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
202
|
+
}
|
|
203
|
+
if (typeof state.tagMap === "undefined") {
|
|
204
|
+
state.tagMap = Object.create(null);
|
|
205
|
+
}
|
|
206
|
+
state.tagMap[handle] = prefix;
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
function captureSegment(state, start, end, checkJson) {
|
|
210
|
+
let result;
|
|
211
|
+
if (start < end) {
|
|
212
|
+
result = state.input.slice(start, end);
|
|
213
|
+
if (checkJson) {
|
|
214
|
+
for (let position = 0, length = result.length; position < length; position++) {
|
|
215
|
+
const character = result.charCodeAt(position);
|
|
216
|
+
if (!(character === 0x09 || (0x20 <= character && character <= 0x10ffff))) {
|
|
217
|
+
return throwError(state, "expected valid JSON character");
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
else if (PATTERN_NON_PRINTABLE.test(result)) {
|
|
222
|
+
return throwError(state, "the stream contains non-printable characters");
|
|
223
|
+
}
|
|
224
|
+
state.result += result;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
function mergeMappings(state, destination, source, overridableKeys) {
|
|
228
|
+
if (!common.isObject(source)) {
|
|
229
|
+
return throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
230
|
+
}
|
|
231
|
+
const keys = Object.keys(source);
|
|
232
|
+
for (let i = 0, len = keys.length; i < len; i++) {
|
|
233
|
+
const key = keys[i];
|
|
234
|
+
if (!hasOwn(destination, key)) {
|
|
235
|
+
Object.defineProperty(destination, key, {
|
|
236
|
+
value: source[key],
|
|
237
|
+
writable: true,
|
|
238
|
+
enumerable: true,
|
|
239
|
+
configurable: true,
|
|
240
|
+
});
|
|
241
|
+
overridableKeys[key] = true;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
function storeMappingPair(state, result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
|
|
246
|
+
// The output is a plain object here, so keys can only be strings.
|
|
247
|
+
// We need to convert keyNode to a string, but doing so can hang the process
|
|
248
|
+
// (deeply nested arrays that explode exponentially using aliases).
|
|
249
|
+
if (Array.isArray(keyNode)) {
|
|
250
|
+
keyNode = Array.prototype.slice.call(keyNode);
|
|
251
|
+
for (let index = 0, quantity = keyNode.length; index < quantity; index++) {
|
|
252
|
+
if (Array.isArray(keyNode[index])) {
|
|
253
|
+
return throwError(state, "nested arrays are not supported inside keys");
|
|
254
|
+
}
|
|
255
|
+
if (typeof keyNode === "object" &&
|
|
256
|
+
_class(keyNode[index]) === "[object Object]") {
|
|
257
|
+
keyNode[index] = "[object Object]";
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
// Avoid code execution in load() via toString property
|
|
262
|
+
// (still use its own toString for arrays, timestamps,
|
|
263
|
+
// and whatever user schema extensions happen to have @@toStringTag)
|
|
264
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
265
|
+
keyNode = "[object Object]";
|
|
266
|
+
}
|
|
267
|
+
keyNode = String(keyNode);
|
|
268
|
+
if (result === null) {
|
|
269
|
+
result = {};
|
|
270
|
+
}
|
|
271
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
272
|
+
if (Array.isArray(valueNode)) {
|
|
273
|
+
for (let index = 0, quantity = valueNode.length; index < quantity; index++) {
|
|
274
|
+
mergeMappings(state, result, valueNode[index], overridableKeys);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
mergeMappings(state, result, valueNode, overridableKeys);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
if (!state.json &&
|
|
283
|
+
!hasOwn(overridableKeys, keyNode) &&
|
|
284
|
+
hasOwn(result, keyNode)) {
|
|
285
|
+
state.line = startLine || state.line;
|
|
286
|
+
state.position = startPos || state.position;
|
|
287
|
+
return throwError(state, "duplicated mapping key");
|
|
288
|
+
}
|
|
289
|
+
Object.defineProperty(result, keyNode, {
|
|
290
|
+
value: valueNode,
|
|
291
|
+
writable: true,
|
|
292
|
+
enumerable: true,
|
|
293
|
+
configurable: true,
|
|
294
|
+
});
|
|
295
|
+
delete overridableKeys[keyNode];
|
|
296
|
+
}
|
|
297
|
+
return result;
|
|
298
|
+
}
|
|
299
|
+
function readLineBreak(state) {
|
|
300
|
+
const ch = state.input.charCodeAt(state.position);
|
|
301
|
+
if (ch === 0x0a /* LF */) {
|
|
302
|
+
state.position++;
|
|
303
|
+
}
|
|
304
|
+
else if (ch === 0x0d /* CR */) {
|
|
305
|
+
state.position++;
|
|
306
|
+
if (state.input.charCodeAt(state.position) === 0x0a /* LF */) {
|
|
307
|
+
state.position++;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
return throwError(state, "a line break is expected");
|
|
312
|
+
}
|
|
313
|
+
state.line += 1;
|
|
314
|
+
state.lineStart = state.position;
|
|
315
|
+
}
|
|
316
|
+
function skipSeparationSpace(state, allowComments, checkIndent) {
|
|
317
|
+
let lineBreaks = 0, ch = state.input.charCodeAt(state.position);
|
|
318
|
+
while (ch !== 0) {
|
|
319
|
+
while (isWhiteSpace(ch)) {
|
|
320
|
+
ch = state.input.charCodeAt(++state.position);
|
|
321
|
+
}
|
|
322
|
+
if (allowComments && ch === 0x23 /* # */) {
|
|
323
|
+
do {
|
|
324
|
+
ch = state.input.charCodeAt(++state.position);
|
|
325
|
+
} while (ch !== 0x0a && /* LF */ ch !== 0x0d && /* CR */ ch !== 0);
|
|
326
|
+
}
|
|
327
|
+
if (isEOL(ch)) {
|
|
328
|
+
readLineBreak(state);
|
|
329
|
+
ch = state.input.charCodeAt(state.position);
|
|
330
|
+
lineBreaks++;
|
|
331
|
+
state.lineIndent = 0;
|
|
332
|
+
while (ch === 0x20 /* Space */) {
|
|
333
|
+
state.lineIndent++;
|
|
334
|
+
ch = state.input.charCodeAt(++state.position);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
else {
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
if (checkIndent !== -1 &&
|
|
342
|
+
lineBreaks !== 0 &&
|
|
343
|
+
state.lineIndent < checkIndent) {
|
|
344
|
+
throwWarning(state, "deficient indentation");
|
|
345
|
+
}
|
|
346
|
+
return lineBreaks;
|
|
347
|
+
}
|
|
348
|
+
function testDocumentSeparator(state) {
|
|
349
|
+
let _position = state.position;
|
|
350
|
+
let ch = state.input.charCodeAt(_position);
|
|
351
|
+
// Condition state.position === state.lineStart is tested
|
|
352
|
+
// in parent on each call, for efficiency. No needs to test here again.
|
|
353
|
+
if ((ch === 0x2d || /* - */ ch === 0x2e) /* . */ &&
|
|
354
|
+
ch === state.input.charCodeAt(_position + 1) &&
|
|
355
|
+
ch === state.input.charCodeAt(_position + 2)) {
|
|
356
|
+
_position += 3;
|
|
357
|
+
ch = state.input.charCodeAt(_position);
|
|
358
|
+
if (ch === 0 || isWsOrEol(ch)) {
|
|
359
|
+
return true;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return false;
|
|
363
|
+
}
|
|
364
|
+
function writeFoldedLines(state, count) {
|
|
365
|
+
if (count === 1) {
|
|
366
|
+
state.result += " ";
|
|
367
|
+
}
|
|
368
|
+
else if (count > 1) {
|
|
369
|
+
state.result += common.repeat("\n", count - 1);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
373
|
+
const kind = state.kind;
|
|
374
|
+
const result = state.result;
|
|
375
|
+
let ch = state.input.charCodeAt(state.position);
|
|
376
|
+
if (isWsOrEol(ch) ||
|
|
377
|
+
isFlowIndicator(ch) ||
|
|
378
|
+
ch === 0x23 /* # */ ||
|
|
379
|
+
ch === 0x26 /* & */ ||
|
|
380
|
+
ch === 0x2a /* * */ ||
|
|
381
|
+
ch === 0x21 /* ! */ ||
|
|
382
|
+
ch === 0x7c /* | */ ||
|
|
383
|
+
ch === 0x3e /* > */ ||
|
|
384
|
+
ch === 0x27 /* ' */ ||
|
|
385
|
+
ch === 0x22 /* " */ ||
|
|
386
|
+
ch === 0x25 /* % */ ||
|
|
387
|
+
ch === 0x40 /* @ */ ||
|
|
388
|
+
ch === 0x60 /* ` */) {
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
let following;
|
|
392
|
+
if (ch === 0x3f || /* ? */ ch === 0x2d /* - */) {
|
|
393
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
394
|
+
if (isWsOrEol(following) ||
|
|
395
|
+
(withinFlowCollection && isFlowIndicator(following))) {
|
|
396
|
+
return false;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
state.kind = "scalar";
|
|
400
|
+
state.result = "";
|
|
401
|
+
let captureEnd, captureStart = (captureEnd = state.position);
|
|
402
|
+
let hasPendingContent = false;
|
|
403
|
+
let line = 0;
|
|
404
|
+
while (ch !== 0) {
|
|
405
|
+
if (ch === 0x3a /* : */) {
|
|
406
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
407
|
+
if (isWsOrEol(following) ||
|
|
408
|
+
(withinFlowCollection && isFlowIndicator(following))) {
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
else if (ch === 0x23 /* # */) {
|
|
413
|
+
const preceding = state.input.charCodeAt(state.position - 1);
|
|
414
|
+
if (isWsOrEol(preceding)) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
|
|
419
|
+
(withinFlowCollection && isFlowIndicator(ch))) {
|
|
420
|
+
break;
|
|
421
|
+
}
|
|
422
|
+
else if (isEOL(ch)) {
|
|
423
|
+
line = state.line;
|
|
424
|
+
const lineStart = state.lineStart;
|
|
425
|
+
const lineIndent = state.lineIndent;
|
|
426
|
+
skipSeparationSpace(state, false, -1);
|
|
427
|
+
if (state.lineIndent >= nodeIndent) {
|
|
428
|
+
hasPendingContent = true;
|
|
429
|
+
ch = state.input.charCodeAt(state.position);
|
|
430
|
+
continue;
|
|
431
|
+
}
|
|
432
|
+
else {
|
|
433
|
+
state.position = captureEnd;
|
|
434
|
+
state.line = line;
|
|
435
|
+
state.lineStart = lineStart;
|
|
436
|
+
state.lineIndent = lineIndent;
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
if (hasPendingContent) {
|
|
441
|
+
captureSegment(state, captureStart, captureEnd, false);
|
|
442
|
+
writeFoldedLines(state, state.line - line);
|
|
443
|
+
captureStart = captureEnd = state.position;
|
|
444
|
+
hasPendingContent = false;
|
|
445
|
+
}
|
|
446
|
+
if (!isWhiteSpace(ch)) {
|
|
447
|
+
captureEnd = state.position + 1;
|
|
448
|
+
}
|
|
449
|
+
ch = state.input.charCodeAt(++state.position);
|
|
450
|
+
}
|
|
451
|
+
captureSegment(state, captureStart, captureEnd, false);
|
|
452
|
+
if (state.result) {
|
|
453
|
+
return true;
|
|
454
|
+
}
|
|
455
|
+
state.kind = kind;
|
|
456
|
+
state.result = result;
|
|
457
|
+
return false;
|
|
458
|
+
}
|
|
459
|
+
function readSingleQuotedScalar(state, nodeIndent) {
|
|
460
|
+
let ch, captureStart, captureEnd;
|
|
461
|
+
ch = state.input.charCodeAt(state.position);
|
|
462
|
+
if (ch !== 0x27 /* ' */) {
|
|
463
|
+
return false;
|
|
464
|
+
}
|
|
465
|
+
state.kind = "scalar";
|
|
466
|
+
state.result = "";
|
|
467
|
+
state.position++;
|
|
468
|
+
captureStart = captureEnd = state.position;
|
|
469
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
470
|
+
if (ch === 0x27 /* ' */) {
|
|
471
|
+
captureSegment(state, captureStart, state.position, true);
|
|
472
|
+
ch = state.input.charCodeAt(++state.position);
|
|
473
|
+
if (ch === 0x27 /* ' */) {
|
|
474
|
+
captureStart = state.position;
|
|
475
|
+
state.position++;
|
|
476
|
+
captureEnd = state.position;
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
return true;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
else if (isEOL(ch)) {
|
|
483
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
484
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
485
|
+
captureStart = captureEnd = state.position;
|
|
486
|
+
}
|
|
487
|
+
else if (state.position === state.lineStart &&
|
|
488
|
+
testDocumentSeparator(state)) {
|
|
489
|
+
return throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
state.position++;
|
|
493
|
+
captureEnd = state.position;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
return throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
497
|
+
}
|
|
498
|
+
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
499
|
+
let ch = state.input.charCodeAt(state.position);
|
|
500
|
+
if (ch !== 0x22 /* " */) {
|
|
501
|
+
return false;
|
|
502
|
+
}
|
|
503
|
+
state.kind = "scalar";
|
|
504
|
+
state.result = "";
|
|
505
|
+
state.position++;
|
|
506
|
+
let captureEnd, captureStart = (captureEnd = state.position);
|
|
507
|
+
let tmp;
|
|
508
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
509
|
+
if (ch === 0x22 /* " */) {
|
|
510
|
+
captureSegment(state, captureStart, state.position, true);
|
|
511
|
+
state.position++;
|
|
512
|
+
return true;
|
|
513
|
+
}
|
|
514
|
+
if (ch === 0x5c /* \ */) {
|
|
515
|
+
captureSegment(state, captureStart, state.position, true);
|
|
516
|
+
ch = state.input.charCodeAt(++state.position);
|
|
517
|
+
if (isEOL(ch)) {
|
|
518
|
+
skipSeparationSpace(state, false, nodeIndent);
|
|
519
|
+
// TODO(bartlomieju): rework to inline fn with no type cast?
|
|
520
|
+
}
|
|
521
|
+
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
522
|
+
state.result += simpleEscapeMap[ch];
|
|
523
|
+
state.position++;
|
|
524
|
+
}
|
|
525
|
+
else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
526
|
+
let hexLength = tmp;
|
|
527
|
+
let hexResult = 0;
|
|
528
|
+
for (; hexLength > 0; hexLength--) {
|
|
529
|
+
ch = state.input.charCodeAt(++state.position);
|
|
530
|
+
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
531
|
+
hexResult = (hexResult << 4) + tmp;
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
534
|
+
return throwError(state, "expected hexadecimal character");
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
state.result += charFromCodepoint(hexResult);
|
|
538
|
+
state.position++;
|
|
539
|
+
}
|
|
540
|
+
else {
|
|
541
|
+
return throwError(state, "unknown escape sequence");
|
|
542
|
+
}
|
|
543
|
+
captureStart = captureEnd = state.position;
|
|
544
|
+
}
|
|
545
|
+
else if (isEOL(ch)) {
|
|
546
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
547
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
548
|
+
captureStart = captureEnd = state.position;
|
|
549
|
+
}
|
|
550
|
+
else if (state.position === state.lineStart &&
|
|
551
|
+
testDocumentSeparator(state)) {
|
|
552
|
+
return throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
state.position++;
|
|
556
|
+
captureEnd = state.position;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
return throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
560
|
+
}
|
|
561
|
+
function readFlowCollection(state, nodeIndent) {
|
|
562
|
+
let ch = state.input.charCodeAt(state.position);
|
|
563
|
+
let terminator;
|
|
564
|
+
let isMapping = true;
|
|
565
|
+
let result = {};
|
|
566
|
+
if (ch === 0x5b /* [ */) {
|
|
567
|
+
terminator = 0x5d; /* ] */
|
|
568
|
+
isMapping = false;
|
|
569
|
+
result = [];
|
|
570
|
+
}
|
|
571
|
+
else if (ch === 0x7b /* { */) {
|
|
572
|
+
terminator = 0x7d; /* } */
|
|
573
|
+
}
|
|
574
|
+
else {
|
|
575
|
+
return false;
|
|
576
|
+
}
|
|
577
|
+
if (state.anchor !== null &&
|
|
578
|
+
typeof state.anchor !== "undefined" &&
|
|
579
|
+
typeof state.anchorMap !== "undefined") {
|
|
580
|
+
state.anchorMap[state.anchor] = result;
|
|
581
|
+
}
|
|
582
|
+
ch = state.input.charCodeAt(++state.position);
|
|
583
|
+
const tag = state.tag, anchor = state.anchor;
|
|
584
|
+
let readNext = true;
|
|
585
|
+
let valueNode, keyNode, keyTag = (keyNode = valueNode = null), isExplicitPair, isPair = (isExplicitPair = false);
|
|
586
|
+
let following = 0, line = 0;
|
|
587
|
+
const overridableKeys = Object.create(null);
|
|
588
|
+
while (ch !== 0) {
|
|
589
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
590
|
+
ch = state.input.charCodeAt(state.position);
|
|
591
|
+
if (ch === terminator) {
|
|
592
|
+
state.position++;
|
|
593
|
+
state.tag = tag;
|
|
594
|
+
state.anchor = anchor;
|
|
595
|
+
state.kind = isMapping ? "mapping" : "sequence";
|
|
596
|
+
state.result = result;
|
|
597
|
+
return true;
|
|
598
|
+
}
|
|
599
|
+
if (!readNext) {
|
|
600
|
+
return throwError(state, "missed comma between flow collection entries");
|
|
601
|
+
}
|
|
602
|
+
keyTag = keyNode = valueNode = null;
|
|
603
|
+
isPair = isExplicitPair = false;
|
|
604
|
+
if (ch === 0x3f /* ? */) {
|
|
605
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
606
|
+
if (isWsOrEol(following)) {
|
|
607
|
+
isPair = isExplicitPair = true;
|
|
608
|
+
state.position++;
|
|
609
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
line = state.line;
|
|
613
|
+
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
614
|
+
keyTag = state.tag || null;
|
|
615
|
+
keyNode = state.result;
|
|
616
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
617
|
+
ch = state.input.charCodeAt(state.position);
|
|
618
|
+
if ((isExplicitPair || state.line === line) && ch === 0x3a /* : */) {
|
|
619
|
+
isPair = true;
|
|
620
|
+
ch = state.input.charCodeAt(++state.position);
|
|
621
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
622
|
+
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
623
|
+
valueNode = state.result;
|
|
624
|
+
}
|
|
625
|
+
if (isMapping) {
|
|
626
|
+
storeMappingPair(state, result, overridableKeys, keyTag, keyNode, valueNode);
|
|
627
|
+
}
|
|
628
|
+
else if (isPair) {
|
|
629
|
+
result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));
|
|
630
|
+
}
|
|
631
|
+
else {
|
|
632
|
+
result.push(keyNode);
|
|
633
|
+
}
|
|
634
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
635
|
+
ch = state.input.charCodeAt(state.position);
|
|
636
|
+
if (ch === 0x2c /* , */) {
|
|
637
|
+
readNext = true;
|
|
638
|
+
ch = state.input.charCodeAt(++state.position);
|
|
639
|
+
}
|
|
640
|
+
else {
|
|
641
|
+
readNext = false;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
return throwError(state, "unexpected end of the stream within a flow collection");
|
|
645
|
+
}
|
|
646
|
+
function readBlockScalar(state, nodeIndent) {
|
|
647
|
+
let chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false;
|
|
648
|
+
let ch = state.input.charCodeAt(state.position);
|
|
649
|
+
let folding = false;
|
|
650
|
+
if (ch === 0x7c /* | */) {
|
|
651
|
+
folding = false;
|
|
652
|
+
}
|
|
653
|
+
else if (ch === 0x3e /* > */) {
|
|
654
|
+
folding = true;
|
|
655
|
+
}
|
|
656
|
+
else {
|
|
657
|
+
return false;
|
|
658
|
+
}
|
|
659
|
+
state.kind = "scalar";
|
|
660
|
+
state.result = "";
|
|
661
|
+
let tmp = 0;
|
|
662
|
+
while (ch !== 0) {
|
|
663
|
+
ch = state.input.charCodeAt(++state.position);
|
|
664
|
+
if (ch === 0x2b || /* + */ ch === 0x2d /* - */) {
|
|
665
|
+
if (CHOMPING_CLIP === chomping) {
|
|
666
|
+
chomping = ch === 0x2b /* + */ ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
667
|
+
}
|
|
668
|
+
else {
|
|
669
|
+
return throwError(state, "repeat of a chomping mode identifier");
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
673
|
+
if (tmp === 0) {
|
|
674
|
+
return throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
675
|
+
}
|
|
676
|
+
else if (!detectedIndent) {
|
|
677
|
+
textIndent = nodeIndent + tmp - 1;
|
|
678
|
+
detectedIndent = true;
|
|
679
|
+
}
|
|
680
|
+
else {
|
|
681
|
+
return throwError(state, "repeat of an indentation width identifier");
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
else {
|
|
685
|
+
break;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
if (isWhiteSpace(ch)) {
|
|
689
|
+
do {
|
|
690
|
+
ch = state.input.charCodeAt(++state.position);
|
|
691
|
+
} while (isWhiteSpace(ch));
|
|
692
|
+
if (ch === 0x23 /* # */) {
|
|
693
|
+
do {
|
|
694
|
+
ch = state.input.charCodeAt(++state.position);
|
|
695
|
+
} while (!isEOL(ch) && ch !== 0);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
while (ch !== 0) {
|
|
699
|
+
readLineBreak(state);
|
|
700
|
+
state.lineIndent = 0;
|
|
701
|
+
ch = state.input.charCodeAt(state.position);
|
|
702
|
+
while ((!detectedIndent || state.lineIndent < textIndent) &&
|
|
703
|
+
ch === 0x20 /* Space */) {
|
|
704
|
+
state.lineIndent++;
|
|
705
|
+
ch = state.input.charCodeAt(++state.position);
|
|
706
|
+
}
|
|
707
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
708
|
+
textIndent = state.lineIndent;
|
|
709
|
+
}
|
|
710
|
+
if (isEOL(ch)) {
|
|
711
|
+
emptyLines++;
|
|
712
|
+
continue;
|
|
713
|
+
}
|
|
714
|
+
// End of the scalar.
|
|
715
|
+
if (state.lineIndent < textIndent) {
|
|
716
|
+
// Perform the chomping.
|
|
717
|
+
if (chomping === CHOMPING_KEEP) {
|
|
718
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
719
|
+
}
|
|
720
|
+
else if (chomping === CHOMPING_CLIP) {
|
|
721
|
+
if (didReadContent) {
|
|
722
|
+
// i.e. only if the scalar is not empty.
|
|
723
|
+
state.result += "\n";
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
// Break this `while` cycle and go to the function's epilogue.
|
|
727
|
+
break;
|
|
728
|
+
}
|
|
729
|
+
// Folded style: use fancy rules to handle line breaks.
|
|
730
|
+
if (folding) {
|
|
731
|
+
// Lines starting with white space characters (more-indented lines) are not folded.
|
|
732
|
+
if (isWhiteSpace(ch)) {
|
|
733
|
+
atMoreIndented = true;
|
|
734
|
+
// except for the first content line (cf. Example 8.1)
|
|
735
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
736
|
+
// End of more-indented block.
|
|
737
|
+
}
|
|
738
|
+
else if (atMoreIndented) {
|
|
739
|
+
atMoreIndented = false;
|
|
740
|
+
state.result += common.repeat("\n", emptyLines + 1);
|
|
741
|
+
// Just one line break - perceive as the same line.
|
|
742
|
+
}
|
|
743
|
+
else if (emptyLines === 0) {
|
|
744
|
+
if (didReadContent) {
|
|
745
|
+
// i.e. only if we have already read some scalar content.
|
|
746
|
+
state.result += " ";
|
|
747
|
+
}
|
|
748
|
+
// Several line breaks - perceive as different lines.
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
state.result += common.repeat("\n", emptyLines);
|
|
752
|
+
}
|
|
753
|
+
// Literal style: just add exact number of line breaks between content lines.
|
|
754
|
+
}
|
|
755
|
+
else {
|
|
756
|
+
// Keep all line breaks except the header line break.
|
|
757
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
758
|
+
}
|
|
759
|
+
didReadContent = true;
|
|
760
|
+
detectedIndent = true;
|
|
761
|
+
emptyLines = 0;
|
|
762
|
+
const captureStart = state.position;
|
|
763
|
+
while (!isEOL(ch) && ch !== 0) {
|
|
764
|
+
ch = state.input.charCodeAt(++state.position);
|
|
765
|
+
}
|
|
766
|
+
captureSegment(state, captureStart, state.position, false);
|
|
767
|
+
}
|
|
768
|
+
return true;
|
|
769
|
+
}
|
|
770
|
+
function readBlockSequence(state, nodeIndent) {
|
|
771
|
+
let line, following, detected = false, ch;
|
|
772
|
+
const tag = state.tag, anchor = state.anchor, result = [];
|
|
773
|
+
if (state.anchor !== null &&
|
|
774
|
+
typeof state.anchor !== "undefined" &&
|
|
775
|
+
typeof state.anchorMap !== "undefined") {
|
|
776
|
+
state.anchorMap[state.anchor] = result;
|
|
777
|
+
}
|
|
778
|
+
ch = state.input.charCodeAt(state.position);
|
|
779
|
+
while (ch !== 0) {
|
|
780
|
+
if (ch !== 0x2d /* - */) {
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
784
|
+
if (!isWsOrEol(following)) {
|
|
785
|
+
break;
|
|
786
|
+
}
|
|
787
|
+
detected = true;
|
|
788
|
+
state.position++;
|
|
789
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
790
|
+
if (state.lineIndent <= nodeIndent) {
|
|
791
|
+
result.push(null);
|
|
792
|
+
ch = state.input.charCodeAt(state.position);
|
|
793
|
+
continue;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
line = state.line;
|
|
797
|
+
composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
|
|
798
|
+
result.push(state.result);
|
|
799
|
+
skipSeparationSpace(state, true, -1);
|
|
800
|
+
ch = state.input.charCodeAt(state.position);
|
|
801
|
+
if ((state.line === line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
802
|
+
return throwError(state, "bad indentation of a sequence entry");
|
|
803
|
+
}
|
|
804
|
+
else if (state.lineIndent < nodeIndent) {
|
|
805
|
+
break;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
if (detected) {
|
|
809
|
+
state.tag = tag;
|
|
810
|
+
state.anchor = anchor;
|
|
811
|
+
state.kind = "sequence";
|
|
812
|
+
state.result = result;
|
|
813
|
+
return true;
|
|
814
|
+
}
|
|
815
|
+
return false;
|
|
816
|
+
}
|
|
817
|
+
function readBlockMapping(state, nodeIndent, flowIndent) {
|
|
818
|
+
const tag = state.tag, anchor = state.anchor, result = {}, overridableKeys = Object.create(null);
|
|
819
|
+
let following, allowCompact = false, line, pos, keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
|
|
820
|
+
if (state.anchor !== null &&
|
|
821
|
+
typeof state.anchor !== "undefined" &&
|
|
822
|
+
typeof state.anchorMap !== "undefined") {
|
|
823
|
+
state.anchorMap[state.anchor] = result;
|
|
824
|
+
}
|
|
825
|
+
ch = state.input.charCodeAt(state.position);
|
|
826
|
+
while (ch !== 0) {
|
|
827
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
828
|
+
line = state.line; // Save the current line.
|
|
829
|
+
pos = state.position;
|
|
830
|
+
//
|
|
831
|
+
// Explicit notation case. There are two separate blocks:
|
|
832
|
+
// first for the key (denoted by "?") and second for the value (denoted by ":")
|
|
833
|
+
//
|
|
834
|
+
if ((ch === 0x3f || /* ? */ ch === 0x3a) && /* : */ isWsOrEol(following)) {
|
|
835
|
+
if (ch === 0x3f /* ? */) {
|
|
836
|
+
if (atExplicitKey) {
|
|
837
|
+
storeMappingPair(state, result, overridableKeys, keyTag, keyNode, null);
|
|
838
|
+
keyTag = keyNode = valueNode = null;
|
|
839
|
+
}
|
|
840
|
+
detected = true;
|
|
841
|
+
atExplicitKey = true;
|
|
842
|
+
allowCompact = true;
|
|
843
|
+
}
|
|
844
|
+
else if (atExplicitKey) {
|
|
845
|
+
// i.e. 0x3A/* : */ === character after the explicit key.
|
|
846
|
+
atExplicitKey = false;
|
|
847
|
+
allowCompact = true;
|
|
848
|
+
}
|
|
849
|
+
else {
|
|
850
|
+
return throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
851
|
+
}
|
|
852
|
+
state.position += 1;
|
|
853
|
+
ch = following;
|
|
854
|
+
//
|
|
855
|
+
// Implicit notation case. Flow-style node as the key first, then ":", and the value.
|
|
856
|
+
//
|
|
857
|
+
}
|
|
858
|
+
else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
859
|
+
if (state.line === line) {
|
|
860
|
+
ch = state.input.charCodeAt(state.position);
|
|
861
|
+
while (isWhiteSpace(ch)) {
|
|
862
|
+
ch = state.input.charCodeAt(++state.position);
|
|
863
|
+
}
|
|
864
|
+
if (ch === 0x3a /* : */) {
|
|
865
|
+
ch = state.input.charCodeAt(++state.position);
|
|
866
|
+
if (!isWsOrEol(ch)) {
|
|
867
|
+
return throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
868
|
+
}
|
|
869
|
+
if (atExplicitKey) {
|
|
870
|
+
storeMappingPair(state, result, overridableKeys, keyTag, keyNode, null);
|
|
871
|
+
keyTag = keyNode = valueNode = null;
|
|
872
|
+
}
|
|
873
|
+
detected = true;
|
|
874
|
+
atExplicitKey = false;
|
|
875
|
+
allowCompact = false;
|
|
876
|
+
keyTag = state.tag;
|
|
877
|
+
keyNode = state.result;
|
|
878
|
+
}
|
|
879
|
+
else if (detected) {
|
|
880
|
+
return throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
881
|
+
}
|
|
882
|
+
else {
|
|
883
|
+
state.tag = tag;
|
|
884
|
+
state.anchor = anchor;
|
|
885
|
+
return true; // Keep the result of `composeNode`.
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
else if (detected) {
|
|
889
|
+
return throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
890
|
+
}
|
|
891
|
+
else {
|
|
892
|
+
state.tag = tag;
|
|
893
|
+
state.anchor = anchor;
|
|
894
|
+
return true; // Keep the result of `composeNode`.
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
else {
|
|
898
|
+
break; // Reading is done. Go to the epilogue.
|
|
899
|
+
}
|
|
900
|
+
//
|
|
901
|
+
// Common reading code for both explicit and implicit notations.
|
|
902
|
+
//
|
|
903
|
+
if (state.line === line || state.lineIndent > nodeIndent) {
|
|
904
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
905
|
+
if (atExplicitKey) {
|
|
906
|
+
keyNode = state.result;
|
|
907
|
+
}
|
|
908
|
+
else {
|
|
909
|
+
valueNode = state.result;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
if (!atExplicitKey) {
|
|
913
|
+
storeMappingPair(state, result, overridableKeys, keyTag, keyNode, valueNode, line, pos);
|
|
914
|
+
keyTag = keyNode = valueNode = null;
|
|
915
|
+
}
|
|
916
|
+
skipSeparationSpace(state, true, -1);
|
|
917
|
+
ch = state.input.charCodeAt(state.position);
|
|
918
|
+
}
|
|
919
|
+
if (state.lineIndent > nodeIndent && ch !== 0) {
|
|
920
|
+
return throwError(state, "bad indentation of a mapping entry");
|
|
921
|
+
}
|
|
922
|
+
else if (state.lineIndent < nodeIndent) {
|
|
923
|
+
break;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
//
|
|
927
|
+
// Epilogue.
|
|
928
|
+
//
|
|
929
|
+
// Special case: last mapping's node contains only the key in explicit notation.
|
|
930
|
+
if (atExplicitKey) {
|
|
931
|
+
storeMappingPair(state, result, overridableKeys, keyTag, keyNode, null);
|
|
932
|
+
}
|
|
933
|
+
// Expose the resulting mapping.
|
|
934
|
+
if (detected) {
|
|
935
|
+
state.tag = tag;
|
|
936
|
+
state.anchor = anchor;
|
|
937
|
+
state.kind = "mapping";
|
|
938
|
+
state.result = result;
|
|
939
|
+
}
|
|
940
|
+
return detected;
|
|
941
|
+
}
|
|
942
|
+
function readTagProperty(state) {
|
|
943
|
+
let position, isVerbatim = false, isNamed = false, tagHandle = "", tagName, ch;
|
|
944
|
+
ch = state.input.charCodeAt(state.position);
|
|
945
|
+
if (ch !== 0x21 /* ! */)
|
|
946
|
+
return false;
|
|
947
|
+
if (state.tag !== null) {
|
|
948
|
+
return throwError(state, "duplication of a tag property");
|
|
949
|
+
}
|
|
950
|
+
ch = state.input.charCodeAt(++state.position);
|
|
951
|
+
if (ch === 0x3c /* < */) {
|
|
952
|
+
isVerbatim = true;
|
|
953
|
+
ch = state.input.charCodeAt(++state.position);
|
|
954
|
+
}
|
|
955
|
+
else if (ch === 0x21 /* ! */) {
|
|
956
|
+
isNamed = true;
|
|
957
|
+
tagHandle = "!!";
|
|
958
|
+
ch = state.input.charCodeAt(++state.position);
|
|
959
|
+
}
|
|
960
|
+
else {
|
|
961
|
+
tagHandle = "!";
|
|
962
|
+
}
|
|
963
|
+
position = state.position;
|
|
964
|
+
if (isVerbatim) {
|
|
965
|
+
do {
|
|
966
|
+
ch = state.input.charCodeAt(++state.position);
|
|
967
|
+
} while (ch !== 0 && ch !== 0x3e /* > */);
|
|
968
|
+
if (state.position < state.length) {
|
|
969
|
+
tagName = state.input.slice(position, state.position);
|
|
970
|
+
ch = state.input.charCodeAt(++state.position);
|
|
971
|
+
}
|
|
972
|
+
else {
|
|
973
|
+
return throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
else {
|
|
977
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
978
|
+
if (ch === 0x21 /* ! */) {
|
|
979
|
+
if (!isNamed) {
|
|
980
|
+
tagHandle = state.input.slice(position - 1, state.position + 1);
|
|
981
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
982
|
+
return throwError(state, "named tag handle cannot contain such characters");
|
|
983
|
+
}
|
|
984
|
+
isNamed = true;
|
|
985
|
+
position = state.position + 1;
|
|
986
|
+
}
|
|
987
|
+
else {
|
|
988
|
+
return throwError(state, "tag suffix cannot contain exclamation marks");
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
ch = state.input.charCodeAt(++state.position);
|
|
992
|
+
}
|
|
993
|
+
tagName = state.input.slice(position, state.position);
|
|
994
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
995
|
+
return throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
999
|
+
return throwError(state, `tag name cannot contain such characters: ${tagName}`);
|
|
1000
|
+
}
|
|
1001
|
+
if (isVerbatim) {
|
|
1002
|
+
state.tag = tagName;
|
|
1003
|
+
}
|
|
1004
|
+
else if (typeof state.tagMap !== "undefined" &&
|
|
1005
|
+
hasOwn(state.tagMap, tagHandle)) {
|
|
1006
|
+
state.tag = state.tagMap[tagHandle] + tagName;
|
|
1007
|
+
}
|
|
1008
|
+
else if (tagHandle === "!") {
|
|
1009
|
+
state.tag = `!${tagName}`;
|
|
1010
|
+
}
|
|
1011
|
+
else if (tagHandle === "!!") {
|
|
1012
|
+
state.tag = `tag:yaml.org,2002:${tagName}`;
|
|
1013
|
+
}
|
|
1014
|
+
else {
|
|
1015
|
+
return throwError(state, `undeclared tag handle "${tagHandle}"`);
|
|
1016
|
+
}
|
|
1017
|
+
return true;
|
|
1018
|
+
}
|
|
1019
|
+
function readAnchorProperty(state) {
|
|
1020
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1021
|
+
if (ch !== 0x26 /* & */)
|
|
1022
|
+
return false;
|
|
1023
|
+
if (state.anchor !== null) {
|
|
1024
|
+
return throwError(state, "duplication of an anchor property");
|
|
1025
|
+
}
|
|
1026
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1027
|
+
const position = state.position;
|
|
1028
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
1029
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1030
|
+
}
|
|
1031
|
+
if (state.position === position) {
|
|
1032
|
+
return throwError(state, "name of an anchor node must contain at least one character");
|
|
1033
|
+
}
|
|
1034
|
+
state.anchor = state.input.slice(position, state.position);
|
|
1035
|
+
return true;
|
|
1036
|
+
}
|
|
1037
|
+
function readAlias(state) {
|
|
1038
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1039
|
+
if (ch !== 0x2a /* * */)
|
|
1040
|
+
return false;
|
|
1041
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1042
|
+
const _position = state.position;
|
|
1043
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
1044
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1045
|
+
}
|
|
1046
|
+
if (state.position === _position) {
|
|
1047
|
+
return throwError(state, "name of an alias node must contain at least one character");
|
|
1048
|
+
}
|
|
1049
|
+
const alias = state.input.slice(_position, state.position);
|
|
1050
|
+
if (typeof state.anchorMap !== "undefined" &&
|
|
1051
|
+
!hasOwn(state.anchorMap, alias)) {
|
|
1052
|
+
return throwError(state, `unidentified alias "${alias}"`);
|
|
1053
|
+
}
|
|
1054
|
+
if (typeof state.anchorMap !== "undefined") {
|
|
1055
|
+
state.result = state.anchorMap[alias];
|
|
1056
|
+
}
|
|
1057
|
+
skipSeparationSpace(state, true, -1);
|
|
1058
|
+
return true;
|
|
1059
|
+
}
|
|
1060
|
+
function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
|
|
1061
|
+
let allowBlockScalars, allowBlockCollections, indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this<parent
|
|
1062
|
+
atNewLine = false, hasContent = false, type, flowIndent, blockIndent;
|
|
1063
|
+
if (state.listener && state.listener !== null) {
|
|
1064
|
+
state.listener("open", state);
|
|
1065
|
+
}
|
|
1066
|
+
state.tag = null;
|
|
1067
|
+
state.anchor = null;
|
|
1068
|
+
state.kind = null;
|
|
1069
|
+
state.result = null;
|
|
1070
|
+
const allowBlockStyles = (allowBlockScalars =
|
|
1071
|
+
allowBlockCollections =
|
|
1072
|
+
CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext);
|
|
1073
|
+
if (allowToSeek) {
|
|
1074
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
1075
|
+
atNewLine = true;
|
|
1076
|
+
if (state.lineIndent > parentIndent) {
|
|
1077
|
+
indentStatus = 1;
|
|
1078
|
+
}
|
|
1079
|
+
else if (state.lineIndent === parentIndent) {
|
|
1080
|
+
indentStatus = 0;
|
|
1081
|
+
}
|
|
1082
|
+
else if (state.lineIndent < parentIndent) {
|
|
1083
|
+
indentStatus = -1;
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
if (indentStatus === 1) {
|
|
1088
|
+
while (readTagProperty(state) || readAnchorProperty(state)) {
|
|
1089
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
1090
|
+
atNewLine = true;
|
|
1091
|
+
allowBlockCollections = allowBlockStyles;
|
|
1092
|
+
if (state.lineIndent > parentIndent) {
|
|
1093
|
+
indentStatus = 1;
|
|
1094
|
+
}
|
|
1095
|
+
else if (state.lineIndent === parentIndent) {
|
|
1096
|
+
indentStatus = 0;
|
|
1097
|
+
}
|
|
1098
|
+
else if (state.lineIndent < parentIndent) {
|
|
1099
|
+
indentStatus = -1;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
else {
|
|
1103
|
+
allowBlockCollections = false;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
if (allowBlockCollections) {
|
|
1108
|
+
allowBlockCollections = atNewLine || allowCompact;
|
|
1109
|
+
}
|
|
1110
|
+
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
1111
|
+
const cond = CONTEXT_FLOW_IN === nodeContext ||
|
|
1112
|
+
CONTEXT_FLOW_OUT === nodeContext;
|
|
1113
|
+
flowIndent = cond ? parentIndent : parentIndent + 1;
|
|
1114
|
+
blockIndent = state.position - state.lineStart;
|
|
1115
|
+
if (indentStatus === 1) {
|
|
1116
|
+
if ((allowBlockCollections &&
|
|
1117
|
+
(readBlockSequence(state, blockIndent) ||
|
|
1118
|
+
readBlockMapping(state, blockIndent, flowIndent))) ||
|
|
1119
|
+
readFlowCollection(state, flowIndent)) {
|
|
1120
|
+
hasContent = true;
|
|
1121
|
+
}
|
|
1122
|
+
else {
|
|
1123
|
+
if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
|
|
1124
|
+
readSingleQuotedScalar(state, flowIndent) ||
|
|
1125
|
+
readDoubleQuotedScalar(state, flowIndent)) {
|
|
1126
|
+
hasContent = true;
|
|
1127
|
+
}
|
|
1128
|
+
else if (readAlias(state)) {
|
|
1129
|
+
hasContent = true;
|
|
1130
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
1131
|
+
return throwError(state, "alias node should not have Any properties");
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
1135
|
+
hasContent = true;
|
|
1136
|
+
if (state.tag === null) {
|
|
1137
|
+
state.tag = "?";
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
if (state.anchor !== null && typeof state.anchorMap !== "undefined") {
|
|
1141
|
+
state.anchorMap[state.anchor] = state.result;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
else if (indentStatus === 0) {
|
|
1146
|
+
// Special case: block sequences are allowed to have same indentation level as the parent.
|
|
1147
|
+
// http://www.yaml.org/spec/1.2/spec.html#id2799784
|
|
1148
|
+
hasContent = allowBlockCollections &&
|
|
1149
|
+
readBlockSequence(state, blockIndent);
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
if (state.tag !== null && state.tag !== "!") {
|
|
1153
|
+
if (state.tag === "?") {
|
|
1154
|
+
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex++) {
|
|
1155
|
+
type = state.implicitTypes[typeIndex];
|
|
1156
|
+
// Implicit resolving is not allowed for non-scalar types, and '?'
|
|
1157
|
+
// non-specific tag is only assigned to plain scalars. So, it isn't
|
|
1158
|
+
// needed to check for 'kind' conformity.
|
|
1159
|
+
if (type.resolve(state.result)) {
|
|
1160
|
+
// `state.result` updated in resolver if matched
|
|
1161
|
+
state.result = type.construct(state.result);
|
|
1162
|
+
state.tag = type.tag;
|
|
1163
|
+
if (state.anchor !== null && typeof state.anchorMap !== "undefined") {
|
|
1164
|
+
state.anchorMap[state.anchor] = state.result;
|
|
1165
|
+
}
|
|
1166
|
+
break;
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
else if (hasOwn(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
1171
|
+
type = state.typeMap[state.kind || "fallback"][state.tag];
|
|
1172
|
+
if (state.result !== null && type.kind !== state.kind) {
|
|
1173
|
+
return throwError(state, `unacceptable node kind for !<${state.tag}> tag; it should be "${type.kind}", not "${state.kind}"`);
|
|
1174
|
+
}
|
|
1175
|
+
if (!type.resolve(state.result)) {
|
|
1176
|
+
// `state.result` updated in resolver if matched
|
|
1177
|
+
return throwError(state, `cannot resolve a node with !<${state.tag}> explicit tag`);
|
|
1178
|
+
}
|
|
1179
|
+
else {
|
|
1180
|
+
state.result = type.construct(state.result);
|
|
1181
|
+
if (state.anchor !== null && typeof state.anchorMap !== "undefined") {
|
|
1182
|
+
state.anchorMap[state.anchor] = state.result;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
else {
|
|
1187
|
+
return throwError(state, `unknown tag !<${state.tag}>`);
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
if (state.listener && state.listener !== null) {
|
|
1191
|
+
state.listener("close", state);
|
|
1192
|
+
}
|
|
1193
|
+
return state.tag !== null || state.anchor !== null || hasContent;
|
|
1194
|
+
}
|
|
1195
|
+
function readDocument(state) {
|
|
1196
|
+
const documentStart = state.position;
|
|
1197
|
+
let position, directiveName, directiveArgs, hasDirectives = false, ch;
|
|
1198
|
+
state.version = null;
|
|
1199
|
+
state.checkLineBreaks = state.legacy;
|
|
1200
|
+
state.tagMap = Object.create(null);
|
|
1201
|
+
state.anchorMap = Object.create(null);
|
|
1202
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
1203
|
+
skipSeparationSpace(state, true, -1);
|
|
1204
|
+
ch = state.input.charCodeAt(state.position);
|
|
1205
|
+
if (state.lineIndent > 0 || ch !== 0x25 /* % */) {
|
|
1206
|
+
break;
|
|
1207
|
+
}
|
|
1208
|
+
hasDirectives = true;
|
|
1209
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1210
|
+
position = state.position;
|
|
1211
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
1212
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1213
|
+
}
|
|
1214
|
+
directiveName = state.input.slice(position, state.position);
|
|
1215
|
+
directiveArgs = [];
|
|
1216
|
+
if (directiveName.length < 1) {
|
|
1217
|
+
return throwError(state, "directive name must not be less than one character in length");
|
|
1218
|
+
}
|
|
1219
|
+
while (ch !== 0) {
|
|
1220
|
+
while (isWhiteSpace(ch)) {
|
|
1221
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1222
|
+
}
|
|
1223
|
+
if (ch === 0x23 /* # */) {
|
|
1224
|
+
do {
|
|
1225
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1226
|
+
} while (ch !== 0 && !isEOL(ch));
|
|
1227
|
+
break;
|
|
1228
|
+
}
|
|
1229
|
+
if (isEOL(ch))
|
|
1230
|
+
break;
|
|
1231
|
+
position = state.position;
|
|
1232
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
1233
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1234
|
+
}
|
|
1235
|
+
directiveArgs.push(state.input.slice(position, state.position));
|
|
1236
|
+
}
|
|
1237
|
+
if (ch !== 0)
|
|
1238
|
+
readLineBreak(state);
|
|
1239
|
+
if (hasOwn(directiveHandlers, directiveName)) {
|
|
1240
|
+
directiveHandlers[directiveName](state, directiveName, ...directiveArgs);
|
|
1241
|
+
}
|
|
1242
|
+
else {
|
|
1243
|
+
throwWarning(state, `unknown document directive "${directiveName}"`);
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
skipSeparationSpace(state, true, -1);
|
|
1247
|
+
if (state.lineIndent === 0 &&
|
|
1248
|
+
state.input.charCodeAt(state.position) === 0x2d /* - */ &&
|
|
1249
|
+
state.input.charCodeAt(state.position + 1) === 0x2d /* - */ &&
|
|
1250
|
+
state.input.charCodeAt(state.position + 2) === 0x2d /* - */) {
|
|
1251
|
+
state.position += 3;
|
|
1252
|
+
skipSeparationSpace(state, true, -1);
|
|
1253
|
+
}
|
|
1254
|
+
else if (hasDirectives) {
|
|
1255
|
+
return throwError(state, "directives end mark is expected");
|
|
1256
|
+
}
|
|
1257
|
+
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
1258
|
+
skipSeparationSpace(state, true, -1);
|
|
1259
|
+
if (state.checkLineBreaks &&
|
|
1260
|
+
PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
1261
|
+
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
1262
|
+
}
|
|
1263
|
+
state.documents.push(state.result);
|
|
1264
|
+
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
1265
|
+
if (state.input.charCodeAt(state.position) === 0x2e /* . */) {
|
|
1266
|
+
state.position += 3;
|
|
1267
|
+
skipSeparationSpace(state, true, -1);
|
|
1268
|
+
}
|
|
1269
|
+
return;
|
|
1270
|
+
}
|
|
1271
|
+
if (state.position < state.length - 1) {
|
|
1272
|
+
return throwError(state, "end of the stream or a document separator is expected");
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
function loadDocuments(input, options) {
|
|
1276
|
+
input = String(input);
|
|
1277
|
+
options = options || {};
|
|
1278
|
+
if (input.length !== 0) {
|
|
1279
|
+
// Add tailing `\n` if not exists
|
|
1280
|
+
if (input.charCodeAt(input.length - 1) !== 0x0a /* LF */ &&
|
|
1281
|
+
input.charCodeAt(input.length - 1) !== 0x0d /* CR */) {
|
|
1282
|
+
input += "\n";
|
|
1283
|
+
}
|
|
1284
|
+
// Strip BOM
|
|
1285
|
+
if (input.charCodeAt(0) === 0xfeff) {
|
|
1286
|
+
input = input.slice(1);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
const state = new loader_state_js_1.LoaderState(input, options);
|
|
1290
|
+
// Use 0 as string terminator. That significantly simplifies bounds check.
|
|
1291
|
+
state.input += "\0";
|
|
1292
|
+
while (state.input.charCodeAt(state.position) === 0x20 /* Space */) {
|
|
1293
|
+
state.lineIndent += 1;
|
|
1294
|
+
state.position += 1;
|
|
1295
|
+
}
|
|
1296
|
+
while (state.position < state.length - 1) {
|
|
1297
|
+
readDocument(state);
|
|
1298
|
+
}
|
|
1299
|
+
return state.documents;
|
|
1300
|
+
}
|
|
1301
|
+
function isCbFunction(fn) {
|
|
1302
|
+
return typeof fn === "function";
|
|
1303
|
+
}
|
|
1304
|
+
function loadAll(input, iteratorOrOption, options) {
|
|
1305
|
+
if (!isCbFunction(iteratorOrOption)) {
|
|
1306
|
+
return loadDocuments(input, iteratorOrOption);
|
|
1307
|
+
}
|
|
1308
|
+
const documents = loadDocuments(input, options);
|
|
1309
|
+
const iterator = iteratorOrOption;
|
|
1310
|
+
for (let index = 0, length = documents.length; index < length; index++) {
|
|
1311
|
+
iterator(documents[index]);
|
|
1312
|
+
}
|
|
1313
|
+
return void 0;
|
|
1314
|
+
}
|
|
1315
|
+
function load(input, options) {
|
|
1316
|
+
const documents = loadDocuments(input, options);
|
|
1317
|
+
if (documents.length === 0) {
|
|
1318
|
+
return null;
|
|
1319
|
+
}
|
|
1320
|
+
if (documents.length === 1) {
|
|
1321
|
+
return documents[0];
|
|
1322
|
+
}
|
|
1323
|
+
throw new _error_js_1.YAMLError("expected a single document in the stream, but found more");
|
|
1324
|
+
}
|