projen 0.99.74 → 0.99.75
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 +854 -429
- package/lib/ai-instructions.js +2 -2
- package/lib/awscdk/auto-discover.js +6 -6
- 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/internal.d.ts +2 -0
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/awscdk/private/feature-flags-v2.const.d.ts +3 -1
- package/lib/awscdk/private/feature-flags-v2.const.js +5 -3
- 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-build.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/dependency-review.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-config.d.ts +178 -6
- package/lib/javascript/biome/biome-config.js +46 -2
- 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 +3 -5
- 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 +3 -5
- package/lib/python/poetry.js +5 -7
- 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 +4 -6
- 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/run-task.cjs +26 -21
- 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 +28 -9
- package/lib/task.js +1 -1
- package/lib/tasks.d.ts +15 -0
- package/lib/tasks.js +17 -2
- 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/{shx → dax}/LICENSE +2 -2
- package/node_modules/dax/README.md +39 -0
- package/node_modules/dax/esm/_dnt.polyfills.d.ts +81 -0
- package/node_modules/dax/esm/_dnt.polyfills.d.ts.map +1 -0
- package/node_modules/dax/esm/_dnt.shims.d.ts +27 -0
- package/node_modules/dax/esm/_dnt.shims.d.ts.map +1 -0
- package/node_modules/dax/esm/_dnt.test_shims.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts +68 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts +112 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/_fs.d.ts +170 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/_fs.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/mod.d.ts +404 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/path.d.ts +12 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/path.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/internal.d.ts +8 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/internal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/mod.d.ts +16 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts +20 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts +677 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts +45 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts +7 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts +9 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts +25 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts +14 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts +10 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts +9 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts +12 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts +8 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts +7 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts +85 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts +30 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts +62 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts +23 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts +19 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts +17 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts +396 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts +92 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts +210 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts +3 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts +21 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts +35 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/which/0.7.0/mod.d.ts +81 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/which/0.7.0/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/almost_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/array_includes.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/exists.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/fail.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/greater.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/instance_of.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/is_error.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/less.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/less_or_equal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/match.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_instance_of.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_match.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/object_match.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/rejects.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/strict_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/string_includes.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/throws.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/unimplemented.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts +700 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts +2 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/build_message.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/diff.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/diff_str.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/format.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/os.d.ts +3 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/os.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/styles.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/types.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/_common.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/buffer.d.ts +321 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/buffer.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts +21 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/to_writable_stream.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/types.d.ts +146 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/write_all.d.ts +52 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/write_all.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts +35 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts +77 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts +72 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts +71 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/esm/mod.d.ts +600 -0
- package/node_modules/dax/esm/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/mod.js +12187 -0
- package/node_modules/dax/esm/mod.test.d.ts.map +1 -0
- package/node_modules/dax/esm/package.json +3 -0
- package/node_modules/dax/esm/src/common.d.ts +15 -0
- package/node_modules/dax/esm/src/common.d.ts.map +1 -0
- package/node_modules/dax/esm/src/common.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/alert.d.ts +25 -0
- package/node_modules/dax/esm/src/console/alert.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/alert.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/confirm.d.ts +27 -0
- package/node_modules/dax/esm/src/console/confirm.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/confirm.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/logger.d.ts +13 -0
- package/node_modules/dax/esm/src/console/logger.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/mod.d.ts +14 -0
- package/node_modules/dax/esm/src/console/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/multiSelect.d.ts +31 -0
- package/node_modules/dax/esm/src/console/multiSelect.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/multiSelect.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/progress.d.ts +57 -0
- package/node_modules/dax/esm/src/console/progress.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/progress.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/prompt.d.ts +46 -0
- package/node_modules/dax/esm/src/console/prompt.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/prompt.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/select.d.ts +26 -0
- package/node_modules/dax/esm/src/console/select.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/select.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/testUtils.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/ttyFallback.d.ts +19 -0
- package/node_modules/dax/esm/src/console/ttyFallback.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/utils.d.ts +47 -0
- package/node_modules/dax/esm/src/console/utils.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/utils.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/request.d.ts +306 -0
- package/node_modules/dax/esm/src/request.d.ts.map +1 -0
- package/node_modules/dax/esm/src/request.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/test/server.common.d.ts.map +1 -0
- package/node_modules/dax/esm/src/test/server.node.d.ts.map +1 -0
- package/node_modules/dax/esm/src/vendor/outdent.d.ts +34 -0
- package/node_modules/dax/esm/src/vendor/outdent.d.ts.map +1 -0
- package/node_modules/dax/package.json +39 -0
- package/node_modules/dax/script/_dnt.polyfills.d.ts +81 -0
- package/node_modules/dax/script/_dnt.polyfills.d.ts.map +1 -0
- package/node_modules/dax/script/_dnt.shims.d.ts +27 -0
- package/node_modules/dax/script/_dnt.shims.d.ts.map +1 -0
- package/node_modules/dax/script/_dnt.test_shims.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts +68 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts +112 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/_fs.d.ts +170 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/_fs.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/mod.d.ts +404 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/path.d.ts +12 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/path.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/internal.d.ts +8 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/internal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/mod.d.ts +16 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts +20 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts +677 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts +45 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts +7 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts +9 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts +25 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts +14 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts +10 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts +9 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts +12 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts +8 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts +7 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts +85 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts +30 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts +62 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts +23 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts +19 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts +17 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts +396 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts +92 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts +210 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts +3 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts +21 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts +35 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/which/0.7.0/mod.d.ts +81 -0
- package/node_modules/dax/script/deps/jsr.io/@david/which/0.7.0/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/almost_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/array_includes.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/exists.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/fail.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/greater.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/instance_of.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/is_error.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/less.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/less_or_equal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/match.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_instance_of.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_match.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/object_match.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/rejects.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/strict_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/string_includes.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/throws.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/unimplemented.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/node_modules/dax/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts +700 -0
- package/node_modules/dax/script/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts +2 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/build_message.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/diff.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/diff_str.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/format.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/os.d.ts +3 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/os.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/styles.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/types.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/_common.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/buffer.d.ts +321 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/buffer.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts +21 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/to_writable_stream.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/types.d.ts +146 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/write_all.d.ts +52 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/write_all.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts +35 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts +77 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts +72 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts +71 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/script/mod.d.ts +600 -0
- package/node_modules/dax/script/mod.d.ts.map +1 -0
- package/node_modules/dax/script/mod.js +14815 -0
- package/node_modules/dax/script/mod.test.d.ts.map +1 -0
- package/node_modules/dax/script/package.json +3 -0
- package/node_modules/dax/script/src/common.d.ts +15 -0
- package/node_modules/dax/script/src/common.d.ts.map +1 -0
- package/node_modules/dax/script/src/common.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/alert.d.ts +25 -0
- package/node_modules/dax/script/src/console/alert.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/alert.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/confirm.d.ts +27 -0
- package/node_modules/dax/script/src/console/confirm.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/confirm.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/logger.d.ts +13 -0
- package/node_modules/dax/script/src/console/logger.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/mod.d.ts +14 -0
- package/node_modules/dax/script/src/console/mod.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/multiSelect.d.ts +31 -0
- package/node_modules/dax/script/src/console/multiSelect.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/multiSelect.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/progress.d.ts +57 -0
- package/node_modules/dax/script/src/console/progress.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/progress.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/prompt.d.ts +46 -0
- package/node_modules/dax/script/src/console/prompt.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/prompt.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/select.d.ts +26 -0
- package/node_modules/dax/script/src/console/select.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/select.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/testUtils.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/ttyFallback.d.ts +19 -0
- package/node_modules/dax/script/src/console/ttyFallback.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/utils.d.ts +47 -0
- package/node_modules/dax/script/src/console/utils.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/utils.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/request.d.ts +306 -0
- package/node_modules/dax/script/src/request.d.ts.map +1 -0
- package/node_modules/dax/script/src/request.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/test/server.common.d.ts.map +1 -0
- package/node_modules/dax/script/src/test/server.node.d.ts.map +1 -0
- package/node_modules/dax/script/src/vendor/outdent.d.ts +34 -0
- package/node_modules/dax/script/src/vendor/outdent.d.ts.map +1 -0
- package/node_modules/{cross-spawn → undici-types}/LICENSE +6 -6
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +65 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +11 -11
- package/lib/util/tasks.d.ts +0 -7
- package/lib/util/tasks.js +0 -25
- package/node_modules/cross-spawn/README.md +0 -89
- package/node_modules/cross-spawn/index.js +0 -39
- package/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/node_modules/cross-spawn/lib/parse.js +0 -91
- package/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/node_modules/cross-spawn/package.json +0 -73
- package/node_modules/execa/index.d.ts +0 -564
- package/node_modules/execa/index.js +0 -268
- package/node_modules/execa/lib/command.js +0 -52
- package/node_modules/execa/lib/error.js +0 -88
- package/node_modules/execa/lib/kill.js +0 -115
- package/node_modules/execa/lib/promise.js +0 -46
- package/node_modules/execa/lib/stdio.js +0 -52
- package/node_modules/execa/lib/stream.js +0 -97
- package/node_modules/execa/license +0 -9
- package/node_modules/execa/package.json +0 -74
- package/node_modules/execa/readme.md +0 -663
- package/node_modules/get-stream/buffer-stream.js +0 -52
- package/node_modules/get-stream/index.d.ts +0 -105
- package/node_modules/get-stream/index.js +0 -61
- package/node_modules/get-stream/license +0 -9
- package/node_modules/get-stream/package.json +0 -47
- package/node_modules/get-stream/readme.md +0 -124
- package/node_modules/human-signals/LICENSE +0 -201
- package/node_modules/human-signals/README.md +0 -165
- package/node_modules/human-signals/build/src/core.js +0 -273
- package/node_modules/human-signals/build/src/core.js.map +0 -1
- package/node_modules/human-signals/build/src/main.d.ts +0 -52
- package/node_modules/human-signals/build/src/main.js +0 -71
- package/node_modules/human-signals/build/src/main.js.map +0 -1
- package/node_modules/human-signals/build/src/realtime.js +0 -19
- package/node_modules/human-signals/build/src/realtime.js.map +0 -1
- package/node_modules/human-signals/build/src/signals.js +0 -35
- package/node_modules/human-signals/build/src/signals.js.map +0 -1
- package/node_modules/human-signals/package.json +0 -64
- package/node_modules/is-stream/index.d.ts +0 -79
- package/node_modules/is-stream/index.js +0 -28
- package/node_modules/is-stream/license +0 -9
- package/node_modules/is-stream/package.json +0 -42
- package/node_modules/is-stream/readme.md +0 -60
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -31
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/merge-stream/LICENSE +0 -21
- package/node_modules/merge-stream/README.md +0 -78
- package/node_modules/merge-stream/index.js +0 -41
- package/node_modules/merge-stream/package.json +0 -19
- package/node_modules/mimic-fn/index.d.ts +0 -54
- package/node_modules/mimic-fn/index.js +0 -13
- package/node_modules/mimic-fn/license +0 -9
- package/node_modules/mimic-fn/package.json +0 -42
- package/node_modules/mimic-fn/readme.md +0 -69
- package/node_modules/minimist/.eslintrc +0 -29
- package/node_modules/minimist/.github/FUNDING.yml +0 -12
- package/node_modules/minimist/.nycrc +0 -14
- package/node_modules/minimist/CHANGELOG.md +0 -298
- package/node_modules/minimist/LICENSE +0 -18
- package/node_modules/minimist/README.md +0 -121
- package/node_modules/minimist/example/parse.js +0 -4
- package/node_modules/minimist/index.js +0 -263
- package/node_modules/minimist/package.json +0 -75
- package/node_modules/minimist/test/all_bool.js +0 -34
- package/node_modules/minimist/test/bool.js +0 -177
- package/node_modules/minimist/test/dash.js +0 -43
- package/node_modules/minimist/test/default_bool.js +0 -37
- package/node_modules/minimist/test/dotted.js +0 -24
- package/node_modules/minimist/test/kv_short.js +0 -32
- package/node_modules/minimist/test/long.js +0 -33
- package/node_modules/minimist/test/num.js +0 -38
- package/node_modules/minimist/test/parse.js +0 -209
- package/node_modules/minimist/test/parse_modified.js +0 -11
- package/node_modules/minimist/test/proto.js +0 -64
- package/node_modules/minimist/test/short.js +0 -69
- package/node_modules/minimist/test/stop_early.js +0 -17
- package/node_modules/minimist/test/unknown.js +0 -104
- package/node_modules/minimist/test/whitespace.js +0 -10
- package/node_modules/npm-run-path/index.d.ts +0 -89
- package/node_modules/npm-run-path/index.js +0 -47
- package/node_modules/npm-run-path/license +0 -9
- package/node_modules/npm-run-path/package.json +0 -44
- package/node_modules/npm-run-path/readme.md +0 -115
- package/node_modules/onetime/index.d.ts +0 -64
- package/node_modules/onetime/index.js +0 -44
- package/node_modules/onetime/license +0 -9
- package/node_modules/onetime/package.json +0 -43
- package/node_modules/onetime/readme.md +0 -94
- package/node_modules/path-key/index.d.ts +0 -40
- package/node_modules/path-key/index.js +0 -16
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/package.json +0 -39
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/package.json +0 -34
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/index.d.ts +0 -22
- package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/package.json +0 -35
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/shelljs/LICENSE +0 -29
- package/node_modules/shelljs/README.md +0 -949
- package/node_modules/shelljs/global.js +0 -15
- package/node_modules/shelljs/make.js +0 -57
- package/node_modules/shelljs/package.json +0 -90
- package/node_modules/shelljs/plugin.js +0 -16
- package/node_modules/shelljs/shell.js +0 -216
- package/node_modules/shelljs/src/cat.js +0 -76
- package/node_modules/shelljs/src/cd.js +0 -40
- package/node_modules/shelljs/src/chmod.js +0 -222
- package/node_modules/shelljs/src/cmd.js +0 -138
- package/node_modules/shelljs/src/common.js +0 -545
- package/node_modules/shelljs/src/cp.js +0 -314
- package/node_modules/shelljs/src/dirs.js +0 -210
- package/node_modules/shelljs/src/echo.js +0 -62
- package/node_modules/shelljs/src/error.js +0 -15
- package/node_modules/shelljs/src/errorCode.js +0 -10
- package/node_modules/shelljs/src/exec-child.js +0 -71
- package/node_modules/shelljs/src/exec.js +0 -255
- package/node_modules/shelljs/src/find.js +0 -66
- package/node_modules/shelljs/src/grep.js +0 -198
- package/node_modules/shelljs/src/head.js +0 -107
- package/node_modules/shelljs/src/ln.js +0 -75
- package/node_modules/shelljs/src/ls.js +0 -155
- package/node_modules/shelljs/src/mkdir.js +0 -102
- package/node_modules/shelljs/src/mv.js +0 -119
- package/node_modules/shelljs/src/popd.js +0 -1
- package/node_modules/shelljs/src/pushd.js +0 -1
- package/node_modules/shelljs/src/pwd.js +0 -16
- package/node_modules/shelljs/src/rm.js +0 -201
- package/node_modules/shelljs/src/sed.js +0 -95
- package/node_modules/shelljs/src/set.js +0 -55
- package/node_modules/shelljs/src/sort.js +0 -98
- package/node_modules/shelljs/src/tail.js +0 -90
- package/node_modules/shelljs/src/tempdir.js +0 -75
- package/node_modules/shelljs/src/test.js +0 -86
- package/node_modules/shelljs/src/to.js +0 -38
- package/node_modules/shelljs/src/toEnd.js +0 -37
- package/node_modules/shelljs/src/touch.js +0 -117
- package/node_modules/shelljs/src/uniq.js +0 -93
- package/node_modules/shelljs/src/which.js +0 -119
- package/node_modules/shx/README.md +0 -160
- package/node_modules/shx/lib/cli.js +0 -40
- package/node_modules/shx/lib/config.js +0 -58
- package/node_modules/shx/lib/help.js +0 -37
- package/node_modules/shx/lib/plugin-true-false.js +0 -25
- package/node_modules/shx/lib/printCmdRet.js +0 -17
- package/node_modules/shx/lib/shx.js +0 -162
- package/node_modules/shx/package.json +0 -72
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -39
- package/node_modules/signal-exit/index.js +0 -202
- package/node_modules/signal-exit/package.json +0 -38
- package/node_modules/signal-exit/signals.js +0 -53
- package/node_modules/strip-final-newline/index.js +0 -16
- package/node_modules/strip-final-newline/license +0 -9
- package/node_modules/strip-final-newline/package.json +0 -40
- package/node_modules/strip-final-newline/readme.md +0 -30
- package/node_modules/which/LICENSE +0 -15
- package/node_modules/which/README.md +0 -54
- package/node_modules/which/bin/node-which +0 -52
- package/node_modules/which/package.json +0 -43
- package/node_modules/which/which.js +0 -125
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import * as dntShim from "../_dnt.shims.js";
|
|
2
|
+
import { Path } from "../deps/jsr.io/@david/path/0.3.2/mod.js";
|
|
3
|
+
import { type Delay, type WriteFileOptions } from "../deps/jsr.io/@david/shell/0.5.2/mod.js";
|
|
4
|
+
import { symbols } from "../deps/jsr.io/@david/shell/0.5.2/internal.js";
|
|
5
|
+
import type { ProgressBar } from "./console/mod.js";
|
|
6
|
+
interface RequestBuilderState {
|
|
7
|
+
noThrow: boolean | number[];
|
|
8
|
+
url: string | URL | undefined;
|
|
9
|
+
body: dntShim.BodyInit | undefined;
|
|
10
|
+
cache: dntShim.RequestCache | undefined;
|
|
11
|
+
headers: Record<string, string | undefined>;
|
|
12
|
+
integrity: string | undefined;
|
|
13
|
+
keepalive: boolean | undefined;
|
|
14
|
+
method: string | undefined;
|
|
15
|
+
mode: dntShim.RequestMode | undefined;
|
|
16
|
+
progressBarFactory: ((message: string) => ProgressBar) | undefined;
|
|
17
|
+
redirect: dntShim.RequestRedirect | undefined;
|
|
18
|
+
referrer: string | undefined;
|
|
19
|
+
referrerPolicy: dntShim.ReferrerPolicy | undefined;
|
|
20
|
+
progressOptions: {
|
|
21
|
+
noClear: boolean;
|
|
22
|
+
} | undefined;
|
|
23
|
+
onProgress: ((event: ProgressEvent) => void)[];
|
|
24
|
+
timeout: number | undefined;
|
|
25
|
+
signal: AbortSignal | undefined;
|
|
26
|
+
beforeRequest: BeforeRequestCallback[] | undefined;
|
|
27
|
+
}
|
|
28
|
+
/** Callback invoked before a request is sent.
|
|
29
|
+
*
|
|
30
|
+
* Receives the current builder and may return a (possibly modified) builder
|
|
31
|
+
* to use for the request. Returning the builder unchanged — or returning
|
|
32
|
+
* nothing — is a no-op.
|
|
33
|
+
*
|
|
34
|
+
* The builder passed to the callback is wrapped in a Proxy that hides its
|
|
35
|
+
* `.then`, so it isn't detected as a thenable by the JavaScript Promise
|
|
36
|
+
* machinery. That makes it safe to `return builder.header(...)` from an
|
|
37
|
+
* `async` function without the runtime recursively unwrapping the thenable
|
|
38
|
+
* and triggering a fetch. Methods like `.header(...)` that return a new
|
|
39
|
+
* builder return another such wrapped Proxy.
|
|
40
|
+
*
|
|
41
|
+
* The return type is loose because TypeScript infers the async return type
|
|
42
|
+
* by following `PromiseLike` (the same logic the runtime uses), so e.g.
|
|
43
|
+
* `async b => b.header(...)` is inferred as `Promise<RequestResponse>`.
|
|
44
|
+
*/
|
|
45
|
+
export type BeforeRequestCallback = (builder: RequestBuilder) => RequestBuilder | Promise<RequestBuilder> | Promise<RequestResponse> | void | Promise<void>;
|
|
46
|
+
/** Event passed to an `onProgress` callback as bytes are received. */
|
|
47
|
+
export interface ProgressEvent {
|
|
48
|
+
/** Cumulative number of bytes received so far. */
|
|
49
|
+
loaded: number;
|
|
50
|
+
/** Total number of bytes expected from the `content-length` header,
|
|
51
|
+
* or `undefined` if not provided by the server.
|
|
52
|
+
*/
|
|
53
|
+
total: number | undefined;
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const withProgressBarFactorySymbol: unique symbol;
|
|
57
|
+
/**
|
|
58
|
+
* Builder API for downloading files.
|
|
59
|
+
*/
|
|
60
|
+
export declare class RequestBuilder implements PromiseLike<RequestResponse> {
|
|
61
|
+
#private;
|
|
62
|
+
[symbols.readable]: () => dntShim.ReadableStream<Uint8Array>;
|
|
63
|
+
then<TResult1 = RequestResponse, TResult2 = never>(onfulfilled?: ((value: RequestResponse) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): PromiseLike<TResult1 | TResult2>;
|
|
64
|
+
/** Fetches and gets the response. */
|
|
65
|
+
fetch(): Promise<RequestResponse>;
|
|
66
|
+
/** Specifies the URL to send the request to. */
|
|
67
|
+
url(value: string | URL | undefined): RequestBuilder;
|
|
68
|
+
/** Sets multiple headers at the same time via an object literal. */
|
|
69
|
+
header(items: Record<string, string | undefined>): RequestBuilder;
|
|
70
|
+
/** Sets a header to send with the request. */
|
|
71
|
+
header(name: string, value: string | undefined): RequestBuilder;
|
|
72
|
+
/**
|
|
73
|
+
* Do not throw if a non-2xx status code is received.
|
|
74
|
+
*
|
|
75
|
+
* By default the request builder will throw when
|
|
76
|
+
* receiving a non-2xx status code. Specify this
|
|
77
|
+
* to have it not throw.
|
|
78
|
+
*/
|
|
79
|
+
noThrow(value?: boolean): RequestBuilder;
|
|
80
|
+
/**
|
|
81
|
+
* Do not throw if a non-2xx status code is received
|
|
82
|
+
* except for these excluded provided status codes.
|
|
83
|
+
*
|
|
84
|
+
* This overload may be especially useful when wanting to ignore
|
|
85
|
+
* 404 status codes and have it return undefined instead. For example:
|
|
86
|
+
*
|
|
87
|
+
* ```ts
|
|
88
|
+
* const data = await $.request(`https://crates.io/api/v1/crates/${crateName}`)
|
|
89
|
+
* .noThrow(404)
|
|
90
|
+
* .json<CratesIoMetadata | undefined>();
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* Note, use multiple arguments to ignore multiple status codes (ex. `.noThrow(400, 404)`) as
|
|
94
|
+
* multiple calls to `.noThrow()` will overwrite the previous.
|
|
95
|
+
*/
|
|
96
|
+
noThrow(exclusionStatusCode: number, ...additional: number[]): RequestBuilder;
|
|
97
|
+
body(value: dntShim.BodyInit | undefined): RequestBuilder;
|
|
98
|
+
cache(value: dntShim.RequestCache | undefined): RequestBuilder;
|
|
99
|
+
integrity(value: string | undefined): RequestBuilder;
|
|
100
|
+
keepalive(value: boolean): RequestBuilder;
|
|
101
|
+
method(value: string): RequestBuilder;
|
|
102
|
+
mode(value: dntShim.RequestMode): RequestBuilder;
|
|
103
|
+
/** @internal */
|
|
104
|
+
[withProgressBarFactorySymbol](factory: (message: string) => ProgressBar): RequestBuilder;
|
|
105
|
+
redirect(value: dntShim.RequestRedirect): RequestBuilder;
|
|
106
|
+
referrer(value: string | undefined): RequestBuilder;
|
|
107
|
+
referrerPolicy(value: dntShim.ReferrerPolicy | undefined): RequestBuilder;
|
|
108
|
+
/** Shows a progress bar while downloading with the provided options. */
|
|
109
|
+
showProgress(opts: {
|
|
110
|
+
noClear?: boolean;
|
|
111
|
+
}): RequestBuilder;
|
|
112
|
+
/** Shows a progress bar while downloading. */
|
|
113
|
+
showProgress(show?: boolean): RequestBuilder;
|
|
114
|
+
/** Adds a callback that is invoked as bytes are received from the response body.
|
|
115
|
+
*
|
|
116
|
+
* The callback fires once per chunk read from the network with the cumulative
|
|
117
|
+
* number of bytes received and the total expected size (from the `content-length`
|
|
118
|
+
* header, or `undefined` if the server didn't provide one). Multiple callbacks
|
|
119
|
+
* may be registered by calling this method repeatedly; each is invoked in the
|
|
120
|
+
* order it was added.
|
|
121
|
+
*/
|
|
122
|
+
onProgress(callback: (event: ProgressEvent) => void): RequestBuilder;
|
|
123
|
+
/** Timeout the request after the specified delay throwing a `TimeoutError`. */
|
|
124
|
+
timeout(delay: Delay | undefined): RequestBuilder;
|
|
125
|
+
/** Sets an abort signal for the request. When the signal is
|
|
126
|
+
* aborted, the request will be cancelled.
|
|
127
|
+
*/
|
|
128
|
+
signal(signal: AbortSignal): RequestBuilder;
|
|
129
|
+
/** Registers a callback that runs just before each request is sent.
|
|
130
|
+
*
|
|
131
|
+
* The callback receives the current builder and may return a (possibly
|
|
132
|
+
* modified) builder to use for the request. Useful for asynchronously
|
|
133
|
+
* resolving values such as auth tokens.
|
|
134
|
+
*
|
|
135
|
+
* ```ts
|
|
136
|
+
* $.request(url).beforeRequest(async (builder) => {
|
|
137
|
+
* return builder.header("Authorization", `Bearer ${await getAccessToken()}`);
|
|
138
|
+
* });
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* Multiple `.beforeRequest(...)` calls compose: each registered callback runs
|
|
142
|
+
* in the order it was added, with the builder produced by the previous one.
|
|
143
|
+
*
|
|
144
|
+
* The builder passed to the callback is in a special "passthrough" mode so
|
|
145
|
+
* its `.then(...)` resolves with the builder itself (instead of fetching) —
|
|
146
|
+
* this is what makes `return builder.header(...)` from an `async` function
|
|
147
|
+
* safe. If you construct a fresh `new RequestBuilder()` inside the callback,
|
|
148
|
+
* return it as `{ requestBuilder: ... }` to avoid accidental fetching.
|
|
149
|
+
*/
|
|
150
|
+
beforeRequest(callback: BeforeRequestCallback): RequestBuilder;
|
|
151
|
+
/** Fetches and gets the response as an array buffer. */
|
|
152
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
153
|
+
/** Fetches and gets the response as a blob. */
|
|
154
|
+
blob(): Promise<Blob>;
|
|
155
|
+
/** Fetches and gets the response as form data. */
|
|
156
|
+
formData(): Promise<FormData>;
|
|
157
|
+
/** Fetches and gets the response as JSON additionally setting
|
|
158
|
+
* a JSON accept header if not set. */
|
|
159
|
+
json<TResult = any>(): Promise<TResult>;
|
|
160
|
+
/** Fetches and gets the response as text. */
|
|
161
|
+
text(): Promise<string>;
|
|
162
|
+
/** Pipes the response body to the provided writable stream. */
|
|
163
|
+
pipeTo(dest: dntShim.WritableStream<Uint8Array>, options?: dntShim.StreamPipeOptions): Promise<void>;
|
|
164
|
+
/**
|
|
165
|
+
* Pipes the response body to a file.
|
|
166
|
+
*
|
|
167
|
+
* @remarks The path will be derived from the request's url
|
|
168
|
+
* and downloaded to the current working directory.
|
|
169
|
+
*
|
|
170
|
+
* @returns The path reference of the downloaded file.
|
|
171
|
+
*/
|
|
172
|
+
pipeToPath(options?: WriteFileOptions): Promise<Path>;
|
|
173
|
+
/**
|
|
174
|
+
* Pipes the response body to a file.
|
|
175
|
+
*
|
|
176
|
+
* @remarks If no path is provided then it will be derived from the
|
|
177
|
+
* request's url and downloaded to the current working directory.
|
|
178
|
+
*
|
|
179
|
+
* @returns The path reference of the downloaded file.
|
|
180
|
+
*/
|
|
181
|
+
pipeToPath(path?: string | URL | Path | undefined, options?: WriteFileOptions): Promise<Path>;
|
|
182
|
+
/** Pipes the response body through the provided transform. */
|
|
183
|
+
pipeThrough<T>(transform: {
|
|
184
|
+
writable: dntShim.WritableStream<Uint8Array>;
|
|
185
|
+
readable: dntShim.ReadableStream<T>;
|
|
186
|
+
}): Promise<dntShim.ReadableStream<T>>;
|
|
187
|
+
}
|
|
188
|
+
interface RequestAbortController {
|
|
189
|
+
controller: AbortController;
|
|
190
|
+
/** Clears the timeout that may be set if there's a delay */
|
|
191
|
+
clearTimeout(): void;
|
|
192
|
+
}
|
|
193
|
+
/** Response of making a request where the body can be read. */
|
|
194
|
+
export declare class RequestResponse {
|
|
195
|
+
#private;
|
|
196
|
+
/** @internal */
|
|
197
|
+
constructor(opts: {
|
|
198
|
+
response: Response;
|
|
199
|
+
originalUrl: string;
|
|
200
|
+
progressBar: ProgressBar | undefined;
|
|
201
|
+
onProgress: ((event: ProgressEvent) => void)[];
|
|
202
|
+
contentLength: number | undefined;
|
|
203
|
+
abortController: RequestAbortController;
|
|
204
|
+
});
|
|
205
|
+
/** Raw response. */
|
|
206
|
+
get response(): Response;
|
|
207
|
+
/** Response headers. */
|
|
208
|
+
get headers(): Headers;
|
|
209
|
+
/** If the response had a 2xx code. */
|
|
210
|
+
get ok(): boolean;
|
|
211
|
+
/** If the response is the result of a redirect. */
|
|
212
|
+
get redirected(): boolean;
|
|
213
|
+
/** The underlying `AbortSignal` used to abort the request body
|
|
214
|
+
* when a timeout is reached or when the `.abort()` method is called. */
|
|
215
|
+
get signal(): AbortSignal;
|
|
216
|
+
/** Status code of the response. */
|
|
217
|
+
get status(): number;
|
|
218
|
+
/** Status text of the response. */
|
|
219
|
+
get statusText(): string;
|
|
220
|
+
/** URL of the response. */
|
|
221
|
+
get url(): string;
|
|
222
|
+
/** Aborts */
|
|
223
|
+
abort(reason?: unknown): void;
|
|
224
|
+
/**
|
|
225
|
+
* Throws if the response doesn't have a 2xx code.
|
|
226
|
+
*
|
|
227
|
+
* This might be useful if the request was built with `.noThrow()`, but
|
|
228
|
+
* otherwise this is called automatically for any non-2xx response codes.
|
|
229
|
+
*
|
|
230
|
+
* Note: this does not consume the body. If you don't intend to read the
|
|
231
|
+
* body, call `cancelBody()` first to release the underlying resources.
|
|
232
|
+
*/
|
|
233
|
+
throwIfNotOk(): void;
|
|
234
|
+
/**
|
|
235
|
+
* Cancels the response body, releasing the underlying resources.
|
|
236
|
+
*
|
|
237
|
+
* Useful in conjunction with `.noThrow()` and `throwIfNotOk()` when you
|
|
238
|
+
* don't intend to read the body.
|
|
239
|
+
*/
|
|
240
|
+
cancelBody(): Promise<void>;
|
|
241
|
+
/**
|
|
242
|
+
* Respose body as an array buffer.
|
|
243
|
+
*
|
|
244
|
+
* Note: Returns `undefined` when `.noThrow(404)` and status code is 404.
|
|
245
|
+
*/
|
|
246
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
247
|
+
/**
|
|
248
|
+
* Response body as a blog.
|
|
249
|
+
*
|
|
250
|
+
* Note: Returns `undefined` when `.noThrow(404)` and status code is 404.
|
|
251
|
+
*/
|
|
252
|
+
blob(): Promise<Blob>;
|
|
253
|
+
/**
|
|
254
|
+
* Response body as a form data.
|
|
255
|
+
*
|
|
256
|
+
* Note: Returns `undefined` when `.noThrow(404)` and status code is 404.
|
|
257
|
+
*/
|
|
258
|
+
formData(): Promise<FormData>;
|
|
259
|
+
/**
|
|
260
|
+
* Respose body as JSON.
|
|
261
|
+
*
|
|
262
|
+
* Note: Returns `undefined` when `.noThrow(404)` and status code is 404.
|
|
263
|
+
*/
|
|
264
|
+
json<TResult = any>(): Promise<TResult>;
|
|
265
|
+
/**
|
|
266
|
+
* Respose body as text.
|
|
267
|
+
*
|
|
268
|
+
* Note: Returns `undefined` when `.noThrow(404)` and status code is 404.
|
|
269
|
+
*/
|
|
270
|
+
text(): Promise<string>;
|
|
271
|
+
/** Pipes the response body to the provided writable stream. */
|
|
272
|
+
pipeTo(dest: dntShim.WritableStream<Uint8Array>, options?: dntShim.StreamPipeOptions): Promise<void>;
|
|
273
|
+
/**
|
|
274
|
+
* Pipes the response body to a file.
|
|
275
|
+
*
|
|
276
|
+
* @remarks The path will be derived from the request's url
|
|
277
|
+
* and downloaded to the current working directory.
|
|
278
|
+
*
|
|
279
|
+
* @remarks If the path is a directory, then the file name will be derived
|
|
280
|
+
* from the request's url and the file will be downloaded to the provided directory
|
|
281
|
+
*
|
|
282
|
+
* @returns The path reference of the downloaded file
|
|
283
|
+
*/
|
|
284
|
+
pipeToPath(options?: WriteFileOptions): Promise<Path>;
|
|
285
|
+
/**
|
|
286
|
+
* Pipes the response body to a file.
|
|
287
|
+
*
|
|
288
|
+
* @remarks If no path is provided then it will be derived from the
|
|
289
|
+
* request's url and downloaded to the current working directory.
|
|
290
|
+
*
|
|
291
|
+
* @remarks If the path is a directory, then the file name will be derived
|
|
292
|
+
* from the request's url and the file will be downloaded to the provided directory
|
|
293
|
+
*
|
|
294
|
+
* @returns The path reference of the downloaded file
|
|
295
|
+
*/
|
|
296
|
+
pipeToPath(path?: string | URL | Path | undefined, options?: WriteFileOptions): Promise<Path>;
|
|
297
|
+
/** Pipes the response body through the provided transform. */
|
|
298
|
+
pipeThrough<T>(transform: {
|
|
299
|
+
writable: dntShim.WritableStream<Uint8Array>;
|
|
300
|
+
readable: dntShim.ReadableStream<T>;
|
|
301
|
+
}): dntShim.ReadableStream<T>;
|
|
302
|
+
get readable(): dntShim.ReadableStream<Uint8Array>;
|
|
303
|
+
}
|
|
304
|
+
export declare function makeRequest(state: RequestBuilderState): Promise<RequestResponse>;
|
|
305
|
+
export {};
|
|
306
|
+
//# sourceMappingURL=request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/src/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,yCAAyC,CAAC;AAC/D,OAAO,EAAE,KAAK,KAAK,EAAa,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AACxG,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,UAAU,mBAAmB;IAC3B,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;IAC5B,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;IAC9B,IAAI,EAAE,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC;IACnC,KAAK,EAAE,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,WAAW,CAAC,GAAG,SAAS,CAAC;IACnE,QAAQ,EAAE,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAC9C,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.common.d.ts","sourceRoot":"","sources":["../../../src/src/test/server.common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;CACxD;AAED,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.node.d.ts","sourceRoot":"","sources":["../../../src/src/test/server.node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAU,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAErE,eAAO,MAAM,WAAW,EAAE,kBA8CzB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const defaultOutdent: Outdent;
|
|
2
|
+
export interface Outdent {
|
|
3
|
+
/**
|
|
4
|
+
* Remove indentation from a template literal.
|
|
5
|
+
*/
|
|
6
|
+
(strings: TemplateStringsArray, ...values: Array<any>): string;
|
|
7
|
+
/**
|
|
8
|
+
* Create and return a new Outdent instance with the given options.
|
|
9
|
+
*/
|
|
10
|
+
(options: Options): Outdent;
|
|
11
|
+
/**
|
|
12
|
+
* Remove indentation from a string
|
|
13
|
+
*/
|
|
14
|
+
string(str: string): string;
|
|
15
|
+
}
|
|
16
|
+
export interface Options {
|
|
17
|
+
trimLeadingNewline?: boolean;
|
|
18
|
+
trimTrailingNewline?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Normalize all newlines in the template literal to this value.
|
|
21
|
+
*
|
|
22
|
+
* If `null`, newlines are left untouched.
|
|
23
|
+
*
|
|
24
|
+
* Newlines that get normalized are '\r\n', '\r', and '\n'.
|
|
25
|
+
*
|
|
26
|
+
* Newlines within interpolated values are *never* normalized.
|
|
27
|
+
*
|
|
28
|
+
* Although intended for normalizing to '\n' or '\r\n',
|
|
29
|
+
* you can also set to any string; for example ' '.
|
|
30
|
+
*/
|
|
31
|
+
newline?: string | null;
|
|
32
|
+
}
|
|
33
|
+
export { defaultOutdent as outdent };
|
|
34
|
+
//# sourceMappingURL=outdent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outdent.d.ts","sourceRoot":"","sources":["../../../src/src/vendor/outdent.ts"],"names":[],"mappings":"AAqKA,QAAA,MAAM,cAAc,EAAE,OAGpB,CAAC;AAEH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;IAC/D;;OAEG;IACH,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CAO7B;AAED,MAAM,WAAW,OAAO;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) Matteo Collina and Undici contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
9
9
|
copies of the Software, and to permit persons to whom the Software is
|
|
10
10
|
furnished to do so, subject to the following conditions:
|
|
11
11
|
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# undici-types
|
|
2
|
+
|
|
3
|
+
This package is a dual-publish of the [undici](https://www.npmjs.com/package/undici) library types. The `undici` package **still contains types**. This package is for users who _only_ need undici types (such as for `@types/node`). It is published alongside every release of `undici`, so you can always use the same version.
|
|
4
|
+
|
|
5
|
+
- [GitHub nodejs/undici](https://github.com/nodejs/undici)
|
|
6
|
+
- [Undici Documentation](https://undici.nodejs.org/#/)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { URL } from 'url'
|
|
2
|
+
import Pool from './pool'
|
|
3
|
+
import Dispatcher from "./dispatcher";
|
|
4
|
+
|
|
5
|
+
export default Agent
|
|
6
|
+
|
|
7
|
+
declare class Agent extends Dispatcher{
|
|
8
|
+
constructor(opts?: Agent.Options)
|
|
9
|
+
/** `true` after `dispatcher.close()` has been called. */
|
|
10
|
+
closed: boolean;
|
|
11
|
+
/** `true` after `dispatcher.destroyed()` has been called or `dispatcher.close()` has been called and the dispatcher shutdown has completed. */
|
|
12
|
+
destroyed: boolean;
|
|
13
|
+
/** Dispatches a request. */
|
|
14
|
+
dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare namespace Agent {
|
|
18
|
+
export interface Options extends Pool.Options {
|
|
19
|
+
/** Default: `(origin, opts) => new Pool(origin, opts)`. */
|
|
20
|
+
factory?(origin: string | URL, opts: Object): Dispatcher;
|
|
21
|
+
/** Integer. Default: `0` */
|
|
22
|
+
maxRedirections?: number;
|
|
23
|
+
|
|
24
|
+
interceptors?: { Agent?: readonly Dispatcher.DispatchInterceptor[] } & Pool.Options["interceptors"]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface DispatchOptions extends Dispatcher.DispatchOptions {
|
|
28
|
+
/** Integer. */
|
|
29
|
+
maxRedirections?: number;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { URL, UrlObject } from 'url'
|
|
2
|
+
import { Duplex } from 'stream'
|
|
3
|
+
import Dispatcher from './dispatcher'
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
request,
|
|
7
|
+
stream,
|
|
8
|
+
pipeline,
|
|
9
|
+
connect,
|
|
10
|
+
upgrade,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Performs an HTTP request. */
|
|
14
|
+
declare function request(
|
|
15
|
+
url: string | URL | UrlObject,
|
|
16
|
+
options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path' | 'method'> & Partial<Pick<Dispatcher.RequestOptions, 'method'>>,
|
|
17
|
+
): Promise<Dispatcher.ResponseData>;
|
|
18
|
+
|
|
19
|
+
/** A faster version of `request`. */
|
|
20
|
+
declare function stream(
|
|
21
|
+
url: string | URL | UrlObject,
|
|
22
|
+
options: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path'>,
|
|
23
|
+
factory: Dispatcher.StreamFactory
|
|
24
|
+
): Promise<Dispatcher.StreamData>;
|
|
25
|
+
|
|
26
|
+
/** For easy use with `stream.pipeline`. */
|
|
27
|
+
declare function pipeline(
|
|
28
|
+
url: string | URL | UrlObject,
|
|
29
|
+
options: { dispatcher?: Dispatcher } & Omit<Dispatcher.PipelineOptions, 'origin' | 'path'>,
|
|
30
|
+
handler: Dispatcher.PipelineHandler
|
|
31
|
+
): Duplex;
|
|
32
|
+
|
|
33
|
+
/** Starts two-way communications with the requested resource. */
|
|
34
|
+
declare function connect(
|
|
35
|
+
url: string | URL | UrlObject,
|
|
36
|
+
options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.ConnectOptions, 'origin' | 'path'>
|
|
37
|
+
): Promise<Dispatcher.ConnectData>;
|
|
38
|
+
|
|
39
|
+
/** Upgrade to a different protocol. */
|
|
40
|
+
declare function upgrade(
|
|
41
|
+
url: string | URL | UrlObject,
|
|
42
|
+
options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.UpgradeOptions, 'origin' | 'path'>
|
|
43
|
+
): Promise<Dispatcher.UpgradeData>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Pool from './pool'
|
|
2
|
+
import Dispatcher from './dispatcher'
|
|
3
|
+
import { URL } from 'url'
|
|
4
|
+
|
|
5
|
+
export default BalancedPool
|
|
6
|
+
|
|
7
|
+
declare class BalancedPool extends Dispatcher {
|
|
8
|
+
constructor(url: string | string[] | URL | URL[], options?: Pool.Options);
|
|
9
|
+
|
|
10
|
+
addUpstream(upstream: string | URL): BalancedPool;
|
|
11
|
+
removeUpstream(upstream: string | URL): BalancedPool;
|
|
12
|
+
upstreams: Array<string>;
|
|
13
|
+
|
|
14
|
+
/** `true` after `pool.close()` has been called. */
|
|
15
|
+
closed: boolean;
|
|
16
|
+
/** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
|
|
17
|
+
destroyed: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { RequestInfo, Response, Request } from './fetch'
|
|
2
|
+
|
|
3
|
+
export interface CacheStorage {
|
|
4
|
+
match (request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>,
|
|
5
|
+
has (cacheName: string): Promise<boolean>,
|
|
6
|
+
open (cacheName: string): Promise<Cache>,
|
|
7
|
+
delete (cacheName: string): Promise<boolean>,
|
|
8
|
+
keys (): Promise<string[]>
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const CacheStorage: {
|
|
12
|
+
prototype: CacheStorage
|
|
13
|
+
new(): CacheStorage
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface Cache {
|
|
17
|
+
match (request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>,
|
|
18
|
+
matchAll (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Response[]>,
|
|
19
|
+
add (request: RequestInfo): Promise<undefined>,
|
|
20
|
+
addAll (requests: RequestInfo[]): Promise<undefined>,
|
|
21
|
+
put (request: RequestInfo, response: Response): Promise<undefined>,
|
|
22
|
+
delete (request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>,
|
|
23
|
+
keys (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Request[]>
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CacheQueryOptions {
|
|
27
|
+
ignoreSearch?: boolean,
|
|
28
|
+
ignoreMethod?: boolean,
|
|
29
|
+
ignoreVary?: boolean
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface MultiCacheQueryOptions extends CacheQueryOptions {
|
|
33
|
+
cacheName?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export declare const caches: CacheStorage
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { URL } from 'url'
|
|
2
|
+
import { TlsOptions } from 'tls'
|
|
3
|
+
import Dispatcher from './dispatcher'
|
|
4
|
+
import buildConnector from "./connector";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default.
|
|
8
|
+
*/
|
|
9
|
+
export class Client extends Dispatcher {
|
|
10
|
+
constructor(url: string | URL, options?: Client.Options);
|
|
11
|
+
/** Property to get and set the pipelining factor. */
|
|
12
|
+
pipelining: number;
|
|
13
|
+
/** `true` after `client.close()` has been called. */
|
|
14
|
+
closed: boolean;
|
|
15
|
+
/** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */
|
|
16
|
+
destroyed: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare namespace Client {
|
|
20
|
+
export interface OptionsInterceptors {
|
|
21
|
+
Client: readonly Dispatcher.DispatchInterceptor[];
|
|
22
|
+
}
|
|
23
|
+
export interface Options {
|
|
24
|
+
/** TODO */
|
|
25
|
+
interceptors?: OptionsInterceptors;
|
|
26
|
+
/** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */
|
|
27
|
+
maxHeaderSize?: number;
|
|
28
|
+
/** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */
|
|
29
|
+
headersTimeout?: number;
|
|
30
|
+
/** @deprecated unsupported socketTimeout, use headersTimeout & bodyTimeout instead */
|
|
31
|
+
socketTimeout?: never;
|
|
32
|
+
/** @deprecated unsupported requestTimeout, use headersTimeout & bodyTimeout instead */
|
|
33
|
+
requestTimeout?: never;
|
|
34
|
+
/** TODO */
|
|
35
|
+
connectTimeout?: number;
|
|
36
|
+
/** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */
|
|
37
|
+
bodyTimeout?: number;
|
|
38
|
+
/** @deprecated unsupported idleTimeout, use keepAliveTimeout instead */
|
|
39
|
+
idleTimeout?: never;
|
|
40
|
+
/** @deprecated unsupported keepAlive, use pipelining=0 instead */
|
|
41
|
+
keepAlive?: never;
|
|
42
|
+
/** the timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */
|
|
43
|
+
keepAliveTimeout?: number;
|
|
44
|
+
/** @deprecated unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead */
|
|
45
|
+
maxKeepAliveTimeout?: never;
|
|
46
|
+
/** the maximum allowed `idleTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */
|
|
47
|
+
keepAliveMaxTimeout?: number;
|
|
48
|
+
/** A number of milliseconds subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */
|
|
49
|
+
keepAliveTimeoutThreshold?: number;
|
|
50
|
+
/** TODO */
|
|
51
|
+
socketPath?: string;
|
|
52
|
+
/** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */
|
|
53
|
+
pipelining?: number;
|
|
54
|
+
/** @deprecated use the connect option instead */
|
|
55
|
+
tls?: never;
|
|
56
|
+
/** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */
|
|
57
|
+
strictContentLength?: boolean;
|
|
58
|
+
/** TODO */
|
|
59
|
+
maxCachedSessions?: number;
|
|
60
|
+
/** TODO */
|
|
61
|
+
maxRedirections?: number;
|
|
62
|
+
/** TODO */
|
|
63
|
+
connect?: buildConnector.BuildOptions | buildConnector.connector;
|
|
64
|
+
/** TODO */
|
|
65
|
+
maxRequestsPerClient?: number;
|
|
66
|
+
/** TODO */
|
|
67
|
+
localAddress?: string;
|
|
68
|
+
/** Max response body size in bytes, -1 is disabled */
|
|
69
|
+
maxResponseSize?: number;
|
|
70
|
+
/** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */
|
|
71
|
+
autoSelectFamily?: boolean;
|
|
72
|
+
/** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */
|
|
73
|
+
autoSelectFamilyAttemptTimeout?: number;
|
|
74
|
+
/**
|
|
75
|
+
* @description Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
allowH2?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
|
|
81
|
+
* @default 100
|
|
82
|
+
*/
|
|
83
|
+
maxConcurrentStreams?: number
|
|
84
|
+
}
|
|
85
|
+
export interface SocketInfo {
|
|
86
|
+
localAddress?: string
|
|
87
|
+
localPort?: number
|
|
88
|
+
remoteAddress?: string
|
|
89
|
+
remotePort?: number
|
|
90
|
+
remoteFamily?: string
|
|
91
|
+
timeout?: number
|
|
92
|
+
bytesWritten?: number
|
|
93
|
+
bytesRead?: number
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export default Client;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TLSSocket, ConnectionOptions } from 'tls'
|
|
2
|
+
import { IpcNetConnectOpts, Socket, TcpNetConnectOpts } from 'net'
|
|
3
|
+
|
|
4
|
+
export default buildConnector
|
|
5
|
+
declare function buildConnector (options?: buildConnector.BuildOptions): buildConnector.connector
|
|
6
|
+
|
|
7
|
+
declare namespace buildConnector {
|
|
8
|
+
export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & {
|
|
9
|
+
allowH2?: boolean;
|
|
10
|
+
maxCachedSessions?: number | null;
|
|
11
|
+
socketPath?: string | null;
|
|
12
|
+
timeout?: number | null;
|
|
13
|
+
port?: number;
|
|
14
|
+
keepAlive?: boolean | null;
|
|
15
|
+
keepAliveInitialDelay?: number | null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface Options {
|
|
19
|
+
hostname: string
|
|
20
|
+
host?: string
|
|
21
|
+
protocol: string
|
|
22
|
+
port: string
|
|
23
|
+
servername?: string
|
|
24
|
+
localAddress?: string | null
|
|
25
|
+
httpSocket?: Socket
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type Callback = (...args: CallbackArgs) => void
|
|
29
|
+
type CallbackArgs = [null, Socket | TLSSocket] | [Error, null]
|
|
30
|
+
|
|
31
|
+
export interface connector {
|
|
32
|
+
(options: buildConnector.Options, callback: buildConnector.Callback): void
|
|
33
|
+
}
|
|
34
|
+
}
|