projen 0.51.4 → 0.51.8
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/.jsii +69 -9
- package/API.md +12 -1
- package/changelog.md +1 -1
- package/lib/awscdk/auto-discover.js +1 -1
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +1 -1
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +9 -2
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose.js +2 -2
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale-util.js +12 -7
- package/lib/github/stale.d.ts +10 -1
- package/lib/github/stale.js +10 -2
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +1 -1
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +1 -1
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +1 -1
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +3 -3
- package/lib/version.js +1 -1
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.d.ts +13 -0
- package/lib/yaml.js +8 -3
- package/node_modules/{fs-extra/node_modules/universalify → universalify}/LICENSE +0 -0
- package/node_modules/{fs-extra/node_modules/universalify → universalify}/README.md +0 -0
- package/node_modules/{fs-extra/node_modules/universalify → universalify}/index.js +0 -0
- package/node_modules/{fs-extra/node_modules/universalify → universalify}/package.json +0 -0
- package/node_modules/yaml/LICENSE +1 -1
- package/node_modules/yaml/README.md +57 -41
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +59 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +40 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +81 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +81 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +107 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +185 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +45 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +200 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +223 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +128 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +27 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +17 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +321 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +72 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +54 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +84 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +166 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +18 -1002
- package/node_modules/yaml/browser/dist/log.js +14 -0
- package/node_modules/yaml/browser/dist/node_modules/tslib/tslib.es6.js +164 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +94 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +146 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +48 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +23 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +116 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +105 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +104 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +35 -0
- package/node_modules/yaml/browser/dist/options.js +18 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +215 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +692 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +882 -0
- package/node_modules/yaml/browser/dist/public-api.js +99 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +34 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +42 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +13 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +33 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +83 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +66 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +73 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +77 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +87 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +135 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +124 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +152 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +18 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +68 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +24 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +122 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +314 -0
- package/node_modules/yaml/browser/dist/util.js +9 -2
- package/node_modules/yaml/browser/dist/visit.js +146 -0
- package/node_modules/yaml/browser/index.js +5 -1
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +61 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +6 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +42 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +26 -0
- package/node_modules/yaml/dist/compose/compose-node.js +84 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +83 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +62 -0
- package/node_modules/yaml/dist/compose/composer.js +223 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +109 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +187 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +5 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +47 -0
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +202 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +21 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +130 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +29 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +19 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +139 -0
- package/node_modules/yaml/dist/doc/Document.js +323 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +77 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +56 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +86 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +47 -0
- package/node_modules/yaml/dist/doc/directives.js +168 -0
- package/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.d.ts +19 -0
- package/node_modules/yaml/dist/index.js +49 -77
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +17 -0
- package/node_modules/yaml/dist/node_modules/tslib/tslib.es6.js +76 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +28 -0
- package/node_modules/yaml/dist/nodes/Alias.js +96 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +150 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/Node.js +66 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +21 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +42 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +26 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +41 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +119 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +55 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +107 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +3 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +106 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +30 -0
- package/node_modules/yaml/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/dist/options.d.ts +338 -0
- package/node_modules/yaml/dist/options.js +20 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +219 -0
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.d.ts +106 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/yaml/dist/parse/lexer.js +694 -0
- package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/yaml/dist/parse/parser.js +886 -0
- package/node_modules/yaml/dist/public-api.d.ts +43 -0
- package/node_modules/yaml/dist/public-api.js +104 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +18 -0
- package/node_modules/yaml/dist/schema/Schema.js +36 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +44 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +35 -0
- package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +40 -0
- package/node_modules/yaml/dist/schema/tags.js +86 -0
- package/node_modules/yaml/dist/schema/types.d.ts +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +68 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +21 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +81 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +22 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +90 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +140 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +20 -0
- package/node_modules/yaml/dist/stringify/stringify.js +127 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +154 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +22 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +70 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +124 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +316 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +126 -152
- package/node_modules/yaml/dist/util.d.ts +9 -0
- package/node_modules/yaml/dist/util.js +19 -14
- package/node_modules/yaml/dist/visit.d.ts +63 -0
- package/node_modules/yaml/dist/visit.js +148 -0
- package/node_modules/yaml/package.json +43 -55
- package/node_modules/yaml/util.d.ts +3 -86
- package/node_modules/yaml/util.js +2 -16
- package/package.json +3 -3
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
- package/node_modules/jsonfile/node_modules/universalify/LICENSE +0 -20
- package/node_modules/jsonfile/node_modules/universalify/README.md +0 -76
- package/node_modules/jsonfile/node_modules/universalify/index.js +0 -24
- package/node_modules/jsonfile/node_modules/universalify/package.json +0 -34
- package/node_modules/yaml/browser/dist/PlainValue-b8036b75.js +0 -1275
- package/node_modules/yaml/browser/dist/Schema-e94716c8.js +0 -682
- package/node_modules/yaml/browser/dist/legacy-exports.js +0 -3
- package/node_modules/yaml/browser/dist/package.json +0 -1
- package/node_modules/yaml/browser/dist/parse-cst.js +0 -1904
- package/node_modules/yaml/browser/dist/resolveSeq-492ab440.js +0 -2419
- package/node_modules/yaml/browser/dist/types.js +0 -4
- package/node_modules/yaml/browser/dist/warnings-df54cb69.js +0 -499
- package/node_modules/yaml/browser/map.js +0 -2
- package/node_modules/yaml/browser/pair.js +0 -2
- package/node_modules/yaml/browser/parse-cst.js +0 -1
- package/node_modules/yaml/browser/scalar.js +0 -2
- package/node_modules/yaml/browser/schema.js +0 -9
- package/node_modules/yaml/browser/seq.js +0 -2
- package/node_modules/yaml/browser/types/binary.js +0 -8
- package/node_modules/yaml/browser/types/omap.js +0 -3
- package/node_modules/yaml/browser/types/pairs.js +0 -3
- package/node_modules/yaml/browser/types/set.js +0 -3
- package/node_modules/yaml/browser/types/timestamp.js +0 -10
- package/node_modules/yaml/browser/types.js +0 -1
- package/node_modules/yaml/browser/util.js +0 -1
- package/node_modules/yaml/dist/Document-9b4560a1.js +0 -757
- package/node_modules/yaml/dist/PlainValue-ec8e588e.js +0 -876
- package/node_modules/yaml/dist/Schema-88e323a7.js +0 -525
- package/node_modules/yaml/dist/legacy-exports.js +0 -16
- package/node_modules/yaml/dist/parse-cst.js +0 -1753
- package/node_modules/yaml/dist/resolveSeq-d03cb037.js +0 -2161
- package/node_modules/yaml/dist/types.js +0 -23
- package/node_modules/yaml/dist/warnings-1000a372.js +0 -416
- package/node_modules/yaml/index.d.ts +0 -372
- package/node_modules/yaml/index.js +0 -1
- package/node_modules/yaml/map.js +0 -2
- package/node_modules/yaml/pair.js +0 -2
- package/node_modules/yaml/parse-cst.d.ts +0 -191
- package/node_modules/yaml/parse-cst.js +0 -1
- package/node_modules/yaml/scalar.js +0 -2
- package/node_modules/yaml/schema.js +0 -9
- package/node_modules/yaml/seq.js +0 -2
- package/node_modules/yaml/types/binary.js +0 -8
- package/node_modules/yaml/types/omap.js +0 -3
- package/node_modules/yaml/types/pairs.js +0 -3
- package/node_modules/yaml/types/set.js +0 -3
- package/node_modules/yaml/types/timestamp.js +0 -10
- package/node_modules/yaml/types.d.ts +0 -407
- package/node_modules/yaml/types.js +0 -17
- package/node_modules/yaml/types.mjs +0 -17
- package/node_modules/yaml/util.mjs +0 -18
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { A as Alias, C as Collection, M as Merge, N as Node, P as Pair, S as Scalar, d as YAMLMap, Y as YAMLSeq, b as binaryOptions, a as boolOptions, i as intOptions, n as nullOptions, s as strOptions } from './resolveSeq-492ab440.js';
|
|
2
|
-
export { S as Schema } from './Schema-e94716c8.js';
|
|
3
|
-
import './PlainValue-b8036b75.js';
|
|
4
|
-
import './warnings-df54cb69.js';
|
|
@@ -1,499 +0,0 @@
|
|
|
1
|
-
import { o as YAMLReferenceError, T as Type, g as YAMLSemanticError, _ as _createForOfIteratorHelper, e as _defineProperty, j as _inherits, k as _createSuper, c as _classCallCheck, p as _assertThisInitialized, b as _createClass, a as _typeof, l as _get, m as _getPrototypeOf } from './PlainValue-b8036b75.js';
|
|
2
|
-
import { j as resolveString, b as binaryOptions, c as stringifyString, h as resolveSeq, P as Pair, d as YAMLMap, Y as YAMLSeq, t as toJSON, S as Scalar, l as findPair, g as resolveMap, k as stringifyNumber } from './resolveSeq-492ab440.js';
|
|
3
|
-
|
|
4
|
-
/* global atob, btoa, Buffer */
|
|
5
|
-
var binary = {
|
|
6
|
-
identify: function identify(value) {
|
|
7
|
-
return value instanceof Uint8Array;
|
|
8
|
-
},
|
|
9
|
-
// Buffer inherits from Uint8Array
|
|
10
|
-
default: false,
|
|
11
|
-
tag: 'tag:yaml.org,2002:binary',
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Returns a Buffer in node and an Uint8Array in browsers
|
|
15
|
-
*
|
|
16
|
-
* To use the resulting buffer as an image, you'll want to do something like:
|
|
17
|
-
*
|
|
18
|
-
* const blob = new Blob([buffer], { type: 'image/jpeg' })
|
|
19
|
-
* document.querySelector('#photo').src = URL.createObjectURL(blob)
|
|
20
|
-
*/
|
|
21
|
-
resolve: function resolve(doc, node) {
|
|
22
|
-
var src = resolveString(doc, node);
|
|
23
|
-
|
|
24
|
-
if (typeof Buffer === 'function') {
|
|
25
|
-
return Buffer.from(src, 'base64');
|
|
26
|
-
} else if (typeof atob === 'function') {
|
|
27
|
-
// On IE 11, atob() can't handle newlines
|
|
28
|
-
var str = atob(src.replace(/[\n\r]/g, ''));
|
|
29
|
-
var buffer = new Uint8Array(str.length);
|
|
30
|
-
|
|
31
|
-
for (var i = 0; i < str.length; ++i) {
|
|
32
|
-
buffer[i] = str.charCodeAt(i);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return buffer;
|
|
36
|
-
} else {
|
|
37
|
-
var msg = 'This environment does not support reading binary tags; either Buffer or atob is required';
|
|
38
|
-
doc.errors.push(new YAMLReferenceError(node, msg));
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
options: binaryOptions,
|
|
43
|
-
stringify: function stringify(_ref, ctx, onComment, onChompKeep) {
|
|
44
|
-
var comment = _ref.comment,
|
|
45
|
-
type = _ref.type,
|
|
46
|
-
value = _ref.value;
|
|
47
|
-
var src;
|
|
48
|
-
|
|
49
|
-
if (typeof Buffer === 'function') {
|
|
50
|
-
src = value instanceof Buffer ? value.toString('base64') : Buffer.from(value.buffer).toString('base64');
|
|
51
|
-
} else if (typeof btoa === 'function') {
|
|
52
|
-
var s = '';
|
|
53
|
-
|
|
54
|
-
for (var i = 0; i < value.length; ++i) {
|
|
55
|
-
s += String.fromCharCode(value[i]);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
src = btoa(s);
|
|
59
|
-
} else {
|
|
60
|
-
throw new Error('This environment does not support writing binary tags; either Buffer or btoa is required');
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (!type) type = binaryOptions.defaultType;
|
|
64
|
-
|
|
65
|
-
if (type === Type.QUOTE_DOUBLE) {
|
|
66
|
-
value = src;
|
|
67
|
-
} else {
|
|
68
|
-
var lineWidth = binaryOptions.lineWidth;
|
|
69
|
-
var n = Math.ceil(src.length / lineWidth);
|
|
70
|
-
var lines = new Array(n);
|
|
71
|
-
|
|
72
|
-
for (var _i = 0, o = 0; _i < n; ++_i, o += lineWidth) {
|
|
73
|
-
lines[_i] = src.substr(o, lineWidth);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
value = lines.join(type === Type.BLOCK_LITERAL ? '\n' : ' ');
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return stringifyString({
|
|
80
|
-
comment: comment,
|
|
81
|
-
type: type,
|
|
82
|
-
value: value
|
|
83
|
-
}, ctx, onComment, onChompKeep);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
function parsePairs(doc, cst) {
|
|
88
|
-
var seq = resolveSeq(doc, cst);
|
|
89
|
-
|
|
90
|
-
for (var i = 0; i < seq.items.length; ++i) {
|
|
91
|
-
var item = seq.items[i];
|
|
92
|
-
if (item instanceof Pair) continue;else if (item instanceof YAMLMap) {
|
|
93
|
-
if (item.items.length > 1) {
|
|
94
|
-
var msg = 'Each pair must have its own sequence indicator';
|
|
95
|
-
throw new YAMLSemanticError(cst, msg);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
var pair = item.items[0] || new Pair();
|
|
99
|
-
if (item.commentBefore) pair.commentBefore = pair.commentBefore ? "".concat(item.commentBefore, "\n").concat(pair.commentBefore) : item.commentBefore;
|
|
100
|
-
if (item.comment) pair.comment = pair.comment ? "".concat(item.comment, "\n").concat(pair.comment) : item.comment;
|
|
101
|
-
item = pair;
|
|
102
|
-
}
|
|
103
|
-
seq.items[i] = item instanceof Pair ? item : new Pair(item);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return seq;
|
|
107
|
-
}
|
|
108
|
-
function createPairs(schema, iterable, ctx) {
|
|
109
|
-
var pairs = new YAMLSeq(schema);
|
|
110
|
-
pairs.tag = 'tag:yaml.org,2002:pairs';
|
|
111
|
-
|
|
112
|
-
var _iterator = _createForOfIteratorHelper(iterable),
|
|
113
|
-
_step;
|
|
114
|
-
|
|
115
|
-
try {
|
|
116
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
117
|
-
var it = _step.value;
|
|
118
|
-
var key = void 0,
|
|
119
|
-
value = void 0;
|
|
120
|
-
|
|
121
|
-
if (Array.isArray(it)) {
|
|
122
|
-
if (it.length === 2) {
|
|
123
|
-
key = it[0];
|
|
124
|
-
value = it[1];
|
|
125
|
-
} else throw new TypeError("Expected [key, value] tuple: ".concat(it));
|
|
126
|
-
} else if (it && it instanceof Object) {
|
|
127
|
-
var keys = Object.keys(it);
|
|
128
|
-
|
|
129
|
-
if (keys.length === 1) {
|
|
130
|
-
key = keys[0];
|
|
131
|
-
value = it[key];
|
|
132
|
-
} else throw new TypeError("Expected { key: value } tuple: ".concat(it));
|
|
133
|
-
} else {
|
|
134
|
-
key = it;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
var pair = schema.createPair(key, value, ctx);
|
|
138
|
-
pairs.items.push(pair);
|
|
139
|
-
}
|
|
140
|
-
} catch (err) {
|
|
141
|
-
_iterator.e(err);
|
|
142
|
-
} finally {
|
|
143
|
-
_iterator.f();
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return pairs;
|
|
147
|
-
}
|
|
148
|
-
var pairs = {
|
|
149
|
-
default: false,
|
|
150
|
-
tag: 'tag:yaml.org,2002:pairs',
|
|
151
|
-
resolve: parsePairs,
|
|
152
|
-
createNode: createPairs
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
var YAMLOMap = /*#__PURE__*/function (_YAMLSeq) {
|
|
156
|
-
_inherits(YAMLOMap, _YAMLSeq);
|
|
157
|
-
|
|
158
|
-
var _super = _createSuper(YAMLOMap);
|
|
159
|
-
|
|
160
|
-
function YAMLOMap() {
|
|
161
|
-
var _this;
|
|
162
|
-
|
|
163
|
-
_classCallCheck(this, YAMLOMap);
|
|
164
|
-
|
|
165
|
-
_this = _super.call(this);
|
|
166
|
-
|
|
167
|
-
_defineProperty(_assertThisInitialized(_this), "add", YAMLMap.prototype.add.bind(_assertThisInitialized(_this)));
|
|
168
|
-
|
|
169
|
-
_defineProperty(_assertThisInitialized(_this), "delete", YAMLMap.prototype.delete.bind(_assertThisInitialized(_this)));
|
|
170
|
-
|
|
171
|
-
_defineProperty(_assertThisInitialized(_this), "get", YAMLMap.prototype.get.bind(_assertThisInitialized(_this)));
|
|
172
|
-
|
|
173
|
-
_defineProperty(_assertThisInitialized(_this), "has", YAMLMap.prototype.has.bind(_assertThisInitialized(_this)));
|
|
174
|
-
|
|
175
|
-
_defineProperty(_assertThisInitialized(_this), "set", YAMLMap.prototype.set.bind(_assertThisInitialized(_this)));
|
|
176
|
-
|
|
177
|
-
_this.tag = YAMLOMap.tag;
|
|
178
|
-
return _this;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
_createClass(YAMLOMap, [{
|
|
182
|
-
key: "toJSON",
|
|
183
|
-
value: function toJSON$1(_, ctx) {
|
|
184
|
-
var map = new Map();
|
|
185
|
-
if (ctx && ctx.onCreate) ctx.onCreate(map);
|
|
186
|
-
|
|
187
|
-
var _iterator = _createForOfIteratorHelper(this.items),
|
|
188
|
-
_step;
|
|
189
|
-
|
|
190
|
-
try {
|
|
191
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
192
|
-
var pair = _step.value;
|
|
193
|
-
var key = void 0,
|
|
194
|
-
value = void 0;
|
|
195
|
-
|
|
196
|
-
if (pair instanceof Pair) {
|
|
197
|
-
key = toJSON(pair.key, '', ctx);
|
|
198
|
-
value = toJSON(pair.value, key, ctx);
|
|
199
|
-
} else {
|
|
200
|
-
key = toJSON(pair, '', ctx);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
if (map.has(key)) throw new Error('Ordered maps must not include duplicate keys');
|
|
204
|
-
map.set(key, value);
|
|
205
|
-
}
|
|
206
|
-
} catch (err) {
|
|
207
|
-
_iterator.e(err);
|
|
208
|
-
} finally {
|
|
209
|
-
_iterator.f();
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
return map;
|
|
213
|
-
}
|
|
214
|
-
}]);
|
|
215
|
-
|
|
216
|
-
return YAMLOMap;
|
|
217
|
-
}(YAMLSeq);
|
|
218
|
-
|
|
219
|
-
_defineProperty(YAMLOMap, "tag", 'tag:yaml.org,2002:omap');
|
|
220
|
-
|
|
221
|
-
function parseOMap(doc, cst) {
|
|
222
|
-
var pairs = parsePairs(doc, cst);
|
|
223
|
-
var seenKeys = [];
|
|
224
|
-
|
|
225
|
-
var _iterator2 = _createForOfIteratorHelper(pairs.items),
|
|
226
|
-
_step2;
|
|
227
|
-
|
|
228
|
-
try {
|
|
229
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
230
|
-
var key = _step2.value.key;
|
|
231
|
-
|
|
232
|
-
if (key instanceof Scalar) {
|
|
233
|
-
if (seenKeys.includes(key.value)) {
|
|
234
|
-
var msg = 'Ordered maps must not include duplicate keys';
|
|
235
|
-
throw new YAMLSemanticError(cst, msg);
|
|
236
|
-
} else {
|
|
237
|
-
seenKeys.push(key.value);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
} catch (err) {
|
|
242
|
-
_iterator2.e(err);
|
|
243
|
-
} finally {
|
|
244
|
-
_iterator2.f();
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
return Object.assign(new YAMLOMap(), pairs);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
function createOMap(schema, iterable, ctx) {
|
|
251
|
-
var pairs = createPairs(schema, iterable, ctx);
|
|
252
|
-
var omap = new YAMLOMap();
|
|
253
|
-
omap.items = pairs.items;
|
|
254
|
-
return omap;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
var omap = {
|
|
258
|
-
identify: function identify(value) {
|
|
259
|
-
return value instanceof Map;
|
|
260
|
-
},
|
|
261
|
-
nodeClass: YAMLOMap,
|
|
262
|
-
default: false,
|
|
263
|
-
tag: 'tag:yaml.org,2002:omap',
|
|
264
|
-
resolve: parseOMap,
|
|
265
|
-
createNode: createOMap
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
var YAMLSet = /*#__PURE__*/function (_YAMLMap) {
|
|
269
|
-
_inherits(YAMLSet, _YAMLMap);
|
|
270
|
-
|
|
271
|
-
var _super = _createSuper(YAMLSet);
|
|
272
|
-
|
|
273
|
-
function YAMLSet() {
|
|
274
|
-
var _this;
|
|
275
|
-
|
|
276
|
-
_classCallCheck(this, YAMLSet);
|
|
277
|
-
|
|
278
|
-
_this = _super.call(this);
|
|
279
|
-
_this.tag = YAMLSet.tag;
|
|
280
|
-
return _this;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
_createClass(YAMLSet, [{
|
|
284
|
-
key: "add",
|
|
285
|
-
value: function add(key) {
|
|
286
|
-
var pair = key instanceof Pair ? key : new Pair(key);
|
|
287
|
-
var prev = findPair(this.items, pair.key);
|
|
288
|
-
if (!prev) this.items.push(pair);
|
|
289
|
-
}
|
|
290
|
-
}, {
|
|
291
|
-
key: "get",
|
|
292
|
-
value: function get(key, keepPair) {
|
|
293
|
-
var pair = findPair(this.items, key);
|
|
294
|
-
return !keepPair && pair instanceof Pair ? pair.key instanceof Scalar ? pair.key.value : pair.key : pair;
|
|
295
|
-
}
|
|
296
|
-
}, {
|
|
297
|
-
key: "set",
|
|
298
|
-
value: function set(key, value) {
|
|
299
|
-
if (typeof value !== 'boolean') throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(_typeof(value)));
|
|
300
|
-
var prev = findPair(this.items, key);
|
|
301
|
-
|
|
302
|
-
if (prev && !value) {
|
|
303
|
-
this.items.splice(this.items.indexOf(prev), 1);
|
|
304
|
-
} else if (!prev && value) {
|
|
305
|
-
this.items.push(new Pair(key));
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}, {
|
|
309
|
-
key: "toJSON",
|
|
310
|
-
value: function toJSON(_, ctx) {
|
|
311
|
-
return _get(_getPrototypeOf(YAMLSet.prototype), "toJSON", this).call(this, _, ctx, Set);
|
|
312
|
-
}
|
|
313
|
-
}, {
|
|
314
|
-
key: "toString",
|
|
315
|
-
value: function toString(ctx, onComment, onChompKeep) {
|
|
316
|
-
if (!ctx) return JSON.stringify(this);
|
|
317
|
-
if (this.hasAllNullValues()) return _get(_getPrototypeOf(YAMLSet.prototype), "toString", this).call(this, ctx, onComment, onChompKeep);else throw new Error('Set items must all have null values');
|
|
318
|
-
}
|
|
319
|
-
}]);
|
|
320
|
-
|
|
321
|
-
return YAMLSet;
|
|
322
|
-
}(YAMLMap);
|
|
323
|
-
|
|
324
|
-
_defineProperty(YAMLSet, "tag", 'tag:yaml.org,2002:set');
|
|
325
|
-
|
|
326
|
-
function parseSet(doc, cst) {
|
|
327
|
-
var map = resolveMap(doc, cst);
|
|
328
|
-
if (!map.hasAllNullValues()) throw new YAMLSemanticError(cst, 'Set items must all have null values');
|
|
329
|
-
return Object.assign(new YAMLSet(), map);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
function createSet(schema, iterable, ctx) {
|
|
333
|
-
var set = new YAMLSet();
|
|
334
|
-
|
|
335
|
-
var _iterator = _createForOfIteratorHelper(iterable),
|
|
336
|
-
_step;
|
|
337
|
-
|
|
338
|
-
try {
|
|
339
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
340
|
-
var value = _step.value;
|
|
341
|
-
set.items.push(schema.createPair(value, null, ctx));
|
|
342
|
-
}
|
|
343
|
-
} catch (err) {
|
|
344
|
-
_iterator.e(err);
|
|
345
|
-
} finally {
|
|
346
|
-
_iterator.f();
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
return set;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
var set = {
|
|
353
|
-
identify: function identify(value) {
|
|
354
|
-
return value instanceof Set;
|
|
355
|
-
},
|
|
356
|
-
nodeClass: YAMLSet,
|
|
357
|
-
default: false,
|
|
358
|
-
tag: 'tag:yaml.org,2002:set',
|
|
359
|
-
resolve: parseSet,
|
|
360
|
-
createNode: createSet
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
var parseSexagesimal = function parseSexagesimal(sign, parts) {
|
|
364
|
-
var n = parts.split(':').reduce(function (n, p) {
|
|
365
|
-
return n * 60 + Number(p);
|
|
366
|
-
}, 0);
|
|
367
|
-
return sign === '-' ? -n : n;
|
|
368
|
-
}; // hhhh:mm:ss.sss
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
var stringifySexagesimal = function stringifySexagesimal(_ref) {
|
|
372
|
-
var value = _ref.value;
|
|
373
|
-
if (isNaN(value) || !isFinite(value)) return stringifyNumber(value);
|
|
374
|
-
var sign = '';
|
|
375
|
-
|
|
376
|
-
if (value < 0) {
|
|
377
|
-
sign = '-';
|
|
378
|
-
value = Math.abs(value);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
var parts = [value % 60]; // seconds, including ms
|
|
382
|
-
|
|
383
|
-
if (value < 60) {
|
|
384
|
-
parts.unshift(0); // at least one : is required
|
|
385
|
-
} else {
|
|
386
|
-
value = Math.round((value - parts[0]) / 60);
|
|
387
|
-
parts.unshift(value % 60); // minutes
|
|
388
|
-
|
|
389
|
-
if (value >= 60) {
|
|
390
|
-
value = Math.round((value - parts[0]) / 60);
|
|
391
|
-
parts.unshift(value); // hours
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
return sign + parts.map(function (n) {
|
|
396
|
-
return n < 10 ? '0' + String(n) : String(n);
|
|
397
|
-
}).join(':').replace(/000000\d*$/, '') // % 60 may introduce error
|
|
398
|
-
;
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
var intTime = {
|
|
402
|
-
identify: function identify(value) {
|
|
403
|
-
return typeof value === 'number';
|
|
404
|
-
},
|
|
405
|
-
default: true,
|
|
406
|
-
tag: 'tag:yaml.org,2002:int',
|
|
407
|
-
format: 'TIME',
|
|
408
|
-
test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,
|
|
409
|
-
resolve: function resolve(str, sign, parts) {
|
|
410
|
-
return parseSexagesimal(sign, parts.replace(/_/g, ''));
|
|
411
|
-
},
|
|
412
|
-
stringify: stringifySexagesimal
|
|
413
|
-
};
|
|
414
|
-
var floatTime = {
|
|
415
|
-
identify: function identify(value) {
|
|
416
|
-
return typeof value === 'number';
|
|
417
|
-
},
|
|
418
|
-
default: true,
|
|
419
|
-
tag: 'tag:yaml.org,2002:float',
|
|
420
|
-
format: 'TIME',
|
|
421
|
-
test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,
|
|
422
|
-
resolve: function resolve(str, sign, parts) {
|
|
423
|
-
return parseSexagesimal(sign, parts.replace(/_/g, ''));
|
|
424
|
-
},
|
|
425
|
-
stringify: stringifySexagesimal
|
|
426
|
-
};
|
|
427
|
-
var timestamp = {
|
|
428
|
-
identify: function identify(value) {
|
|
429
|
-
return value instanceof Date;
|
|
430
|
-
},
|
|
431
|
-
default: true,
|
|
432
|
-
tag: 'tag:yaml.org,2002:timestamp',
|
|
433
|
-
// If the time zone is omitted, the timestamp is assumed to be specified in UTC. The time part
|
|
434
|
-
// may be omitted altogether, resulting in a date format. In such a case, the time part is
|
|
435
|
-
// assumed to be 00:00:00Z (start of day, UTC).
|
|
436
|
-
test: RegExp('^(?:' + '([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})' + // YYYY-Mm-Dd
|
|
437
|
-
'(?:(?:t|T|[ \\t]+)' + // t | T | whitespace
|
|
438
|
-
'([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)' + // Hh:Mm:Ss(.ss)?
|
|
439
|
-
'(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?' + // Z | +5 | -03:30
|
|
440
|
-
')?' + ')$'),
|
|
441
|
-
resolve: function resolve(str, year, month, day, hour, minute, second, millisec, tz) {
|
|
442
|
-
if (millisec) millisec = (millisec + '00').substr(1, 3);
|
|
443
|
-
var date = Date.UTC(year, month - 1, day, hour || 0, minute || 0, second || 0, millisec || 0);
|
|
444
|
-
|
|
445
|
-
if (tz && tz !== 'Z') {
|
|
446
|
-
var d = parseSexagesimal(tz[0], tz.slice(1));
|
|
447
|
-
if (Math.abs(d) < 30) d *= 60;
|
|
448
|
-
date -= 60000 * d;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
return new Date(date);
|
|
452
|
-
},
|
|
453
|
-
stringify: function stringify(_ref2) {
|
|
454
|
-
var value = _ref2.value;
|
|
455
|
-
return value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '');
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
/* global console, process, YAML_SILENCE_DEPRECATION_WARNINGS, YAML_SILENCE_WARNINGS */
|
|
460
|
-
function shouldWarn(deprecation) {
|
|
461
|
-
var env = typeof process !== 'undefined' && process.env || {};
|
|
462
|
-
|
|
463
|
-
if (deprecation) {
|
|
464
|
-
if (typeof YAML_SILENCE_DEPRECATION_WARNINGS !== 'undefined') return !YAML_SILENCE_DEPRECATION_WARNINGS;
|
|
465
|
-
return !env.YAML_SILENCE_DEPRECATION_WARNINGS;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
if (typeof YAML_SILENCE_WARNINGS !== 'undefined') return !YAML_SILENCE_WARNINGS;
|
|
469
|
-
return !env.YAML_SILENCE_WARNINGS;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
function warn(warning, type) {
|
|
473
|
-
if (shouldWarn(false)) {
|
|
474
|
-
var emit = typeof process !== 'undefined' && process.emitWarning; // This will throw in Jest if `warning` is an Error instance due to
|
|
475
|
-
// https://github.com/facebook/jest/issues/2549
|
|
476
|
-
|
|
477
|
-
if (emit) emit(warning, type);else {
|
|
478
|
-
// eslint-disable-next-line no-console
|
|
479
|
-
console.warn(type ? "".concat(type, ": ").concat(warning) : warning);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
function warnFileDeprecation(filename) {
|
|
484
|
-
if (shouldWarn(true)) {
|
|
485
|
-
var path = filename.replace(/.*yaml[/\\]/i, '').replace(/\.js$/, '').replace(/\\/g, '/');
|
|
486
|
-
warn("The endpoint 'yaml/".concat(path, "' will be removed in a future release."), 'DeprecationWarning');
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
var warned = {};
|
|
490
|
-
function warnOptionDeprecation(name, alternative) {
|
|
491
|
-
if (!warned[name] && shouldWarn(true)) {
|
|
492
|
-
warned[name] = true;
|
|
493
|
-
var msg = "The option '".concat(name, "' will be removed in a future release");
|
|
494
|
-
msg += alternative ? ", use '".concat(alternative, "' instead.") : '.';
|
|
495
|
-
warn(msg, 'DeprecationWarning');
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
export { warnOptionDeprecation as a, binary as b, warnFileDeprecation as c, floatTime as f, intTime as i, omap as o, pairs as p, set as s, timestamp as t, warn as w };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('./dist/parse-cst').parse
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const types = require('./dist/types')
|
|
2
|
-
const util = require('./dist/util')
|
|
3
|
-
|
|
4
|
-
module.exports = types.Schema
|
|
5
|
-
module.exports.nullOptions = types.nullOptions
|
|
6
|
-
module.exports.strOptions = types.strOptions
|
|
7
|
-
module.exports.stringify = util.stringifyString
|
|
8
|
-
|
|
9
|
-
require('./dist/legacy-exports').warnFileDeprecation(__filename)
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
Object.defineProperty(exports, '__esModule', { value: true })
|
|
3
|
-
|
|
4
|
-
const legacy = require('../dist/legacy-exports')
|
|
5
|
-
exports.default = [legacy.intTime, legacy.floatTime, legacy.timestamp]
|
|
6
|
-
exports.floatTime = legacy.floatTime
|
|
7
|
-
exports.intTime = legacy.intTime
|
|
8
|
-
exports.timestamp = legacy.timestamp
|
|
9
|
-
|
|
10
|
-
legacy.warnFileDeprecation(__filename)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('./dist/types')
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('./dist/util')
|