@zuplo/cli 7.13.3 → 7.13.4
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/dist/cmds/lint.d.ts.map +1 -1
- package/dist/cmds/lint.js +0 -5
- package/dist/cmds/lint.js.map +1 -1
- package/dist/lint/handler.d.ts.map +1 -1
- package/dist/lint/handler.js +9 -0
- package/dist/lint/handler.js.map +1 -1
- package/node_modules/@simple-git/argv-parser/LICENSE +20 -0
- package/node_modules/@simple-git/argv-parser/dist/index.cjs +1 -1
- package/node_modules/@simple-git/argv-parser/dist/index.cjs.map +1 -1
- package/node_modules/@simple-git/argv-parser/dist/index.d.ts +2 -1
- package/node_modules/@simple-git/argv-parser/dist/index.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/index.mjs +244 -198
- package/node_modules/@simple-git/argv-parser/dist/index.mjs.map +1 -1
- package/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.types.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.types.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/analyse-config.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/analyse-config.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/config-operands.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/config-operands.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/config.types.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/config.types.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/detect-config-action.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/config/detect-config-action.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/env/parse-env.d.ts +25 -0
- package/node_modules/@simple-git/argv-parser/dist/src/env/parse-env.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/flags/flags.helpers.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/flags/flags.helpers.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-global-flags.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-global-flags.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-task-flags.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/flags/parse-task-flags.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/tokens/flag-specs.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/tokens/flag-specs.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/tokens/token-expander.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/tokens/token-expander.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-config-writes.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-config-writes.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-flags.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-flags.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-analysis.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-analysis.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-check.d.ts +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-check.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability.types.d.ts +29 -0
- package/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability.types.d.ts.map +1 -0
- package/node_modules/@simple-git/argv-parser/package.json +2 -2
- package/node_modules/@zuplo/core/customer.cli.minified.js +344 -344
- package/node_modules/@zuplo/core/index.minified.js +359 -359
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +2 -2
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-DVFQRFED.js → chunk-NWYAKCSU.js} +81 -81
- package/node_modules/@zuplo/runtime/out/esm/chunk-NWYAKCSU.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-PXS4NOKU.js +102 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-PXS4NOKU.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
- package/node_modules/@zuplo/runtime/package.json +2 -2
- package/node_modules/simple-git/LICENSE +20 -0
- package/node_modules/simple-git/dist/index.cjs +6 -0
- package/node_modules/simple-git/dist/index.cjs.map +1 -0
- package/node_modules/simple-git/dist/index.d.ts +5 -0
- package/node_modules/simple-git/dist/index.d.ts.map +1 -0
- package/node_modules/simple-git/dist/index.mjs +2895 -0
- package/node_modules/simple-git/dist/index.mjs.map +1 -0
- package/node_modules/simple-git/dist/src/lib/api.d.ts +13 -13
- package/node_modules/simple-git/dist/src/lib/api.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/args/log-format.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/errors/git-configuration-error.d.ts +25 -0
- package/node_modules/simple-git/dist/src/lib/errors/git-configuration-error.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/git-factory.d.ts +3 -15
- package/node_modules/simple-git/dist/src/lib/git-factory.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/git-logger.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/git-logger.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-branch-delete.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/parsers/parse-branch-delete.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/{responses/CleanSummary.d.ts → parsers/parse-clean.d.ts} +5 -4
- package/node_modules/simple-git/dist/src/lib/parsers/parse-clean.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-commit.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/parsers/parse-commit.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-fetch.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/parsers/parse-fetch.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-list-log-summary.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/parsers/parse-list-log-summary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-merge.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/parsers/parse-merge.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-move.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/parsers/parse-move.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-pull.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/parsers/parse-pull.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-push.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/parsers/parse-push.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-remote-messages.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/parsers/parse-remote-messages.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/parsers/parse-remote-objects.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/parsers/parse-remote-objects.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/allow-environment.plugin.d.ts +3 -0
- package/node_modules/simple-git/dist/src/lib/plugins/allow-environment.plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/command-config-prefixing-plugin.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/plugins/command-config-prefixing-plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/completion-detection.plugin.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/plugins/completion-detection.plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/index.d.ts +5 -1
- package/node_modules/simple-git/dist/src/lib/plugins/index.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/input.plugin.d.ts +4 -0
- package/node_modules/simple-git/dist/src/lib/plugins/input.plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/progress-monitor-plugin.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/plugins/progress-monitor-plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +8 -4
- package/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/plugins/{timout-plugin.d.ts → timeout-plugin.d.ts} +2 -1
- package/node_modules/simple-git/dist/src/lib/plugins/timeout-plugin.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/BranchDeleteSummary.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/responses/BranchDeleteSummary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/ConfigList.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/responses/ConfigList.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/DiffSummary.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/responses/DiffSummary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/FileStatusSummary.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/responses/FileStatusSummary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/InitSummary.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/responses/InitSummary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/MergeSummary.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/responses/MergeSummary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/StatusSummary.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/responses/StatusSummary.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/responses/TagList.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/responses/TagList.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/runners/git-executor-chain.d.ts +5 -3
- package/node_modules/simple-git/dist/src/lib/runners/git-executor-chain.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/runners/git-executor.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/runners/git-executor.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/simple-git-api.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/simple-git-api.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/task-callback.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/task-callback.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/branch.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/tasks/branch.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/change-working-directory.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/change-working-directory.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/check-ignore.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/check-ignore.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +4 -3
- package/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/config.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/config.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +4 -3
- package/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/fetch.d.ts +4 -3
- package/node_modules/simple-git/dist/src/lib/tasks/fetch.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/hash-object.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/hash-object.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/init.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/tasks/init.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/interpret-trailers.d.ts +3 -0
- package/node_modules/simple-git/dist/src/lib/tasks/interpret-trailers.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/tasks/log.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/merge.d.ts +4 -3
- package/node_modules/simple-git/dist/src/lib/tasks/merge.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/move.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/tasks/move.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/pull.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/tasks/pull.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/tasks/push.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/show.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/status.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/tasks/status.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/sub-module.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/sub-module.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/tag.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/tasks/tag.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/task.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/tasks/version.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/types/handlers.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/types/index.d.ts +19 -2
- package/node_modules/simple-git/dist/src/lib/types/index.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +4 -2
- package/node_modules/simple-git/dist/src/lib/types/tasks.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +2 -0
- package/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/exit-codes.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/exit-codes.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/index.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/index.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/simple-git-options.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/utils/simple-git-options.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +2 -1
- package/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/task-parser.d.ts +3 -2
- package/node_modules/simple-git/dist/src/lib/utils/task-parser.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/lib/utils/util.d.ts +2 -0
- package/node_modules/simple-git/dist/src/lib/utils/util.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/typings/index.d.ts +4 -0
- package/node_modules/simple-git/dist/src/typings/index.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/typings/response.d.ts +479 -0
- package/node_modules/simple-git/dist/src/typings/response.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/typings/simple-git.d.ts +517 -0
- package/node_modules/simple-git/dist/src/typings/simple-git.d.ts.map +1 -0
- package/node_modules/simple-git/dist/src/typings/types.d.ts +11 -0
- package/node_modules/simple-git/dist/src/typings/types.d.ts.map +1 -0
- package/node_modules/simple-git/package.json +12 -16
- package/node_modules/simple-git/readme.md +29 -47
- package/node_modules/undici/docs/docs/api/Client.md +2 -0
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +3 -1
- package/node_modules/undici/docs/docs/api/Dispatcher.md +1 -0
- package/node_modules/undici/lib/core/connect.js +10 -4
- package/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/undici/lib/core/symbols.js +1 -0
- package/node_modules/undici/lib/dispatcher/agent.js +6 -2
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
- package/node_modules/undici/lib/dispatcher/client-h1.js +23 -10
- package/node_modules/undici/lib/dispatcher/client-h2.js +84 -23
- package/node_modules/undici/lib/dispatcher/client.js +9 -4
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +12 -0
- package/node_modules/undici/lib/handler/cache-handler.js +69 -5
- package/node_modules/undici/lib/handler/deduplication-handler.js +57 -13
- package/node_modules/undici/lib/handler/redirect-handler.js +8 -1
- package/node_modules/undici/lib/handler/retry-handler.js +109 -23
- package/node_modules/undici/lib/interceptor/cache.js +20 -1
- package/node_modules/undici/lib/interceptor/decompress.js +348 -46
- package/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/undici/lib/web/cookies/index.js +3 -1
- package/node_modules/undici/lib/web/cookies/parse.js +138 -137
- package/node_modules/undici/lib/web/cookies/util.js +21 -2
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +325 -149
- package/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
- package/node_modules/undici/lib/web/fetch/index.js +3 -3
- package/node_modules/undici/lib/web/infra/index.js +14 -0
- package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
- package/node_modules/undici/lib/web/websocket/connection.js +19 -9
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/undici/lib/web/websocket/receiver.js +13 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/undici/package.json +1 -1
- package/node_modules/undici/types/client.d.ts +14 -0
- package/node_modules/undici/types/interceptors.d.ts +2 -0
- package/node_modules/zod/README.md +29 -2
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +21 -2
- package/node_modules/zod/index.d.cts +1 -2
- package/node_modules/zod/index.d.ts +1 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +20 -8
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +5 -2
- package/node_modules/zod/src/v3/ZodError.ts +22 -12
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +3 -6
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/string.test.ts +6 -0
- package/node_modules/zod/src/v3/types.ts +5 -5
- package/node_modules/zod/src/v4/classic/checks.ts +1 -0
- package/node_modules/zod/src/v4/classic/compat.ts +26 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +59 -44
- package/node_modules/zod/src/v4/classic/external.ts +14 -9
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +363 -78
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +2 -2
- package/node_modules/zod/src/v4/classic/iso.ts +2 -72
- package/node_modules/zod/src/v4/classic/parse.ts +10 -4
- package/node_modules/zod/src/v4/classic/schemas.ts +640 -375
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +29 -2
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +186 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +278 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +2 -1
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +3 -3
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +30 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +32 -18
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +31 -7
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +261 -13
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +112 -2
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +582 -10
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +2 -9
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +21 -2
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +3 -10
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -1
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +85 -9
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +301 -12
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +49 -16
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +51 -4
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +20 -2
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +186 -18
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +79 -3
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +15 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +222 -6
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +44 -3
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1812 -204
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +45 -30
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +39 -2
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
- package/node_modules/zod/src/v4/core/api.ts +87 -35
- package/node_modules/zod/src/v4/core/checks.ts +119 -146
- package/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/node_modules/zod/src/v4/core/core.ts +99 -22
- package/node_modules/zod/src/v4/core/doc.ts +17 -9
- package/node_modules/zod/src/v4/core/errors.ts +113 -25
- package/node_modules/zod/src/v4/core/index.ts +3 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +8 -3
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +424 -156
- package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +164 -50
- package/node_modules/zod/src/v4/core/regexes.ts +42 -15
- package/node_modules/zod/src/v4/core/registries.ts +2 -2
- package/node_modules/zod/src/v4/core/schemas.ts +1035 -539
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +3 -3
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +283 -48
- package/node_modules/zod/src/v4/core/util.ts +467 -157
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/index.ts +3 -3
- package/node_modules/zod/src/v4/locales/ar.ts +5 -0
- package/node_modules/zod/src/v4/locales/az.ts +5 -0
- package/node_modules/zod/src/v4/locales/be.ts +12 -0
- package/node_modules/zod/src/v4/locales/bg.ts +5 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +5 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +5 -0
- package/node_modules/zod/src/v4/locales/da.ts +7 -2
- package/node_modules/zod/src/v4/locales/de.ts +5 -0
- package/node_modules/zod/src/v4/locales/el.ts +3 -0
- package/node_modules/zod/src/v4/locales/en.ts +17 -4
- package/node_modules/zod/src/v4/locales/eo.ts +5 -0
- package/node_modules/zod/src/v4/locales/es.ts +4 -0
- package/node_modules/zod/src/v4/locales/fa.ts +5 -0
- package/node_modules/zod/src/v4/locales/fi.ts +5 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +5 -0
- package/node_modules/zod/src/v4/locales/fr.ts +21 -14
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +8 -1
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +4 -0
- package/node_modules/zod/src/v4/locales/hu.ts +5 -0
- package/node_modules/zod/src/v4/locales/hy.ts +11 -0
- package/node_modules/zod/src/v4/locales/id.ts +5 -0
- package/node_modules/zod/src/v4/locales/index.ts +11 -0
- package/node_modules/zod/src/v4/locales/is.ts +5 -0
- package/node_modules/zod/src/v4/locales/it.ts +5 -0
- package/node_modules/zod/src/v4/locales/ja.ts +5 -0
- package/node_modules/zod/src/v4/locales/ka.ts +5 -0
- package/node_modules/zod/src/v4/locales/km.ts +5 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +5 -0
- package/node_modules/zod/src/v4/locales/lt.ts +4 -0
- package/node_modules/zod/src/v4/locales/mk.ts +5 -0
- package/node_modules/zod/src/v4/locales/ms.ts +5 -0
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +5 -0
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +7 -2
- package/node_modules/zod/src/v4/locales/ota.ts +5 -0
- package/node_modules/zod/src/v4/locales/pl.ts +5 -0
- package/node_modules/zod/src/v4/locales/ps.ts +5 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +101 -58
- package/node_modules/zod/src/v4/locales/ro.ts +3 -0
- package/node_modules/zod/src/v4/locales/ru.ts +12 -0
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +5 -0
- package/node_modules/zod/src/v4/locales/sv.ts +7 -2
- package/node_modules/zod/src/v4/locales/ta.ts +5 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +5 -0
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +5 -0
- package/node_modules/zod/src/v4/locales/uk.ts +5 -0
- package/node_modules/zod/src/v4/locales/ur.ts +5 -0
- package/node_modules/zod/src/v4/locales/uz.ts +3 -0
- package/node_modules/zod/src/v4/locales/vi.ts +5 -0
- package/node_modules/zod/src/v4/locales/yo.ts +5 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +5 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +5 -0
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +12 -1
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/parse.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +167 -63
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +35 -1
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +23 -4
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +158 -5
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +65 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +44 -0
- package/node_modules/zod/v3/ZodError.cjs +41 -12
- package/node_modules/zod/v3/ZodError.d.cts +1 -1
- package/node_modules/zod/v3/ZodError.d.ts +1 -1
- package/node_modules/zod/v3/ZodError.js +22 -12
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +26 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +21 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.d.cts +9 -11
- package/node_modules/zod/v4/classic/compat.d.ts +9 -11
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +62 -34
- package/node_modules/zod/v4/classic/errors.d.cts +3 -4
- package/node_modules/zod/v4/classic/errors.d.ts +3 -4
- package/node_modules/zod/v4/classic/errors.js +43 -34
- package/node_modules/zod/v4/classic/external.cjs +51 -27
- package/node_modules/zod/v4/classic/external.d.cts +5 -2
- package/node_modules/zod/v4/classic/external.d.ts +5 -2
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +376 -75
- package/node_modules/zod/v4/classic/from-json-schema.js +357 -75
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +21 -2
- package/node_modules/zod/v4/classic/index.d.cts +1 -2
- package/node_modules/zod/v4/classic/index.d.ts +1 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +30 -22
- package/node_modules/zod/v4/classic/iso.d.cts +2 -17
- package/node_modules/zod/v4/classic/iso.d.ts +2 -17
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/parse.cjs +23 -1
- package/node_modules/zod/v4/classic/parse.d.cts +17 -4
- package/node_modules/zod/v4/classic/parse.d.ts +17 -4
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +591 -426
- package/node_modules/zod/v4/classic/schemas.d.cts +68 -19
- package/node_modules/zod/v4/classic/schemas.d.ts +68 -19
- package/node_modules/zod/v4/classic/schemas.js +564 -424
- package/node_modules/zod/v4/core/api.cjs +66 -24
- package/node_modules/zod/v4/core/api.d.cts +22 -12
- package/node_modules/zod/v4/core/api.d.ts +22 -12
- package/node_modules/zod/v4/core/api.js +44 -24
- package/node_modules/zod/v4/core/checks.cjs +88 -128
- package/node_modules/zod/v4/core/checks.d.cts +29 -13
- package/node_modules/zod/v4/core/checks.d.ts +29 -13
- package/node_modules/zod/v4/core/checks.js +68 -127
- package/node_modules/zod/v4/core/compile.cjs +1916 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1866 -0
- package/node_modules/zod/v4/core/core.cjs +101 -19
- package/node_modules/zod/v4/core/core.d.cts +16 -4
- package/node_modules/zod/v4/core/core.d.ts +16 -4
- package/node_modules/zod/v4/core/core.js +83 -20
- package/node_modules/zod/v4/core/doc.cjs +31 -9
- package/node_modules/zod/v4/core/doc.d.cts +3 -1
- package/node_modules/zod/v4/core/doc.d.ts +3 -1
- package/node_modules/zod/v4/core/doc.js +12 -9
- package/node_modules/zod/v4/core/errors.cjs +126 -25
- package/node_modules/zod/v4/core/errors.d.cts +4 -0
- package/node_modules/zod/v4/core/errors.d.ts +4 -0
- package/node_modules/zod/v4/core/errors.js +107 -25
- package/node_modules/zod/v4/core/index.cjs +24 -1
- package/node_modules/zod/v4/core/index.d.cts +3 -0
- package/node_modules/zod/v4/core/index.d.ts +3 -0
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +441 -156
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +400 -158
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
- package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/parse.cjs +148 -46
- package/node_modules/zod/v4/core/parse.d.cts +14 -11
- package/node_modules/zod/v4/core/parse.d.ts +14 -11
- package/node_modules/zod/v4/core/parse.js +127 -45
- package/node_modules/zod/v4/core/regexes.cjs +54 -17
- package/node_modules/zod/v4/core/regexes.d.cts +5 -0
- package/node_modules/zod/v4/core/regexes.d.ts +5 -0
- package/node_modules/zod/v4/core/regexes.js +32 -15
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +815 -386
- package/node_modules/zod/v4/core/schemas.d.cts +126 -35
- package/node_modules/zod/v4/core/schemas.d.ts +126 -35
- package/node_modules/zod/v4/core/schemas.js +783 -386
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +269 -45
- package/node_modules/zod/v4/core/to-json-schema.d.cts +45 -5
- package/node_modules/zod/v4/core/to-json-schema.d.ts +45 -5
- package/node_modules/zod/v4/core/to-json-schema.js +247 -44
- package/node_modules/zod/v4/core/util.cjs +387 -157
- package/node_modules/zod/v4/core/util.d.cts +81 -1
- package/node_modules/zod/v4/core/util.d.ts +81 -1
- package/node_modules/zod/v4/core/util.js +355 -156
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +34 -5
- package/node_modules/zod/v4/index.d.cts +2 -2
- package/node_modules/zod/v4/index.d.ts +2 -2
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +5 -0
- package/node_modules/zod/v4/locales/ar.js +5 -0
- package/node_modules/zod/v4/locales/az.cjs +5 -0
- package/node_modules/zod/v4/locales/az.js +5 -0
- package/node_modules/zod/v4/locales/be.cjs +12 -0
- package/node_modules/zod/v4/locales/be.js +12 -0
- package/node_modules/zod/v4/locales/bg.cjs +5 -0
- package/node_modules/zod/v4/locales/bg.js +5 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +5 -0
- package/node_modules/zod/v4/locales/ca.js +5 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +5 -0
- package/node_modules/zod/v4/locales/cs.js +5 -0
- package/node_modules/zod/v4/locales/da.cjs +7 -2
- package/node_modules/zod/v4/locales/da.js +7 -2
- package/node_modules/zod/v4/locales/de.cjs +5 -0
- package/node_modules/zod/v4/locales/de.js +5 -0
- package/node_modules/zod/v4/locales/el.cjs +3 -0
- package/node_modules/zod/v4/locales/el.js +3 -0
- package/node_modules/zod/v4/locales/en.cjs +16 -4
- package/node_modules/zod/v4/locales/en.js +16 -4
- package/node_modules/zod/v4/locales/eo.cjs +5 -0
- package/node_modules/zod/v4/locales/eo.js +5 -0
- package/node_modules/zod/v4/locales/es.cjs +4 -0
- package/node_modules/zod/v4/locales/es.js +4 -0
- package/node_modules/zod/v4/locales/fa.cjs +5 -0
- package/node_modules/zod/v4/locales/fa.js +5 -0
- package/node_modules/zod/v4/locales/fi.cjs +5 -0
- package/node_modules/zod/v4/locales/fi.js +5 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +5 -0
- package/node_modules/zod/v4/locales/fr-CA.js +5 -0
- package/node_modules/zod/v4/locales/fr.cjs +18 -14
- package/node_modules/zod/v4/locales/fr.js +18 -14
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +7 -0
- package/node_modules/zod/v4/locales/he.js +7 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +4 -0
- package/node_modules/zod/v4/locales/hr.js +4 -0
- package/node_modules/zod/v4/locales/hu.cjs +5 -0
- package/node_modules/zod/v4/locales/hu.js +5 -0
- package/node_modules/zod/v4/locales/hy.cjs +11 -0
- package/node_modules/zod/v4/locales/hy.js +11 -0
- package/node_modules/zod/v4/locales/id.cjs +5 -0
- package/node_modules/zod/v4/locales/id.js +5 -0
- package/node_modules/zod/v4/locales/index.cjs +43 -2
- package/node_modules/zod/v4/locales/index.d.cts +11 -0
- package/node_modules/zod/v4/locales/index.d.ts +11 -0
- package/node_modules/zod/v4/locales/index.js +11 -0
- package/node_modules/zod/v4/locales/is.cjs +5 -0
- package/node_modules/zod/v4/locales/is.js +5 -0
- package/node_modules/zod/v4/locales/it.cjs +5 -0
- package/node_modules/zod/v4/locales/it.js +5 -0
- package/node_modules/zod/v4/locales/ja.cjs +5 -0
- package/node_modules/zod/v4/locales/ja.js +5 -0
- package/node_modules/zod/v4/locales/ka.cjs +5 -0
- package/node_modules/zod/v4/locales/ka.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +5 -0
- package/node_modules/zod/v4/locales/km.js +5 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +5 -0
- package/node_modules/zod/v4/locales/ko.js +5 -0
- package/node_modules/zod/v4/locales/lt.cjs +4 -0
- package/node_modules/zod/v4/locales/lt.js +4 -0
- package/node_modules/zod/v4/locales/mk.cjs +5 -0
- package/node_modules/zod/v4/locales/mk.js +5 -0
- package/node_modules/zod/v4/locales/ms.cjs +5 -0
- package/node_modules/zod/v4/locales/ms.js +5 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +5 -0
- package/node_modules/zod/v4/locales/nl.js +5 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +7 -2
- package/node_modules/zod/v4/locales/no.js +7 -2
- package/node_modules/zod/v4/locales/ota.cjs +5 -0
- package/node_modules/zod/v4/locales/ota.js +5 -0
- package/node_modules/zod/v4/locales/pl.cjs +5 -0
- package/node_modules/zod/v4/locales/pl.js +5 -0
- package/node_modules/zod/v4/locales/ps.cjs +5 -0
- package/node_modules/zod/v4/locales/ps.js +5 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +89 -55
- package/node_modules/zod/v4/locales/pt.js +89 -55
- package/node_modules/zod/v4/locales/ro.cjs +3 -0
- package/node_modules/zod/v4/locales/ro.js +3 -0
- package/node_modules/zod/v4/locales/ru.cjs +12 -0
- package/node_modules/zod/v4/locales/ru.js +12 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +5 -0
- package/node_modules/zod/v4/locales/sl.js +5 -0
- package/node_modules/zod/v4/locales/sv.cjs +7 -2
- package/node_modules/zod/v4/locales/sv.js +7 -2
- package/node_modules/zod/v4/locales/ta.cjs +5 -0
- package/node_modules/zod/v4/locales/ta.js +5 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +5 -0
- package/node_modules/zod/v4/locales/th.js +5 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +5 -0
- package/node_modules/zod/v4/locales/tr.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +5 -0
- package/node_modules/zod/v4/locales/uk.js +5 -0
- package/node_modules/zod/v4/locales/ur.cjs +5 -0
- package/node_modules/zod/v4/locales/ur.js +5 -0
- package/node_modules/zod/v4/locales/uz.cjs +3 -0
- package/node_modules/zod/v4/locales/uz.js +3 -0
- package/node_modules/zod/v4/locales/vi.cjs +5 -0
- package/node_modules/zod/v4/locales/vi.js +5 -0
- package/node_modules/zod/v4/locales/yo.cjs +5 -0
- package/node_modules/zod/v4/locales/yo.js +5 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-CN.js +5 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-TW.js +5 -0
- package/node_modules/zod/v4/mini/checks.cjs +21 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +33 -1
- package/node_modules/zod/v4/mini/external.d.cts +5 -2
- package/node_modules/zod/v4/mini/external.d.ts +5 -2
- package/node_modules/zod/v4/mini/external.js +3 -1
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +22 -1
- package/node_modules/zod/v4/mini/parse.d.cts +1 -1
- package/node_modules/zod/v4/mini/parse.d.ts +1 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +117 -53
- package/node_modules/zod/v4/mini/schemas.d.cts +49 -14
- package/node_modules/zod/v4/mini/schemas.d.ts +49 -14
- package/node_modules/zod/v4/mini/schemas.js +92 -51
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/package.json +14 -14
- package/node_modules/@zuplo/runtime/out/esm/chunk-DVFQRFED.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-FQIUJWH2.js +0 -105
- package/node_modules/@zuplo/runtime/out/esm/chunk-FQIUJWH2.js.map +0 -1
- package/node_modules/simple-git/dist/cjs/index.js +0 -4898
- package/node_modules/simple-git/dist/cjs/index.js.map +0 -7
- package/node_modules/simple-git/dist/esm/index.js +0 -4745
- package/node_modules/simple-git/dist/esm/index.js.map +0 -7
- package/node_modules/simple-git/dist/esm/package.json +0 -3
- package/node_modules/simple-git/dist/src/lib/responses/CheckIgnore.d.ts +0 -4
- package/node_modules/simple-git/dist/src/lib/runners/promise-wrapped.d.ts +0 -2
- package/node_modules/simple-git/dist/typings/errors.d.ts +0 -5
- package/node_modules/simple-git/dist/typings/index.d.ts +0 -14
- package/node_modules/simple-git/dist/typings/response.d.ts +0 -556
- package/node_modules/simple-git/dist/typings/simple-git.d.ts +0 -1033
- package/node_modules/simple-git/dist/typings/types.d.ts +0 -22
- package/node_modules/simple-git/promise.js +0 -17
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-DVFQRFED.js.LEGAL.txt → chunk-NWYAKCSU.js.LEGAL.txt} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-FQIUJWH2.js.LEGAL.txt → chunk-PXS4NOKU.js.LEGAL.txt} +0 -0
|
@@ -115,7 +115,8 @@ class Client extends DispatcherBase {
|
|
|
115
115
|
initialWindowSize,
|
|
116
116
|
connectionWindowSize,
|
|
117
117
|
pingInterval,
|
|
118
|
-
webSocket
|
|
118
|
+
webSocket,
|
|
119
|
+
eventSource
|
|
119
120
|
} = {}) {
|
|
120
121
|
if (keepAlive !== undefined) {
|
|
121
122
|
throw new InvalidArgumentError('unsupported keepAlive, use pipelining=0 instead')
|
|
@@ -223,7 +224,7 @@ class Client extends DispatcherBase {
|
|
|
223
224
|
throw new InvalidArgumentError('pingInterval must be a positive integer, greater or equal to 0')
|
|
224
225
|
}
|
|
225
226
|
|
|
226
|
-
super({ webSocket })
|
|
227
|
+
super({ webSocket, eventSource })
|
|
227
228
|
|
|
228
229
|
if (typeof connect !== 'function') {
|
|
229
230
|
connect = buildConnector({
|
|
@@ -374,7 +375,9 @@ class Client extends DispatcherBase {
|
|
|
374
375
|
const requests = this[kQueue].splice(this[kPendingIdx])
|
|
375
376
|
for (let i = 0; i < requests.length; i++) {
|
|
376
377
|
const request = requests[i]
|
|
377
|
-
|
|
378
|
+
if (request != null) {
|
|
379
|
+
util.errorRequest(this, request, err)
|
|
380
|
+
}
|
|
378
381
|
}
|
|
379
382
|
|
|
380
383
|
const callback = () => {
|
|
@@ -413,7 +416,9 @@ function onError (client, err) {
|
|
|
413
416
|
|
|
414
417
|
for (let i = 0; i < requests.length; i++) {
|
|
415
418
|
const request = requests[i]
|
|
416
|
-
|
|
419
|
+
if (request != null) {
|
|
420
|
+
util.errorRequest(client, request, err)
|
|
421
|
+
}
|
|
417
422
|
}
|
|
418
423
|
assert(client[kSize] === 0)
|
|
419
424
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const buffer = require('node:buffer')
|
|
3
4
|
const Dispatcher = require('./dispatcher')
|
|
4
5
|
const UnwrapHandler = require('../handler/unwrap-handler')
|
|
5
6
|
const {
|
|
@@ -12,6 +13,7 @@ const { kDestroy, kClose, kClosed, kDestroyed, kDispatch } = require('../core/sy
|
|
|
12
13
|
const kOnDestroyed = Symbol('onDestroyed')
|
|
13
14
|
const kOnClosed = Symbol('onClosed')
|
|
14
15
|
const kWebSocketOptions = Symbol('webSocketOptions')
|
|
16
|
+
const kEventSourceOptions = Symbol('eventSourceOptions')
|
|
15
17
|
|
|
16
18
|
class DispatcherBase extends Dispatcher {
|
|
17
19
|
/** @type {boolean} */
|
|
@@ -32,6 +34,7 @@ class DispatcherBase extends Dispatcher {
|
|
|
32
34
|
constructor (opts) {
|
|
33
35
|
super()
|
|
34
36
|
this[kWebSocketOptions] = opts?.webSocket ?? {}
|
|
37
|
+
this[kEventSourceOptions] = opts?.eventSource ?? {}
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
/**
|
|
@@ -44,6 +47,15 @@ class DispatcherBase extends Dispatcher {
|
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
|
|
50
|
+
/**
|
|
51
|
+
* @returns {import('../../types/client').Client.EventSourceOptions}
|
|
52
|
+
*/
|
|
53
|
+
get eventSourceOptions () {
|
|
54
|
+
return {
|
|
55
|
+
maxEventSize: this[kEventSourceOptions].maxEventSize ?? buffer.kStringMaxLength
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
/** @returns {boolean} */
|
|
48
60
|
get destroyed () {
|
|
49
61
|
return this[kDestroyed]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const util = require('../core/util')
|
|
4
|
+
const { kRedirectCacheControl } = require('../core/symbols')
|
|
4
5
|
const {
|
|
5
6
|
parseCacheControlHeader,
|
|
6
7
|
hasInvalidCacheControlDirective,
|
|
@@ -13,6 +14,19 @@ const { parseHttpDate } = require('../util/date.js')
|
|
|
13
14
|
|
|
14
15
|
function noop () {}
|
|
15
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @param {string | URL} a
|
|
19
|
+
* @param {string | URL} b
|
|
20
|
+
* @returns {boolean}
|
|
21
|
+
*/
|
|
22
|
+
function sameOrigin (a, b) {
|
|
23
|
+
try {
|
|
24
|
+
return new URL(String(a)).origin === new URL(String(b)).origin
|
|
25
|
+
} catch {
|
|
26
|
+
return String(a) === String(b)
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
16
30
|
// Status codes that we can use some heuristics on to cache
|
|
17
31
|
const HEURISTICALLY_CACHEABLE_STATUS_CODES = [
|
|
18
32
|
200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414, 501
|
|
@@ -151,6 +165,14 @@ class CacheHandler {
|
|
|
151
165
|
*/
|
|
152
166
|
#writeStream
|
|
153
167
|
|
|
168
|
+
/**
|
|
169
|
+
* The URLs visited while following redirects, shared by reference from the
|
|
170
|
+
* redirect handler through the request context. Carries the suppressed hops'
|
|
171
|
+
* cache-control under {@link kRedirectCacheControl}.
|
|
172
|
+
* @type {URL[] | undefined}
|
|
173
|
+
*/
|
|
174
|
+
#history
|
|
175
|
+
|
|
154
176
|
/**
|
|
155
177
|
* @param {import('../../types/cache-interceptor.d.ts').default.CacheHandlerOptions} opts
|
|
156
178
|
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} cacheKey
|
|
@@ -167,6 +189,9 @@ class CacheHandler {
|
|
|
167
189
|
onRequestStart (controller, context) {
|
|
168
190
|
this.#writeStream?.destroy()
|
|
169
191
|
this.#writeStream = undefined
|
|
192
|
+
// The redirect handler mutates this shared history as redirects are
|
|
193
|
+
// followed, allowing the cache to identify the response's actual origin.
|
|
194
|
+
this.#history = context?.history
|
|
170
195
|
this.#handler.onRequestStart?.(controller, context)
|
|
171
196
|
}
|
|
172
197
|
|
|
@@ -206,7 +231,37 @@ class CacheHandler {
|
|
|
206
231
|
return downstreamOnHeaders()
|
|
207
232
|
}
|
|
208
233
|
|
|
234
|
+
// Never store a response produced by a different origin under the original
|
|
235
|
+
// request's cache key.
|
|
236
|
+
if (this.#history && this.#history.length > 0) {
|
|
237
|
+
const finalUrl = this.#history[this.#history.length - 1]
|
|
238
|
+
if (!sameOrigin(finalUrl.origin, this.#cacheKey.origin)) {
|
|
239
|
+
return downstreamOnHeaders()
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// Preserve restrictive cache policy from suppressed redirect responses.
|
|
244
|
+
const redirectCacheControl = this.#history?.[kRedirectCacheControl]
|
|
245
|
+
if (redirectCacheControl) {
|
|
246
|
+
for (const hopCacheControl of redirectCacheControl) {
|
|
247
|
+
const hopDirectives = hopCacheControl ? parseCacheControlHeader(hopCacheControl) : {}
|
|
248
|
+
if (
|
|
249
|
+
hopDirectives['no-store'] === true ||
|
|
250
|
+
(this.#cacheType === 'shared' && hopDirectives.private === true)
|
|
251
|
+
) {
|
|
252
|
+
return downstreamOnHeaders()
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
209
257
|
const cacheControlHeader = resHeaders['cache-control']
|
|
258
|
+
const cacheControlDirectives = cacheControlHeader ? parseCacheControlHeader(cacheControlHeader) : {}
|
|
259
|
+
|
|
260
|
+
if (revalidationResponseDisallowsCachedReuse(this.#cacheType, resHeaders, cacheControlDirectives)) {
|
|
261
|
+
deleteCachedValue(this.#store, this.#cacheKey)
|
|
262
|
+
return downstreamOnHeaders()
|
|
263
|
+
}
|
|
264
|
+
|
|
210
265
|
const heuristicallyCacheable = resHeaders['last-modified'] && arrayIncludes(HEURISTICALLY_CACHEABLE_STATUS_CODES, statusCode)
|
|
211
266
|
if (
|
|
212
267
|
!cacheControlHeader &&
|
|
@@ -223,8 +278,7 @@ class CacheHandler {
|
|
|
223
278
|
return downstreamOnHeaders()
|
|
224
279
|
}
|
|
225
280
|
|
|
226
|
-
|
|
227
|
-
if (!canCacheResponse(this.#cacheType, statusCode, resHeaders, cacheControlDirectives, this.#cacheKey.headers)) {
|
|
281
|
+
if (!canCacheResponse(this.#cacheType, this.#cacheKey.method, statusCode, resHeaders, cacheControlDirectives, this.#cacheKey.headers)) {
|
|
228
282
|
if (statusCode === 304 && (cacheControlHeader || revalidationResponseDisallowsCachedReuse(this.#cacheType, resHeaders, cacheControlDirectives))) {
|
|
229
283
|
deleteCachedValue(this.#store, this.#cacheKey)
|
|
230
284
|
}
|
|
@@ -465,7 +519,10 @@ function deleteCachedValueIfNotModified (statusCode, store, cacheKey) {
|
|
|
465
519
|
*/
|
|
466
520
|
function revalidationResponseDisallowsCachedReuse (cacheType, resHeaders, cacheControlDirectives) {
|
|
467
521
|
return cacheControlDirectives['no-store'] === true ||
|
|
468
|
-
(cacheType === 'shared' &&
|
|
522
|
+
(cacheType === 'shared' && (
|
|
523
|
+
cacheControlDirectives.private === true ||
|
|
524
|
+
Object.hasOwn(resHeaders, 'set-cookie')
|
|
525
|
+
)) ||
|
|
469
526
|
(resHeaders.vary ? isInvalidOrWildcardVaryHeader(resHeaders.vary) : false)
|
|
470
527
|
}
|
|
471
528
|
|
|
@@ -473,12 +530,16 @@ function revalidationResponseDisallowsCachedReuse (cacheType, resHeaders, cacheC
|
|
|
473
530
|
* @see https://www.rfc-editor.org/rfc/rfc9111.html#name-storing-responses-to-authen
|
|
474
531
|
*
|
|
475
532
|
* @param {import('../../types/cache-interceptor.d.ts').default.CacheOptions['type']} cacheType
|
|
533
|
+
* @param {string} method
|
|
476
534
|
* @param {number} statusCode
|
|
477
535
|
* @param {import('../../types/header.d.ts').IncomingHttpHeaders} resHeaders
|
|
478
536
|
* @param {import('../../types/cache-interceptor.d.ts').default.CacheControlDirectives} cacheControlDirectives
|
|
479
537
|
* @param {import('../../types/header.d.ts').IncomingHttpHeaders} [reqHeaders]
|
|
480
538
|
*/
|
|
481
|
-
function canCacheResponse (cacheType, statusCode, resHeaders, cacheControlDirectives, reqHeaders) {
|
|
539
|
+
function canCacheResponse (cacheType, method, statusCode, resHeaders, cacheControlDirectives, reqHeaders) {
|
|
540
|
+
if (!arrayIncludes(util.safeHTTPMethods, method)) {
|
|
541
|
+
return false
|
|
542
|
+
}
|
|
482
543
|
// Status code must be final and understood.
|
|
483
544
|
if (statusCode < 200 || arrayIncludes(NOT_UNDERSTOOD_STATUS_CODES, statusCode)) {
|
|
484
545
|
return false
|
|
@@ -499,7 +560,10 @@ function canCacheResponse (cacheType, statusCode, resHeaders, cacheControlDirect
|
|
|
499
560
|
return false
|
|
500
561
|
}
|
|
501
562
|
|
|
502
|
-
if (cacheType === 'shared' &&
|
|
563
|
+
if (cacheType === 'shared' && (
|
|
564
|
+
cacheControlDirectives.private === true ||
|
|
565
|
+
Object.hasOwn(resHeaders, 'set-cookie')
|
|
566
|
+
)) {
|
|
503
567
|
return false
|
|
504
568
|
}
|
|
505
569
|
|
|
@@ -16,6 +16,7 @@ const DEFAULT_MAX_BUFFER_SIZE = 5 * 1024 * 1024
|
|
|
16
16
|
* @property {number} bufferedBytes
|
|
17
17
|
* @property {object | null} pendingTrailers
|
|
18
18
|
* @property {boolean} done
|
|
19
|
+
* @property {boolean} [pendingStart] onRequestStart deferred until the primary request's context is known
|
|
19
20
|
*/
|
|
20
21
|
|
|
21
22
|
/**
|
|
@@ -30,6 +31,20 @@ class DeduplicationHandler {
|
|
|
30
31
|
*/
|
|
31
32
|
#primaryHandler
|
|
32
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Whether the primary request has started (onRequestStart received). Until
|
|
36
|
+
* then the request context is unknown and cannot be given to waiting handlers.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
*/
|
|
39
|
+
#requestStarted = false
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The primary request context, replayed to waiting handlers so they observe
|
|
43
|
+
* the same redirect history as the primary.
|
|
44
|
+
* @type {any}
|
|
45
|
+
*/
|
|
46
|
+
#context = null
|
|
47
|
+
|
|
33
48
|
/**
|
|
34
49
|
* @type {WaitingHandler[]}
|
|
35
50
|
*/
|
|
@@ -112,20 +127,30 @@ class DeduplicationHandler {
|
|
|
112
127
|
const waitingController = waitingHandler.controller
|
|
113
128
|
|
|
114
129
|
try {
|
|
115
|
-
|
|
130
|
+
if (this.#requestStarted) {
|
|
131
|
+
// The primary request has started, so its context (including the
|
|
132
|
+
// redirect history) is known and can be delivered immediately.
|
|
133
|
+
handler.onRequestStart?.(waitingController, this.#context)
|
|
116
134
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
135
|
+
if (waitingController.aborted) {
|
|
136
|
+
waitingHandler.done = true
|
|
137
|
+
return true
|
|
138
|
+
}
|
|
121
139
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
140
|
+
if (this.#responseStarted) {
|
|
141
|
+
handler.onResponseStart?.(
|
|
142
|
+
waitingController,
|
|
143
|
+
this.#statusCode,
|
|
144
|
+
this.#headers,
|
|
145
|
+
this.#statusMessage
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
} else {
|
|
149
|
+
// The primary request has not started yet. Defer onRequestStart until
|
|
150
|
+
// its context is known, so the waiting handler observes the same
|
|
151
|
+
// redirect history as the primary (a cache handler relies on it to
|
|
152
|
+
// reject cross-origin redirect responses).
|
|
153
|
+
waitingHandler.pendingStart = true
|
|
129
154
|
}
|
|
130
155
|
} catch {
|
|
131
156
|
// Ignore errors from waiting handlers
|
|
@@ -146,6 +171,24 @@ class DeduplicationHandler {
|
|
|
146
171
|
*/
|
|
147
172
|
onRequestStart (controller, context) {
|
|
148
173
|
this.#controller = controller
|
|
174
|
+
if (!this.#requestStarted) {
|
|
175
|
+
this.#requestStarted = true
|
|
176
|
+
this.#context = context
|
|
177
|
+
// Deliver the now-known context to handlers that joined before the
|
|
178
|
+
// primary request started.
|
|
179
|
+
for (const waitingHandler of this.#waitingHandlers) {
|
|
180
|
+
if (waitingHandler.pendingStart && !waitingHandler.done && !waitingHandler.controller.aborted) {
|
|
181
|
+
waitingHandler.pendingStart = false
|
|
182
|
+
try {
|
|
183
|
+
waitingHandler.handler.onRequestStart?.(waitingHandler.controller, context)
|
|
184
|
+
} catch {
|
|
185
|
+
// Ignore errors from waiting handlers
|
|
186
|
+
waitingHandler.done = true
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
this.#pruneDoneWaitingHandlers()
|
|
191
|
+
}
|
|
149
192
|
this.#primaryHandler.onRequestStart?.(controller, context)
|
|
150
193
|
}
|
|
151
194
|
|
|
@@ -319,7 +362,8 @@ class DeduplicationHandler {
|
|
|
319
362
|
bufferedChunks: [],
|
|
320
363
|
bufferedBytes: 0,
|
|
321
364
|
pendingTrailers: null,
|
|
322
|
-
done: false
|
|
365
|
+
done: false,
|
|
366
|
+
pendingStart: false
|
|
323
367
|
}
|
|
324
368
|
|
|
325
369
|
const state = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const util = require('../core/util')
|
|
4
|
-
const { kBodyUsed } = require('../core/symbols')
|
|
4
|
+
const { kBodyUsed, kRedirectCacheControl } = require('../core/symbols')
|
|
5
5
|
const assert = require('node:assert')
|
|
6
6
|
const { InvalidArgumentError } = require('../core/errors')
|
|
7
7
|
const EE = require('node:events')
|
|
@@ -47,6 +47,11 @@ class RedirectHandler {
|
|
|
47
47
|
this.maxRedirections = maxRedirections
|
|
48
48
|
this.handler = handler
|
|
49
49
|
this.history = []
|
|
50
|
+
// Retain cache-control from suppressed redirect hops for an outer cache.
|
|
51
|
+
Object.defineProperty(this.history, kRedirectCacheControl, {
|
|
52
|
+
value: [],
|
|
53
|
+
enumerable: false
|
|
54
|
+
})
|
|
50
55
|
|
|
51
56
|
if (util.isStream(this.opts.body)) {
|
|
52
57
|
// TODO (fix): Provide some way for the user to cache the file to e.g. /tmp
|
|
@@ -130,6 +135,8 @@ class RedirectHandler {
|
|
|
130
135
|
return
|
|
131
136
|
}
|
|
132
137
|
|
|
138
|
+
this.history[kRedirectCacheControl].push(headers['cache-control'])
|
|
139
|
+
|
|
133
140
|
const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)))
|
|
134
141
|
const path = search ? `${pathname}${search}` : pathname
|
|
135
142
|
|
|
@@ -35,6 +35,55 @@ function validatePartialResponseContentLength (headers, range, statusCode, retry
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
// A stable controller handed to the downstream handler for the lifetime of the
|
|
39
|
+
// request. Each transparent retry/resume is a separate dispatch with its own
|
|
40
|
+
// connection controller. The proxy always forwards to the active connection
|
|
41
|
+
// while preserving a downstream pause across controller replacement.
|
|
42
|
+
class RetryController {
|
|
43
|
+
#paused = false
|
|
44
|
+
#target = null
|
|
45
|
+
|
|
46
|
+
set target (target) {
|
|
47
|
+
this.#target = target
|
|
48
|
+
if (this.#paused) {
|
|
49
|
+
target?.pause()
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
get target () { return this.#target }
|
|
54
|
+
|
|
55
|
+
pause () {
|
|
56
|
+
this.#paused = true
|
|
57
|
+
this.#target?.pause()
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
resume () {
|
|
61
|
+
this.#paused = false
|
|
62
|
+
this.#target?.resume()
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
abort (reason) {
|
|
66
|
+
this.#target?.abort(reason)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
get paused () { return this.#paused || (this.#target?.paused ?? false) }
|
|
70
|
+
get aborted () { return this.#target?.aborted ?? false }
|
|
71
|
+
get reason () { return this.#target?.reason ?? null }
|
|
72
|
+
get rawHeaders () { return this.#target?.rawHeaders ?? null }
|
|
73
|
+
set rawHeaders (value) {
|
|
74
|
+
if (this.#target) {
|
|
75
|
+
this.#target.rawHeaders = value
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
get rawTrailers () { return this.#target?.rawTrailers ?? null }
|
|
80
|
+
set rawTrailers (value) {
|
|
81
|
+
if (this.#target) {
|
|
82
|
+
this.#target.rawTrailers = value
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
38
87
|
class RetryHandler {
|
|
39
88
|
constructor (opts, { dispatch, handler }) {
|
|
40
89
|
const { retryOptions, ...dispatchOpts } = opts
|
|
@@ -89,14 +138,23 @@ class RetryHandler {
|
|
|
89
138
|
this.start = 0
|
|
90
139
|
this.end = null
|
|
91
140
|
this.etag = null
|
|
141
|
+
this.controllerProxy = new RetryController()
|
|
92
142
|
}
|
|
93
143
|
|
|
94
144
|
onResponseStartWithRetry (controller, statusCode, headers, statusMessage, err) {
|
|
95
145
|
if (this.retryOpts.throwOnError) {
|
|
96
146
|
// Preserve old behavior for status codes that are not eligible for retry
|
|
97
147
|
if (this.retryOpts.statusCodes.includes(statusCode) === false) {
|
|
98
|
-
this.headersSent
|
|
99
|
-
|
|
148
|
+
if (this.headersSent) {
|
|
149
|
+
// The downstream handler already received the response from an
|
|
150
|
+
// earlier attempt. Forwarding this response would replace the
|
|
151
|
+
// downstream body and leave the original body pending forever.
|
|
152
|
+
this.handler.onResponseError?.(this.controllerProxy, err)
|
|
153
|
+
} else {
|
|
154
|
+
this.headersSent = true
|
|
155
|
+
this.checkpointResponseEnd(headers)
|
|
156
|
+
this.handler.onResponseStart?.(this.controllerProxy, statusCode, headers, statusMessage)
|
|
157
|
+
}
|
|
100
158
|
} else {
|
|
101
159
|
this.error = err
|
|
102
160
|
}
|
|
@@ -106,14 +164,23 @@ class RetryHandler {
|
|
|
106
164
|
|
|
107
165
|
if (isDisturbed(this.opts.body)) {
|
|
108
166
|
this.headersSent = true
|
|
109
|
-
this.
|
|
167
|
+
this.checkpointResponseEnd(headers)
|
|
168
|
+
this.handler.onResponseStart?.(this.controllerProxy, statusCode, headers, statusMessage)
|
|
110
169
|
return
|
|
111
170
|
}
|
|
112
171
|
|
|
113
172
|
function shouldRetry (passedErr) {
|
|
114
173
|
if (passedErr) {
|
|
115
|
-
this.headersSent
|
|
116
|
-
|
|
174
|
+
if (this.headersSent) {
|
|
175
|
+
// The downstream handler already received the response from an
|
|
176
|
+
// earlier attempt. Forwarding this response would replace the
|
|
177
|
+
// downstream body and leave the original body pending forever.
|
|
178
|
+
this.handler.onResponseError?.(this.controllerProxy, passedErr)
|
|
179
|
+
} else {
|
|
180
|
+
this.headersSent = true
|
|
181
|
+
this.checkpointResponseEnd(headers)
|
|
182
|
+
this.handler.onResponseStart?.(this.controllerProxy, statusCode, headers, statusMessage)
|
|
183
|
+
}
|
|
117
184
|
controller.resume()
|
|
118
185
|
return
|
|
119
186
|
}
|
|
@@ -133,14 +200,29 @@ class RetryHandler {
|
|
|
133
200
|
)
|
|
134
201
|
}
|
|
135
202
|
|
|
203
|
+
checkpointResponseEnd (headers) {
|
|
204
|
+
if (this.end == null && this.opts.method !== 'HEAD') {
|
|
205
|
+
const contentLength = headers['content-length']
|
|
206
|
+
this.end = contentLength != null ? Number(contentLength) - 1 : null
|
|
207
|
+
|
|
208
|
+
assert(
|
|
209
|
+
this.end == null || Number.isFinite(this.end),
|
|
210
|
+
'invalid content-length'
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
this.resume = this.end != null
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
136
217
|
onRequestStart (controller, context) {
|
|
218
|
+
this.controllerProxy.target = controller
|
|
137
219
|
if (!this.headersSent) {
|
|
138
|
-
this.handler.onRequestStart?.(
|
|
220
|
+
this.handler.onRequestStart?.(this.controllerProxy, context)
|
|
139
221
|
}
|
|
140
222
|
}
|
|
141
223
|
|
|
142
|
-
onRequestUpgrade (
|
|
143
|
-
this.handler.onRequestUpgrade?.(
|
|
224
|
+
onRequestUpgrade (_controller, statusCode, headers, socket) {
|
|
225
|
+
this.handler.onRequestUpgrade?.(this.controllerProxy, statusCode, headers, socket)
|
|
144
226
|
}
|
|
145
227
|
|
|
146
228
|
static [kRetryHandlerDefaultRetry] (err, { state, opts }, cb) {
|
|
@@ -253,8 +335,12 @@ class RetryHandler {
|
|
|
253
335
|
|
|
254
336
|
const { start, size, end = size ? size - 1 : null } = contentRange
|
|
255
337
|
|
|
256
|
-
|
|
257
|
-
|
|
338
|
+
if (this.start !== start || (this.end != null && this.end !== end)) {
|
|
339
|
+
throw new RequestRetryError('Content-Range mismatch', statusCode, {
|
|
340
|
+
headers,
|
|
341
|
+
data: { count: this.retryCount }
|
|
342
|
+
})
|
|
343
|
+
}
|
|
258
344
|
|
|
259
345
|
return
|
|
260
346
|
}
|
|
@@ -267,7 +353,7 @@ class RetryHandler {
|
|
|
267
353
|
if (range == null) {
|
|
268
354
|
this.headersSent = true
|
|
269
355
|
this.handler.onResponseStart?.(
|
|
270
|
-
|
|
356
|
+
this.controllerProxy,
|
|
271
357
|
statusCode,
|
|
272
358
|
headers,
|
|
273
359
|
statusMessage
|
|
@@ -316,7 +402,7 @@ class RetryHandler {
|
|
|
316
402
|
|
|
317
403
|
this.headersSent = true
|
|
318
404
|
this.handler.onResponseStart?.(
|
|
319
|
-
|
|
405
|
+
this.controllerProxy,
|
|
320
406
|
statusCode,
|
|
321
407
|
headers,
|
|
322
408
|
statusMessage
|
|
@@ -329,30 +415,30 @@ class RetryHandler {
|
|
|
329
415
|
}
|
|
330
416
|
}
|
|
331
417
|
|
|
332
|
-
onResponseData (
|
|
418
|
+
onResponseData (_controller, chunk) {
|
|
333
419
|
if (this.error) {
|
|
334
420
|
return
|
|
335
421
|
}
|
|
336
422
|
|
|
337
423
|
this.start += chunk.length
|
|
338
424
|
|
|
339
|
-
this.handler.onResponseData?.(
|
|
425
|
+
this.handler.onResponseData?.(this.controllerProxy, chunk)
|
|
340
426
|
}
|
|
341
427
|
|
|
342
|
-
onResponseEnd (
|
|
428
|
+
onResponseEnd (_controller, trailers) {
|
|
343
429
|
if (this.error && this.retryOpts.throwOnError) {
|
|
344
430
|
throw this.error
|
|
345
431
|
}
|
|
346
432
|
|
|
347
433
|
if (!this.error) {
|
|
348
434
|
this.retryCount = 0
|
|
349
|
-
return this.handler.onResponseEnd?.(
|
|
435
|
+
return this.handler.onResponseEnd?.(this.controllerProxy, trailers)
|
|
350
436
|
}
|
|
351
437
|
|
|
352
|
-
this.retry(
|
|
438
|
+
this.retry()
|
|
353
439
|
}
|
|
354
440
|
|
|
355
|
-
retry (
|
|
441
|
+
retry () {
|
|
356
442
|
if (this.start !== 0) {
|
|
357
443
|
const headers = { range: `bytes=${this.start}-${this.end ?? ''}` }
|
|
358
444
|
|
|
@@ -374,23 +460,23 @@ class RetryHandler {
|
|
|
374
460
|
this.retryCountCheckpoint = this.retryCount
|
|
375
461
|
this.dispatch(this.opts, this)
|
|
376
462
|
} catch (err) {
|
|
377
|
-
this.handler.onResponseError?.(
|
|
463
|
+
this.handler.onResponseError?.(this.controllerProxy, err)
|
|
378
464
|
}
|
|
379
465
|
}
|
|
380
466
|
|
|
381
467
|
onResponseError (controller, err) {
|
|
382
|
-
if (controller?.aborted || isDisturbed(this.opts.body)) {
|
|
383
|
-
this.handler.onResponseError?.(
|
|
468
|
+
if (controller?.aborted || isDisturbed(this.opts.body) || (this.headersSent && !this.resume)) {
|
|
469
|
+
this.handler.onResponseError?.(this.controllerProxy, err)
|
|
384
470
|
return
|
|
385
471
|
}
|
|
386
472
|
|
|
387
473
|
function shouldRetry (returnedErr) {
|
|
388
474
|
if (!returnedErr) {
|
|
389
|
-
this.retry(
|
|
475
|
+
this.retry()
|
|
390
476
|
return
|
|
391
477
|
}
|
|
392
478
|
|
|
393
|
-
this.handler?.onResponseError?.(
|
|
479
|
+
this.handler?.onResponseError?.(this.controllerProxy, returnedErr)
|
|
394
480
|
}
|
|
395
481
|
|
|
396
482
|
// We reconcile in case of a mix between network errors
|
|
@@ -117,7 +117,10 @@ function staleResponseRequiresRevalidation (result, cacheType) {
|
|
|
117
117
|
* @returns {boolean}
|
|
118
118
|
*/
|
|
119
119
|
function revalidationResponseDisallowsCachedReuse (cacheType, headers) {
|
|
120
|
-
if (
|
|
120
|
+
if (
|
|
121
|
+
(headers.vary && isInvalidOrWildcardVaryHeader(headers.vary)) ||
|
|
122
|
+
(cacheType === 'shared' && Object.hasOwn(headers, 'set-cookie'))
|
|
123
|
+
) {
|
|
121
124
|
return true
|
|
122
125
|
}
|
|
123
126
|
|
|
@@ -376,6 +379,17 @@ function handleResult (
|
|
|
376
379
|
return handleUncachedResponse(dispatch, globalOpts, cacheKey, handler, opts, reqCacheControl)
|
|
377
380
|
}
|
|
378
381
|
|
|
382
|
+
// Shared stores may outlive the Undici version that wrote them. Do not
|
|
383
|
+
// re-serve a Set-Cookie header from an existing shared-cache entry.
|
|
384
|
+
if (globalOpts.type === 'shared' && Object.hasOwn(result.headers, 'set-cookie')) {
|
|
385
|
+
if (util.isStream(result.body)) {
|
|
386
|
+
result.body.on('error', nop).destroy()
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
deleteCachedValue(globalOpts.store, cacheKey)
|
|
390
|
+
return handleUncachedResponse(dispatch, globalOpts, cacheKey, handler, opts, reqCacheControl)
|
|
391
|
+
}
|
|
392
|
+
|
|
379
393
|
const now = Date.now()
|
|
380
394
|
if (now > result.deleteAt) {
|
|
381
395
|
// Response is expired, cache store shouldn't have given this to us
|
|
@@ -574,6 +588,11 @@ module.exports = (opts = {}) => {
|
|
|
574
588
|
* @type {import('../../types/cache-interceptor.d.ts').default.CacheKey}
|
|
575
589
|
*/
|
|
576
590
|
const cacheKey = makeCacheKey(opts)
|
|
591
|
+
|
|
592
|
+
if (!arrayIncludes(util.safeHTTPMethods, opts.method)) {
|
|
593
|
+
return dispatch(opts, new CacheHandler(globalOpts, cacheKey, handler))
|
|
594
|
+
}
|
|
595
|
+
|
|
577
596
|
const result = store.get(cacheKey)
|
|
578
597
|
|
|
579
598
|
if (result && typeof result.then === 'function') {
|