projen 0.99.2 → 0.99.3
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 +2 -2
- package/lib/ai-instructions.js +2 -2
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.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-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +4 -4
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.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/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/auto-queue.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/merge-queue.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-backport.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow-job.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflow-steps.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 +2 -2
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/biome/biome.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/license-checker.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 +2 -2
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/javascript/yarnrc.js +1 -1
- package/lib/json-patch.js +1 -1
- 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-tree.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.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/pyproject-toml-file.js +1 -1
- package/lib/python/pytest-sample.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/uv.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/renovatebot.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-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +6 -6
- package/lib/version.js +2 -2
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.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.js +1 -1
- package/node_modules/@iarna/toml/LICENSE +14 -0
- package/node_modules/@iarna/toml/README.md +301 -0
- package/node_modules/@iarna/toml/index.d.ts +57 -0
- package/node_modules/@iarna/toml/lib/create-date.js +23 -0
- package/node_modules/@iarna/toml/lib/create-datetime-float.js +24 -0
- package/node_modules/@iarna/toml/lib/create-datetime.js +10 -0
- package/node_modules/@iarna/toml/lib/create-time.js +22 -0
- package/node_modules/@iarna/toml/lib/format-num.js +6 -0
- package/node_modules/@iarna/toml/lib/parser-debug.js +60 -0
- package/node_modules/@iarna/toml/lib/parser.js +127 -0
- package/node_modules/@iarna/toml/lib/toml-parser.js +1379 -0
- package/node_modules/@iarna/toml/package.json +82 -0
- package/node_modules/@iarna/toml/parse-async.js +30 -0
- package/node_modules/@iarna/toml/parse-pretty-error.js +33 -0
- package/node_modules/@iarna/toml/parse-stream.js +80 -0
- package/node_modules/@iarna/toml/parse-string.js +18 -0
- package/node_modules/@iarna/toml/parse.js +5 -0
- package/node_modules/@iarna/toml/stringify.js +296 -0
- package/node_modules/@iarna/toml/toml.js +3 -0
- package/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- package/node_modules/@nodelib/fs.scandir/README.md +171 -0
- package/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/node_modules/@nodelib/fs.stat/README.md +126 -0
- package/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/node_modules/@nodelib/fs.walk/README.md +215 -0
- package/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/node_modules/@oozcitak/dom/LICENSE +21 -0
- package/node_modules/@oozcitak/dom/README.md +30 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.d.ts +21 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js +57 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.d.ts +8 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js +23 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.d.ts +8 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js +76 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.d.ts +19 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js +118 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.d.ts +192 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js +302 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.d.ts +61 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js +108 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.d.ts +72 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js +266 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.d.ts +21 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js +61 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.d.ts +29 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js +123 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.d.ts +121 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js +602 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.d.ts +146 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js +938 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.d.ts +33 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js +120 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.d.ts +66 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js +998 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.d.ts +43 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js +214 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.d.ts +29 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js +85 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.d.ts +68 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js +488 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.d.ts +15 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js +105 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.d.ts +27 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js +73 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.d.ts +9 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js +47 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.d.ts +82 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js +723 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.d.ts +8 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js +21 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.d.ts +57 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js +241 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.d.ts +30 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js +200 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.d.ts +8 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js +62 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.d.ts +268 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js +786 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.d.ts +17 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js +147 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.d.ts +8 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js +14 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.d.ts +25 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js +164 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/index.d.ts +28 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/index.js +45 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.d.ts +15 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js +29 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.d.ts +23 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js +36 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.d.ts +23 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js +28 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.d.ts +45 -0
- package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js +79 -0
- package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.d.ts +21 -0
- package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js +37 -0
- package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.d.ts +35 -0
- package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js +84 -0
- package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.d.ts +16 -0
- package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js +151 -0
- package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.d.ts +21 -0
- package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js +37 -0
- package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.d.ts +16 -0
- package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js +38 -0
- package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMException.d.ts +171 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMException.js +257 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMException.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.d.ts +48 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js +83 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.d.ts +29 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js +150 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.d.ts +46 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js +254 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.d.ts +32 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js +60 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.d.ts +116 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js +413 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.d.ts +11 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js +15 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.d.ts +39 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js +63 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.d.ts +132 -0
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js +555 -0
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventImpl.d.ts +74 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js +265 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.d.ts +30 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js +108 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.d.ts +44 -0
- package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js +151 -0
- package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.d.ts +22 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js +132 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.d.ts +73 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js +89 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.d.ts +34 -0
- package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js +98 -0
- package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.d.ts +50 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js +80 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.d.ts +252 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js +795 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.d.ts +34 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js +66 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.d.ts +46 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js +170 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.d.ts +49 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js +161 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.d.ts +12 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js +43 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.d.ts +9 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js +29 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.d.ts +24 -0
- package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js +110 -0
- package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.d.ts +25 -0
- package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js +42 -0
- package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.d.ts +71 -0
- package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js +582 -0
- package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.d.ts +33 -0
- package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js +61 -0
- package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.d.ts +16 -0
- package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js +23 -0
- package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.d.ts +13 -0
- package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js +35 -0
- package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/TextImpl.d.ts +28 -0
- package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js +63 -0
- package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.d.ts +23 -0
- package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js +33 -0
- package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.d.ts +36 -0
- package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js +231 -0
- package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.d.ts +26 -0
- package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js +36 -0
- package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.d.ts +11 -0
- package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js +17 -0
- package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/index.d.ts +36 -0
- package/node_modules/@oozcitak/dom/lib/dom/index.js +103 -0
- package/node_modules/@oozcitak/dom/lib/dom/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.d.ts +2221 -0
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.js +93 -0
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/index.d.ts +3 -0
- package/node_modules/@oozcitak/dom/lib/index.js +12 -0
- package/node_modules/@oozcitak/dom/lib/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.d.ts +11 -0
- package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js +35 -0
- package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.d.ts +26 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js +190 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.d.ts +159 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js +496 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/index.d.ts +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/index.js +7 -0
- package/node_modules/@oozcitak/dom/lib/parser/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.d.ts +131 -0
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.js +19 -0
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.d.ts +27 -0
- package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js +54 -0
- package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.d.ts +52 -0
- package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js +149 -0
- package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.d.ts +166 -0
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js +1367 -0
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/index.d.ts +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/index.js +7 -0
- package/node_modules/@oozcitak/dom/lib/serializer/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/interfaces.d.ts +15 -0
- package/node_modules/@oozcitak/dom/lib/serializer/interfaces.js +3 -0
- package/node_modules/@oozcitak/dom/lib/serializer/interfaces.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/util/Cast.d.ts +12 -0
- package/node_modules/@oozcitak/dom/lib/util/Cast.js +24 -0
- package/node_modules/@oozcitak/dom/lib/util/Cast.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.d.ts +21 -0
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.js +48 -0
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/util/Guard.d.ts +135 -0
- package/node_modules/@oozcitak/dom/lib/util/Guard.js +190 -0
- package/node_modules/@oozcitak/dom/lib/util/Guard.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/util/index.d.ts +3 -0
- package/node_modules/@oozcitak/dom/lib/util/index.js +10 -0
- package/node_modules/@oozcitak/dom/lib/util/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/package.json +45 -0
- package/node_modules/@oozcitak/infra/LICENSE +21 -0
- package/node_modules/@oozcitak/infra/README.md +11 -0
- package/node_modules/@oozcitak/infra/lib/Base64.d.ts +12 -0
- package/node_modules/@oozcitak/infra/lib/Base64.js +82 -0
- package/node_modules/@oozcitak/infra/lib/Base64.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Byte.d.ts +6 -0
- package/node_modules/@oozcitak/infra/lib/Byte.js +15 -0
- package/node_modules/@oozcitak/infra/lib/Byte.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/ByteSequence.d.ts +45 -0
- package/node_modules/@oozcitak/infra/lib/ByteSequence.js +151 -0
- package/node_modules/@oozcitak/infra/lib/ByteSequence.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/CodePoints.d.ts +82 -0
- package/node_modules/@oozcitak/infra/lib/CodePoints.js +86 -0
- package/node_modules/@oozcitak/infra/lib/CodePoints.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/JSON.d.ts +24 -0
- package/node_modules/@oozcitak/infra/lib/JSON.js +101 -0
- package/node_modules/@oozcitak/infra/lib/JSON.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/List.d.ts +101 -0
- package/node_modules/@oozcitak/infra/lib/List.js +201 -0
- package/node_modules/@oozcitak/infra/lib/List.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Map.d.ts +87 -0
- package/node_modules/@oozcitak/infra/lib/Map.js +174 -0
- package/node_modules/@oozcitak/infra/lib/Map.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Namespace.d.ts +6 -0
- package/node_modules/@oozcitak/infra/lib/Namespace.js +10 -0
- package/node_modules/@oozcitak/infra/lib/Namespace.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Queue.d.ts +13 -0
- package/node_modules/@oozcitak/infra/lib/Queue.js +22 -0
- package/node_modules/@oozcitak/infra/lib/Queue.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Set.d.ts +136 -0
- package/node_modules/@oozcitak/infra/lib/Set.js +289 -0
- package/node_modules/@oozcitak/infra/lib/Set.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Stack.d.ts +13 -0
- package/node_modules/@oozcitak/infra/lib/Stack.js +22 -0
- package/node_modules/@oozcitak/infra/lib/Stack.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/String.d.ts +129 -0
- package/node_modules/@oozcitak/infra/lib/String.js +416 -0
- package/node_modules/@oozcitak/infra/lib/String.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/index.d.ts +13 -0
- package/node_modules/@oozcitak/infra/lib/index.js +61 -0
- package/node_modules/@oozcitak/infra/lib/index.js.map +1 -0
- package/node_modules/@oozcitak/infra/package.json +41 -0
- package/node_modules/@oozcitak/url/LICENSE +21 -0
- package/node_modules/@oozcitak/url/README.md +25 -0
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.d.ts +267 -0
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.js +2585 -0
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/url/lib/URLImpl.d.ts +53 -0
- package/node_modules/@oozcitak/url/lib/URLImpl.js +331 -0
- package/node_modules/@oozcitak/url/lib/URLImpl.js.map +1 -0
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.d.ts +38 -0
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js +184 -0
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js.map +1 -0
- package/node_modules/@oozcitak/url/lib/index.d.ts +2 -0
- package/node_modules/@oozcitak/url/lib/index.js +8 -0
- package/node_modules/@oozcitak/url/lib/index.js.map +1 -0
- package/node_modules/@oozcitak/url/lib/interfaces.d.ts +195 -0
- package/node_modules/@oozcitak/url/lib/interfaces.js +32 -0
- package/node_modules/@oozcitak/url/lib/interfaces.js.map +1 -0
- package/node_modules/@oozcitak/url/package.json +42 -0
- package/node_modules/@oozcitak/util/LICENSE +21 -0
- package/node_modules/@oozcitak/util/README.md +8 -0
- package/node_modules/@oozcitak/util/lib/CompareCache.d.ts +32 -0
- package/node_modules/@oozcitak/util/lib/CompareCache.js +59 -0
- package/node_modules/@oozcitak/util/lib/CompareCache.js.map +1 -0
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.d.ts +64 -0
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.js +99 -0
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.js.map +1 -0
- package/node_modules/@oozcitak/util/lib/Lazy.d.ts +18 -0
- package/node_modules/@oozcitak/util/lib/Lazy.js +32 -0
- package/node_modules/@oozcitak/util/lib/Lazy.js.map +1 -0
- package/node_modules/@oozcitak/util/lib/ObjectCache.d.ts +71 -0
- package/node_modules/@oozcitak/util/lib/ObjectCache.js +107 -0
- package/node_modules/@oozcitak/util/lib/ObjectCache.js.map +1 -0
- package/node_modules/@oozcitak/util/lib/StringWalker.d.ts +49 -0
- package/node_modules/@oozcitak/util/lib/StringWalker.js +99 -0
- package/node_modules/@oozcitak/util/lib/StringWalker.js.map +1 -0
- package/node_modules/@oozcitak/util/lib/index.d.ts +176 -0
- package/node_modules/@oozcitak/util/lib/index.js +413 -0
- package/node_modules/@oozcitak/util/lib/index.js.map +1 -0
- package/node_modules/@oozcitak/util/package.json +37 -0
- package/node_modules/ansi-regex/index.d.ts +37 -0
- package/node_modules/ansi-regex/index.js +10 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +55 -0
- package/node_modules/ansi-regex/readme.md +78 -0
- package/node_modules/ansi-styles/index.d.ts +345 -0
- package/node_modules/ansi-styles/index.js +163 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +56 -0
- package/node_modules/ansi-styles/readme.md +152 -0
- package/node_modules/argparse/LICENSE +254 -0
- package/node_modules/argparse/README.md +84 -0
- package/node_modules/argparse/argparse.js +3707 -0
- package/node_modules/argparse/lib/sub.js +67 -0
- package/node_modules/argparse/lib/textwrap.js +440 -0
- package/node_modules/argparse/package.json +31 -0
- package/node_modules/array-timsort/LICENSE +21 -0
- package/node_modules/array-timsort/README.md +288 -0
- package/node_modules/array-timsort/package.json +55 -0
- package/node_modules/array-timsort/src/index.js +1080 -0
- package/node_modules/braces/LICENSE +21 -0
- package/node_modules/braces/README.md +586 -0
- package/node_modules/braces/index.js +170 -0
- package/node_modules/braces/lib/compile.js +60 -0
- package/node_modules/braces/lib/constants.js +57 -0
- package/node_modules/braces/lib/expand.js +113 -0
- package/node_modules/braces/lib/parse.js +331 -0
- package/node_modules/braces/lib/stringify.js +32 -0
- package/node_modules/braces/lib/utils.js +122 -0
- package/node_modules/braces/package.json +77 -0
- package/node_modules/case/LICENSE +22 -0
- package/node_modules/case/README.md +139 -0
- package/node_modules/case/case.d.ts +43 -0
- package/node_modules/case/dist/Case.js +171 -0
- package/node_modules/case/dist/Case.min.js +5 -0
- package/node_modules/case/dist/Case.min.js.map +1 -0
- package/node_modules/case/dist/Case.plus.js +189 -0
- package/node_modules/case/dist/Case.plus.min.js +5 -0
- package/node_modules/case/dist/Case.plus.min.js.map +1 -0
- package/node_modules/case/package.json +58 -0
- package/node_modules/chalk/index.d.ts +415 -0
- package/node_modules/chalk/license +9 -0
- package/node_modules/chalk/package.json +68 -0
- package/node_modules/chalk/readme.md +341 -0
- package/node_modules/chalk/source/index.js +229 -0
- package/node_modules/chalk/source/templates.js +134 -0
- package/node_modules/chalk/source/util.js +39 -0
- package/node_modules/cliui/LICENSE.txt +14 -0
- package/node_modules/cliui/README.md +141 -0
- package/node_modules/cliui/build/index.cjs +302 -0
- package/node_modules/cliui/build/index.d.cts +43 -0
- package/node_modules/cliui/build/lib/index.js +287 -0
- package/node_modules/cliui/build/lib/string-utils.js +27 -0
- package/node_modules/cliui/index.mjs +13 -0
- package/node_modules/cliui/package.json +83 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +839 -0
- package/node_modules/color-convert/index.js +81 -0
- package/node_modules/color-convert/package.json +48 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +28 -0
- package/node_modules/comment-json/LICENSE +21 -0
- package/node_modules/comment-json/README.md +580 -0
- package/node_modules/comment-json/index.d.ts +97 -0
- package/node_modules/comment-json/package.json +68 -0
- package/node_modules/comment-json/src/array.js +288 -0
- package/node_modules/comment-json/src/common.js +181 -0
- package/node_modules/comment-json/src/index.js +13 -0
- package/node_modules/comment-json/src/parse.js +451 -0
- package/node_modules/comment-json/src/stringify.js +366 -0
- package/node_modules/conventional-changelog-config-spec/CHANGELOG.md +15 -0
- package/node_modules/conventional-changelog-config-spec/README.md +7 -0
- package/node_modules/conventional-changelog-config-spec/index.js +1 -0
- package/node_modules/conventional-changelog-config-spec/package.json +32 -0
- package/node_modules/conventional-changelog-config-spec/renovate.json +5 -0
- package/node_modules/conventional-changelog-config-spec/tests/shared.js +38 -0
- package/node_modules/conventional-changelog-config-spec/tests/v1.test.js +7 -0
- package/node_modules/conventional-changelog-config-spec/tests/v2.test.js +26 -0
- package/node_modules/conventional-changelog-config-spec/versions/1.0.0/README.md +143 -0
- package/node_modules/conventional-changelog-config-spec/versions/1.0.0/schema.json +81 -0
- package/node_modules/conventional-changelog-config-spec/versions/2.0.0/README.md +155 -0
- package/node_modules/conventional-changelog-config-spec/versions/2.0.0/schema.json +89 -0
- package/node_modules/conventional-changelog-config-spec/versions/2.1.0/README.md +166 -0
- package/node_modules/conventional-changelog-config-spec/versions/2.1.0/schema.json +97 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +38 -0
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/emoji-regex/index.d.ts +23 -0
- package/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/emoji-regex/package.json +50 -0
- package/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +96 -0
- package/node_modules/end-of-stream/package.json +37 -0
- package/node_modules/escalade/dist/index.js +22 -0
- package/node_modules/escalade/dist/index.mjs +22 -0
- package/node_modules/escalade/index.d.mts +11 -0
- package/node_modules/escalade/index.d.ts +15 -0
- package/node_modules/escalade/license +9 -0
- package/node_modules/escalade/package.json +74 -0
- package/node_modules/escalade/readme.md +211 -0
- package/node_modules/escalade/sync/index.d.mts +9 -0
- package/node_modules/escalade/sync/index.d.ts +13 -0
- package/node_modules/escalade/sync/index.js +18 -0
- package/node_modules/escalade/sync/index.mjs +18 -0
- package/node_modules/esprima/LICENSE.BSD +21 -0
- package/node_modules/esprima/README.md +46 -0
- package/node_modules/esprima/bin/esparse.js +139 -0
- package/node_modules/esprima/bin/esvalidate.js +236 -0
- package/node_modules/esprima/dist/esprima.js +6709 -0
- package/node_modules/esprima/package.json +112 -0
- package/node_modules/fast-glob/LICENSE +21 -0
- package/node_modules/fast-glob/README.md +830 -0
- package/node_modules/fast-glob/node_modules/glob-parent/LICENSE +15 -0
- package/node_modules/fast-glob/node_modules/glob-parent/README.md +137 -0
- package/node_modules/fast-glob/node_modules/glob-parent/index.js +42 -0
- package/node_modules/fast-glob/node_modules/glob-parent/package.json +48 -0
- package/node_modules/fast-glob/out/index.d.ts +40 -0
- package/node_modules/fast-glob/out/index.js +102 -0
- package/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
- package/node_modules/fast-glob/out/managers/tasks.js +110 -0
- package/node_modules/fast-glob/out/providers/async.d.ts +9 -0
- package/node_modules/fast-glob/out/providers/async.js +23 -0
- package/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
- package/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
- package/node_modules/fast-glob/out/providers/filters/entry.d.ts +17 -0
- package/node_modules/fast-glob/out/providers/filters/entry.js +85 -0
- package/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
- package/node_modules/fast-glob/out/providers/filters/error.js +15 -0
- package/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
- package/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
- package/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
- package/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
- package/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
- package/node_modules/fast-glob/out/providers/provider.js +48 -0
- package/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
- package/node_modules/fast-glob/out/providers/stream.js +31 -0
- package/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
- package/node_modules/fast-glob/out/providers/sync.js +23 -0
- package/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
- package/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
- package/node_modules/fast-glob/out/readers/async.d.ts +10 -0
- package/node_modules/fast-glob/out/readers/async.js +35 -0
- package/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
- package/node_modules/fast-glob/out/readers/reader.js +33 -0
- package/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
- package/node_modules/fast-glob/out/readers/stream.js +55 -0
- package/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
- package/node_modules/fast-glob/out/readers/sync.js +43 -0
- package/node_modules/fast-glob/out/settings.d.ts +164 -0
- package/node_modules/fast-glob/out/settings.js +59 -0
- package/node_modules/fast-glob/out/types/index.d.ts +31 -0
- package/node_modules/fast-glob/out/types/index.js +2 -0
- package/node_modules/fast-glob/out/utils/array.d.ts +2 -0
- package/node_modules/fast-glob/out/utils/array.js +22 -0
- package/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
- package/node_modules/fast-glob/out/utils/errno.js +7 -0
- package/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
- package/node_modules/fast-glob/out/utils/fs.js +19 -0
- package/node_modules/fast-glob/out/utils/index.d.ts +8 -0
- package/node_modules/fast-glob/out/utils/index.js +17 -0
- package/node_modules/fast-glob/out/utils/path.d.ts +13 -0
- package/node_modules/fast-glob/out/utils/path.js +68 -0
- package/node_modules/fast-glob/out/utils/pattern.d.ts +49 -0
- package/node_modules/fast-glob/out/utils/pattern.js +206 -0
- package/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
- package/node_modules/fast-glob/out/utils/stream.js +17 -0
- package/node_modules/fast-glob/out/utils/string.d.ts +2 -0
- package/node_modules/fast-glob/out/utils/string.js +11 -0
- package/node_modules/fast-glob/package.json +81 -0
- package/node_modules/fast-json-patch/LICENSE.txt +22 -0
- package/node_modules/fast-json-patch/README.md +428 -0
- package/node_modules/fast-json-patch/commonjs/core.d.ts +111 -0
- package/node_modules/fast-json-patch/commonjs/core.js +441 -0
- package/node_modules/fast-json-patch/commonjs/duplex.d.ts +23 -0
- package/node_modules/fast-json-patch/commonjs/duplex.js +181 -0
- package/node_modules/fast-json-patch/commonjs/helpers.d.ts +41 -0
- package/node_modules/fast-json-patch/commonjs/helpers.js +181 -0
- package/node_modules/fast-json-patch/dist/fast-json-patch.js +928 -0
- package/node_modules/fast-json-patch/dist/fast-json-patch.min.js +14 -0
- package/node_modules/fast-json-patch/index.d.ts +34 -0
- package/node_modules/fast-json-patch/index.js +11 -0
- package/node_modules/fast-json-patch/index.mjs +29 -0
- package/node_modules/fast-json-patch/index.ts +31 -0
- package/node_modules/fast-json-patch/jasmine-run.mjs +23 -0
- package/node_modules/fast-json-patch/module/core.d.ts +111 -0
- package/node_modules/fast-json-patch/module/core.mjs +433 -0
- package/node_modules/fast-json-patch/module/duplex.d.ts +23 -0
- package/node_modules/fast-json-patch/module/duplex.mjs +176 -0
- package/node_modules/fast-json-patch/module/helpers.d.ts +41 -0
- package/node_modules/fast-json-patch/module/helpers.mjs +171 -0
- package/node_modules/fast-json-patch/package.json +65 -0
- package/node_modules/fast-json-patch/tsc-to-mjs.sh +10 -0
- package/node_modules/fast-json-patch/webpack.config.js +63 -0
- package/node_modules/fastq/.github/dependabot.yml +11 -0
- package/node_modules/fastq/.github/workflows/ci.yml +75 -0
- package/node_modules/fastq/LICENSE +13 -0
- package/node_modules/fastq/README.md +312 -0
- package/node_modules/fastq/SECURITY.md +15 -0
- package/node_modules/fastq/bench.js +66 -0
- package/node_modules/fastq/example.js +14 -0
- package/node_modules/fastq/example.mjs +11 -0
- package/node_modules/fastq/index.d.ts +57 -0
- package/node_modules/fastq/package.json +53 -0
- package/node_modules/fastq/queue.js +311 -0
- package/node_modules/fastq/test/example.ts +83 -0
- package/node_modules/fastq/test/promise.js +291 -0
- package/node_modules/fastq/test/test.js +653 -0
- package/node_modules/fastq/test/tsconfig.json +11 -0
- package/node_modules/fill-range/LICENSE +21 -0
- package/node_modules/fill-range/README.md +237 -0
- package/node_modules/fill-range/index.js +248 -0
- package/node_modules/fill-range/package.json +74 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-caller-file/LICENSE.md +6 -0
- package/node_modules/get-caller-file/README.md +41 -0
- package/node_modules/get-caller-file/index.d.ts +2 -0
- package/node_modules/get-caller-file/index.js +22 -0
- package/node_modules/get-caller-file/index.js.map +1 -0
- package/node_modules/get-caller-file/package.json +42 -0
- package/node_modules/has-flag/index.d.ts +39 -0
- package/node_modules/has-flag/index.js +8 -0
- package/node_modules/has-flag/license +9 -0
- package/node_modules/has-flag/package.json +46 -0
- package/node_modules/has-flag/readme.md +89 -0
- package/node_modules/has-own-prop/index.d.ts +17 -0
- package/node_modules/has-own-prop/index.js +4 -0
- package/node_modules/has-own-prop/license +9 -0
- package/node_modules/has-own-prop/package.json +33 -0
- package/node_modules/has-own-prop/readme.md +30 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +40 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/ini/LICENSE +15 -0
- package/node_modules/ini/README.md +102 -0
- package/node_modules/ini/ini.js +206 -0
- package/node_modules/ini/package.json +36 -0
- package/node_modules/interpret/LICENSE +22 -0
- package/node_modules/interpret/README.md +187 -0
- package/node_modules/interpret/index.js +168 -0
- package/node_modules/interpret/mjs-stub.js +1 -0
- package/node_modules/interpret/package.json +75 -0
- package/node_modules/is-core-module/.eslintrc +18 -0
- package/node_modules/is-core-module/.nycrc +9 -0
- package/node_modules/is-core-module/CHANGELOG.md +218 -0
- package/node_modules/is-core-module/LICENSE +20 -0
- package/node_modules/is-core-module/README.md +40 -0
- package/node_modules/is-core-module/core.json +162 -0
- package/node_modules/is-core-module/index.js +69 -0
- package/node_modules/is-core-module/package.json +76 -0
- package/node_modules/is-core-module/test/index.js +157 -0
- package/node_modules/is-extglob/LICENSE +21 -0
- package/node_modules/is-extglob/README.md +107 -0
- package/node_modules/is-extglob/index.js +20 -0
- package/node_modules/is-extglob/package.json +69 -0
- package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/node_modules/is-fullwidth-code-point/license +9 -0
- package/node_modules/is-fullwidth-code-point/package.json +42 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-glob/LICENSE +21 -0
- package/node_modules/is-glob/README.md +206 -0
- package/node_modules/is-glob/index.js +150 -0
- package/node_modules/is-glob/package.json +81 -0
- package/node_modules/is-number/LICENSE +21 -0
- package/node_modules/is-number/README.md +187 -0
- package/node_modules/is-number/index.js +18 -0
- package/node_modules/is-number/package.json +82 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/js-yaml/LICENSE +21 -0
- package/node_modules/js-yaml/README.md +247 -0
- package/node_modules/js-yaml/bin/js-yaml.js +126 -0
- package/node_modules/js-yaml/dist/js-yaml.js +3880 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
- package/node_modules/js-yaml/dist/js-yaml.mjs +3856 -0
- package/node_modules/js-yaml/index.js +47 -0
- package/node_modules/js-yaml/lib/common.js +59 -0
- package/node_modules/js-yaml/lib/dumper.js +965 -0
- package/node_modules/js-yaml/lib/exception.js +55 -0
- package/node_modules/js-yaml/lib/loader.js +1733 -0
- package/node_modules/js-yaml/lib/schema/core.js +11 -0
- package/node_modules/js-yaml/lib/schema/default.js +22 -0
- package/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
- package/node_modules/js-yaml/lib/schema/json.js +19 -0
- package/node_modules/js-yaml/lib/schema.js +121 -0
- package/node_modules/js-yaml/lib/snippet.js +101 -0
- package/node_modules/js-yaml/lib/type/binary.js +125 -0
- package/node_modules/js-yaml/lib/type/bool.js +35 -0
- package/node_modules/js-yaml/lib/type/float.js +97 -0
- package/node_modules/js-yaml/lib/type/int.js +156 -0
- package/node_modules/js-yaml/lib/type/map.js +8 -0
- package/node_modules/js-yaml/lib/type/merge.js +12 -0
- package/node_modules/js-yaml/lib/type/null.js +35 -0
- package/node_modules/js-yaml/lib/type/omap.js +44 -0
- package/node_modules/js-yaml/lib/type/pairs.js +53 -0
- package/node_modules/js-yaml/lib/type/seq.js +8 -0
- package/node_modules/js-yaml/lib/type/set.js +29 -0
- package/node_modules/js-yaml/lib/type/str.js +8 -0
- package/node_modules/js-yaml/lib/type/timestamp.js +88 -0
- package/node_modules/js-yaml/lib/type.js +66 -0
- package/node_modules/js-yaml/package.json +66 -0
- package/node_modules/json-parse-even-better-errors/LICENSE.md +25 -0
- package/node_modules/json-parse-even-better-errors/README.md +96 -0
- package/node_modules/json-parse-even-better-errors/lib/index.js +137 -0
- package/node_modules/json-parse-even-better-errors/package.json +50 -0
- package/node_modules/just-diff/CHANGELOG.md +49 -0
- package/node_modules/just-diff/LICENSE +21 -0
- package/node_modules/just-diff/README.md +86 -0
- package/node_modules/just-diff/index.cjs +230 -0
- package/node_modules/just-diff/index.d.ts +20 -0
- package/node_modules/just-diff/index.mjs +227 -0
- package/node_modules/just-diff/index.tests.ts +65 -0
- package/node_modules/just-diff/package.json +33 -0
- package/node_modules/just-diff/rollup.config.js +3 -0
- package/node_modules/just-diff-apply/CHANGELOG.md +43 -0
- package/node_modules/just-diff-apply/LICENSE +21 -0
- package/node_modules/just-diff-apply/README.md +69 -0
- package/node_modules/just-diff-apply/index.cjs +161 -0
- package/node_modules/just-diff-apply/index.d.ts +17 -0
- package/node_modules/just-diff-apply/index.mjs +158 -0
- package/node_modules/just-diff-apply/index.tests.ts +108 -0
- package/node_modules/just-diff-apply/package.json +34 -0
- package/node_modules/just-diff-apply/rollup.config.js +3 -0
- package/node_modules/merge2/LICENSE +21 -0
- package/node_modules/merge2/README.md +144 -0
- package/node_modules/merge2/index.js +144 -0
- package/node_modules/merge2/package.json +43 -0
- package/node_modules/micromatch/LICENSE +21 -0
- package/node_modules/micromatch/README.md +1024 -0
- package/node_modules/micromatch/index.js +474 -0
- package/node_modules/micromatch/package.json +119 -0
- package/node_modules/minimist/.eslintrc +29 -0
- package/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/node_modules/minimist/.nycrc +14 -0
- package/node_modules/minimist/CHANGELOG.md +298 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/README.md +121 -0
- package/node_modules/minimist/example/parse.js +4 -0
- package/node_modules/minimist/index.js +263 -0
- package/node_modules/minimist/package.json +75 -0
- package/node_modules/minimist/test/all_bool.js +34 -0
- package/node_modules/minimist/test/bool.js +177 -0
- package/node_modules/minimist/test/dash.js +43 -0
- package/node_modules/minimist/test/default_bool.js +37 -0
- package/node_modules/minimist/test/dotted.js +24 -0
- package/node_modules/minimist/test/kv_short.js +32 -0
- package/node_modules/minimist/test/long.js +33 -0
- package/node_modules/minimist/test/num.js +38 -0
- package/node_modules/minimist/test/parse.js +209 -0
- package/node_modules/minimist/test/parse_modified.js +11 -0
- package/node_modules/minimist/test/proto.js +64 -0
- package/node_modules/minimist/test/short.js +69 -0
- package/node_modules/minimist/test/stop_early.js +17 -0
- package/node_modules/minimist/test/unknown.js +104 -0
- package/node_modules/minimist/test/whitespace.js +10 -0
- package/node_modules/nice-try/LICENSE +21 -0
- package/node_modules/nice-try/README.md +32 -0
- package/node_modules/nice-try/package.json +33 -0
- package/node_modules/nice-try/src/index.js +12 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/p-finally/index.js +15 -0
- package/node_modules/p-finally/license +21 -0
- package/node_modules/p-finally/package.json +42 -0
- package/node_modules/p-finally/readme.md +47 -0
- package/node_modules/parse-conflict-json/LICENSE.md +20 -0
- package/node_modules/parse-conflict-json/README.md +42 -0
- package/node_modules/parse-conflict-json/lib/index.js +104 -0
- package/node_modules/parse-conflict-json/package.json +51 -0
- package/node_modules/path-parse/LICENSE +21 -0
- package/node_modules/path-parse/README.md +42 -0
- package/node_modules/path-parse/index.js +75 -0
- package/node_modules/path-parse/package.json +33 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +708 -0
- package/node_modules/picomatch/index.js +3 -0
- package/node_modules/picomatch/lib/constants.js +179 -0
- package/node_modules/picomatch/lib/parse.js +1091 -0
- package/node_modules/picomatch/lib/picomatch.js +342 -0
- package/node_modules/picomatch/lib/scan.js +391 -0
- package/node_modules/picomatch/lib/utils.js +64 -0
- package/node_modules/picomatch/package.json +81 -0
- package/node_modules/pump/.github/FUNDING.yml +2 -0
- package/node_modules/pump/.travis.yml +5 -0
- package/node_modules/pump/LICENSE +21 -0
- package/node_modules/pump/README.md +74 -0
- package/node_modules/pump/SECURITY.md +5 -0
- package/node_modules/pump/index.js +86 -0
- package/node_modules/pump/package.json +24 -0
- package/node_modules/pump/test-browser.js +66 -0
- package/node_modules/pump/test-node.js +53 -0
- package/node_modules/queue-microtask/LICENSE +20 -0
- package/node_modules/queue-microtask/README.md +90 -0
- package/node_modules/queue-microtask/index.d.ts +2 -0
- package/node_modules/queue-microtask/index.js +9 -0
- package/node_modules/queue-microtask/package.json +55 -0
- package/node_modules/rechoir/.npmignore +1 -0
- package/node_modules/rechoir/.travis.yml +24 -0
- package/node_modules/rechoir/CHANGELOG +38 -0
- package/node_modules/rechoir/LICENSE +22 -0
- package/node_modules/rechoir/README.md +42 -0
- package/node_modules/rechoir/index.js +59 -0
- package/node_modules/rechoir/lib/extension.js +11 -0
- package/node_modules/rechoir/lib/normalize.js +15 -0
- package/node_modules/rechoir/lib/register.js +15 -0
- package/node_modules/rechoir/package.json +88 -0
- package/node_modules/repeat-string/LICENSE +21 -0
- package/node_modules/repeat-string/README.md +136 -0
- package/node_modules/repeat-string/index.js +70 -0
- package/node_modules/repeat-string/package.json +77 -0
- package/node_modules/require-directory/.jshintrc +67 -0
- package/node_modules/require-directory/.npmignore +1 -0
- package/node_modules/require-directory/.travis.yml +3 -0
- package/node_modules/require-directory/LICENSE +22 -0
- package/node_modules/require-directory/README.markdown +184 -0
- package/node_modules/require-directory/index.js +86 -0
- package/node_modules/require-directory/package.json +40 -0
- package/node_modules/resolve/.editorconfig +37 -0
- package/node_modules/resolve/.eslintrc +65 -0
- package/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
- package/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
- package/node_modules/resolve/LICENSE +21 -0
- package/node_modules/resolve/SECURITY.md +11 -0
- package/node_modules/resolve/async.js +3 -0
- package/node_modules/resolve/bin/resolve +50 -0
- package/node_modules/resolve/example/async.js +5 -0
- package/node_modules/resolve/example/sync.js +3 -0
- package/node_modules/resolve/index.js +6 -0
- package/node_modules/resolve/lib/async.js +333 -0
- package/node_modules/resolve/lib/caller.js +8 -0
- package/node_modules/resolve/lib/core.js +12 -0
- package/node_modules/resolve/lib/core.json +162 -0
- package/node_modules/resolve/lib/homedir.js +24 -0
- package/node_modules/resolve/lib/is-core.js +5 -0
- package/node_modules/resolve/lib/node-modules-paths.js +45 -0
- package/node_modules/resolve/lib/normalize-options.js +10 -0
- package/node_modules/resolve/lib/sync.js +212 -0
- package/node_modules/resolve/package.json +75 -0
- package/node_modules/resolve/readme.markdown +301 -0
- package/node_modules/resolve/sync.js +3 -0
- package/node_modules/resolve/test/core.js +88 -0
- package/node_modules/resolve/test/dotdot/abc/index.js +2 -0
- package/node_modules/resolve/test/dotdot/index.js +1 -0
- package/node_modules/resolve/test/dotdot.js +29 -0
- package/node_modules/resolve/test/faulty_basedir.js +29 -0
- package/node_modules/resolve/test/filter.js +34 -0
- package/node_modules/resolve/test/filter_sync.js +33 -0
- package/node_modules/resolve/test/home_paths.js +127 -0
- package/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/node_modules/resolve/test/mock.js +315 -0
- package/node_modules/resolve/test/mock_sync.js +214 -0
- package/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
- package/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
- package/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
- package/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
- package/node_modules/resolve/test/module_dir.js +56 -0
- package/node_modules/resolve/test/node-modules-paths.js +143 -0
- package/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
- package/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
- package/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
- package/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
- package/node_modules/resolve/test/node_path.js +70 -0
- package/node_modules/resolve/test/nonstring.js +9 -0
- package/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/node_modules/resolve/test/pathfilter.js +75 -0
- package/node_modules/resolve/test/precedence/aaa/index.js +1 -0
- package/node_modules/resolve/test/precedence/aaa/main.js +1 -0
- package/node_modules/resolve/test/precedence/aaa.js +1 -0
- package/node_modules/resolve/test/precedence/bbb/main.js +1 -0
- package/node_modules/resolve/test/precedence/bbb.js +1 -0
- package/node_modules/resolve/test/precedence.js +23 -0
- package/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/node_modules/resolve/test/resolver/baz/package.json +4 -0
- package/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- package/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
- package/node_modules/resolve/test/resolver/cup.coffee +1 -0
- package/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
- package/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
- package/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
- package/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
- package/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/node_modules/resolve/test/resolver/false_main/package.json +4 -0
- package/node_modules/resolve/test/resolver/foo.js +1 -0
- package/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- package/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- package/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
- package/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/node_modules/resolve/test/resolver/mug.js +0 -0
- package/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
- package/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
- package/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- package/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
- package/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
- package/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
- package/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
- package/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
- package/node_modules/resolve/test/resolver.js +597 -0
- package/node_modules/resolve/test/resolver_sync.js +730 -0
- package/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/node_modules/resolve/test/shadowed_core.js +54 -0
- package/node_modules/resolve/test/subdirs.js +13 -0
- package/node_modules/resolve/test/symlinks.js +176 -0
- package/node_modules/reusify/.github/dependabot.yml +7 -0
- package/node_modules/reusify/.github/workflows/ci.yml +96 -0
- package/node_modules/reusify/LICENSE +22 -0
- package/node_modules/reusify/README.md +139 -0
- package/node_modules/reusify/SECURITY.md +15 -0
- package/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
- package/node_modules/reusify/benchmarks/fib.js +13 -0
- package/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
- package/node_modules/reusify/eslint.config.js +14 -0
- package/node_modules/reusify/package.json +50 -0
- package/node_modules/reusify/reusify.d.ts +14 -0
- package/node_modules/reusify/reusify.js +33 -0
- package/node_modules/reusify/test.js +66 -0
- package/node_modules/reusify/tsconfig.json +11 -0
- package/node_modules/run-parallel/LICENSE +20 -0
- package/node_modules/run-parallel/README.md +85 -0
- package/node_modules/run-parallel/index.js +51 -0
- package/node_modules/run-parallel/package.json +58 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +664 -0
- package/node_modules/semver/bin/semver.js +191 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +557 -0
- package/node_modules/semver/classes/semver.js +333 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +91 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/shelljs/LICENSE +29 -0
- package/node_modules/shelljs/README.md +943 -0
- package/node_modules/shelljs/bin/shjs +48 -0
- package/node_modules/shelljs/global.js +12 -0
- package/node_modules/shelljs/make.js +57 -0
- package/node_modules/shelljs/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/shelljs/node_modules/cross-spawn/README.md +94 -0
- package/node_modules/shelljs/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/shelljs/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/shelljs/node_modules/cross-spawn/lib/parse.js +125 -0
- package/node_modules/shelljs/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/node_modules/shelljs/node_modules/cross-spawn/lib/util/readShebang.js +32 -0
- package/node_modules/shelljs/node_modules/cross-spawn/lib/util/resolveCommand.js +51 -0
- package/node_modules/shelljs/node_modules/cross-spawn/package.json +75 -0
- package/node_modules/shelljs/node_modules/execa/index.js +361 -0
- package/node_modules/shelljs/node_modules/execa/lib/errname.js +39 -0
- package/node_modules/shelljs/node_modules/execa/lib/stdio.js +41 -0
- package/node_modules/shelljs/node_modules/execa/license +9 -0
- package/node_modules/shelljs/node_modules/execa/package.json +69 -0
- package/node_modules/shelljs/node_modules/execa/readme.md +327 -0
- package/node_modules/shelljs/node_modules/get-stream/buffer-stream.js +51 -0
- package/node_modules/shelljs/node_modules/get-stream/index.js +50 -0
- package/node_modules/shelljs/node_modules/get-stream/license +9 -0
- package/node_modules/shelljs/node_modules/get-stream/package.json +46 -0
- package/node_modules/shelljs/node_modules/get-stream/readme.md +123 -0
- package/node_modules/shelljs/node_modules/is-stream/index.js +21 -0
- package/node_modules/shelljs/node_modules/is-stream/license +21 -0
- package/node_modules/shelljs/node_modules/is-stream/package.json +38 -0
- package/node_modules/shelljs/node_modules/is-stream/readme.md +42 -0
- package/node_modules/shelljs/node_modules/npm-run-path/index.js +39 -0
- package/node_modules/shelljs/node_modules/npm-run-path/license +21 -0
- package/node_modules/shelljs/node_modules/npm-run-path/package.json +45 -0
- package/node_modules/shelljs/node_modules/npm-run-path/readme.md +81 -0
- package/node_modules/shelljs/node_modules/path-key/index.js +13 -0
- package/node_modules/shelljs/node_modules/path-key/license +21 -0
- package/node_modules/shelljs/node_modules/path-key/package.json +39 -0
- package/node_modules/shelljs/node_modules/path-key/readme.md +51 -0
- package/node_modules/shelljs/node_modules/semver/LICENSE +15 -0
- package/node_modules/shelljs/node_modules/semver/README.md +412 -0
- package/node_modules/shelljs/node_modules/semver/bin/semver +160 -0
- package/node_modules/shelljs/node_modules/semver/package.json +38 -0
- package/node_modules/shelljs/node_modules/semver/range.bnf +16 -0
- package/node_modules/shelljs/node_modules/semver/semver.js +1525 -0
- package/node_modules/shelljs/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shelljs/node_modules/shebang-command/license +21 -0
- package/node_modules/shelljs/node_modules/shebang-command/package.json +39 -0
- package/node_modules/shelljs/node_modules/shebang-command/readme.md +39 -0
- package/node_modules/shelljs/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shelljs/node_modules/shebang-regex/license +21 -0
- package/node_modules/shelljs/node_modules/shebang-regex/package.json +32 -0
- package/node_modules/shelljs/node_modules/shebang-regex/readme.md +29 -0
- package/node_modules/shelljs/node_modules/which/LICENSE +15 -0
- package/node_modules/shelljs/node_modules/which/README.md +51 -0
- package/node_modules/shelljs/node_modules/which/bin/which +52 -0
- package/node_modules/shelljs/node_modules/which/package.json +30 -0
- package/node_modules/shelljs/node_modules/which/which.js +135 -0
- package/node_modules/shelljs/package.json +95 -0
- package/node_modules/shelljs/plugin.js +16 -0
- package/node_modules/shelljs/shell.js +214 -0
- package/node_modules/shelljs/src/cat.js +76 -0
- package/node_modules/shelljs/src/cd.js +40 -0
- package/node_modules/shelljs/src/chmod.js +222 -0
- package/node_modules/shelljs/src/cmd.js +122 -0
- package/node_modules/shelljs/src/common.js +542 -0
- package/node_modules/shelljs/src/cp.js +314 -0
- package/node_modules/shelljs/src/dirs.js +210 -0
- package/node_modules/shelljs/src/echo.js +62 -0
- package/node_modules/shelljs/src/error.js +15 -0
- package/node_modules/shelljs/src/errorCode.js +10 -0
- package/node_modules/shelljs/src/exec-child.js +71 -0
- package/node_modules/shelljs/src/exec.js +255 -0
- package/node_modules/shelljs/src/find.js +66 -0
- package/node_modules/shelljs/src/grep.js +84 -0
- package/node_modules/shelljs/src/head.js +107 -0
- package/node_modules/shelljs/src/ln.js +75 -0
- package/node_modules/shelljs/src/ls.js +155 -0
- package/node_modules/shelljs/src/mkdir.js +102 -0
- package/node_modules/shelljs/src/mv.js +119 -0
- package/node_modules/shelljs/src/popd.js +1 -0
- package/node_modules/shelljs/src/pushd.js +1 -0
- package/node_modules/shelljs/src/pwd.js +16 -0
- package/node_modules/shelljs/src/rm.js +201 -0
- package/node_modules/shelljs/src/sed.js +95 -0
- package/node_modules/shelljs/src/set.js +55 -0
- package/node_modules/shelljs/src/sort.js +98 -0
- package/node_modules/shelljs/src/tail.js +90 -0
- package/node_modules/shelljs/src/tempdir.js +75 -0
- package/node_modules/shelljs/src/test.js +86 -0
- package/node_modules/shelljs/src/to.js +38 -0
- package/node_modules/shelljs/src/toEnd.js +37 -0
- package/node_modules/shelljs/src/touch.js +117 -0
- package/node_modules/shelljs/src/uniq.js +93 -0
- package/node_modules/shelljs/src/which.js +119 -0
- package/node_modules/shx/LICENSE +21 -0
- package/node_modules/shx/README.md +160 -0
- package/node_modules/shx/lib/cli.js +40 -0
- package/node_modules/shx/lib/config.js +58 -0
- package/node_modules/shx/lib/help.js +37 -0
- package/node_modules/shx/lib/plugin-true-false.js +25 -0
- package/node_modules/shx/lib/printCmdRet.js +17 -0
- package/node_modules/shx/lib/shx.js +162 -0
- package/node_modules/shx/package.json +72 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +202 -0
- package/node_modules/signal-exit/package.json +38 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/string-width/index.d.ts +29 -0
- package/node_modules/string-width/index.js +47 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +56 -0
- package/node_modules/string-width/readme.md +50 -0
- package/node_modules/strip-ansi/index.d.ts +17 -0
- package/node_modules/strip-ansi/index.js +4 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +54 -0
- package/node_modules/strip-ansi/readme.md +46 -0
- package/node_modules/strip-eof/index.js +15 -0
- package/node_modules/strip-eof/license +21 -0
- package/node_modules/strip-eof/package.json +39 -0
- package/node_modules/strip-eof/readme.md +28 -0
- package/node_modules/supports-color/browser.js +5 -0
- package/node_modules/supports-color/index.js +135 -0
- package/node_modules/supports-color/license +9 -0
- package/node_modules/supports-color/package.json +53 -0
- package/node_modules/supports-color/readme.md +76 -0
- package/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
- package/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/node_modules/to-regex-range/LICENSE +21 -0
- package/node_modules/to-regex-range/README.md +305 -0
- package/node_modules/to-regex-range/index.js +288 -0
- package/node_modules/to-regex-range/package.json +88 -0
- package/node_modules/wrap-ansi/index.js +216 -0
- package/node_modules/wrap-ansi/license +9 -0
- package/node_modules/wrap-ansi/package.json +62 -0
- package/node_modules/wrap-ansi/readme.md +91 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/xmlbuilder2/LICENSE.txt +21 -0
- package/node_modules/xmlbuilder2/README.md +184 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.d.ts +236 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js +107 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.d.ts +17 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js +26 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.d.ts +123 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js +684 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.d.ts +143 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js +741 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/builder/dom.d.ts +8 -0
- package/node_modules/xmlbuilder2/lib/builder/dom.js +67 -0
- package/node_modules/xmlbuilder2/lib/builder/dom.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/builder/index.d.ts +4 -0
- package/node_modules/xmlbuilder2/lib/builder/index.js +16 -0
- package/node_modules/xmlbuilder2/lib/builder/index.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/constants.d.ts +1 -0
- package/node_modules/xmlbuilder2/lib/constants.js +5 -0
- package/node_modules/xmlbuilder2/lib/constants.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/index.d.ts +1 -0
- package/node_modules/xmlbuilder2/lib/index.js +11 -0
- package/node_modules/xmlbuilder2/lib/index.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/interfaces.d.ts +1356 -0
- package/node_modules/xmlbuilder2/lib/interfaces.js +77 -0
- package/node_modules/xmlbuilder2/lib/interfaces.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.d.ts +109 -0
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.js +164 -0
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/JSONReader.d.ts +14 -0
- package/node_modules/xmlbuilder2/lib/readers/JSONReader.js +21 -0
- package/node_modules/xmlbuilder2/lib/readers/JSONReader.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.d.ts +15 -0
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js +150 -0
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.d.ts +14 -0
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.js +141 -0
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/YAMLReader.d.ts +14 -0
- package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js +27 -0
- package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/index.d.ts +4 -0
- package/node_modules/xmlbuilder2/lib/readers/index.js +12 -0
- package/node_modules/xmlbuilder2/lib/readers/index.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.d.ts +111 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js +29 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.d.ts +276 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js +1468 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.d.ts +68 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js +156 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.d.ts +67 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js +181 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.d.ts +27 -0
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.js +69 -0
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.d.ts +56 -0
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js +448 -0
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.d.ts +51 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js +151 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.d.ts +60 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js +222 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.d.ts +61 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js +145 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.d.ts +55 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js +146 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/index.d.ts +5 -0
- package/node_modules/xmlbuilder2/lib/writers/index.js +14 -0
- package/node_modules/xmlbuilder2/lib/writers/index.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js +2 -0
- package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js.LICENSE.txt +10 -0
- package/node_modules/xmlbuilder2/package.json +64 -0
- package/node_modules/y18n/LICENSE +13 -0
- package/node_modules/y18n/README.md +127 -0
- package/node_modules/y18n/build/index.cjs +203 -0
- package/node_modules/y18n/build/lib/cjs.js +6 -0
- package/node_modules/y18n/build/lib/index.js +174 -0
- package/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
- package/node_modules/y18n/index.mjs +8 -0
- package/node_modules/y18n/package.json +70 -0
- package/node_modules/yaml/LICENSE +13 -0
- package/node_modules/yaml/README.md +172 -0
- package/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +102 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +217 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +223 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -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 +26 -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 +13 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +114 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -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 +717 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +967 -0
- package/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -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 +96 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -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/merge.js +64 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +128 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +143 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +24 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/yaml/dist/compose/compose-node.js +105 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/yaml/dist/compose/composer.js +222 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -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 +7 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -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 +23 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +148 -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 +28 -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 +15 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/yaml/dist/doc/directives.js +178 -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 +25 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/Alias.js +116 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +43 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/options.d.ts +344 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -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 +109 -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 +719 -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 +972 -0
- package/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +19 -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/json-schema.d.ts +69 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/yaml/dist/schema/types.d.ts +92 -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 +70 -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/merge.d.ts +9 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -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 +82 -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 +41 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -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 +151 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/yaml/dist/stringify/stringify.js +131 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +145 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -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 +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +97 -0
- package/node_modules/yaml/util.js +2 -0
- package/node_modules/yargs/LICENSE +21 -0
- package/node_modules/yargs/README.md +204 -0
- package/node_modules/yargs/browser.d.ts +5 -0
- package/node_modules/yargs/browser.mjs +7 -0
- package/node_modules/yargs/build/index.cjs +1 -0
- package/node_modules/yargs/build/lib/argsert.js +62 -0
- package/node_modules/yargs/build/lib/command.js +449 -0
- package/node_modules/yargs/build/lib/completion-templates.js +48 -0
- package/node_modules/yargs/build/lib/completion.js +243 -0
- package/node_modules/yargs/build/lib/middleware.js +88 -0
- package/node_modules/yargs/build/lib/parse-command.js +32 -0
- package/node_modules/yargs/build/lib/typings/common-types.js +9 -0
- package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
- package/node_modules/yargs/build/lib/usage.js +584 -0
- package/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
- package/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
- package/node_modules/yargs/build/lib/utils/levenshtein.js +34 -0
- package/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
- package/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
- package/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
- package/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
- package/node_modules/yargs/build/lib/utils/which-module.js +10 -0
- package/node_modules/yargs/build/lib/validation.js +305 -0
- package/node_modules/yargs/build/lib/yargs-factory.js +1512 -0
- package/node_modules/yargs/build/lib/yerror.js +9 -0
- package/node_modules/yargs/helpers/helpers.mjs +10 -0
- package/node_modules/yargs/helpers/index.js +14 -0
- package/node_modules/yargs/helpers/package.json +3 -0
- package/node_modules/yargs/index.cjs +53 -0
- package/node_modules/yargs/index.mjs +8 -0
- package/node_modules/yargs/lib/platform-shims/browser.mjs +95 -0
- package/node_modules/yargs/lib/platform-shims/esm.mjs +73 -0
- package/node_modules/yargs/locales/be.json +46 -0
- package/node_modules/yargs/locales/cs.json +51 -0
- package/node_modules/yargs/locales/de.json +46 -0
- package/node_modules/yargs/locales/en.json +55 -0
- package/node_modules/yargs/locales/es.json +46 -0
- package/node_modules/yargs/locales/fi.json +49 -0
- package/node_modules/yargs/locales/fr.json +53 -0
- package/node_modules/yargs/locales/hi.json +49 -0
- package/node_modules/yargs/locales/hu.json +46 -0
- package/node_modules/yargs/locales/id.json +50 -0
- package/node_modules/yargs/locales/it.json +46 -0
- package/node_modules/yargs/locales/ja.json +51 -0
- package/node_modules/yargs/locales/ko.json +49 -0
- package/node_modules/yargs/locales/nb.json +44 -0
- package/node_modules/yargs/locales/nl.json +49 -0
- package/node_modules/yargs/locales/nn.json +44 -0
- package/node_modules/yargs/locales/pirate.json +13 -0
- package/node_modules/yargs/locales/pl.json +49 -0
- package/node_modules/yargs/locales/pt.json +45 -0
- package/node_modules/yargs/locales/pt_BR.json +48 -0
- package/node_modules/yargs/locales/ru.json +51 -0
- package/node_modules/yargs/locales/th.json +46 -0
- package/node_modules/yargs/locales/tr.json +48 -0
- package/node_modules/yargs/locales/uk_UA.json +51 -0
- package/node_modules/yargs/locales/uz.json +52 -0
- package/node_modules/yargs/locales/zh_CN.json +48 -0
- package/node_modules/yargs/locales/zh_TW.json +51 -0
- package/node_modules/yargs/node_modules/yargs-parser/LICENSE.txt +14 -0
- package/node_modules/yargs/node_modules/yargs-parser/README.md +518 -0
- package/node_modules/yargs/node_modules/yargs-parser/browser.js +29 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/index.cjs +1050 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/lib/index.js +62 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/lib/yargs-parser.js +1045 -0
- package/node_modules/yargs/node_modules/yargs-parser/package.json +92 -0
- package/node_modules/yargs/package.json +123 -0
- package/node_modules/yargs/yargs +9 -0
- package/node_modules/yargs/yargs.mjs +10 -0
- package/package.json +16 -3
|
@@ -0,0 +1,1512 @@
|
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
+
};
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
+
};
|
|
12
|
+
var _YargsInstance_command, _YargsInstance_cwd, _YargsInstance_context, _YargsInstance_completion, _YargsInstance_completionCommand, _YargsInstance_defaultShowHiddenOpt, _YargsInstance_exitError, _YargsInstance_detectLocale, _YargsInstance_emittedWarnings, _YargsInstance_exitProcess, _YargsInstance_frozens, _YargsInstance_globalMiddleware, _YargsInstance_groups, _YargsInstance_hasOutput, _YargsInstance_helpOpt, _YargsInstance_isGlobalContext, _YargsInstance_logger, _YargsInstance_output, _YargsInstance_options, _YargsInstance_parentRequire, _YargsInstance_parserConfig, _YargsInstance_parseFn, _YargsInstance_parseContext, _YargsInstance_pkgs, _YargsInstance_preservedGroups, _YargsInstance_processArgs, _YargsInstance_recommendCommands, _YargsInstance_shim, _YargsInstance_strict, _YargsInstance_strictCommands, _YargsInstance_strictOptions, _YargsInstance_usage, _YargsInstance_usageConfig, _YargsInstance_versionOpt, _YargsInstance_validation;
|
|
13
|
+
import { command as Command, } from './command.js';
|
|
14
|
+
import { assertNotStrictEqual, assertSingleKey, objectKeys, } from './typings/common-types.js';
|
|
15
|
+
import { YError } from './yerror.js';
|
|
16
|
+
import { usage as Usage } from './usage.js';
|
|
17
|
+
import { argsert } from './argsert.js';
|
|
18
|
+
import { completion as Completion, } from './completion.js';
|
|
19
|
+
import { validation as Validation, } from './validation.js';
|
|
20
|
+
import { objFilter } from './utils/obj-filter.js';
|
|
21
|
+
import { applyExtends } from './utils/apply-extends.js';
|
|
22
|
+
import { applyMiddleware, GlobalMiddleware, } from './middleware.js';
|
|
23
|
+
import { isPromise } from './utils/is-promise.js';
|
|
24
|
+
import { maybeAsyncResult } from './utils/maybe-async-result.js';
|
|
25
|
+
import setBlocking from './utils/set-blocking.js';
|
|
26
|
+
export function YargsFactory(_shim) {
|
|
27
|
+
return (processArgs = [], cwd = _shim.process.cwd(), parentRequire) => {
|
|
28
|
+
const yargs = new YargsInstance(processArgs, cwd, parentRequire, _shim);
|
|
29
|
+
Object.defineProperty(yargs, 'argv', {
|
|
30
|
+
get: () => {
|
|
31
|
+
return yargs.parse();
|
|
32
|
+
},
|
|
33
|
+
enumerable: true,
|
|
34
|
+
});
|
|
35
|
+
yargs.help();
|
|
36
|
+
yargs.version();
|
|
37
|
+
return yargs;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const kCopyDoubleDash = Symbol('copyDoubleDash');
|
|
41
|
+
const kCreateLogger = Symbol('copyDoubleDash');
|
|
42
|
+
const kDeleteFromParserHintObject = Symbol('deleteFromParserHintObject');
|
|
43
|
+
const kEmitWarning = Symbol('emitWarning');
|
|
44
|
+
const kFreeze = Symbol('freeze');
|
|
45
|
+
const kGetDollarZero = Symbol('getDollarZero');
|
|
46
|
+
const kGetParserConfiguration = Symbol('getParserConfiguration');
|
|
47
|
+
const kGetUsageConfiguration = Symbol('getUsageConfiguration');
|
|
48
|
+
const kGuessLocale = Symbol('guessLocale');
|
|
49
|
+
const kGuessVersion = Symbol('guessVersion');
|
|
50
|
+
const kParsePositionalNumbers = Symbol('parsePositionalNumbers');
|
|
51
|
+
const kPkgUp = Symbol('pkgUp');
|
|
52
|
+
const kPopulateParserHintArray = Symbol('populateParserHintArray');
|
|
53
|
+
const kPopulateParserHintSingleValueDictionary = Symbol('populateParserHintSingleValueDictionary');
|
|
54
|
+
const kPopulateParserHintArrayDictionary = Symbol('populateParserHintArrayDictionary');
|
|
55
|
+
const kPopulateParserHintDictionary = Symbol('populateParserHintDictionary');
|
|
56
|
+
const kSanitizeKey = Symbol('sanitizeKey');
|
|
57
|
+
const kSetKey = Symbol('setKey');
|
|
58
|
+
const kUnfreeze = Symbol('unfreeze');
|
|
59
|
+
const kValidateAsync = Symbol('validateAsync');
|
|
60
|
+
const kGetCommandInstance = Symbol('getCommandInstance');
|
|
61
|
+
const kGetContext = Symbol('getContext');
|
|
62
|
+
const kGetHasOutput = Symbol('getHasOutput');
|
|
63
|
+
const kGetLoggerInstance = Symbol('getLoggerInstance');
|
|
64
|
+
const kGetParseContext = Symbol('getParseContext');
|
|
65
|
+
const kGetUsageInstance = Symbol('getUsageInstance');
|
|
66
|
+
const kGetValidationInstance = Symbol('getValidationInstance');
|
|
67
|
+
const kHasParseCallback = Symbol('hasParseCallback');
|
|
68
|
+
const kIsGlobalContext = Symbol('isGlobalContext');
|
|
69
|
+
const kPostProcess = Symbol('postProcess');
|
|
70
|
+
const kRebase = Symbol('rebase');
|
|
71
|
+
const kReset = Symbol('reset');
|
|
72
|
+
const kRunYargsParserAndExecuteCommands = Symbol('runYargsParserAndExecuteCommands');
|
|
73
|
+
const kRunValidation = Symbol('runValidation');
|
|
74
|
+
const kSetHasOutput = Symbol('setHasOutput');
|
|
75
|
+
const kTrackManuallySetKeys = Symbol('kTrackManuallySetKeys');
|
|
76
|
+
export class YargsInstance {
|
|
77
|
+
constructor(processArgs = [], cwd, parentRequire, shim) {
|
|
78
|
+
this.customScriptName = false;
|
|
79
|
+
this.parsed = false;
|
|
80
|
+
_YargsInstance_command.set(this, void 0);
|
|
81
|
+
_YargsInstance_cwd.set(this, void 0);
|
|
82
|
+
_YargsInstance_context.set(this, { commands: [], fullCommands: [] });
|
|
83
|
+
_YargsInstance_completion.set(this, null);
|
|
84
|
+
_YargsInstance_completionCommand.set(this, null);
|
|
85
|
+
_YargsInstance_defaultShowHiddenOpt.set(this, 'show-hidden');
|
|
86
|
+
_YargsInstance_exitError.set(this, null);
|
|
87
|
+
_YargsInstance_detectLocale.set(this, true);
|
|
88
|
+
_YargsInstance_emittedWarnings.set(this, {});
|
|
89
|
+
_YargsInstance_exitProcess.set(this, true);
|
|
90
|
+
_YargsInstance_frozens.set(this, []);
|
|
91
|
+
_YargsInstance_globalMiddleware.set(this, void 0);
|
|
92
|
+
_YargsInstance_groups.set(this, {});
|
|
93
|
+
_YargsInstance_hasOutput.set(this, false);
|
|
94
|
+
_YargsInstance_helpOpt.set(this, null);
|
|
95
|
+
_YargsInstance_isGlobalContext.set(this, true);
|
|
96
|
+
_YargsInstance_logger.set(this, void 0);
|
|
97
|
+
_YargsInstance_output.set(this, '');
|
|
98
|
+
_YargsInstance_options.set(this, void 0);
|
|
99
|
+
_YargsInstance_parentRequire.set(this, void 0);
|
|
100
|
+
_YargsInstance_parserConfig.set(this, {});
|
|
101
|
+
_YargsInstance_parseFn.set(this, null);
|
|
102
|
+
_YargsInstance_parseContext.set(this, null);
|
|
103
|
+
_YargsInstance_pkgs.set(this, {});
|
|
104
|
+
_YargsInstance_preservedGroups.set(this, {});
|
|
105
|
+
_YargsInstance_processArgs.set(this, void 0);
|
|
106
|
+
_YargsInstance_recommendCommands.set(this, false);
|
|
107
|
+
_YargsInstance_shim.set(this, void 0);
|
|
108
|
+
_YargsInstance_strict.set(this, false);
|
|
109
|
+
_YargsInstance_strictCommands.set(this, false);
|
|
110
|
+
_YargsInstance_strictOptions.set(this, false);
|
|
111
|
+
_YargsInstance_usage.set(this, void 0);
|
|
112
|
+
_YargsInstance_usageConfig.set(this, {});
|
|
113
|
+
_YargsInstance_versionOpt.set(this, null);
|
|
114
|
+
_YargsInstance_validation.set(this, void 0);
|
|
115
|
+
__classPrivateFieldSet(this, _YargsInstance_shim, shim, "f");
|
|
116
|
+
__classPrivateFieldSet(this, _YargsInstance_processArgs, processArgs, "f");
|
|
117
|
+
__classPrivateFieldSet(this, _YargsInstance_cwd, cwd, "f");
|
|
118
|
+
__classPrivateFieldSet(this, _YargsInstance_parentRequire, parentRequire, "f");
|
|
119
|
+
__classPrivateFieldSet(this, _YargsInstance_globalMiddleware, new GlobalMiddleware(this), "f");
|
|
120
|
+
this.$0 = this[kGetDollarZero]();
|
|
121
|
+
this[kReset]();
|
|
122
|
+
__classPrivateFieldSet(this, _YargsInstance_command, __classPrivateFieldGet(this, _YargsInstance_command, "f"), "f");
|
|
123
|
+
__classPrivateFieldSet(this, _YargsInstance_usage, __classPrivateFieldGet(this, _YargsInstance_usage, "f"), "f");
|
|
124
|
+
__classPrivateFieldSet(this, _YargsInstance_validation, __classPrivateFieldGet(this, _YargsInstance_validation, "f"), "f");
|
|
125
|
+
__classPrivateFieldSet(this, _YargsInstance_options, __classPrivateFieldGet(this, _YargsInstance_options, "f"), "f");
|
|
126
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").showHiddenOpt = __classPrivateFieldGet(this, _YargsInstance_defaultShowHiddenOpt, "f");
|
|
127
|
+
__classPrivateFieldSet(this, _YargsInstance_logger, this[kCreateLogger](), "f");
|
|
128
|
+
}
|
|
129
|
+
addHelpOpt(opt, msg) {
|
|
130
|
+
const defaultHelpOpt = 'help';
|
|
131
|
+
argsert('[string|boolean] [string]', [opt, msg], arguments.length);
|
|
132
|
+
if (__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")) {
|
|
133
|
+
this[kDeleteFromParserHintObject](__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f"));
|
|
134
|
+
__classPrivateFieldSet(this, _YargsInstance_helpOpt, null, "f");
|
|
135
|
+
}
|
|
136
|
+
if (opt === false && msg === undefined)
|
|
137
|
+
return this;
|
|
138
|
+
__classPrivateFieldSet(this, _YargsInstance_helpOpt, typeof opt === 'string' ? opt : defaultHelpOpt, "f");
|
|
139
|
+
this.boolean(__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f"));
|
|
140
|
+
this.describe(__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f"), msg || __classPrivateFieldGet(this, _YargsInstance_usage, "f").deferY18nLookup('Show help'));
|
|
141
|
+
return this;
|
|
142
|
+
}
|
|
143
|
+
help(opt, msg) {
|
|
144
|
+
return this.addHelpOpt(opt, msg);
|
|
145
|
+
}
|
|
146
|
+
addShowHiddenOpt(opt, msg) {
|
|
147
|
+
argsert('[string|boolean] [string]', [opt, msg], arguments.length);
|
|
148
|
+
if (opt === false && msg === undefined)
|
|
149
|
+
return this;
|
|
150
|
+
const showHiddenOpt = typeof opt === 'string' ? opt : __classPrivateFieldGet(this, _YargsInstance_defaultShowHiddenOpt, "f");
|
|
151
|
+
this.boolean(showHiddenOpt);
|
|
152
|
+
this.describe(showHiddenOpt, msg || __classPrivateFieldGet(this, _YargsInstance_usage, "f").deferY18nLookup('Show hidden options'));
|
|
153
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").showHiddenOpt = showHiddenOpt;
|
|
154
|
+
return this;
|
|
155
|
+
}
|
|
156
|
+
showHidden(opt, msg) {
|
|
157
|
+
return this.addShowHiddenOpt(opt, msg);
|
|
158
|
+
}
|
|
159
|
+
alias(key, value) {
|
|
160
|
+
argsert('<object|string|array> [string|array]', [key, value], arguments.length);
|
|
161
|
+
this[kPopulateParserHintArrayDictionary](this.alias.bind(this), 'alias', key, value);
|
|
162
|
+
return this;
|
|
163
|
+
}
|
|
164
|
+
array(keys) {
|
|
165
|
+
argsert('<array|string>', [keys], arguments.length);
|
|
166
|
+
this[kPopulateParserHintArray]('array', keys);
|
|
167
|
+
this[kTrackManuallySetKeys](keys);
|
|
168
|
+
return this;
|
|
169
|
+
}
|
|
170
|
+
boolean(keys) {
|
|
171
|
+
argsert('<array|string>', [keys], arguments.length);
|
|
172
|
+
this[kPopulateParserHintArray]('boolean', keys);
|
|
173
|
+
this[kTrackManuallySetKeys](keys);
|
|
174
|
+
return this;
|
|
175
|
+
}
|
|
176
|
+
check(f, global) {
|
|
177
|
+
argsert('<function> [boolean]', [f, global], arguments.length);
|
|
178
|
+
this.middleware((argv, _yargs) => {
|
|
179
|
+
return maybeAsyncResult(() => {
|
|
180
|
+
return f(argv, _yargs.getOptions());
|
|
181
|
+
}, (result) => {
|
|
182
|
+
if (!result) {
|
|
183
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(__classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.__('Argument check failed: %s', f.toString()));
|
|
184
|
+
}
|
|
185
|
+
else if (typeof result === 'string' || result instanceof Error) {
|
|
186
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(result.toString(), result);
|
|
187
|
+
}
|
|
188
|
+
return argv;
|
|
189
|
+
}, (err) => {
|
|
190
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(err.message ? err.message : err.toString(), err);
|
|
191
|
+
return argv;
|
|
192
|
+
});
|
|
193
|
+
}, false, global);
|
|
194
|
+
return this;
|
|
195
|
+
}
|
|
196
|
+
choices(key, value) {
|
|
197
|
+
argsert('<object|string|array> [string|array]', [key, value], arguments.length);
|
|
198
|
+
this[kPopulateParserHintArrayDictionary](this.choices.bind(this), 'choices', key, value);
|
|
199
|
+
return this;
|
|
200
|
+
}
|
|
201
|
+
coerce(keys, value) {
|
|
202
|
+
argsert('<object|string|array> [function]', [keys, value], arguments.length);
|
|
203
|
+
if (Array.isArray(keys)) {
|
|
204
|
+
if (!value) {
|
|
205
|
+
throw new YError('coerce callback must be provided');
|
|
206
|
+
}
|
|
207
|
+
for (const key of keys) {
|
|
208
|
+
this.coerce(key, value);
|
|
209
|
+
}
|
|
210
|
+
return this;
|
|
211
|
+
}
|
|
212
|
+
else if (typeof keys === 'object') {
|
|
213
|
+
for (const key of Object.keys(keys)) {
|
|
214
|
+
this.coerce(key, keys[key]);
|
|
215
|
+
}
|
|
216
|
+
return this;
|
|
217
|
+
}
|
|
218
|
+
if (!value) {
|
|
219
|
+
throw new YError('coerce callback must be provided');
|
|
220
|
+
}
|
|
221
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").key[keys] = true;
|
|
222
|
+
__classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").addCoerceMiddleware((argv, yargs) => {
|
|
223
|
+
let aliases;
|
|
224
|
+
const shouldCoerce = Object.prototype.hasOwnProperty.call(argv, keys);
|
|
225
|
+
if (!shouldCoerce) {
|
|
226
|
+
return argv;
|
|
227
|
+
}
|
|
228
|
+
return maybeAsyncResult(() => {
|
|
229
|
+
aliases = yargs.getAliases();
|
|
230
|
+
return value(argv[keys]);
|
|
231
|
+
}, (result) => {
|
|
232
|
+
argv[keys] = result;
|
|
233
|
+
const stripAliased = yargs
|
|
234
|
+
.getInternalMethods()
|
|
235
|
+
.getParserConfiguration()['strip-aliased'];
|
|
236
|
+
if (aliases[keys] && stripAliased !== true) {
|
|
237
|
+
for (const alias of aliases[keys]) {
|
|
238
|
+
argv[alias] = result;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return argv;
|
|
242
|
+
}, (err) => {
|
|
243
|
+
throw new YError(err.message);
|
|
244
|
+
});
|
|
245
|
+
}, keys);
|
|
246
|
+
return this;
|
|
247
|
+
}
|
|
248
|
+
conflicts(key1, key2) {
|
|
249
|
+
argsert('<string|object> [string|array]', [key1, key2], arguments.length);
|
|
250
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").conflicts(key1, key2);
|
|
251
|
+
return this;
|
|
252
|
+
}
|
|
253
|
+
config(key = 'config', msg, parseFn) {
|
|
254
|
+
argsert('[object|string] [string|function] [function]', [key, msg, parseFn], arguments.length);
|
|
255
|
+
if (typeof key === 'object' && !Array.isArray(key)) {
|
|
256
|
+
key = applyExtends(key, __classPrivateFieldGet(this, _YargsInstance_cwd, "f"), this[kGetParserConfiguration]()['deep-merge-config'] || false, __classPrivateFieldGet(this, _YargsInstance_shim, "f"));
|
|
257
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects = (__classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects || []).concat(key);
|
|
258
|
+
return this;
|
|
259
|
+
}
|
|
260
|
+
if (typeof msg === 'function') {
|
|
261
|
+
parseFn = msg;
|
|
262
|
+
msg = undefined;
|
|
263
|
+
}
|
|
264
|
+
this.describe(key, msg || __classPrivateFieldGet(this, _YargsInstance_usage, "f").deferY18nLookup('Path to JSON config file'));
|
|
265
|
+
(Array.isArray(key) ? key : [key]).forEach(k => {
|
|
266
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").config[k] = parseFn || true;
|
|
267
|
+
});
|
|
268
|
+
return this;
|
|
269
|
+
}
|
|
270
|
+
completion(cmd, desc, fn) {
|
|
271
|
+
argsert('[string] [string|boolean|function] [function]', [cmd, desc, fn], arguments.length);
|
|
272
|
+
if (typeof desc === 'function') {
|
|
273
|
+
fn = desc;
|
|
274
|
+
desc = undefined;
|
|
275
|
+
}
|
|
276
|
+
__classPrivateFieldSet(this, _YargsInstance_completionCommand, cmd || __classPrivateFieldGet(this, _YargsInstance_completionCommand, "f") || 'completion', "f");
|
|
277
|
+
if (!desc && desc !== false) {
|
|
278
|
+
desc = 'generate completion script';
|
|
279
|
+
}
|
|
280
|
+
this.command(__classPrivateFieldGet(this, _YargsInstance_completionCommand, "f"), desc);
|
|
281
|
+
if (fn)
|
|
282
|
+
__classPrivateFieldGet(this, _YargsInstance_completion, "f").registerFunction(fn);
|
|
283
|
+
return this;
|
|
284
|
+
}
|
|
285
|
+
command(cmd, description, builder, handler, middlewares, deprecated) {
|
|
286
|
+
argsert('<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]', [cmd, description, builder, handler, middlewares, deprecated], arguments.length);
|
|
287
|
+
__classPrivateFieldGet(this, _YargsInstance_command, "f").addHandler(cmd, description, builder, handler, middlewares, deprecated);
|
|
288
|
+
return this;
|
|
289
|
+
}
|
|
290
|
+
commands(cmd, description, builder, handler, middlewares, deprecated) {
|
|
291
|
+
return this.command(cmd, description, builder, handler, middlewares, deprecated);
|
|
292
|
+
}
|
|
293
|
+
commandDir(dir, opts) {
|
|
294
|
+
argsert('<string> [object]', [dir, opts], arguments.length);
|
|
295
|
+
const req = __classPrivateFieldGet(this, _YargsInstance_parentRequire, "f") || __classPrivateFieldGet(this, _YargsInstance_shim, "f").require;
|
|
296
|
+
__classPrivateFieldGet(this, _YargsInstance_command, "f").addDirectory(dir, req, __classPrivateFieldGet(this, _YargsInstance_shim, "f").getCallerFile(), opts);
|
|
297
|
+
return this;
|
|
298
|
+
}
|
|
299
|
+
count(keys) {
|
|
300
|
+
argsert('<array|string>', [keys], arguments.length);
|
|
301
|
+
this[kPopulateParserHintArray]('count', keys);
|
|
302
|
+
this[kTrackManuallySetKeys](keys);
|
|
303
|
+
return this;
|
|
304
|
+
}
|
|
305
|
+
default(key, value, defaultDescription) {
|
|
306
|
+
argsert('<object|string|array> [*] [string]', [key, value, defaultDescription], arguments.length);
|
|
307
|
+
if (defaultDescription) {
|
|
308
|
+
assertSingleKey(key, __classPrivateFieldGet(this, _YargsInstance_shim, "f"));
|
|
309
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").defaultDescription[key] = defaultDescription;
|
|
310
|
+
}
|
|
311
|
+
if (typeof value === 'function') {
|
|
312
|
+
assertSingleKey(key, __classPrivateFieldGet(this, _YargsInstance_shim, "f"));
|
|
313
|
+
if (!__classPrivateFieldGet(this, _YargsInstance_options, "f").defaultDescription[key])
|
|
314
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").defaultDescription[key] =
|
|
315
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").functionDescription(value);
|
|
316
|
+
value = value.call();
|
|
317
|
+
}
|
|
318
|
+
this[kPopulateParserHintSingleValueDictionary](this.default.bind(this), 'default', key, value);
|
|
319
|
+
return this;
|
|
320
|
+
}
|
|
321
|
+
defaults(key, value, defaultDescription) {
|
|
322
|
+
return this.default(key, value, defaultDescription);
|
|
323
|
+
}
|
|
324
|
+
demandCommand(min = 1, max, minMsg, maxMsg) {
|
|
325
|
+
argsert('[number] [number|string] [string|null|undefined] [string|null|undefined]', [min, max, minMsg, maxMsg], arguments.length);
|
|
326
|
+
if (typeof max !== 'number') {
|
|
327
|
+
minMsg = max;
|
|
328
|
+
max = Infinity;
|
|
329
|
+
}
|
|
330
|
+
this.global('_', false);
|
|
331
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").demandedCommands._ = {
|
|
332
|
+
min,
|
|
333
|
+
max,
|
|
334
|
+
minMsg,
|
|
335
|
+
maxMsg,
|
|
336
|
+
};
|
|
337
|
+
return this;
|
|
338
|
+
}
|
|
339
|
+
demand(keys, max, msg) {
|
|
340
|
+
if (Array.isArray(max)) {
|
|
341
|
+
max.forEach(key => {
|
|
342
|
+
assertNotStrictEqual(msg, true, __classPrivateFieldGet(this, _YargsInstance_shim, "f"));
|
|
343
|
+
this.demandOption(key, msg);
|
|
344
|
+
});
|
|
345
|
+
max = Infinity;
|
|
346
|
+
}
|
|
347
|
+
else if (typeof max !== 'number') {
|
|
348
|
+
msg = max;
|
|
349
|
+
max = Infinity;
|
|
350
|
+
}
|
|
351
|
+
if (typeof keys === 'number') {
|
|
352
|
+
assertNotStrictEqual(msg, true, __classPrivateFieldGet(this, _YargsInstance_shim, "f"));
|
|
353
|
+
this.demandCommand(keys, max, msg, msg);
|
|
354
|
+
}
|
|
355
|
+
else if (Array.isArray(keys)) {
|
|
356
|
+
keys.forEach(key => {
|
|
357
|
+
assertNotStrictEqual(msg, true, __classPrivateFieldGet(this, _YargsInstance_shim, "f"));
|
|
358
|
+
this.demandOption(key, msg);
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
if (typeof msg === 'string') {
|
|
363
|
+
this.demandOption(keys, msg);
|
|
364
|
+
}
|
|
365
|
+
else if (msg === true || typeof msg === 'undefined') {
|
|
366
|
+
this.demandOption(keys);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
return this;
|
|
370
|
+
}
|
|
371
|
+
demandOption(keys, msg) {
|
|
372
|
+
argsert('<object|string|array> [string]', [keys, msg], arguments.length);
|
|
373
|
+
this[kPopulateParserHintSingleValueDictionary](this.demandOption.bind(this), 'demandedOptions', keys, msg);
|
|
374
|
+
return this;
|
|
375
|
+
}
|
|
376
|
+
deprecateOption(option, message) {
|
|
377
|
+
argsert('<string> [string|boolean]', [option, message], arguments.length);
|
|
378
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").deprecatedOptions[option] = message;
|
|
379
|
+
return this;
|
|
380
|
+
}
|
|
381
|
+
describe(keys, description) {
|
|
382
|
+
argsert('<object|string|array> [string]', [keys, description], arguments.length);
|
|
383
|
+
this[kSetKey](keys, true);
|
|
384
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").describe(keys, description);
|
|
385
|
+
return this;
|
|
386
|
+
}
|
|
387
|
+
detectLocale(detect) {
|
|
388
|
+
argsert('<boolean>', [detect], arguments.length);
|
|
389
|
+
__classPrivateFieldSet(this, _YargsInstance_detectLocale, detect, "f");
|
|
390
|
+
return this;
|
|
391
|
+
}
|
|
392
|
+
env(prefix) {
|
|
393
|
+
argsert('[string|boolean]', [prefix], arguments.length);
|
|
394
|
+
if (prefix === false)
|
|
395
|
+
delete __classPrivateFieldGet(this, _YargsInstance_options, "f").envPrefix;
|
|
396
|
+
else
|
|
397
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").envPrefix = prefix || '';
|
|
398
|
+
return this;
|
|
399
|
+
}
|
|
400
|
+
epilogue(msg) {
|
|
401
|
+
argsert('<string>', [msg], arguments.length);
|
|
402
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").epilog(msg);
|
|
403
|
+
return this;
|
|
404
|
+
}
|
|
405
|
+
epilog(msg) {
|
|
406
|
+
return this.epilogue(msg);
|
|
407
|
+
}
|
|
408
|
+
example(cmd, description) {
|
|
409
|
+
argsert('<string|array> [string]', [cmd, description], arguments.length);
|
|
410
|
+
if (Array.isArray(cmd)) {
|
|
411
|
+
cmd.forEach(exampleParams => this.example(...exampleParams));
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").example(cmd, description);
|
|
415
|
+
}
|
|
416
|
+
return this;
|
|
417
|
+
}
|
|
418
|
+
exit(code, err) {
|
|
419
|
+
__classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f");
|
|
420
|
+
__classPrivateFieldSet(this, _YargsInstance_exitError, err, "f");
|
|
421
|
+
if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f"))
|
|
422
|
+
__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.exit(code);
|
|
423
|
+
}
|
|
424
|
+
exitProcess(enabled = true) {
|
|
425
|
+
argsert('[boolean]', [enabled], arguments.length);
|
|
426
|
+
__classPrivateFieldSet(this, _YargsInstance_exitProcess, enabled, "f");
|
|
427
|
+
return this;
|
|
428
|
+
}
|
|
429
|
+
fail(f) {
|
|
430
|
+
argsert('<function|boolean>', [f], arguments.length);
|
|
431
|
+
if (typeof f === 'boolean' && f !== false) {
|
|
432
|
+
throw new YError("Invalid first argument. Expected function or boolean 'false'");
|
|
433
|
+
}
|
|
434
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").failFn(f);
|
|
435
|
+
return this;
|
|
436
|
+
}
|
|
437
|
+
getAliases() {
|
|
438
|
+
return this.parsed ? this.parsed.aliases : {};
|
|
439
|
+
}
|
|
440
|
+
async getCompletion(args, done) {
|
|
441
|
+
argsert('<array> [function]', [args, done], arguments.length);
|
|
442
|
+
if (!done) {
|
|
443
|
+
return new Promise((resolve, reject) => {
|
|
444
|
+
__classPrivateFieldGet(this, _YargsInstance_completion, "f").getCompletion(args, (err, completions) => {
|
|
445
|
+
if (err)
|
|
446
|
+
reject(err);
|
|
447
|
+
else
|
|
448
|
+
resolve(completions);
|
|
449
|
+
});
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
else {
|
|
453
|
+
return __classPrivateFieldGet(this, _YargsInstance_completion, "f").getCompletion(args, done);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
getDemandedOptions() {
|
|
457
|
+
argsert([], 0);
|
|
458
|
+
return __classPrivateFieldGet(this, _YargsInstance_options, "f").demandedOptions;
|
|
459
|
+
}
|
|
460
|
+
getDemandedCommands() {
|
|
461
|
+
argsert([], 0);
|
|
462
|
+
return __classPrivateFieldGet(this, _YargsInstance_options, "f").demandedCommands;
|
|
463
|
+
}
|
|
464
|
+
getDeprecatedOptions() {
|
|
465
|
+
argsert([], 0);
|
|
466
|
+
return __classPrivateFieldGet(this, _YargsInstance_options, "f").deprecatedOptions;
|
|
467
|
+
}
|
|
468
|
+
getDetectLocale() {
|
|
469
|
+
return __classPrivateFieldGet(this, _YargsInstance_detectLocale, "f");
|
|
470
|
+
}
|
|
471
|
+
getExitProcess() {
|
|
472
|
+
return __classPrivateFieldGet(this, _YargsInstance_exitProcess, "f");
|
|
473
|
+
}
|
|
474
|
+
getGroups() {
|
|
475
|
+
return Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_groups, "f"), __classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f"));
|
|
476
|
+
}
|
|
477
|
+
getHelp() {
|
|
478
|
+
__classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f");
|
|
479
|
+
if (!__classPrivateFieldGet(this, _YargsInstance_usage, "f").hasCachedHelpMessage()) {
|
|
480
|
+
if (!this.parsed) {
|
|
481
|
+
const parse = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet(this, _YargsInstance_processArgs, "f"), undefined, undefined, 0, true);
|
|
482
|
+
if (isPromise(parse)) {
|
|
483
|
+
return parse.then(() => {
|
|
484
|
+
return __classPrivateFieldGet(this, _YargsInstance_usage, "f").help();
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
const builderResponse = __classPrivateFieldGet(this, _YargsInstance_command, "f").runDefaultBuilderOn(this);
|
|
489
|
+
if (isPromise(builderResponse)) {
|
|
490
|
+
return builderResponse.then(() => {
|
|
491
|
+
return __classPrivateFieldGet(this, _YargsInstance_usage, "f").help();
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return Promise.resolve(__classPrivateFieldGet(this, _YargsInstance_usage, "f").help());
|
|
496
|
+
}
|
|
497
|
+
getOptions() {
|
|
498
|
+
return __classPrivateFieldGet(this, _YargsInstance_options, "f");
|
|
499
|
+
}
|
|
500
|
+
getStrict() {
|
|
501
|
+
return __classPrivateFieldGet(this, _YargsInstance_strict, "f");
|
|
502
|
+
}
|
|
503
|
+
getStrictCommands() {
|
|
504
|
+
return __classPrivateFieldGet(this, _YargsInstance_strictCommands, "f");
|
|
505
|
+
}
|
|
506
|
+
getStrictOptions() {
|
|
507
|
+
return __classPrivateFieldGet(this, _YargsInstance_strictOptions, "f");
|
|
508
|
+
}
|
|
509
|
+
global(globals, global) {
|
|
510
|
+
argsert('<string|array> [boolean]', [globals, global], arguments.length);
|
|
511
|
+
globals = [].concat(globals);
|
|
512
|
+
if (global !== false) {
|
|
513
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").local = __classPrivateFieldGet(this, _YargsInstance_options, "f").local.filter(l => globals.indexOf(l) === -1);
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
globals.forEach(g => {
|
|
517
|
+
if (!__classPrivateFieldGet(this, _YargsInstance_options, "f").local.includes(g))
|
|
518
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").local.push(g);
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
return this;
|
|
522
|
+
}
|
|
523
|
+
group(opts, groupName) {
|
|
524
|
+
argsert('<string|array> <string>', [opts, groupName], arguments.length);
|
|
525
|
+
const existing = __classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f")[groupName] || __classPrivateFieldGet(this, _YargsInstance_groups, "f")[groupName];
|
|
526
|
+
if (__classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f")[groupName]) {
|
|
527
|
+
delete __classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f")[groupName];
|
|
528
|
+
}
|
|
529
|
+
const seen = {};
|
|
530
|
+
__classPrivateFieldGet(this, _YargsInstance_groups, "f")[groupName] = (existing || []).concat(opts).filter(key => {
|
|
531
|
+
if (seen[key])
|
|
532
|
+
return false;
|
|
533
|
+
return (seen[key] = true);
|
|
534
|
+
});
|
|
535
|
+
return this;
|
|
536
|
+
}
|
|
537
|
+
hide(key) {
|
|
538
|
+
argsert('<string>', [key], arguments.length);
|
|
539
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").hiddenOptions.push(key);
|
|
540
|
+
return this;
|
|
541
|
+
}
|
|
542
|
+
implies(key, value) {
|
|
543
|
+
argsert('<string|object> [number|string|array]', [key, value], arguments.length);
|
|
544
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").implies(key, value);
|
|
545
|
+
return this;
|
|
546
|
+
}
|
|
547
|
+
locale(locale) {
|
|
548
|
+
argsert('[string]', [locale], arguments.length);
|
|
549
|
+
if (locale === undefined) {
|
|
550
|
+
this[kGuessLocale]();
|
|
551
|
+
return __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.getLocale();
|
|
552
|
+
}
|
|
553
|
+
__classPrivateFieldSet(this, _YargsInstance_detectLocale, false, "f");
|
|
554
|
+
__classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.setLocale(locale);
|
|
555
|
+
return this;
|
|
556
|
+
}
|
|
557
|
+
middleware(callback, applyBeforeValidation, global) {
|
|
558
|
+
return __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").addMiddleware(callback, !!applyBeforeValidation, global);
|
|
559
|
+
}
|
|
560
|
+
nargs(key, value) {
|
|
561
|
+
argsert('<string|object|array> [number]', [key, value], arguments.length);
|
|
562
|
+
this[kPopulateParserHintSingleValueDictionary](this.nargs.bind(this), 'narg', key, value);
|
|
563
|
+
return this;
|
|
564
|
+
}
|
|
565
|
+
normalize(keys) {
|
|
566
|
+
argsert('<array|string>', [keys], arguments.length);
|
|
567
|
+
this[kPopulateParserHintArray]('normalize', keys);
|
|
568
|
+
return this;
|
|
569
|
+
}
|
|
570
|
+
number(keys) {
|
|
571
|
+
argsert('<array|string>', [keys], arguments.length);
|
|
572
|
+
this[kPopulateParserHintArray]('number', keys);
|
|
573
|
+
this[kTrackManuallySetKeys](keys);
|
|
574
|
+
return this;
|
|
575
|
+
}
|
|
576
|
+
option(key, opt) {
|
|
577
|
+
argsert('<string|object> [object]', [key, opt], arguments.length);
|
|
578
|
+
if (typeof key === 'object') {
|
|
579
|
+
Object.keys(key).forEach(k => {
|
|
580
|
+
this.options(k, key[k]);
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
else {
|
|
584
|
+
if (typeof opt !== 'object') {
|
|
585
|
+
opt = {};
|
|
586
|
+
}
|
|
587
|
+
this[kTrackManuallySetKeys](key);
|
|
588
|
+
if (__classPrivateFieldGet(this, _YargsInstance_versionOpt, "f") && (key === 'version' || (opt === null || opt === void 0 ? void 0 : opt.alias) === 'version')) {
|
|
589
|
+
this[kEmitWarning]([
|
|
590
|
+
'"version" is a reserved word.',
|
|
591
|
+
'Please do one of the following:',
|
|
592
|
+
'- Disable version with `yargs.version(false)` if using "version" as an option',
|
|
593
|
+
'- Use the built-in `yargs.version` method instead (if applicable)',
|
|
594
|
+
'- Use a different option key',
|
|
595
|
+
'https://yargs.js.org/docs/#api-reference-version',
|
|
596
|
+
].join('\n'), undefined, 'versionWarning');
|
|
597
|
+
}
|
|
598
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").key[key] = true;
|
|
599
|
+
if (opt.alias)
|
|
600
|
+
this.alias(key, opt.alias);
|
|
601
|
+
const deprecate = opt.deprecate || opt.deprecated;
|
|
602
|
+
if (deprecate) {
|
|
603
|
+
this.deprecateOption(key, deprecate);
|
|
604
|
+
}
|
|
605
|
+
const demand = opt.demand || opt.required || opt.require;
|
|
606
|
+
if (demand) {
|
|
607
|
+
this.demand(key, demand);
|
|
608
|
+
}
|
|
609
|
+
if (opt.demandOption) {
|
|
610
|
+
this.demandOption(key, typeof opt.demandOption === 'string' ? opt.demandOption : undefined);
|
|
611
|
+
}
|
|
612
|
+
if (opt.conflicts) {
|
|
613
|
+
this.conflicts(key, opt.conflicts);
|
|
614
|
+
}
|
|
615
|
+
if ('default' in opt) {
|
|
616
|
+
this.default(key, opt.default);
|
|
617
|
+
}
|
|
618
|
+
if (opt.implies !== undefined) {
|
|
619
|
+
this.implies(key, opt.implies);
|
|
620
|
+
}
|
|
621
|
+
if (opt.nargs !== undefined) {
|
|
622
|
+
this.nargs(key, opt.nargs);
|
|
623
|
+
}
|
|
624
|
+
if (opt.config) {
|
|
625
|
+
this.config(key, opt.configParser);
|
|
626
|
+
}
|
|
627
|
+
if (opt.normalize) {
|
|
628
|
+
this.normalize(key);
|
|
629
|
+
}
|
|
630
|
+
if (opt.choices) {
|
|
631
|
+
this.choices(key, opt.choices);
|
|
632
|
+
}
|
|
633
|
+
if (opt.coerce) {
|
|
634
|
+
this.coerce(key, opt.coerce);
|
|
635
|
+
}
|
|
636
|
+
if (opt.group) {
|
|
637
|
+
this.group(key, opt.group);
|
|
638
|
+
}
|
|
639
|
+
if (opt.boolean || opt.type === 'boolean') {
|
|
640
|
+
this.boolean(key);
|
|
641
|
+
if (opt.alias)
|
|
642
|
+
this.boolean(opt.alias);
|
|
643
|
+
}
|
|
644
|
+
if (opt.array || opt.type === 'array') {
|
|
645
|
+
this.array(key);
|
|
646
|
+
if (opt.alias)
|
|
647
|
+
this.array(opt.alias);
|
|
648
|
+
}
|
|
649
|
+
if (opt.number || opt.type === 'number') {
|
|
650
|
+
this.number(key);
|
|
651
|
+
if (opt.alias)
|
|
652
|
+
this.number(opt.alias);
|
|
653
|
+
}
|
|
654
|
+
if (opt.string || opt.type === 'string') {
|
|
655
|
+
this.string(key);
|
|
656
|
+
if (opt.alias)
|
|
657
|
+
this.string(opt.alias);
|
|
658
|
+
}
|
|
659
|
+
if (opt.count || opt.type === 'count') {
|
|
660
|
+
this.count(key);
|
|
661
|
+
}
|
|
662
|
+
if (typeof opt.global === 'boolean') {
|
|
663
|
+
this.global(key, opt.global);
|
|
664
|
+
}
|
|
665
|
+
if (opt.defaultDescription) {
|
|
666
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").defaultDescription[key] = opt.defaultDescription;
|
|
667
|
+
}
|
|
668
|
+
if (opt.skipValidation) {
|
|
669
|
+
this.skipValidation(key);
|
|
670
|
+
}
|
|
671
|
+
const desc = opt.describe || opt.description || opt.desc;
|
|
672
|
+
const descriptions = __classPrivateFieldGet(this, _YargsInstance_usage, "f").getDescriptions();
|
|
673
|
+
if (!Object.prototype.hasOwnProperty.call(descriptions, key) ||
|
|
674
|
+
typeof desc === 'string') {
|
|
675
|
+
this.describe(key, desc);
|
|
676
|
+
}
|
|
677
|
+
if (opt.hidden) {
|
|
678
|
+
this.hide(key);
|
|
679
|
+
}
|
|
680
|
+
if (opt.requiresArg) {
|
|
681
|
+
this.requiresArg(key);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
return this;
|
|
685
|
+
}
|
|
686
|
+
options(key, opt) {
|
|
687
|
+
return this.option(key, opt);
|
|
688
|
+
}
|
|
689
|
+
parse(args, shortCircuit, _parseFn) {
|
|
690
|
+
argsert('[string|array] [function|boolean|object] [function]', [args, shortCircuit, _parseFn], arguments.length);
|
|
691
|
+
this[kFreeze]();
|
|
692
|
+
if (typeof args === 'undefined') {
|
|
693
|
+
args = __classPrivateFieldGet(this, _YargsInstance_processArgs, "f");
|
|
694
|
+
}
|
|
695
|
+
if (typeof shortCircuit === 'object') {
|
|
696
|
+
__classPrivateFieldSet(this, _YargsInstance_parseContext, shortCircuit, "f");
|
|
697
|
+
shortCircuit = _parseFn;
|
|
698
|
+
}
|
|
699
|
+
if (typeof shortCircuit === 'function') {
|
|
700
|
+
__classPrivateFieldSet(this, _YargsInstance_parseFn, shortCircuit, "f");
|
|
701
|
+
shortCircuit = false;
|
|
702
|
+
}
|
|
703
|
+
if (!shortCircuit)
|
|
704
|
+
__classPrivateFieldSet(this, _YargsInstance_processArgs, args, "f");
|
|
705
|
+
if (__classPrivateFieldGet(this, _YargsInstance_parseFn, "f"))
|
|
706
|
+
__classPrivateFieldSet(this, _YargsInstance_exitProcess, false, "f");
|
|
707
|
+
const parsed = this[kRunYargsParserAndExecuteCommands](args, !!shortCircuit);
|
|
708
|
+
const tmpParsed = this.parsed;
|
|
709
|
+
__classPrivateFieldGet(this, _YargsInstance_completion, "f").setParsed(this.parsed);
|
|
710
|
+
if (isPromise(parsed)) {
|
|
711
|
+
return parsed
|
|
712
|
+
.then(argv => {
|
|
713
|
+
if (__classPrivateFieldGet(this, _YargsInstance_parseFn, "f"))
|
|
714
|
+
__classPrivateFieldGet(this, _YargsInstance_parseFn, "f").call(this, __classPrivateFieldGet(this, _YargsInstance_exitError, "f"), argv, __classPrivateFieldGet(this, _YargsInstance_output, "f"));
|
|
715
|
+
return argv;
|
|
716
|
+
})
|
|
717
|
+
.catch(err => {
|
|
718
|
+
if (__classPrivateFieldGet(this, _YargsInstance_parseFn, "f")) {
|
|
719
|
+
__classPrivateFieldGet(this, _YargsInstance_parseFn, "f")(err, this.parsed.argv, __classPrivateFieldGet(this, _YargsInstance_output, "f"));
|
|
720
|
+
}
|
|
721
|
+
throw err;
|
|
722
|
+
})
|
|
723
|
+
.finally(() => {
|
|
724
|
+
this[kUnfreeze]();
|
|
725
|
+
this.parsed = tmpParsed;
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
if (__classPrivateFieldGet(this, _YargsInstance_parseFn, "f"))
|
|
730
|
+
__classPrivateFieldGet(this, _YargsInstance_parseFn, "f").call(this, __classPrivateFieldGet(this, _YargsInstance_exitError, "f"), parsed, __classPrivateFieldGet(this, _YargsInstance_output, "f"));
|
|
731
|
+
this[kUnfreeze]();
|
|
732
|
+
this.parsed = tmpParsed;
|
|
733
|
+
}
|
|
734
|
+
return parsed;
|
|
735
|
+
}
|
|
736
|
+
parseAsync(args, shortCircuit, _parseFn) {
|
|
737
|
+
const maybePromise = this.parse(args, shortCircuit, _parseFn);
|
|
738
|
+
return !isPromise(maybePromise)
|
|
739
|
+
? Promise.resolve(maybePromise)
|
|
740
|
+
: maybePromise;
|
|
741
|
+
}
|
|
742
|
+
parseSync(args, shortCircuit, _parseFn) {
|
|
743
|
+
const maybePromise = this.parse(args, shortCircuit, _parseFn);
|
|
744
|
+
if (isPromise(maybePromise)) {
|
|
745
|
+
throw new YError('.parseSync() must not be used with asynchronous builders, handlers, or middleware');
|
|
746
|
+
}
|
|
747
|
+
return maybePromise;
|
|
748
|
+
}
|
|
749
|
+
parserConfiguration(config) {
|
|
750
|
+
argsert('<object>', [config], arguments.length);
|
|
751
|
+
__classPrivateFieldSet(this, _YargsInstance_parserConfig, config, "f");
|
|
752
|
+
return this;
|
|
753
|
+
}
|
|
754
|
+
pkgConf(key, rootPath) {
|
|
755
|
+
argsert('<string> [string]', [key, rootPath], arguments.length);
|
|
756
|
+
let conf = null;
|
|
757
|
+
const obj = this[kPkgUp](rootPath || __classPrivateFieldGet(this, _YargsInstance_cwd, "f"));
|
|
758
|
+
if (obj[key] && typeof obj[key] === 'object') {
|
|
759
|
+
conf = applyExtends(obj[key], rootPath || __classPrivateFieldGet(this, _YargsInstance_cwd, "f"), this[kGetParserConfiguration]()['deep-merge-config'] || false, __classPrivateFieldGet(this, _YargsInstance_shim, "f"));
|
|
760
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects = (__classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects || []).concat(conf);
|
|
761
|
+
}
|
|
762
|
+
return this;
|
|
763
|
+
}
|
|
764
|
+
positional(key, opts) {
|
|
765
|
+
argsert('<string> <object>', [key, opts], arguments.length);
|
|
766
|
+
const supportedOpts = [
|
|
767
|
+
'default',
|
|
768
|
+
'defaultDescription',
|
|
769
|
+
'implies',
|
|
770
|
+
'normalize',
|
|
771
|
+
'choices',
|
|
772
|
+
'conflicts',
|
|
773
|
+
'coerce',
|
|
774
|
+
'type',
|
|
775
|
+
'describe',
|
|
776
|
+
'desc',
|
|
777
|
+
'description',
|
|
778
|
+
'alias',
|
|
779
|
+
];
|
|
780
|
+
opts = objFilter(opts, (k, v) => {
|
|
781
|
+
if (k === 'type' && !['string', 'number', 'boolean'].includes(v))
|
|
782
|
+
return false;
|
|
783
|
+
return supportedOpts.includes(k);
|
|
784
|
+
});
|
|
785
|
+
const fullCommand = __classPrivateFieldGet(this, _YargsInstance_context, "f").fullCommands[__classPrivateFieldGet(this, _YargsInstance_context, "f").fullCommands.length - 1];
|
|
786
|
+
const parseOptions = fullCommand
|
|
787
|
+
? __classPrivateFieldGet(this, _YargsInstance_command, "f").cmdToParseOptions(fullCommand)
|
|
788
|
+
: {
|
|
789
|
+
array: [],
|
|
790
|
+
alias: {},
|
|
791
|
+
default: {},
|
|
792
|
+
demand: {},
|
|
793
|
+
};
|
|
794
|
+
objectKeys(parseOptions).forEach(pk => {
|
|
795
|
+
const parseOption = parseOptions[pk];
|
|
796
|
+
if (Array.isArray(parseOption)) {
|
|
797
|
+
if (parseOption.indexOf(key) !== -1)
|
|
798
|
+
opts[pk] = true;
|
|
799
|
+
}
|
|
800
|
+
else {
|
|
801
|
+
if (parseOption[key] && !(pk in opts))
|
|
802
|
+
opts[pk] = parseOption[key];
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
this.group(key, __classPrivateFieldGet(this, _YargsInstance_usage, "f").getPositionalGroupName());
|
|
806
|
+
return this.option(key, opts);
|
|
807
|
+
}
|
|
808
|
+
recommendCommands(recommend = true) {
|
|
809
|
+
argsert('[boolean]', [recommend], arguments.length);
|
|
810
|
+
__classPrivateFieldSet(this, _YargsInstance_recommendCommands, recommend, "f");
|
|
811
|
+
return this;
|
|
812
|
+
}
|
|
813
|
+
required(keys, max, msg) {
|
|
814
|
+
return this.demand(keys, max, msg);
|
|
815
|
+
}
|
|
816
|
+
require(keys, max, msg) {
|
|
817
|
+
return this.demand(keys, max, msg);
|
|
818
|
+
}
|
|
819
|
+
requiresArg(keys) {
|
|
820
|
+
argsert('<array|string|object> [number]', [keys], arguments.length);
|
|
821
|
+
if (typeof keys === 'string' && __classPrivateFieldGet(this, _YargsInstance_options, "f").narg[keys]) {
|
|
822
|
+
return this;
|
|
823
|
+
}
|
|
824
|
+
else {
|
|
825
|
+
this[kPopulateParserHintSingleValueDictionary](this.requiresArg.bind(this), 'narg', keys, NaN);
|
|
826
|
+
}
|
|
827
|
+
return this;
|
|
828
|
+
}
|
|
829
|
+
showCompletionScript($0, cmd) {
|
|
830
|
+
argsert('[string] [string]', [$0, cmd], arguments.length);
|
|
831
|
+
$0 = $0 || this.$0;
|
|
832
|
+
__classPrivateFieldGet(this, _YargsInstance_logger, "f").log(__classPrivateFieldGet(this, _YargsInstance_completion, "f").generateCompletionScript($0, cmd || __classPrivateFieldGet(this, _YargsInstance_completionCommand, "f") || 'completion'));
|
|
833
|
+
return this;
|
|
834
|
+
}
|
|
835
|
+
showHelp(level) {
|
|
836
|
+
argsert('[string|function]', [level], arguments.length);
|
|
837
|
+
__classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f");
|
|
838
|
+
if (!__classPrivateFieldGet(this, _YargsInstance_usage, "f").hasCachedHelpMessage()) {
|
|
839
|
+
if (!this.parsed) {
|
|
840
|
+
const parse = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet(this, _YargsInstance_processArgs, "f"), undefined, undefined, 0, true);
|
|
841
|
+
if (isPromise(parse)) {
|
|
842
|
+
parse.then(() => {
|
|
843
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").showHelp(level);
|
|
844
|
+
});
|
|
845
|
+
return this;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
const builderResponse = __classPrivateFieldGet(this, _YargsInstance_command, "f").runDefaultBuilderOn(this);
|
|
849
|
+
if (isPromise(builderResponse)) {
|
|
850
|
+
builderResponse.then(() => {
|
|
851
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").showHelp(level);
|
|
852
|
+
});
|
|
853
|
+
return this;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").showHelp(level);
|
|
857
|
+
return this;
|
|
858
|
+
}
|
|
859
|
+
scriptName(scriptName) {
|
|
860
|
+
this.customScriptName = true;
|
|
861
|
+
this.$0 = scriptName;
|
|
862
|
+
return this;
|
|
863
|
+
}
|
|
864
|
+
showHelpOnFail(enabled, message) {
|
|
865
|
+
argsert('[boolean|string] [string]', [enabled, message], arguments.length);
|
|
866
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").showHelpOnFail(enabled, message);
|
|
867
|
+
return this;
|
|
868
|
+
}
|
|
869
|
+
showVersion(level) {
|
|
870
|
+
argsert('[string|function]', [level], arguments.length);
|
|
871
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").showVersion(level);
|
|
872
|
+
return this;
|
|
873
|
+
}
|
|
874
|
+
skipValidation(keys) {
|
|
875
|
+
argsert('<array|string>', [keys], arguments.length);
|
|
876
|
+
this[kPopulateParserHintArray]('skipValidation', keys);
|
|
877
|
+
return this;
|
|
878
|
+
}
|
|
879
|
+
strict(enabled) {
|
|
880
|
+
argsert('[boolean]', [enabled], arguments.length);
|
|
881
|
+
__classPrivateFieldSet(this, _YargsInstance_strict, enabled !== false, "f");
|
|
882
|
+
return this;
|
|
883
|
+
}
|
|
884
|
+
strictCommands(enabled) {
|
|
885
|
+
argsert('[boolean]', [enabled], arguments.length);
|
|
886
|
+
__classPrivateFieldSet(this, _YargsInstance_strictCommands, enabled !== false, "f");
|
|
887
|
+
return this;
|
|
888
|
+
}
|
|
889
|
+
strictOptions(enabled) {
|
|
890
|
+
argsert('[boolean]', [enabled], arguments.length);
|
|
891
|
+
__classPrivateFieldSet(this, _YargsInstance_strictOptions, enabled !== false, "f");
|
|
892
|
+
return this;
|
|
893
|
+
}
|
|
894
|
+
string(keys) {
|
|
895
|
+
argsert('<array|string>', [keys], arguments.length);
|
|
896
|
+
this[kPopulateParserHintArray]('string', keys);
|
|
897
|
+
this[kTrackManuallySetKeys](keys);
|
|
898
|
+
return this;
|
|
899
|
+
}
|
|
900
|
+
terminalWidth() {
|
|
901
|
+
argsert([], 0);
|
|
902
|
+
return __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.stdColumns;
|
|
903
|
+
}
|
|
904
|
+
updateLocale(obj) {
|
|
905
|
+
return this.updateStrings(obj);
|
|
906
|
+
}
|
|
907
|
+
updateStrings(obj) {
|
|
908
|
+
argsert('<object>', [obj], arguments.length);
|
|
909
|
+
__classPrivateFieldSet(this, _YargsInstance_detectLocale, false, "f");
|
|
910
|
+
__classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.updateLocale(obj);
|
|
911
|
+
return this;
|
|
912
|
+
}
|
|
913
|
+
usage(msg, description, builder, handler) {
|
|
914
|
+
argsert('<string|null|undefined> [string|boolean] [function|object] [function]', [msg, description, builder, handler], arguments.length);
|
|
915
|
+
if (description !== undefined) {
|
|
916
|
+
assertNotStrictEqual(msg, null, __classPrivateFieldGet(this, _YargsInstance_shim, "f"));
|
|
917
|
+
if ((msg || '').match(/^\$0( |$)/)) {
|
|
918
|
+
return this.command(msg, description, builder, handler);
|
|
919
|
+
}
|
|
920
|
+
else {
|
|
921
|
+
throw new YError('.usage() description must start with $0 if being used as alias for .command()');
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
else {
|
|
925
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").usage(msg);
|
|
926
|
+
return this;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
usageConfiguration(config) {
|
|
930
|
+
argsert('<object>', [config], arguments.length);
|
|
931
|
+
__classPrivateFieldSet(this, _YargsInstance_usageConfig, config, "f");
|
|
932
|
+
return this;
|
|
933
|
+
}
|
|
934
|
+
version(opt, msg, ver) {
|
|
935
|
+
const defaultVersionOpt = 'version';
|
|
936
|
+
argsert('[boolean|string] [string] [string]', [opt, msg, ver], arguments.length);
|
|
937
|
+
if (__classPrivateFieldGet(this, _YargsInstance_versionOpt, "f")) {
|
|
938
|
+
this[kDeleteFromParserHintObject](__classPrivateFieldGet(this, _YargsInstance_versionOpt, "f"));
|
|
939
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").version(undefined);
|
|
940
|
+
__classPrivateFieldSet(this, _YargsInstance_versionOpt, null, "f");
|
|
941
|
+
}
|
|
942
|
+
if (arguments.length === 0) {
|
|
943
|
+
ver = this[kGuessVersion]();
|
|
944
|
+
opt = defaultVersionOpt;
|
|
945
|
+
}
|
|
946
|
+
else if (arguments.length === 1) {
|
|
947
|
+
if (opt === false) {
|
|
948
|
+
return this;
|
|
949
|
+
}
|
|
950
|
+
ver = opt;
|
|
951
|
+
opt = defaultVersionOpt;
|
|
952
|
+
}
|
|
953
|
+
else if (arguments.length === 2) {
|
|
954
|
+
ver = msg;
|
|
955
|
+
msg = undefined;
|
|
956
|
+
}
|
|
957
|
+
__classPrivateFieldSet(this, _YargsInstance_versionOpt, typeof opt === 'string' ? opt : defaultVersionOpt, "f");
|
|
958
|
+
msg = msg || __classPrivateFieldGet(this, _YargsInstance_usage, "f").deferY18nLookup('Show version number');
|
|
959
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").version(ver || undefined);
|
|
960
|
+
this.boolean(__classPrivateFieldGet(this, _YargsInstance_versionOpt, "f"));
|
|
961
|
+
this.describe(__classPrivateFieldGet(this, _YargsInstance_versionOpt, "f"), msg);
|
|
962
|
+
return this;
|
|
963
|
+
}
|
|
964
|
+
wrap(cols) {
|
|
965
|
+
argsert('<number|null|undefined>', [cols], arguments.length);
|
|
966
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").wrap(cols);
|
|
967
|
+
return this;
|
|
968
|
+
}
|
|
969
|
+
[(_YargsInstance_command = new WeakMap(), _YargsInstance_cwd = new WeakMap(), _YargsInstance_context = new WeakMap(), _YargsInstance_completion = new WeakMap(), _YargsInstance_completionCommand = new WeakMap(), _YargsInstance_defaultShowHiddenOpt = new WeakMap(), _YargsInstance_exitError = new WeakMap(), _YargsInstance_detectLocale = new WeakMap(), _YargsInstance_emittedWarnings = new WeakMap(), _YargsInstance_exitProcess = new WeakMap(), _YargsInstance_frozens = new WeakMap(), _YargsInstance_globalMiddleware = new WeakMap(), _YargsInstance_groups = new WeakMap(), _YargsInstance_hasOutput = new WeakMap(), _YargsInstance_helpOpt = new WeakMap(), _YargsInstance_isGlobalContext = new WeakMap(), _YargsInstance_logger = new WeakMap(), _YargsInstance_output = new WeakMap(), _YargsInstance_options = new WeakMap(), _YargsInstance_parentRequire = new WeakMap(), _YargsInstance_parserConfig = new WeakMap(), _YargsInstance_parseFn = new WeakMap(), _YargsInstance_parseContext = new WeakMap(), _YargsInstance_pkgs = new WeakMap(), _YargsInstance_preservedGroups = new WeakMap(), _YargsInstance_processArgs = new WeakMap(), _YargsInstance_recommendCommands = new WeakMap(), _YargsInstance_shim = new WeakMap(), _YargsInstance_strict = new WeakMap(), _YargsInstance_strictCommands = new WeakMap(), _YargsInstance_strictOptions = new WeakMap(), _YargsInstance_usage = new WeakMap(), _YargsInstance_usageConfig = new WeakMap(), _YargsInstance_versionOpt = new WeakMap(), _YargsInstance_validation = new WeakMap(), kCopyDoubleDash)](argv) {
|
|
970
|
+
if (!argv._ || !argv['--'])
|
|
971
|
+
return argv;
|
|
972
|
+
argv._.push.apply(argv._, argv['--']);
|
|
973
|
+
try {
|
|
974
|
+
delete argv['--'];
|
|
975
|
+
}
|
|
976
|
+
catch (_err) { }
|
|
977
|
+
return argv;
|
|
978
|
+
}
|
|
979
|
+
[kCreateLogger]() {
|
|
980
|
+
return {
|
|
981
|
+
log: (...args) => {
|
|
982
|
+
if (!this[kHasParseCallback]())
|
|
983
|
+
console.log(...args);
|
|
984
|
+
__classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f");
|
|
985
|
+
if (__classPrivateFieldGet(this, _YargsInstance_output, "f").length)
|
|
986
|
+
__classPrivateFieldSet(this, _YargsInstance_output, __classPrivateFieldGet(this, _YargsInstance_output, "f") + '\n', "f");
|
|
987
|
+
__classPrivateFieldSet(this, _YargsInstance_output, __classPrivateFieldGet(this, _YargsInstance_output, "f") + args.join(' '), "f");
|
|
988
|
+
},
|
|
989
|
+
error: (...args) => {
|
|
990
|
+
if (!this[kHasParseCallback]())
|
|
991
|
+
console.error(...args);
|
|
992
|
+
__classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f");
|
|
993
|
+
if (__classPrivateFieldGet(this, _YargsInstance_output, "f").length)
|
|
994
|
+
__classPrivateFieldSet(this, _YargsInstance_output, __classPrivateFieldGet(this, _YargsInstance_output, "f") + '\n', "f");
|
|
995
|
+
__classPrivateFieldSet(this, _YargsInstance_output, __classPrivateFieldGet(this, _YargsInstance_output, "f") + args.join(' '), "f");
|
|
996
|
+
},
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
[kDeleteFromParserHintObject](optionKey) {
|
|
1000
|
+
objectKeys(__classPrivateFieldGet(this, _YargsInstance_options, "f")).forEach((hintKey) => {
|
|
1001
|
+
if (((key) => key === 'configObjects')(hintKey))
|
|
1002
|
+
return;
|
|
1003
|
+
const hint = __classPrivateFieldGet(this, _YargsInstance_options, "f")[hintKey];
|
|
1004
|
+
if (Array.isArray(hint)) {
|
|
1005
|
+
if (hint.includes(optionKey))
|
|
1006
|
+
hint.splice(hint.indexOf(optionKey), 1);
|
|
1007
|
+
}
|
|
1008
|
+
else if (typeof hint === 'object') {
|
|
1009
|
+
delete hint[optionKey];
|
|
1010
|
+
}
|
|
1011
|
+
});
|
|
1012
|
+
delete __classPrivateFieldGet(this, _YargsInstance_usage, "f").getDescriptions()[optionKey];
|
|
1013
|
+
}
|
|
1014
|
+
[kEmitWarning](warning, type, deduplicationId) {
|
|
1015
|
+
if (!__classPrivateFieldGet(this, _YargsInstance_emittedWarnings, "f")[deduplicationId]) {
|
|
1016
|
+
__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.emitWarning(warning, type);
|
|
1017
|
+
__classPrivateFieldGet(this, _YargsInstance_emittedWarnings, "f")[deduplicationId] = true;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
[kFreeze]() {
|
|
1021
|
+
__classPrivateFieldGet(this, _YargsInstance_frozens, "f").push({
|
|
1022
|
+
options: __classPrivateFieldGet(this, _YargsInstance_options, "f"),
|
|
1023
|
+
configObjects: __classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects.slice(0),
|
|
1024
|
+
exitProcess: __classPrivateFieldGet(this, _YargsInstance_exitProcess, "f"),
|
|
1025
|
+
groups: __classPrivateFieldGet(this, _YargsInstance_groups, "f"),
|
|
1026
|
+
strict: __classPrivateFieldGet(this, _YargsInstance_strict, "f"),
|
|
1027
|
+
strictCommands: __classPrivateFieldGet(this, _YargsInstance_strictCommands, "f"),
|
|
1028
|
+
strictOptions: __classPrivateFieldGet(this, _YargsInstance_strictOptions, "f"),
|
|
1029
|
+
completionCommand: __classPrivateFieldGet(this, _YargsInstance_completionCommand, "f"),
|
|
1030
|
+
output: __classPrivateFieldGet(this, _YargsInstance_output, "f"),
|
|
1031
|
+
exitError: __classPrivateFieldGet(this, _YargsInstance_exitError, "f"),
|
|
1032
|
+
hasOutput: __classPrivateFieldGet(this, _YargsInstance_hasOutput, "f"),
|
|
1033
|
+
parsed: this.parsed,
|
|
1034
|
+
parseFn: __classPrivateFieldGet(this, _YargsInstance_parseFn, "f"),
|
|
1035
|
+
parseContext: __classPrivateFieldGet(this, _YargsInstance_parseContext, "f"),
|
|
1036
|
+
});
|
|
1037
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").freeze();
|
|
1038
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").freeze();
|
|
1039
|
+
__classPrivateFieldGet(this, _YargsInstance_command, "f").freeze();
|
|
1040
|
+
__classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").freeze();
|
|
1041
|
+
}
|
|
1042
|
+
[kGetDollarZero]() {
|
|
1043
|
+
let $0 = '';
|
|
1044
|
+
let default$0;
|
|
1045
|
+
if (/\b(node|iojs|electron)(\.exe)?$/.test(__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv()[0])) {
|
|
1046
|
+
default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(1, 2);
|
|
1047
|
+
}
|
|
1048
|
+
else {
|
|
1049
|
+
default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(0, 1);
|
|
1050
|
+
}
|
|
1051
|
+
$0 = default$0
|
|
1052
|
+
.map(x => {
|
|
1053
|
+
const b = this[kRebase](__classPrivateFieldGet(this, _YargsInstance_cwd, "f"), x);
|
|
1054
|
+
return x.match(/^(\/|([a-zA-Z]:)?\\)/) && b.length < x.length ? b : x;
|
|
1055
|
+
})
|
|
1056
|
+
.join(' ')
|
|
1057
|
+
.trim();
|
|
1058
|
+
if (__classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('_') &&
|
|
1059
|
+
__classPrivateFieldGet(this, _YargsInstance_shim, "f").getProcessArgvBin() === __classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('_')) {
|
|
1060
|
+
$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f")
|
|
1061
|
+
.getEnv('_')
|
|
1062
|
+
.replace(`${__classPrivateFieldGet(this, _YargsInstance_shim, "f").path.dirname(__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.execPath())}/`, '');
|
|
1063
|
+
}
|
|
1064
|
+
return $0;
|
|
1065
|
+
}
|
|
1066
|
+
[kGetParserConfiguration]() {
|
|
1067
|
+
return __classPrivateFieldGet(this, _YargsInstance_parserConfig, "f");
|
|
1068
|
+
}
|
|
1069
|
+
[kGetUsageConfiguration]() {
|
|
1070
|
+
return __classPrivateFieldGet(this, _YargsInstance_usageConfig, "f");
|
|
1071
|
+
}
|
|
1072
|
+
[kGuessLocale]() {
|
|
1073
|
+
if (!__classPrivateFieldGet(this, _YargsInstance_detectLocale, "f"))
|
|
1074
|
+
return;
|
|
1075
|
+
const locale = __classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('LC_ALL') ||
|
|
1076
|
+
__classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('LC_MESSAGES') ||
|
|
1077
|
+
__classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('LANG') ||
|
|
1078
|
+
__classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('LANGUAGE') ||
|
|
1079
|
+
'en_US';
|
|
1080
|
+
this.locale(locale.replace(/[.:].*/, ''));
|
|
1081
|
+
}
|
|
1082
|
+
[kGuessVersion]() {
|
|
1083
|
+
const obj = this[kPkgUp]();
|
|
1084
|
+
return obj.version || 'unknown';
|
|
1085
|
+
}
|
|
1086
|
+
[kParsePositionalNumbers](argv) {
|
|
1087
|
+
const args = argv['--'] ? argv['--'] : argv._;
|
|
1088
|
+
for (let i = 0, arg; (arg = args[i]) !== undefined; i++) {
|
|
1089
|
+
if (__classPrivateFieldGet(this, _YargsInstance_shim, "f").Parser.looksLikeNumber(arg) &&
|
|
1090
|
+
Number.isSafeInteger(Math.floor(parseFloat(`${arg}`)))) {
|
|
1091
|
+
args[i] = Number(arg);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
return argv;
|
|
1095
|
+
}
|
|
1096
|
+
[kPkgUp](rootPath) {
|
|
1097
|
+
const npath = rootPath || '*';
|
|
1098
|
+
if (__classPrivateFieldGet(this, _YargsInstance_pkgs, "f")[npath])
|
|
1099
|
+
return __classPrivateFieldGet(this, _YargsInstance_pkgs, "f")[npath];
|
|
1100
|
+
let obj = {};
|
|
1101
|
+
try {
|
|
1102
|
+
let startDir = rootPath || __classPrivateFieldGet(this, _YargsInstance_shim, "f").mainFilename;
|
|
1103
|
+
if (!rootPath && __classPrivateFieldGet(this, _YargsInstance_shim, "f").path.extname(startDir)) {
|
|
1104
|
+
startDir = __classPrivateFieldGet(this, _YargsInstance_shim, "f").path.dirname(startDir);
|
|
1105
|
+
}
|
|
1106
|
+
const pkgJsonPath = __classPrivateFieldGet(this, _YargsInstance_shim, "f").findUp(startDir, (dir, names) => {
|
|
1107
|
+
if (names.includes('package.json')) {
|
|
1108
|
+
return 'package.json';
|
|
1109
|
+
}
|
|
1110
|
+
else {
|
|
1111
|
+
return undefined;
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
assertNotStrictEqual(pkgJsonPath, undefined, __classPrivateFieldGet(this, _YargsInstance_shim, "f"));
|
|
1115
|
+
obj = JSON.parse(__classPrivateFieldGet(this, _YargsInstance_shim, "f").readFileSync(pkgJsonPath, 'utf8'));
|
|
1116
|
+
}
|
|
1117
|
+
catch (_noop) { }
|
|
1118
|
+
__classPrivateFieldGet(this, _YargsInstance_pkgs, "f")[npath] = obj || {};
|
|
1119
|
+
return __classPrivateFieldGet(this, _YargsInstance_pkgs, "f")[npath];
|
|
1120
|
+
}
|
|
1121
|
+
[kPopulateParserHintArray](type, keys) {
|
|
1122
|
+
keys = [].concat(keys);
|
|
1123
|
+
keys.forEach(key => {
|
|
1124
|
+
key = this[kSanitizeKey](key);
|
|
1125
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f")[type].push(key);
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
[kPopulateParserHintSingleValueDictionary](builder, type, key, value) {
|
|
1129
|
+
this[kPopulateParserHintDictionary](builder, type, key, value, (type, key, value) => {
|
|
1130
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f")[type][key] = value;
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
[kPopulateParserHintArrayDictionary](builder, type, key, value) {
|
|
1134
|
+
this[kPopulateParserHintDictionary](builder, type, key, value, (type, key, value) => {
|
|
1135
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f")[type][key] = (__classPrivateFieldGet(this, _YargsInstance_options, "f")[type][key] || []).concat(value);
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
[kPopulateParserHintDictionary](builder, type, key, value, singleKeyHandler) {
|
|
1139
|
+
if (Array.isArray(key)) {
|
|
1140
|
+
key.forEach(k => {
|
|
1141
|
+
builder(k, value);
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
else if (((key) => typeof key === 'object')(key)) {
|
|
1145
|
+
for (const k of objectKeys(key)) {
|
|
1146
|
+
builder(k, key[k]);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
else {
|
|
1150
|
+
singleKeyHandler(type, this[kSanitizeKey](key), value);
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
[kSanitizeKey](key) {
|
|
1154
|
+
if (key === '__proto__')
|
|
1155
|
+
return '___proto___';
|
|
1156
|
+
return key;
|
|
1157
|
+
}
|
|
1158
|
+
[kSetKey](key, set) {
|
|
1159
|
+
this[kPopulateParserHintSingleValueDictionary](this[kSetKey].bind(this), 'key', key, set);
|
|
1160
|
+
return this;
|
|
1161
|
+
}
|
|
1162
|
+
[kUnfreeze]() {
|
|
1163
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1164
|
+
const frozen = __classPrivateFieldGet(this, _YargsInstance_frozens, "f").pop();
|
|
1165
|
+
assertNotStrictEqual(frozen, undefined, __classPrivateFieldGet(this, _YargsInstance_shim, "f"));
|
|
1166
|
+
let configObjects;
|
|
1167
|
+
(_a = this, _b = this, _c = this, _d = this, _e = this, _f = this, _g = this, _h = this, _j = this, _k = this, _l = this, _m = this, {
|
|
1168
|
+
options: ({ set value(_o) { __classPrivateFieldSet(_a, _YargsInstance_options, _o, "f"); } }).value,
|
|
1169
|
+
configObjects,
|
|
1170
|
+
exitProcess: ({ set value(_o) { __classPrivateFieldSet(_b, _YargsInstance_exitProcess, _o, "f"); } }).value,
|
|
1171
|
+
groups: ({ set value(_o) { __classPrivateFieldSet(_c, _YargsInstance_groups, _o, "f"); } }).value,
|
|
1172
|
+
output: ({ set value(_o) { __classPrivateFieldSet(_d, _YargsInstance_output, _o, "f"); } }).value,
|
|
1173
|
+
exitError: ({ set value(_o) { __classPrivateFieldSet(_e, _YargsInstance_exitError, _o, "f"); } }).value,
|
|
1174
|
+
hasOutput: ({ set value(_o) { __classPrivateFieldSet(_f, _YargsInstance_hasOutput, _o, "f"); } }).value,
|
|
1175
|
+
parsed: this.parsed,
|
|
1176
|
+
strict: ({ set value(_o) { __classPrivateFieldSet(_g, _YargsInstance_strict, _o, "f"); } }).value,
|
|
1177
|
+
strictCommands: ({ set value(_o) { __classPrivateFieldSet(_h, _YargsInstance_strictCommands, _o, "f"); } }).value,
|
|
1178
|
+
strictOptions: ({ set value(_o) { __classPrivateFieldSet(_j, _YargsInstance_strictOptions, _o, "f"); } }).value,
|
|
1179
|
+
completionCommand: ({ set value(_o) { __classPrivateFieldSet(_k, _YargsInstance_completionCommand, _o, "f"); } }).value,
|
|
1180
|
+
parseFn: ({ set value(_o) { __classPrivateFieldSet(_l, _YargsInstance_parseFn, _o, "f"); } }).value,
|
|
1181
|
+
parseContext: ({ set value(_o) { __classPrivateFieldSet(_m, _YargsInstance_parseContext, _o, "f"); } }).value,
|
|
1182
|
+
} = frozen);
|
|
1183
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects = configObjects;
|
|
1184
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").unfreeze();
|
|
1185
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").unfreeze();
|
|
1186
|
+
__classPrivateFieldGet(this, _YargsInstance_command, "f").unfreeze();
|
|
1187
|
+
__classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").unfreeze();
|
|
1188
|
+
}
|
|
1189
|
+
[kValidateAsync](validation, argv) {
|
|
1190
|
+
return maybeAsyncResult(argv, result => {
|
|
1191
|
+
validation(result);
|
|
1192
|
+
return result;
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
getInternalMethods() {
|
|
1196
|
+
return {
|
|
1197
|
+
getCommandInstance: this[kGetCommandInstance].bind(this),
|
|
1198
|
+
getContext: this[kGetContext].bind(this),
|
|
1199
|
+
getHasOutput: this[kGetHasOutput].bind(this),
|
|
1200
|
+
getLoggerInstance: this[kGetLoggerInstance].bind(this),
|
|
1201
|
+
getParseContext: this[kGetParseContext].bind(this),
|
|
1202
|
+
getParserConfiguration: this[kGetParserConfiguration].bind(this),
|
|
1203
|
+
getUsageConfiguration: this[kGetUsageConfiguration].bind(this),
|
|
1204
|
+
getUsageInstance: this[kGetUsageInstance].bind(this),
|
|
1205
|
+
getValidationInstance: this[kGetValidationInstance].bind(this),
|
|
1206
|
+
hasParseCallback: this[kHasParseCallback].bind(this),
|
|
1207
|
+
isGlobalContext: this[kIsGlobalContext].bind(this),
|
|
1208
|
+
postProcess: this[kPostProcess].bind(this),
|
|
1209
|
+
reset: this[kReset].bind(this),
|
|
1210
|
+
runValidation: this[kRunValidation].bind(this),
|
|
1211
|
+
runYargsParserAndExecuteCommands: this[kRunYargsParserAndExecuteCommands].bind(this),
|
|
1212
|
+
setHasOutput: this[kSetHasOutput].bind(this),
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
[kGetCommandInstance]() {
|
|
1216
|
+
return __classPrivateFieldGet(this, _YargsInstance_command, "f");
|
|
1217
|
+
}
|
|
1218
|
+
[kGetContext]() {
|
|
1219
|
+
return __classPrivateFieldGet(this, _YargsInstance_context, "f");
|
|
1220
|
+
}
|
|
1221
|
+
[kGetHasOutput]() {
|
|
1222
|
+
return __classPrivateFieldGet(this, _YargsInstance_hasOutput, "f");
|
|
1223
|
+
}
|
|
1224
|
+
[kGetLoggerInstance]() {
|
|
1225
|
+
return __classPrivateFieldGet(this, _YargsInstance_logger, "f");
|
|
1226
|
+
}
|
|
1227
|
+
[kGetParseContext]() {
|
|
1228
|
+
return __classPrivateFieldGet(this, _YargsInstance_parseContext, "f") || {};
|
|
1229
|
+
}
|
|
1230
|
+
[kGetUsageInstance]() {
|
|
1231
|
+
return __classPrivateFieldGet(this, _YargsInstance_usage, "f");
|
|
1232
|
+
}
|
|
1233
|
+
[kGetValidationInstance]() {
|
|
1234
|
+
return __classPrivateFieldGet(this, _YargsInstance_validation, "f");
|
|
1235
|
+
}
|
|
1236
|
+
[kHasParseCallback]() {
|
|
1237
|
+
return !!__classPrivateFieldGet(this, _YargsInstance_parseFn, "f");
|
|
1238
|
+
}
|
|
1239
|
+
[kIsGlobalContext]() {
|
|
1240
|
+
return __classPrivateFieldGet(this, _YargsInstance_isGlobalContext, "f");
|
|
1241
|
+
}
|
|
1242
|
+
[kPostProcess](argv, populateDoubleDash, calledFromCommand, runGlobalMiddleware) {
|
|
1243
|
+
if (calledFromCommand)
|
|
1244
|
+
return argv;
|
|
1245
|
+
if (isPromise(argv))
|
|
1246
|
+
return argv;
|
|
1247
|
+
if (!populateDoubleDash) {
|
|
1248
|
+
argv = this[kCopyDoubleDash](argv);
|
|
1249
|
+
}
|
|
1250
|
+
const parsePositionalNumbers = this[kGetParserConfiguration]()['parse-positional-numbers'] ||
|
|
1251
|
+
this[kGetParserConfiguration]()['parse-positional-numbers'] === undefined;
|
|
1252
|
+
if (parsePositionalNumbers) {
|
|
1253
|
+
argv = this[kParsePositionalNumbers](argv);
|
|
1254
|
+
}
|
|
1255
|
+
if (runGlobalMiddleware) {
|
|
1256
|
+
argv = applyMiddleware(argv, this, __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").getMiddleware(), false);
|
|
1257
|
+
}
|
|
1258
|
+
return argv;
|
|
1259
|
+
}
|
|
1260
|
+
[kReset](aliases = {}) {
|
|
1261
|
+
__classPrivateFieldSet(this, _YargsInstance_options, __classPrivateFieldGet(this, _YargsInstance_options, "f") || {}, "f");
|
|
1262
|
+
const tmpOptions = {};
|
|
1263
|
+
tmpOptions.local = __classPrivateFieldGet(this, _YargsInstance_options, "f").local || [];
|
|
1264
|
+
tmpOptions.configObjects = __classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects || [];
|
|
1265
|
+
const localLookup = {};
|
|
1266
|
+
tmpOptions.local.forEach(l => {
|
|
1267
|
+
localLookup[l] = true;
|
|
1268
|
+
(aliases[l] || []).forEach(a => {
|
|
1269
|
+
localLookup[a] = true;
|
|
1270
|
+
});
|
|
1271
|
+
});
|
|
1272
|
+
Object.assign(__classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f"), Object.keys(__classPrivateFieldGet(this, _YargsInstance_groups, "f")).reduce((acc, groupName) => {
|
|
1273
|
+
const keys = __classPrivateFieldGet(this, _YargsInstance_groups, "f")[groupName].filter(key => !(key in localLookup));
|
|
1274
|
+
if (keys.length > 0) {
|
|
1275
|
+
acc[groupName] = keys;
|
|
1276
|
+
}
|
|
1277
|
+
return acc;
|
|
1278
|
+
}, {}));
|
|
1279
|
+
__classPrivateFieldSet(this, _YargsInstance_groups, {}, "f");
|
|
1280
|
+
const arrayOptions = [
|
|
1281
|
+
'array',
|
|
1282
|
+
'boolean',
|
|
1283
|
+
'string',
|
|
1284
|
+
'skipValidation',
|
|
1285
|
+
'count',
|
|
1286
|
+
'normalize',
|
|
1287
|
+
'number',
|
|
1288
|
+
'hiddenOptions',
|
|
1289
|
+
];
|
|
1290
|
+
const objectOptions = [
|
|
1291
|
+
'narg',
|
|
1292
|
+
'key',
|
|
1293
|
+
'alias',
|
|
1294
|
+
'default',
|
|
1295
|
+
'defaultDescription',
|
|
1296
|
+
'config',
|
|
1297
|
+
'choices',
|
|
1298
|
+
'demandedOptions',
|
|
1299
|
+
'demandedCommands',
|
|
1300
|
+
'deprecatedOptions',
|
|
1301
|
+
];
|
|
1302
|
+
arrayOptions.forEach(k => {
|
|
1303
|
+
tmpOptions[k] = (__classPrivateFieldGet(this, _YargsInstance_options, "f")[k] || []).filter((k) => !localLookup[k]);
|
|
1304
|
+
});
|
|
1305
|
+
objectOptions.forEach((k) => {
|
|
1306
|
+
tmpOptions[k] = objFilter(__classPrivateFieldGet(this, _YargsInstance_options, "f")[k], k => !localLookup[k]);
|
|
1307
|
+
});
|
|
1308
|
+
tmpOptions.envPrefix = __classPrivateFieldGet(this, _YargsInstance_options, "f").envPrefix;
|
|
1309
|
+
__classPrivateFieldSet(this, _YargsInstance_options, tmpOptions, "f");
|
|
1310
|
+
__classPrivateFieldSet(this, _YargsInstance_usage, __classPrivateFieldGet(this, _YargsInstance_usage, "f")
|
|
1311
|
+
? __classPrivateFieldGet(this, _YargsInstance_usage, "f").reset(localLookup)
|
|
1312
|
+
: Usage(this, __classPrivateFieldGet(this, _YargsInstance_shim, "f")), "f");
|
|
1313
|
+
__classPrivateFieldSet(this, _YargsInstance_validation, __classPrivateFieldGet(this, _YargsInstance_validation, "f")
|
|
1314
|
+
? __classPrivateFieldGet(this, _YargsInstance_validation, "f").reset(localLookup)
|
|
1315
|
+
: Validation(this, __classPrivateFieldGet(this, _YargsInstance_usage, "f"), __classPrivateFieldGet(this, _YargsInstance_shim, "f")), "f");
|
|
1316
|
+
__classPrivateFieldSet(this, _YargsInstance_command, __classPrivateFieldGet(this, _YargsInstance_command, "f")
|
|
1317
|
+
? __classPrivateFieldGet(this, _YargsInstance_command, "f").reset()
|
|
1318
|
+
: Command(__classPrivateFieldGet(this, _YargsInstance_usage, "f"), __classPrivateFieldGet(this, _YargsInstance_validation, "f"), __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f"), __classPrivateFieldGet(this, _YargsInstance_shim, "f")), "f");
|
|
1319
|
+
if (!__classPrivateFieldGet(this, _YargsInstance_completion, "f"))
|
|
1320
|
+
__classPrivateFieldSet(this, _YargsInstance_completion, Completion(this, __classPrivateFieldGet(this, _YargsInstance_usage, "f"), __classPrivateFieldGet(this, _YargsInstance_command, "f"), __classPrivateFieldGet(this, _YargsInstance_shim, "f")), "f");
|
|
1321
|
+
__classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").reset();
|
|
1322
|
+
__classPrivateFieldSet(this, _YargsInstance_completionCommand, null, "f");
|
|
1323
|
+
__classPrivateFieldSet(this, _YargsInstance_output, '', "f");
|
|
1324
|
+
__classPrivateFieldSet(this, _YargsInstance_exitError, null, "f");
|
|
1325
|
+
__classPrivateFieldSet(this, _YargsInstance_hasOutput, false, "f");
|
|
1326
|
+
this.parsed = false;
|
|
1327
|
+
return this;
|
|
1328
|
+
}
|
|
1329
|
+
[kRebase](base, dir) {
|
|
1330
|
+
return __classPrivateFieldGet(this, _YargsInstance_shim, "f").path.relative(base, dir);
|
|
1331
|
+
}
|
|
1332
|
+
[kRunYargsParserAndExecuteCommands](args, shortCircuit, calledFromCommand, commandIndex = 0, helpOnly = false) {
|
|
1333
|
+
let skipValidation = !!calledFromCommand || helpOnly;
|
|
1334
|
+
args = args || __classPrivateFieldGet(this, _YargsInstance_processArgs, "f");
|
|
1335
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").__ = __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.__;
|
|
1336
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").configuration = this[kGetParserConfiguration]();
|
|
1337
|
+
const populateDoubleDash = !!__classPrivateFieldGet(this, _YargsInstance_options, "f").configuration['populate--'];
|
|
1338
|
+
const config = Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_options, "f").configuration, {
|
|
1339
|
+
'populate--': true,
|
|
1340
|
+
});
|
|
1341
|
+
const parsed = __classPrivateFieldGet(this, _YargsInstance_shim, "f").Parser.detailed(args, Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_options, "f"), {
|
|
1342
|
+
configuration: { 'parse-positional-numbers': false, ...config },
|
|
1343
|
+
}));
|
|
1344
|
+
const argv = Object.assign(parsed.argv, __classPrivateFieldGet(this, _YargsInstance_parseContext, "f"));
|
|
1345
|
+
let argvPromise = undefined;
|
|
1346
|
+
const aliases = parsed.aliases;
|
|
1347
|
+
let helpOptSet = false;
|
|
1348
|
+
let versionOptSet = false;
|
|
1349
|
+
Object.keys(argv).forEach(key => {
|
|
1350
|
+
if (key === __classPrivateFieldGet(this, _YargsInstance_helpOpt, "f") && argv[key]) {
|
|
1351
|
+
helpOptSet = true;
|
|
1352
|
+
}
|
|
1353
|
+
else if (key === __classPrivateFieldGet(this, _YargsInstance_versionOpt, "f") && argv[key]) {
|
|
1354
|
+
versionOptSet = true;
|
|
1355
|
+
}
|
|
1356
|
+
});
|
|
1357
|
+
argv.$0 = this.$0;
|
|
1358
|
+
this.parsed = parsed;
|
|
1359
|
+
if (commandIndex === 0) {
|
|
1360
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").clearCachedHelpMessage();
|
|
1361
|
+
}
|
|
1362
|
+
try {
|
|
1363
|
+
this[kGuessLocale]();
|
|
1364
|
+
if (shortCircuit) {
|
|
1365
|
+
return this[kPostProcess](argv, populateDoubleDash, !!calledFromCommand, false);
|
|
1366
|
+
}
|
|
1367
|
+
if (__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")) {
|
|
1368
|
+
const helpCmds = [__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")]
|
|
1369
|
+
.concat(aliases[__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")] || [])
|
|
1370
|
+
.filter(k => k.length > 1);
|
|
1371
|
+
if (helpCmds.includes('' + argv._[argv._.length - 1])) {
|
|
1372
|
+
argv._.pop();
|
|
1373
|
+
helpOptSet = true;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
__classPrivateFieldSet(this, _YargsInstance_isGlobalContext, false, "f");
|
|
1377
|
+
const handlerKeys = __classPrivateFieldGet(this, _YargsInstance_command, "f").getCommands();
|
|
1378
|
+
const requestCompletions = __classPrivateFieldGet(this, _YargsInstance_completion, "f").completionKey in argv;
|
|
1379
|
+
const skipRecommendation = helpOptSet || requestCompletions || helpOnly;
|
|
1380
|
+
if (argv._.length) {
|
|
1381
|
+
if (handlerKeys.length) {
|
|
1382
|
+
let firstUnknownCommand;
|
|
1383
|
+
for (let i = commandIndex || 0, cmd; argv._[i] !== undefined; i++) {
|
|
1384
|
+
cmd = String(argv._[i]);
|
|
1385
|
+
if (handlerKeys.includes(cmd) && cmd !== __classPrivateFieldGet(this, _YargsInstance_completionCommand, "f")) {
|
|
1386
|
+
const innerArgv = __classPrivateFieldGet(this, _YargsInstance_command, "f").runCommand(cmd, this, parsed, i + 1, helpOnly, helpOptSet || versionOptSet || helpOnly);
|
|
1387
|
+
return this[kPostProcess](innerArgv, populateDoubleDash, !!calledFromCommand, false);
|
|
1388
|
+
}
|
|
1389
|
+
else if (!firstUnknownCommand &&
|
|
1390
|
+
cmd !== __classPrivateFieldGet(this, _YargsInstance_completionCommand, "f")) {
|
|
1391
|
+
firstUnknownCommand = cmd;
|
|
1392
|
+
break;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
if (!__classPrivateFieldGet(this, _YargsInstance_command, "f").hasDefaultCommand() &&
|
|
1396
|
+
__classPrivateFieldGet(this, _YargsInstance_recommendCommands, "f") &&
|
|
1397
|
+
firstUnknownCommand &&
|
|
1398
|
+
!skipRecommendation) {
|
|
1399
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").recommendCommands(firstUnknownCommand, handlerKeys);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
if (__classPrivateFieldGet(this, _YargsInstance_completionCommand, "f") &&
|
|
1403
|
+
argv._.includes(__classPrivateFieldGet(this, _YargsInstance_completionCommand, "f")) &&
|
|
1404
|
+
!requestCompletions) {
|
|
1405
|
+
if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f"))
|
|
1406
|
+
setBlocking(true);
|
|
1407
|
+
this.showCompletionScript();
|
|
1408
|
+
this.exit(0);
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
if (__classPrivateFieldGet(this, _YargsInstance_command, "f").hasDefaultCommand() && !skipRecommendation) {
|
|
1412
|
+
const innerArgv = __classPrivateFieldGet(this, _YargsInstance_command, "f").runCommand(null, this, parsed, 0, helpOnly, helpOptSet || versionOptSet || helpOnly);
|
|
1413
|
+
return this[kPostProcess](innerArgv, populateDoubleDash, !!calledFromCommand, false);
|
|
1414
|
+
}
|
|
1415
|
+
if (requestCompletions) {
|
|
1416
|
+
if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f"))
|
|
1417
|
+
setBlocking(true);
|
|
1418
|
+
args = [].concat(args);
|
|
1419
|
+
const completionArgs = args.slice(args.indexOf(`--${__classPrivateFieldGet(this, _YargsInstance_completion, "f").completionKey}`) + 1);
|
|
1420
|
+
__classPrivateFieldGet(this, _YargsInstance_completion, "f").getCompletion(completionArgs, (err, completions) => {
|
|
1421
|
+
if (err)
|
|
1422
|
+
throw new YError(err.message);
|
|
1423
|
+
(completions || []).forEach(completion => {
|
|
1424
|
+
__classPrivateFieldGet(this, _YargsInstance_logger, "f").log(completion);
|
|
1425
|
+
});
|
|
1426
|
+
this.exit(0);
|
|
1427
|
+
});
|
|
1428
|
+
return this[kPostProcess](argv, !populateDoubleDash, !!calledFromCommand, false);
|
|
1429
|
+
}
|
|
1430
|
+
if (!__classPrivateFieldGet(this, _YargsInstance_hasOutput, "f")) {
|
|
1431
|
+
if (helpOptSet) {
|
|
1432
|
+
if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f"))
|
|
1433
|
+
setBlocking(true);
|
|
1434
|
+
skipValidation = true;
|
|
1435
|
+
this.showHelp('log');
|
|
1436
|
+
this.exit(0);
|
|
1437
|
+
}
|
|
1438
|
+
else if (versionOptSet) {
|
|
1439
|
+
if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f"))
|
|
1440
|
+
setBlocking(true);
|
|
1441
|
+
skipValidation = true;
|
|
1442
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").showVersion('log');
|
|
1443
|
+
this.exit(0);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
if (!skipValidation && __classPrivateFieldGet(this, _YargsInstance_options, "f").skipValidation.length > 0) {
|
|
1447
|
+
skipValidation = Object.keys(argv).some(key => __classPrivateFieldGet(this, _YargsInstance_options, "f").skipValidation.indexOf(key) >= 0 && argv[key] === true);
|
|
1448
|
+
}
|
|
1449
|
+
if (!skipValidation) {
|
|
1450
|
+
if (parsed.error)
|
|
1451
|
+
throw new YError(parsed.error.message);
|
|
1452
|
+
if (!requestCompletions) {
|
|
1453
|
+
const validation = this[kRunValidation](aliases, {}, parsed.error);
|
|
1454
|
+
if (!calledFromCommand) {
|
|
1455
|
+
argvPromise = applyMiddleware(argv, this, __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").getMiddleware(), true);
|
|
1456
|
+
}
|
|
1457
|
+
argvPromise = this[kValidateAsync](validation, argvPromise !== null && argvPromise !== void 0 ? argvPromise : argv);
|
|
1458
|
+
if (isPromise(argvPromise) && !calledFromCommand) {
|
|
1459
|
+
argvPromise = argvPromise.then(() => {
|
|
1460
|
+
return applyMiddleware(argv, this, __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").getMiddleware(), false);
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
catch (err) {
|
|
1467
|
+
if (err instanceof YError)
|
|
1468
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(err.message, err);
|
|
1469
|
+
else
|
|
1470
|
+
throw err;
|
|
1471
|
+
}
|
|
1472
|
+
return this[kPostProcess](argvPromise !== null && argvPromise !== void 0 ? argvPromise : argv, populateDoubleDash, !!calledFromCommand, true);
|
|
1473
|
+
}
|
|
1474
|
+
[kRunValidation](aliases, positionalMap, parseErrors, isDefaultCommand) {
|
|
1475
|
+
const demandedOptions = { ...this.getDemandedOptions() };
|
|
1476
|
+
return (argv) => {
|
|
1477
|
+
if (parseErrors)
|
|
1478
|
+
throw new YError(parseErrors.message);
|
|
1479
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").nonOptionCount(argv);
|
|
1480
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").requiredArguments(argv, demandedOptions);
|
|
1481
|
+
let failedStrictCommands = false;
|
|
1482
|
+
if (__classPrivateFieldGet(this, _YargsInstance_strictCommands, "f")) {
|
|
1483
|
+
failedStrictCommands = __classPrivateFieldGet(this, _YargsInstance_validation, "f").unknownCommands(argv);
|
|
1484
|
+
}
|
|
1485
|
+
if (__classPrivateFieldGet(this, _YargsInstance_strict, "f") && !failedStrictCommands) {
|
|
1486
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").unknownArguments(argv, aliases, positionalMap, !!isDefaultCommand);
|
|
1487
|
+
}
|
|
1488
|
+
else if (__classPrivateFieldGet(this, _YargsInstance_strictOptions, "f")) {
|
|
1489
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").unknownArguments(argv, aliases, {}, false, false);
|
|
1490
|
+
}
|
|
1491
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").limitedChoices(argv);
|
|
1492
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").implications(argv);
|
|
1493
|
+
__classPrivateFieldGet(this, _YargsInstance_validation, "f").conflicting(argv);
|
|
1494
|
+
};
|
|
1495
|
+
}
|
|
1496
|
+
[kSetHasOutput]() {
|
|
1497
|
+
__classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f");
|
|
1498
|
+
}
|
|
1499
|
+
[kTrackManuallySetKeys](keys) {
|
|
1500
|
+
if (typeof keys === 'string') {
|
|
1501
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").key[keys] = true;
|
|
1502
|
+
}
|
|
1503
|
+
else {
|
|
1504
|
+
for (const k of keys) {
|
|
1505
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").key[k] = true;
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
export function isYargsInstance(y) {
|
|
1511
|
+
return !!y && typeof y.getInternalMethods === 'function';
|
|
1512
|
+
}
|