@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,710 @@
|
|
|
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.dump = dump;
|
|
31
|
+
const _error_js_1 = require("../_error.js");
|
|
32
|
+
const common = __importStar(require("../_utils.js"));
|
|
33
|
+
const dumper_state_js_1 = require("./dumper_state.js");
|
|
34
|
+
const _toString = Object.prototype.toString;
|
|
35
|
+
const { hasOwn } = Object;
|
|
36
|
+
const CHAR_TAB = 0x09; /* Tab */
|
|
37
|
+
const CHAR_LINE_FEED = 0x0a; /* LF */
|
|
38
|
+
const CHAR_SPACE = 0x20; /* Space */
|
|
39
|
+
const CHAR_EXCLAMATION = 0x21; /* ! */
|
|
40
|
+
const CHAR_DOUBLE_QUOTE = 0x22; /* " */
|
|
41
|
+
const CHAR_SHARP = 0x23; /* # */
|
|
42
|
+
const CHAR_PERCENT = 0x25; /* % */
|
|
43
|
+
const CHAR_AMPERSAND = 0x26; /* & */
|
|
44
|
+
const CHAR_SINGLE_QUOTE = 0x27; /* ' */
|
|
45
|
+
const CHAR_ASTERISK = 0x2a; /* * */
|
|
46
|
+
const CHAR_COMMA = 0x2c; /* , */
|
|
47
|
+
const CHAR_MINUS = 0x2d; /* - */
|
|
48
|
+
const CHAR_COLON = 0x3a; /* : */
|
|
49
|
+
const CHAR_GREATER_THAN = 0x3e; /* > */
|
|
50
|
+
const CHAR_QUESTION = 0x3f; /* ? */
|
|
51
|
+
const CHAR_COMMERCIAL_AT = 0x40; /* @ */
|
|
52
|
+
const CHAR_LEFT_SQUARE_BRACKET = 0x5b; /* [ */
|
|
53
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 0x5d; /* ] */
|
|
54
|
+
const CHAR_GRAVE_ACCENT = 0x60; /* ` */
|
|
55
|
+
const CHAR_LEFT_CURLY_BRACKET = 0x7b; /* { */
|
|
56
|
+
const CHAR_VERTICAL_LINE = 0x7c; /* | */
|
|
57
|
+
const CHAR_RIGHT_CURLY_BRACKET = 0x7d; /* } */
|
|
58
|
+
const ESCAPE_SEQUENCES = {};
|
|
59
|
+
ESCAPE_SEQUENCES[0x00] = "\\0";
|
|
60
|
+
ESCAPE_SEQUENCES[0x07] = "\\a";
|
|
61
|
+
ESCAPE_SEQUENCES[0x08] = "\\b";
|
|
62
|
+
ESCAPE_SEQUENCES[0x09] = "\\t";
|
|
63
|
+
ESCAPE_SEQUENCES[0x0a] = "\\n";
|
|
64
|
+
ESCAPE_SEQUENCES[0x0b] = "\\v";
|
|
65
|
+
ESCAPE_SEQUENCES[0x0c] = "\\f";
|
|
66
|
+
ESCAPE_SEQUENCES[0x0d] = "\\r";
|
|
67
|
+
ESCAPE_SEQUENCES[0x1b] = "\\e";
|
|
68
|
+
ESCAPE_SEQUENCES[0x22] = '\\"';
|
|
69
|
+
ESCAPE_SEQUENCES[0x5c] = "\\\\";
|
|
70
|
+
ESCAPE_SEQUENCES[0x85] = "\\N";
|
|
71
|
+
ESCAPE_SEQUENCES[0xa0] = "\\_";
|
|
72
|
+
ESCAPE_SEQUENCES[0x2028] = "\\L";
|
|
73
|
+
ESCAPE_SEQUENCES[0x2029] = "\\P";
|
|
74
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
75
|
+
"y",
|
|
76
|
+
"Y",
|
|
77
|
+
"yes",
|
|
78
|
+
"Yes",
|
|
79
|
+
"YES",
|
|
80
|
+
"on",
|
|
81
|
+
"On",
|
|
82
|
+
"ON",
|
|
83
|
+
"n",
|
|
84
|
+
"N",
|
|
85
|
+
"no",
|
|
86
|
+
"No",
|
|
87
|
+
"NO",
|
|
88
|
+
"off",
|
|
89
|
+
"Off",
|
|
90
|
+
"OFF",
|
|
91
|
+
];
|
|
92
|
+
function encodeHex(character) {
|
|
93
|
+
const string = character.toString(16).toUpperCase();
|
|
94
|
+
let handle;
|
|
95
|
+
let length;
|
|
96
|
+
if (character <= 0xff) {
|
|
97
|
+
handle = "x";
|
|
98
|
+
length = 2;
|
|
99
|
+
}
|
|
100
|
+
else if (character <= 0xffff) {
|
|
101
|
+
handle = "u";
|
|
102
|
+
length = 4;
|
|
103
|
+
}
|
|
104
|
+
else if (character <= 0xffffffff) {
|
|
105
|
+
handle = "U";
|
|
106
|
+
length = 8;
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
throw new _error_js_1.YAMLError("code point within a string may not be greater than 0xFFFFFFFF");
|
|
110
|
+
}
|
|
111
|
+
return `\\${handle}${common.repeat("0", length - string.length)}${string}`;
|
|
112
|
+
}
|
|
113
|
+
// Indents every line in a string. Empty lines (\n only) are not indented.
|
|
114
|
+
function indentString(string, spaces) {
|
|
115
|
+
const ind = common.repeat(" ", spaces), length = string.length;
|
|
116
|
+
let position = 0, next = -1, result = "", line;
|
|
117
|
+
while (position < length) {
|
|
118
|
+
next = string.indexOf("\n", position);
|
|
119
|
+
if (next === -1) {
|
|
120
|
+
line = string.slice(position);
|
|
121
|
+
position = length;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
line = string.slice(position, next + 1);
|
|
125
|
+
position = next + 1;
|
|
126
|
+
}
|
|
127
|
+
if (line.length && line !== "\n")
|
|
128
|
+
result += ind;
|
|
129
|
+
result += line;
|
|
130
|
+
}
|
|
131
|
+
return result;
|
|
132
|
+
}
|
|
133
|
+
function generateNextLine(state, level) {
|
|
134
|
+
return `\n${common.repeat(" ", state.indent * level)}`;
|
|
135
|
+
}
|
|
136
|
+
function testImplicitResolving(state, str) {
|
|
137
|
+
let type;
|
|
138
|
+
for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) {
|
|
139
|
+
type = state.implicitTypes[index];
|
|
140
|
+
if (type.resolve(str)) {
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
// [33] s-white ::= s-space | s-tab
|
|
147
|
+
function isWhitespace(c) {
|
|
148
|
+
return c === CHAR_SPACE || c === CHAR_TAB;
|
|
149
|
+
}
|
|
150
|
+
// Returns true if the character can be printed without escaping.
|
|
151
|
+
// From YAML 1.2: "any allowed characters known to be non-printable
|
|
152
|
+
// should also be escaped. [However,] This isn’t mandatory"
|
|
153
|
+
// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
|
|
154
|
+
function isPrintable(c) {
|
|
155
|
+
return ((0x00020 <= c && c <= 0x00007e) ||
|
|
156
|
+
(0x000a1 <= c && c <= 0x00d7ff && c !== 0x2028 && c !== 0x2029) ||
|
|
157
|
+
(0x0e000 <= c && c <= 0x00fffd && c !== 0xfeff) /* BOM */ ||
|
|
158
|
+
(0x10000 <= c && c <= 0x10ffff));
|
|
159
|
+
}
|
|
160
|
+
// Simplified test for values allowed after the first character in plain style.
|
|
161
|
+
function isPlainSafe(c) {
|
|
162
|
+
// Uses a subset of nb-char - c-flow-indicator - ":" - "#"
|
|
163
|
+
// where nb-char ::= c-printable - b-char - c-byte-order-mark.
|
|
164
|
+
return (isPrintable(c) &&
|
|
165
|
+
c !== 0xfeff &&
|
|
166
|
+
// - c-flow-indicator
|
|
167
|
+
c !== CHAR_COMMA &&
|
|
168
|
+
c !== CHAR_LEFT_SQUARE_BRACKET &&
|
|
169
|
+
c !== CHAR_RIGHT_SQUARE_BRACKET &&
|
|
170
|
+
c !== CHAR_LEFT_CURLY_BRACKET &&
|
|
171
|
+
c !== CHAR_RIGHT_CURLY_BRACKET &&
|
|
172
|
+
// - ":" - "#"
|
|
173
|
+
c !== CHAR_COLON &&
|
|
174
|
+
c !== CHAR_SHARP);
|
|
175
|
+
}
|
|
176
|
+
// Simplified test for values allowed as the first character in plain style.
|
|
177
|
+
function isPlainSafeFirst(c) {
|
|
178
|
+
// Uses a subset of ns-char - c-indicator
|
|
179
|
+
// where ns-char = nb-char - s-white.
|
|
180
|
+
return (isPrintable(c) &&
|
|
181
|
+
c !== 0xfeff &&
|
|
182
|
+
!isWhitespace(c) && // - s-white
|
|
183
|
+
// - (c-indicator ::=
|
|
184
|
+
// “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
|
|
185
|
+
c !== CHAR_MINUS &&
|
|
186
|
+
c !== CHAR_QUESTION &&
|
|
187
|
+
c !== CHAR_COLON &&
|
|
188
|
+
c !== CHAR_COMMA &&
|
|
189
|
+
c !== CHAR_LEFT_SQUARE_BRACKET &&
|
|
190
|
+
c !== CHAR_RIGHT_SQUARE_BRACKET &&
|
|
191
|
+
c !== CHAR_LEFT_CURLY_BRACKET &&
|
|
192
|
+
c !== CHAR_RIGHT_CURLY_BRACKET &&
|
|
193
|
+
// | “#” | “&” | “*” | “!” | “|” | “>” | “'” | “"”
|
|
194
|
+
c !== CHAR_SHARP &&
|
|
195
|
+
c !== CHAR_AMPERSAND &&
|
|
196
|
+
c !== CHAR_ASTERISK &&
|
|
197
|
+
c !== CHAR_EXCLAMATION &&
|
|
198
|
+
c !== CHAR_VERTICAL_LINE &&
|
|
199
|
+
c !== CHAR_GREATER_THAN &&
|
|
200
|
+
c !== CHAR_SINGLE_QUOTE &&
|
|
201
|
+
c !== CHAR_DOUBLE_QUOTE &&
|
|
202
|
+
// | “%” | “@” | “`”)
|
|
203
|
+
c !== CHAR_PERCENT &&
|
|
204
|
+
c !== CHAR_COMMERCIAL_AT &&
|
|
205
|
+
c !== CHAR_GRAVE_ACCENT);
|
|
206
|
+
}
|
|
207
|
+
// Determines whether block indentation indicator is required.
|
|
208
|
+
function needIndentIndicator(string) {
|
|
209
|
+
const leadingSpaceRe = /^\n* /;
|
|
210
|
+
return leadingSpaceRe.test(string);
|
|
211
|
+
}
|
|
212
|
+
const STYLE_PLAIN = 1, STYLE_SINGLE = 2, STYLE_LITERAL = 3, STYLE_FOLDED = 4, STYLE_DOUBLE = 5;
|
|
213
|
+
// Determines which scalar styles are possible and returns the preferred style.
|
|
214
|
+
// lineWidth = -1 => no limit.
|
|
215
|
+
// Pre-conditions: str.length > 0.
|
|
216
|
+
// Post-conditions:
|
|
217
|
+
// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
|
|
218
|
+
// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
|
|
219
|
+
// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth !== -1).
|
|
220
|
+
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
|
|
221
|
+
const shouldTrackWidth = lineWidth !== -1;
|
|
222
|
+
let hasLineBreak = false, hasFoldableLine = false, // only checked if shouldTrackWidth
|
|
223
|
+
previousLineBreak = -1, // count the first line correctly
|
|
224
|
+
plain = isPlainSafeFirst(string.charCodeAt(0)) &&
|
|
225
|
+
!isWhitespace(string.charCodeAt(string.length - 1));
|
|
226
|
+
let char, i;
|
|
227
|
+
if (singleLineOnly) {
|
|
228
|
+
// Case: no block styles.
|
|
229
|
+
// Check for disallowed characters to rule out plain and single.
|
|
230
|
+
for (i = 0; i < string.length; i++) {
|
|
231
|
+
char = string.charCodeAt(i);
|
|
232
|
+
if (!isPrintable(char)) {
|
|
233
|
+
return STYLE_DOUBLE;
|
|
234
|
+
}
|
|
235
|
+
plain = plain && isPlainSafe(char);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
// Case: block styles permitted.
|
|
240
|
+
for (i = 0; i < string.length; i++) {
|
|
241
|
+
char = string.charCodeAt(i);
|
|
242
|
+
if (char === CHAR_LINE_FEED) {
|
|
243
|
+
hasLineBreak = true;
|
|
244
|
+
// Check if any line can be folded.
|
|
245
|
+
if (shouldTrackWidth) {
|
|
246
|
+
hasFoldableLine = hasFoldableLine ||
|
|
247
|
+
// Foldable line = too long, and not more-indented.
|
|
248
|
+
(i - previousLineBreak - 1 > lineWidth &&
|
|
249
|
+
string[previousLineBreak + 1] !== " ");
|
|
250
|
+
previousLineBreak = i;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
else if (!isPrintable(char)) {
|
|
254
|
+
return STYLE_DOUBLE;
|
|
255
|
+
}
|
|
256
|
+
plain = plain && isPlainSafe(char);
|
|
257
|
+
}
|
|
258
|
+
// in case the end is missing a \n
|
|
259
|
+
hasFoldableLine = hasFoldableLine ||
|
|
260
|
+
(shouldTrackWidth &&
|
|
261
|
+
i - previousLineBreak - 1 > lineWidth &&
|
|
262
|
+
string[previousLineBreak + 1] !== " ");
|
|
263
|
+
}
|
|
264
|
+
// Although every style can represent \n without escaping, prefer block styles
|
|
265
|
+
// for multiline, since they're more readable and they don't add empty lines.
|
|
266
|
+
// Also prefer folding a super-long line.
|
|
267
|
+
if (!hasLineBreak && !hasFoldableLine) {
|
|
268
|
+
// Strings interpretable as another type have to be quoted;
|
|
269
|
+
// e.g. the string 'true' vs. the boolean true.
|
|
270
|
+
return plain && !testAmbiguousType(string) ? STYLE_PLAIN : STYLE_SINGLE;
|
|
271
|
+
}
|
|
272
|
+
// Edge case: block indentation indicator can only have one digit.
|
|
273
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
274
|
+
return STYLE_DOUBLE;
|
|
275
|
+
}
|
|
276
|
+
// At this point we know block styles are valid.
|
|
277
|
+
// Prefer literal style unless we want to fold.
|
|
278
|
+
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
279
|
+
}
|
|
280
|
+
// Greedy line breaking.
|
|
281
|
+
// Picks the longest line under the limit each time,
|
|
282
|
+
// otherwise settles for the shortest line over the limit.
|
|
283
|
+
// NB. More-indented lines *cannot* be folded, as that would add an extra \n.
|
|
284
|
+
function foldLine(line, width) {
|
|
285
|
+
if (line === "" || line[0] === " ")
|
|
286
|
+
return line;
|
|
287
|
+
// Since a more-indented line adds a \n, breaks can't be followed by a space.
|
|
288
|
+
const breakRe = / [^ ]/g; // note: the match index will always be <= length-2.
|
|
289
|
+
let match;
|
|
290
|
+
// start is an inclusive index. end, curr, and next are exclusive.
|
|
291
|
+
let start = 0, end, curr = 0, next = 0;
|
|
292
|
+
let result = "";
|
|
293
|
+
// Invariants: 0 <= start <= length-1.
|
|
294
|
+
// 0 <= curr <= next <= max(0, length-2). curr - start <= width.
|
|
295
|
+
// Inside the loop:
|
|
296
|
+
// A match implies length >= 2, so curr and next are <= length-2.
|
|
297
|
+
// tslint:disable-next-line:no-conditional-assignment
|
|
298
|
+
while ((match = breakRe.exec(line))) {
|
|
299
|
+
next = match.index;
|
|
300
|
+
// maintain invariant: curr - start <= width
|
|
301
|
+
if (next - start > width) {
|
|
302
|
+
end = curr > start ? curr : next; // derive end <= length-2
|
|
303
|
+
result += `\n${line.slice(start, end)}`;
|
|
304
|
+
// skip the space that was output as \n
|
|
305
|
+
start = end + 1; // derive start <= length-1
|
|
306
|
+
}
|
|
307
|
+
curr = next;
|
|
308
|
+
}
|
|
309
|
+
// By the invariants, start <= length-1, so there is something left over.
|
|
310
|
+
// It is either the whole string or a part starting from non-whitespace.
|
|
311
|
+
result += "\n";
|
|
312
|
+
// Insert a break if the remainder is too long and there is a break available.
|
|
313
|
+
if (line.length - start > width && curr > start) {
|
|
314
|
+
result += `${line.slice(start, curr)}\n${line.slice(curr + 1)}`;
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
result += line.slice(start);
|
|
318
|
+
}
|
|
319
|
+
return result.slice(1); // drop extra \n joiner
|
|
320
|
+
}
|
|
321
|
+
// (See the note for writeScalar.)
|
|
322
|
+
function dropEndingNewline(string) {
|
|
323
|
+
return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
|
|
324
|
+
}
|
|
325
|
+
// Note: a long line without a suitable break point will exceed the width limit.
|
|
326
|
+
// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
|
|
327
|
+
function foldString(string, width) {
|
|
328
|
+
// In folded style, $k$ consecutive newlines output as $k+1$ newlines—
|
|
329
|
+
// unless they're before or after a more-indented line, or at the very
|
|
330
|
+
// beginning or end, in which case $k$ maps to $k$.
|
|
331
|
+
// Therefore, parse each chunk as newline(s) followed by a content line.
|
|
332
|
+
const lineRe = /(\n+)([^\n]*)/g;
|
|
333
|
+
// first line (possibly an empty line)
|
|
334
|
+
let result = (() => {
|
|
335
|
+
let nextLF = string.indexOf("\n");
|
|
336
|
+
nextLF = nextLF !== -1 ? nextLF : string.length;
|
|
337
|
+
lineRe.lastIndex = nextLF;
|
|
338
|
+
return foldLine(string.slice(0, nextLF), width);
|
|
339
|
+
})();
|
|
340
|
+
// If we haven't reached the first content line yet, don't add an extra \n.
|
|
341
|
+
let prevMoreIndented = string[0] === "\n" || string[0] === " ";
|
|
342
|
+
let moreIndented;
|
|
343
|
+
// rest of the lines
|
|
344
|
+
let match;
|
|
345
|
+
// tslint:disable-next-line:no-conditional-assignment
|
|
346
|
+
while ((match = lineRe.exec(string))) {
|
|
347
|
+
const prefix = match[1], line = match[2];
|
|
348
|
+
moreIndented = line[0] === " ";
|
|
349
|
+
result += prefix +
|
|
350
|
+
(!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") +
|
|
351
|
+
foldLine(line, width);
|
|
352
|
+
prevMoreIndented = moreIndented;
|
|
353
|
+
}
|
|
354
|
+
return result;
|
|
355
|
+
}
|
|
356
|
+
// Escapes a double-quoted string.
|
|
357
|
+
function escapeString(string) {
|
|
358
|
+
let result = "";
|
|
359
|
+
let char, nextChar;
|
|
360
|
+
let escapeSeq;
|
|
361
|
+
for (let i = 0; i < string.length; i++) {
|
|
362
|
+
char = string.charCodeAt(i);
|
|
363
|
+
// Check for surrogate pairs (reference Unicode 3.0 section "3.7 Surrogates").
|
|
364
|
+
if (char >= 0xd800 && char <= 0xdbff /* high surrogate */) {
|
|
365
|
+
nextChar = string.charCodeAt(i + 1);
|
|
366
|
+
if (nextChar >= 0xdc00 && nextChar <= 0xdfff /* low surrogate */) {
|
|
367
|
+
// Combine the surrogate pair and store it escaped.
|
|
368
|
+
result += encodeHex((char - 0xd800) * 0x400 + nextChar - 0xdc00 + 0x10000);
|
|
369
|
+
// Advance index one extra since we already used that char here.
|
|
370
|
+
i++;
|
|
371
|
+
continue;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
escapeSeq = ESCAPE_SEQUENCES[char];
|
|
375
|
+
result += !escapeSeq && isPrintable(char)
|
|
376
|
+
? string[i]
|
|
377
|
+
: escapeSeq || encodeHex(char);
|
|
378
|
+
}
|
|
379
|
+
return result;
|
|
380
|
+
}
|
|
381
|
+
// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
|
|
382
|
+
function blockHeader(string, indentPerLevel) {
|
|
383
|
+
const indentIndicator = needIndentIndicator(string)
|
|
384
|
+
? String(indentPerLevel)
|
|
385
|
+
: "";
|
|
386
|
+
// note the special case: the string '\n' counts as a "trailing" empty line.
|
|
387
|
+
const clip = string[string.length - 1] === "\n";
|
|
388
|
+
const keep = clip && (string[string.length - 2] === "\n" || string === "\n");
|
|
389
|
+
const chomp = keep ? "+" : clip ? "" : "-";
|
|
390
|
+
return `${indentIndicator}${chomp}\n`;
|
|
391
|
+
}
|
|
392
|
+
// Note: line breaking/folding is implemented for only the folded style.
|
|
393
|
+
// NB. We drop the last trailing newline (if any) of a returned block scalar
|
|
394
|
+
// since the dumper adds its own newline. This always works:
|
|
395
|
+
// • No ending newline => unaffected; already using strip "-" chomping.
|
|
396
|
+
// • Ending newline => removed then restored.
|
|
397
|
+
// Importantly, this keeps the "+" chomp indicator from gaining an extra line.
|
|
398
|
+
function writeScalar(state, string, level, iskey) {
|
|
399
|
+
state.dump = (() => {
|
|
400
|
+
if (string.length === 0) {
|
|
401
|
+
return "''";
|
|
402
|
+
}
|
|
403
|
+
if (!state.noCompatMode &&
|
|
404
|
+
DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1) {
|
|
405
|
+
return `'${string}'`;
|
|
406
|
+
}
|
|
407
|
+
const indent = state.indent * Math.max(1, level); // no 0-indent scalars
|
|
408
|
+
// As indentation gets deeper, let the width decrease monotonically
|
|
409
|
+
// to the lower bound min(state.lineWidth, 40).
|
|
410
|
+
// Note that this implies
|
|
411
|
+
// state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
|
|
412
|
+
// state.lineWidth > 40 + state.indent: width decreases until the lower
|
|
413
|
+
// bound.
|
|
414
|
+
// This behaves better than a constant minimum width which disallows
|
|
415
|
+
// narrower options, or an indent threshold which causes the width
|
|
416
|
+
// to suddenly increase.
|
|
417
|
+
const lineWidth = state.lineWidth === -1
|
|
418
|
+
? -1
|
|
419
|
+
: Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
420
|
+
// Without knowing if keys are implicit/explicit,
|
|
421
|
+
// assume implicit for safety.
|
|
422
|
+
const singleLineOnly = iskey ||
|
|
423
|
+
// No block styles in flow mode.
|
|
424
|
+
(state.flowLevel > -1 && level >= state.flowLevel);
|
|
425
|
+
function testAmbiguity(str) {
|
|
426
|
+
return testImplicitResolving(state, str);
|
|
427
|
+
}
|
|
428
|
+
switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
|
|
429
|
+
case STYLE_PLAIN:
|
|
430
|
+
return string;
|
|
431
|
+
case STYLE_SINGLE:
|
|
432
|
+
return `'${string.replace(/'/g, "''")}'`;
|
|
433
|
+
case STYLE_LITERAL:
|
|
434
|
+
return `|${blockHeader(string, state.indent)}${dropEndingNewline(indentString(string, indent))}`;
|
|
435
|
+
case STYLE_FOLDED:
|
|
436
|
+
return `>${blockHeader(string, state.indent)}${dropEndingNewline(indentString(foldString(string, lineWidth), indent))}`;
|
|
437
|
+
case STYLE_DOUBLE:
|
|
438
|
+
return `"${escapeString(string)}"`;
|
|
439
|
+
default:
|
|
440
|
+
throw new _error_js_1.YAMLError("impossible error: invalid scalar style");
|
|
441
|
+
}
|
|
442
|
+
})();
|
|
443
|
+
}
|
|
444
|
+
function writeFlowSequence(state, level, object) {
|
|
445
|
+
let _result = "";
|
|
446
|
+
const _tag = state.tag;
|
|
447
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
448
|
+
// Write only valid elements.
|
|
449
|
+
if (writeNode(state, level, object[index], false, false)) {
|
|
450
|
+
if (index !== 0)
|
|
451
|
+
_result += `,${!state.condenseFlow ? " " : ""}`;
|
|
452
|
+
_result += state.dump;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
state.tag = _tag;
|
|
456
|
+
state.dump = `[${_result}]`;
|
|
457
|
+
}
|
|
458
|
+
function writeBlockSequence(state, level, object, compact = false) {
|
|
459
|
+
let _result = "";
|
|
460
|
+
const _tag = state.tag;
|
|
461
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
462
|
+
// Write only valid elements.
|
|
463
|
+
if (writeNode(state, level + 1, object[index], true, true)) {
|
|
464
|
+
if (!compact || index !== 0) {
|
|
465
|
+
_result += generateNextLine(state, level);
|
|
466
|
+
}
|
|
467
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
468
|
+
_result += "-";
|
|
469
|
+
}
|
|
470
|
+
else {
|
|
471
|
+
_result += "- ";
|
|
472
|
+
}
|
|
473
|
+
_result += state.dump;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
state.tag = _tag;
|
|
477
|
+
state.dump = _result || "[]"; // Empty sequence if no valid values.
|
|
478
|
+
}
|
|
479
|
+
function writeFlowMapping(state, level, object) {
|
|
480
|
+
let _result = "";
|
|
481
|
+
const _tag = state.tag, objectKeyList = Object.keys(object);
|
|
482
|
+
let pairBuffer, objectKey, objectValue;
|
|
483
|
+
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
484
|
+
pairBuffer = state.condenseFlow ? '"' : "";
|
|
485
|
+
if (index !== 0)
|
|
486
|
+
pairBuffer += ", ";
|
|
487
|
+
objectKey = objectKeyList[index];
|
|
488
|
+
objectValue = object[objectKey];
|
|
489
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
490
|
+
continue; // Skip this pair because of invalid key;
|
|
491
|
+
}
|
|
492
|
+
if (state.dump.length > 1024)
|
|
493
|
+
pairBuffer += "? ";
|
|
494
|
+
pairBuffer += `${state.dump}${state.condenseFlow ? '"' : ""}:${state.condenseFlow ? "" : " "}`;
|
|
495
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
496
|
+
continue; // Skip this pair because of invalid value.
|
|
497
|
+
}
|
|
498
|
+
pairBuffer += state.dump;
|
|
499
|
+
// Both key and value are valid.
|
|
500
|
+
_result += pairBuffer;
|
|
501
|
+
}
|
|
502
|
+
state.tag = _tag;
|
|
503
|
+
state.dump = `{${_result}}`;
|
|
504
|
+
}
|
|
505
|
+
function writeBlockMapping(state, level, object, compact = false) {
|
|
506
|
+
const _tag = state.tag, objectKeyList = Object.keys(object);
|
|
507
|
+
let _result = "";
|
|
508
|
+
// Allow sorting keys so that the output file is deterministic
|
|
509
|
+
if (state.sortKeys === true) {
|
|
510
|
+
// Default sorting
|
|
511
|
+
objectKeyList.sort();
|
|
512
|
+
}
|
|
513
|
+
else if (typeof state.sortKeys === "function") {
|
|
514
|
+
// Custom sort function
|
|
515
|
+
objectKeyList.sort(state.sortKeys);
|
|
516
|
+
}
|
|
517
|
+
else if (state.sortKeys) {
|
|
518
|
+
// Something is wrong
|
|
519
|
+
throw new _error_js_1.YAMLError("sortKeys must be a boolean or a function");
|
|
520
|
+
}
|
|
521
|
+
let pairBuffer = "", objectKey, objectValue, explicitPair;
|
|
522
|
+
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
523
|
+
pairBuffer = "";
|
|
524
|
+
if (!compact || index !== 0) {
|
|
525
|
+
pairBuffer += generateNextLine(state, level);
|
|
526
|
+
}
|
|
527
|
+
objectKey = objectKeyList[index];
|
|
528
|
+
objectValue = object[objectKey];
|
|
529
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
530
|
+
continue; // Skip this pair because of invalid key.
|
|
531
|
+
}
|
|
532
|
+
explicitPair = (state.tag !== null && state.tag !== "?") ||
|
|
533
|
+
(state.dump && state.dump.length > 1024);
|
|
534
|
+
if (explicitPair) {
|
|
535
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
536
|
+
pairBuffer += "?";
|
|
537
|
+
}
|
|
538
|
+
else {
|
|
539
|
+
pairBuffer += "? ";
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
pairBuffer += state.dump;
|
|
543
|
+
if (explicitPair) {
|
|
544
|
+
pairBuffer += generateNextLine(state, level);
|
|
545
|
+
}
|
|
546
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
547
|
+
continue; // Skip this pair because of invalid value.
|
|
548
|
+
}
|
|
549
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
550
|
+
pairBuffer += ":";
|
|
551
|
+
}
|
|
552
|
+
else {
|
|
553
|
+
pairBuffer += ": ";
|
|
554
|
+
}
|
|
555
|
+
pairBuffer += state.dump;
|
|
556
|
+
// Both key and value are valid.
|
|
557
|
+
_result += pairBuffer;
|
|
558
|
+
}
|
|
559
|
+
state.tag = _tag;
|
|
560
|
+
state.dump = _result || "{}"; // Empty mapping if no valid pairs.
|
|
561
|
+
}
|
|
562
|
+
function detectType(state, object, explicit = false) {
|
|
563
|
+
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
564
|
+
let type;
|
|
565
|
+
let style;
|
|
566
|
+
let _result;
|
|
567
|
+
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
568
|
+
type = typeList[index];
|
|
569
|
+
if ((type.instanceOf || type.predicate) &&
|
|
570
|
+
(!type.instanceOf ||
|
|
571
|
+
(typeof object === "object" && object instanceof type.instanceOf)) &&
|
|
572
|
+
(!type.predicate || type.predicate(object))) {
|
|
573
|
+
state.tag = explicit ? type.tag : "?";
|
|
574
|
+
if (type.represent) {
|
|
575
|
+
style = state.styleMap[type.tag] || type.defaultStyle;
|
|
576
|
+
if (_toString.call(type.represent) === "[object Function]") {
|
|
577
|
+
_result = type.represent(object, style);
|
|
578
|
+
}
|
|
579
|
+
else if (hasOwn(type.represent, style)) {
|
|
580
|
+
_result = type.represent[style](object, style);
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
throw new _error_js_1.YAMLError(`!<${type.tag}> tag resolver accepts not "${style}" style`);
|
|
584
|
+
}
|
|
585
|
+
state.dump = _result;
|
|
586
|
+
}
|
|
587
|
+
return true;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
return false;
|
|
591
|
+
}
|
|
592
|
+
// Serializes `object` and writes it to global `result`.
|
|
593
|
+
// Returns true on success, or false on invalid object.
|
|
594
|
+
//
|
|
595
|
+
function writeNode(state, level, object, block, compact, iskey = false) {
|
|
596
|
+
state.tag = null;
|
|
597
|
+
state.dump = object;
|
|
598
|
+
if (!detectType(state, object, false)) {
|
|
599
|
+
detectType(state, object, true);
|
|
600
|
+
}
|
|
601
|
+
const type = _toString.call(state.dump);
|
|
602
|
+
if (block) {
|
|
603
|
+
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
604
|
+
}
|
|
605
|
+
const objectOrArray = type === "[object Object]" || type === "[object Array]";
|
|
606
|
+
let duplicateIndex = -1;
|
|
607
|
+
let duplicate = false;
|
|
608
|
+
if (objectOrArray) {
|
|
609
|
+
duplicateIndex = state.duplicates.indexOf(object);
|
|
610
|
+
duplicate = duplicateIndex !== -1;
|
|
611
|
+
}
|
|
612
|
+
if ((state.tag !== null && state.tag !== "?") ||
|
|
613
|
+
duplicate ||
|
|
614
|
+
(state.indent !== 2 && level > 0)) {
|
|
615
|
+
compact = false;
|
|
616
|
+
}
|
|
617
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
618
|
+
state.dump = `*ref_${duplicateIndex}`;
|
|
619
|
+
}
|
|
620
|
+
else {
|
|
621
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
622
|
+
state.usedDuplicates[duplicateIndex] = true;
|
|
623
|
+
}
|
|
624
|
+
if (type === "[object Object]") {
|
|
625
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
626
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
627
|
+
if (duplicate) {
|
|
628
|
+
state.dump = `&ref_${duplicateIndex}${state.dump}`;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
else {
|
|
632
|
+
writeFlowMapping(state, level, state.dump);
|
|
633
|
+
if (duplicate) {
|
|
634
|
+
state.dump = `&ref_${duplicateIndex} ${state.dump}`;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
else if (type === "[object Array]") {
|
|
639
|
+
const arrayLevel = state.noArrayIndent && level > 0 ? level - 1 : level;
|
|
640
|
+
if (block && state.dump.length !== 0) {
|
|
641
|
+
writeBlockSequence(state, arrayLevel, state.dump, compact);
|
|
642
|
+
if (duplicate) {
|
|
643
|
+
state.dump = `&ref_${duplicateIndex}${state.dump}`;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
else {
|
|
647
|
+
writeFlowSequence(state, arrayLevel, state.dump);
|
|
648
|
+
if (duplicate) {
|
|
649
|
+
state.dump = `&ref_${duplicateIndex} ${state.dump}`;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
else if (type === "[object String]") {
|
|
654
|
+
if (state.tag !== "?") {
|
|
655
|
+
writeScalar(state, state.dump, level, iskey);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
else {
|
|
659
|
+
if (state.skipInvalid)
|
|
660
|
+
return false;
|
|
661
|
+
throw new _error_js_1.YAMLError(`unacceptable kind of an object to dump ${type}`);
|
|
662
|
+
}
|
|
663
|
+
if (state.tag !== null && state.tag !== "?") {
|
|
664
|
+
state.dump = `!<${state.tag}> ${state.dump}`;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
return true;
|
|
668
|
+
}
|
|
669
|
+
function inspectNode(object, objects, duplicatesIndexes) {
|
|
670
|
+
if (object !== null && typeof object === "object") {
|
|
671
|
+
const index = objects.indexOf(object);
|
|
672
|
+
if (index !== -1) {
|
|
673
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
674
|
+
duplicatesIndexes.push(index);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
objects.push(object);
|
|
679
|
+
if (Array.isArray(object)) {
|
|
680
|
+
for (let idx = 0, length = object.length; idx < length; idx += 1) {
|
|
681
|
+
inspectNode(object[idx], objects, duplicatesIndexes);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
else {
|
|
685
|
+
const objectKeyList = Object.keys(object);
|
|
686
|
+
for (let idx = 0, length = objectKeyList.length; idx < length; idx += 1) {
|
|
687
|
+
inspectNode(object[objectKeyList[idx]], objects, duplicatesIndexes);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
function getDuplicateReferences(object, state) {
|
|
694
|
+
const objects = [], duplicatesIndexes = [];
|
|
695
|
+
inspectNode(object, objects, duplicatesIndexes);
|
|
696
|
+
const length = duplicatesIndexes.length;
|
|
697
|
+
for (let index = 0; index < length; index += 1) {
|
|
698
|
+
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
699
|
+
}
|
|
700
|
+
state.usedDuplicates = Array.from({ length });
|
|
701
|
+
}
|
|
702
|
+
function dump(input, options) {
|
|
703
|
+
options = options || {};
|
|
704
|
+
const state = new dumper_state_js_1.DumperState(options);
|
|
705
|
+
if (!state.noRefs)
|
|
706
|
+
getDuplicateReferences(input, state);
|
|
707
|
+
if (writeNode(state, 0, input, true, true))
|
|
708
|
+
return `${state.dump}\n`;
|
|
709
|
+
return "";
|
|
710
|
+
}
|