@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
'use strict'
|
|
2
|
+
const buffer = require('node:buffer')
|
|
2
3
|
const { Transform } = require('node:stream')
|
|
3
4
|
const { isASCIINumber, isValidLastEventId } = require('./util')
|
|
4
5
|
|
|
@@ -23,6 +24,63 @@ const COLON = 0x3A
|
|
|
23
24
|
*/
|
|
24
25
|
const SPACE = 0x20
|
|
25
26
|
|
|
27
|
+
const defaultMaxEventSize = buffer.kStringMaxLength
|
|
28
|
+
|
|
29
|
+
const DATA = Buffer.from('data')
|
|
30
|
+
const EVENT = Buffer.from('event')
|
|
31
|
+
const ID = Buffer.from('id')
|
|
32
|
+
const RETRY = Buffer.from('retry')
|
|
33
|
+
|
|
34
|
+
// Each data field creates a string node, and each unconsumed input chunk keeps
|
|
35
|
+
// a Buffer wrapper. The absolute ceiling protects the large default byte limit.
|
|
36
|
+
const minParserItems = 1024
|
|
37
|
+
const maxParserItems = 131072
|
|
38
|
+
const bytesPerParserItem = 128
|
|
39
|
+
|
|
40
|
+
function isASCIINumberBytes (buffer, start) {
|
|
41
|
+
if (start >= buffer.length) {
|
|
42
|
+
return false
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
for (let i = start; i < buffer.length; i++) {
|
|
46
|
+
if (buffer[i] < 0x30 || buffer[i] > 0x39) {
|
|
47
|
+
return false
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return true
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function isValidLastEventIdBytes (buffer, start) {
|
|
55
|
+
for (let i = start; i < buffer.length; i++) {
|
|
56
|
+
if (buffer[i] === 0x00) {
|
|
57
|
+
return false
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return true
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function isFieldName (line, length, field) {
|
|
65
|
+
if (length !== field.length) {
|
|
66
|
+
return false
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
for (let i = 0; i < length; i++) {
|
|
70
|
+
if (line[i] !== field[i]) {
|
|
71
|
+
return false
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return true
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function createMaxEventSizeExceededError () {
|
|
79
|
+
const error = new Error('EventSource message size exceeded')
|
|
80
|
+
error.aborted = false
|
|
81
|
+
return error
|
|
82
|
+
}
|
|
83
|
+
|
|
26
84
|
/**
|
|
27
85
|
* @typedef {object} EventSourceStreamEvent
|
|
28
86
|
* @type {object}
|
|
@@ -63,11 +121,21 @@ class EventSourceStream extends Transform {
|
|
|
63
121
|
eventEndCheck = false
|
|
64
122
|
|
|
65
123
|
/**
|
|
66
|
-
* @type {Buffer
|
|
124
|
+
* @type {Buffer[]}
|
|
67
125
|
*/
|
|
68
|
-
|
|
126
|
+
chunks = []
|
|
69
127
|
|
|
128
|
+
chunkIndex = 0
|
|
70
129
|
pos = 0
|
|
130
|
+
lineChunkIndex = 0
|
|
131
|
+
linePos = 0
|
|
132
|
+
lineLength = 0
|
|
133
|
+
eventSize = 0
|
|
134
|
+
eventFieldSizes = { data: 0, event: 0, id: 0, retry: 0 }
|
|
135
|
+
dataLineCount = 0
|
|
136
|
+
maxEventSize
|
|
137
|
+
maxDataLines
|
|
138
|
+
maxBufferedChunks
|
|
71
139
|
|
|
72
140
|
event = {
|
|
73
141
|
data: undefined,
|
|
@@ -79,6 +147,7 @@ class EventSourceStream extends Transform {
|
|
|
79
147
|
/**
|
|
80
148
|
* @param {object} options
|
|
81
149
|
* @param {boolean} [options.readableObjectMode]
|
|
150
|
+
* @param {number} [options.maxEventSize]
|
|
82
151
|
* @param {eventSourceSettings} [options.eventSourceSettings]
|
|
83
152
|
* @param {(chunk: any, encoding?: BufferEncoding | undefined) => boolean} [options.push]
|
|
84
153
|
*/
|
|
@@ -90,6 +159,12 @@ class EventSourceStream extends Transform {
|
|
|
90
159
|
super(options)
|
|
91
160
|
|
|
92
161
|
this.state = options.eventSourceSettings || {}
|
|
162
|
+
this.maxEventSize = options.maxEventSize ?? defaultMaxEventSize
|
|
163
|
+
const parserItemLimit = this.maxEventSize > 0
|
|
164
|
+
? Math.min(maxParserItems, Math.max(minParserItems, Math.floor(this.maxEventSize / bytesPerParserItem)))
|
|
165
|
+
: 0
|
|
166
|
+
this.maxDataLines = parserItemLimit
|
|
167
|
+
this.maxBufferedChunks = parserItemLimit
|
|
93
168
|
if (options.push) {
|
|
94
169
|
this.push = options.push
|
|
95
170
|
}
|
|
@@ -107,92 +182,28 @@ class EventSourceStream extends Transform {
|
|
|
107
182
|
return
|
|
108
183
|
}
|
|
109
184
|
|
|
110
|
-
//
|
|
111
|
-
//
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
} else {
|
|
118
|
-
this.buffer = chunk
|
|
185
|
+
// A leading line ending can immediately release the currently buffered
|
|
186
|
+
// line, even when it uses the final allowed chunk slot.
|
|
187
|
+
if (this.maxEventSize > 0 &&
|
|
188
|
+
this.chunks.length >= this.maxBufferedChunks &&
|
|
189
|
+
chunk[0] !== LF && chunk[0] !== CR) {
|
|
190
|
+
callback(createMaxEventSizeExceededError())
|
|
191
|
+
return
|
|
119
192
|
}
|
|
193
|
+
this.chunks.push(chunk)
|
|
120
194
|
|
|
121
195
|
// Strip leading byte-order-mark if we opened the stream and started
|
|
122
196
|
// the processing of the incoming data
|
|
123
197
|
if (this.checkBOM) {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (this.buffer[0] === BOM[0]) {
|
|
128
|
-
// If it is, we need to wait for more data
|
|
129
|
-
callback()
|
|
130
|
-
return
|
|
131
|
-
}
|
|
132
|
-
// Set the checkBOM flag to false as we don't need to check for the
|
|
133
|
-
// BOM anymore
|
|
134
|
-
this.checkBOM = false
|
|
135
|
-
|
|
136
|
-
// The buffer only contains one byte so we need to wait for more data
|
|
137
|
-
callback()
|
|
138
|
-
return
|
|
139
|
-
case 2:
|
|
140
|
-
// Check if the first two bytes are the same as the first two bytes
|
|
141
|
-
// of the BOM
|
|
142
|
-
if (
|
|
143
|
-
this.buffer[0] === BOM[0] &&
|
|
144
|
-
this.buffer[1] === BOM[1]
|
|
145
|
-
) {
|
|
146
|
-
// If it is, we need to wait for more data, because the third byte
|
|
147
|
-
// is needed to determine if it is the BOM or not
|
|
148
|
-
callback()
|
|
149
|
-
return
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// Set the checkBOM flag to false as we don't need to check for the
|
|
153
|
-
// BOM anymore
|
|
154
|
-
this.checkBOM = false
|
|
155
|
-
break
|
|
156
|
-
case 3:
|
|
157
|
-
// Check if the first three bytes are the same as the first three
|
|
158
|
-
// bytes of the BOM
|
|
159
|
-
if (
|
|
160
|
-
this.buffer[0] === BOM[0] &&
|
|
161
|
-
this.buffer[1] === BOM[1] &&
|
|
162
|
-
this.buffer[2] === BOM[2]
|
|
163
|
-
) {
|
|
164
|
-
// If it is, we can drop the buffered data, as it is only the BOM
|
|
165
|
-
this.buffer = Buffer.alloc(0)
|
|
166
|
-
// Set the checkBOM flag to false as we don't need to check for the
|
|
167
|
-
// BOM anymore
|
|
168
|
-
this.checkBOM = false
|
|
169
|
-
|
|
170
|
-
// Await more data
|
|
171
|
-
callback()
|
|
172
|
-
return
|
|
173
|
-
}
|
|
174
|
-
// If it is not the BOM, we can start processing the data
|
|
175
|
-
this.checkBOM = false
|
|
176
|
-
break
|
|
177
|
-
default:
|
|
178
|
-
// The buffer is longer than 3 bytes, so we can drop the BOM if it is
|
|
179
|
-
// present
|
|
180
|
-
if (
|
|
181
|
-
this.buffer[0] === BOM[0] &&
|
|
182
|
-
this.buffer[1] === BOM[1] &&
|
|
183
|
-
this.buffer[2] === BOM[2]
|
|
184
|
-
) {
|
|
185
|
-
// Remove the BOM from the buffer
|
|
186
|
-
this.buffer = this.buffer.subarray(3)
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// Set the checkBOM flag to false as we don't need to check for the
|
|
190
|
-
this.checkBOM = false
|
|
191
|
-
break
|
|
198
|
+
if (this.handleBOM()) {
|
|
199
|
+
callback()
|
|
200
|
+
return
|
|
192
201
|
}
|
|
193
202
|
}
|
|
194
203
|
|
|
195
|
-
while (this.
|
|
204
|
+
while (this.hasCurrentByte()) {
|
|
205
|
+
const byte = this.currentByte()
|
|
206
|
+
|
|
196
207
|
// If the previous line ended with an end-of-line, we need to check
|
|
197
208
|
// if the next character is also an end-of-line.
|
|
198
209
|
if (this.eventEndCheck) {
|
|
@@ -205,10 +216,9 @@ class EventSourceStream extends Transform {
|
|
|
205
216
|
if (this.crlfCheck) {
|
|
206
217
|
// If the current character is a line feed, we can remove it
|
|
207
218
|
// from the buffer and reset the crlfCheck flag
|
|
208
|
-
if (
|
|
209
|
-
this.buffer = this.buffer.subarray(this.pos + 1)
|
|
210
|
-
this.pos = 0
|
|
219
|
+
if (byte === LF) {
|
|
211
220
|
this.crlfCheck = false
|
|
221
|
+
this.consumeCurrentByte()
|
|
212
222
|
|
|
213
223
|
// It is possible that the line feed is not the end of the
|
|
214
224
|
// event. We need to check if the next character is an
|
|
@@ -224,19 +234,17 @@ class EventSourceStream extends Transform {
|
|
|
224
234
|
this.crlfCheck = false
|
|
225
235
|
}
|
|
226
236
|
|
|
227
|
-
if (
|
|
237
|
+
if (byte === LF || byte === CR) {
|
|
228
238
|
// If the current character is a carriage return, we need to
|
|
229
239
|
// set the crlfCheck flag to true, as we need to check if the
|
|
230
240
|
// next character is a line feed so we can remove it from the
|
|
231
241
|
// buffer
|
|
232
|
-
if (
|
|
242
|
+
if (byte === CR) {
|
|
233
243
|
this.crlfCheck = true
|
|
234
244
|
}
|
|
235
245
|
|
|
236
|
-
this.
|
|
237
|
-
this.
|
|
238
|
-
if (
|
|
239
|
-
this.event.data !== undefined || this.event.event || this.event.id !== undefined || this.event.retry) {
|
|
246
|
+
this.consumeCurrentByte()
|
|
247
|
+
if (this.hasPendingEvent()) {
|
|
240
248
|
this.processEvent(this.event)
|
|
241
249
|
}
|
|
242
250
|
this.clearEvent()
|
|
@@ -250,22 +258,23 @@ class EventSourceStream extends Transform {
|
|
|
250
258
|
|
|
251
259
|
// If the current character is an end-of-line, we can process the
|
|
252
260
|
// line
|
|
253
|
-
if (
|
|
261
|
+
if (byte === LF || byte === CR) {
|
|
254
262
|
// If the current character is a carriage return, we need to
|
|
255
263
|
// set the crlfCheck flag to true, as we need to check if the
|
|
256
264
|
// next character is a line feed
|
|
257
|
-
if (
|
|
265
|
+
if (byte === CR) {
|
|
258
266
|
this.crlfCheck = true
|
|
259
267
|
}
|
|
260
268
|
|
|
261
269
|
// In any case, we can process the line as we reached an
|
|
262
270
|
// end-of-line character
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
271
|
+
try {
|
|
272
|
+
this.parseLine(this.readLine(), this.event)
|
|
273
|
+
} catch (error) {
|
|
274
|
+
callback(error)
|
|
275
|
+
return
|
|
276
|
+
}
|
|
277
|
+
this.consumeCurrentByte()
|
|
269
278
|
// A line was processed and this could be the end of the event. We need
|
|
270
279
|
// to check if the next line is empty to determine if the event is
|
|
271
280
|
// finished.
|
|
@@ -273,12 +282,25 @@ class EventSourceStream extends Transform {
|
|
|
273
282
|
continue
|
|
274
283
|
}
|
|
275
284
|
|
|
276
|
-
|
|
285
|
+
// readLine() is only called after CR or LF. Reject an unfinished line
|
|
286
|
+
// before it can retain an unbounded number of decoded chunks. The seven
|
|
287
|
+
// extra bytes allow the longest field prefix ("event: " or "retry: ").
|
|
288
|
+
if (this.maxEventSize > 0 && ++this.lineLength > this.maxEventSize + 7) {
|
|
289
|
+
callback(createMaxEventSizeExceededError())
|
|
290
|
+
return
|
|
291
|
+
}
|
|
292
|
+
this.advanceCursor()
|
|
277
293
|
}
|
|
278
294
|
|
|
279
295
|
callback()
|
|
280
296
|
}
|
|
281
297
|
|
|
298
|
+
_destroy (error, callback) {
|
|
299
|
+
this.chunks.length = 0
|
|
300
|
+
this.clearEvent()
|
|
301
|
+
super._destroy(error, callback)
|
|
302
|
+
}
|
|
303
|
+
|
|
282
304
|
/**
|
|
283
305
|
* @param {Buffer} line
|
|
284
306
|
* @param {EventSourceStreamEvent} event
|
|
@@ -298,67 +320,74 @@ class EventSourceStream extends Transform {
|
|
|
298
320
|
return
|
|
299
321
|
}
|
|
300
322
|
|
|
301
|
-
let
|
|
302
|
-
let
|
|
323
|
+
let fieldLength = line.length
|
|
324
|
+
let valueStart = line.length
|
|
303
325
|
|
|
304
326
|
// If the line contains a U+003A COLON character (:)
|
|
305
327
|
if (colonPosition !== -1) {
|
|
306
|
-
|
|
307
|
-
// character (:), and let field be that string.
|
|
308
|
-
// TODO: Investigate if there is a more performant way to extract the
|
|
309
|
-
// field
|
|
310
|
-
// see: https://github.com/nodejs/undici/issues/2630
|
|
311
|
-
field = line.subarray(0, colonPosition).toString('utf8')
|
|
328
|
+
fieldLength = colonPosition
|
|
312
329
|
|
|
313
330
|
// Collect the characters on the line after the first U+003A COLON
|
|
314
331
|
// character (:), and let value be that string.
|
|
315
332
|
// If value starts with a U+0020 SPACE character, remove it from value.
|
|
316
|
-
|
|
333
|
+
valueStart = colonPosition + 1
|
|
317
334
|
if (line[valueStart] === SPACE) {
|
|
318
335
|
++valueStart
|
|
319
336
|
}
|
|
320
|
-
// TODO: Investigate if there is a more performant way to extract the
|
|
321
|
-
// value
|
|
322
|
-
// see: https://github.com/nodejs/undici/issues/2630
|
|
323
|
-
value = line.subarray(valueStart).toString('utf8')
|
|
324
|
-
|
|
325
|
-
// Otherwise, the string is not empty but does not contain a U+003A COLON
|
|
326
|
-
// character (:)
|
|
327
|
-
} else {
|
|
328
|
-
// Process the field using the steps described below, using the whole
|
|
329
|
-
// line as the field name, and the empty string as the field value.
|
|
330
|
-
field = line.toString('utf8')
|
|
331
|
-
value = ''
|
|
332
337
|
}
|
|
333
338
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
339
|
+
if (isFieldName(line, fieldLength, DATA)) {
|
|
340
|
+
if (this.maxEventSize > 0 && this.dataLineCount >= this.maxDataLines) {
|
|
341
|
+
throw createMaxEventSizeExceededError()
|
|
342
|
+
}
|
|
343
|
+
const valueBytes = line.length - valueStart
|
|
344
|
+
const dataSize = this.eventFieldSizes.data + (event.data === undefined ? 0 : 1) + valueBytes
|
|
345
|
+
this.setEventFieldSize('data', dataSize)
|
|
346
|
+
|
|
347
|
+
const value = line.toString('utf8', valueStart)
|
|
348
|
+
|
|
349
|
+
if (event.data === undefined) {
|
|
350
|
+
event.data = value
|
|
351
|
+
} else {
|
|
352
|
+
event.data += `\n${value}`
|
|
353
|
+
}
|
|
354
|
+
this.dataLineCount++
|
|
355
|
+
return
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
if (isFieldName(line, fieldLength, RETRY)) {
|
|
359
|
+
if (isASCIINumberBytes(line, valueStart)) {
|
|
360
|
+
this.setEventFieldSize('retry', line.length - valueStart)
|
|
361
|
+
event.retry = line.toString('utf8', valueStart)
|
|
362
|
+
}
|
|
363
|
+
return
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
if (isFieldName(line, fieldLength, ID)) {
|
|
367
|
+
if (isValidLastEventIdBytes(line, valueStart)) {
|
|
368
|
+
this.setEventFieldSize('id', line.length - valueStart)
|
|
369
|
+
event.id = line.toString('utf8', valueStart)
|
|
370
|
+
}
|
|
371
|
+
return
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
if (isFieldName(line, fieldLength, EVENT)) {
|
|
375
|
+
if (valueStart < line.length) {
|
|
376
|
+
this.setEventFieldSize('event', line.length - valueStart)
|
|
377
|
+
event.event = line.toString('utf8', valueStart)
|
|
378
|
+
}
|
|
359
379
|
}
|
|
360
380
|
}
|
|
361
381
|
|
|
382
|
+
setEventFieldSize (field, size) {
|
|
383
|
+
const eventSize = this.eventSize - this.eventFieldSizes[field] + size
|
|
384
|
+
if (this.maxEventSize > 0 && eventSize > this.maxEventSize) {
|
|
385
|
+
throw createMaxEventSizeExceededError()
|
|
386
|
+
}
|
|
387
|
+
this.eventSize = eventSize
|
|
388
|
+
this.eventFieldSizes[field] = size
|
|
389
|
+
}
|
|
390
|
+
|
|
362
391
|
/**
|
|
363
392
|
* @param {EventSourceStreamEvent} event
|
|
364
393
|
*/
|
|
@@ -385,12 +414,159 @@ class EventSourceStream extends Transform {
|
|
|
385
414
|
}
|
|
386
415
|
|
|
387
416
|
clearEvent () {
|
|
388
|
-
this.event =
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
417
|
+
this.event.data = undefined
|
|
418
|
+
this.event.event = undefined
|
|
419
|
+
this.event.id = undefined
|
|
420
|
+
this.event.retry = undefined
|
|
421
|
+
this.eventSize = 0
|
|
422
|
+
this.dataLineCount = 0
|
|
423
|
+
this.eventFieldSizes.data = 0
|
|
424
|
+
this.eventFieldSizes.event = 0
|
|
425
|
+
this.eventFieldSizes.id = 0
|
|
426
|
+
this.eventFieldSizes.retry = 0
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
hasPendingEvent () {
|
|
430
|
+
return this.event.data !== undefined ||
|
|
431
|
+
this.event.event !== undefined ||
|
|
432
|
+
this.event.id !== undefined ||
|
|
433
|
+
this.event.retry !== undefined
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
hasCurrentByte () {
|
|
437
|
+
return this.chunkIndex < this.chunks.length &&
|
|
438
|
+
this.pos < this.chunks[this.chunkIndex].length
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
currentByte () {
|
|
442
|
+
return this.chunks[this.chunkIndex][this.pos]
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
consumeCurrentByte () {
|
|
446
|
+
this.advanceCursor()
|
|
447
|
+
this.syncLineStartToCursor()
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
advanceCursor () {
|
|
451
|
+
this.pos++
|
|
452
|
+
|
|
453
|
+
while (this.chunkIndex < this.chunks.length && this.pos >= this.chunks[this.chunkIndex].length) {
|
|
454
|
+
this.chunkIndex++
|
|
455
|
+
this.pos = 0
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
syncLineStartToCursor () {
|
|
460
|
+
this.lineChunkIndex = this.chunkIndex
|
|
461
|
+
this.linePos = this.pos
|
|
462
|
+
this.lineLength = 0
|
|
463
|
+
this.dropConsumedChunks()
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
dropConsumedChunks () {
|
|
467
|
+
if (this.lineChunkIndex > 0) {
|
|
468
|
+
const consumed = this.lineChunkIndex
|
|
469
|
+
this.chunks.splice(0, consumed)
|
|
470
|
+
this.lineChunkIndex = 0
|
|
471
|
+
this.chunkIndex -= consumed
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
if (this.chunkIndex === this.chunks.length) {
|
|
475
|
+
this.chunks.length = 0
|
|
476
|
+
this.chunkIndex = 0
|
|
477
|
+
this.pos = 0
|
|
478
|
+
this.lineChunkIndex = 0
|
|
479
|
+
this.linePos = 0
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
readLine () {
|
|
484
|
+
if (this.lineChunkIndex === this.chunkIndex) {
|
|
485
|
+
return this.chunks[this.chunkIndex].subarray(this.linePos, this.pos)
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
const chunks = []
|
|
489
|
+
let length = 0
|
|
490
|
+
|
|
491
|
+
for (let i = this.lineChunkIndex; i <= this.chunkIndex; i++) {
|
|
492
|
+
const chunk = this.chunks[i]
|
|
493
|
+
const start = i === this.lineChunkIndex ? this.linePos : 0
|
|
494
|
+
const end = i === this.chunkIndex ? this.pos : chunk.length
|
|
495
|
+
const slice = chunk.subarray(start, end)
|
|
496
|
+
length += slice.length
|
|
497
|
+
chunks.push(slice)
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
return Buffer.concat(chunks, length)
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
peekBufferedByte (offset) {
|
|
504
|
+
let chunkIndex = this.lineChunkIndex
|
|
505
|
+
let pos = this.linePos
|
|
506
|
+
|
|
507
|
+
while (chunkIndex < this.chunks.length) {
|
|
508
|
+
const chunk = this.chunks[chunkIndex]
|
|
509
|
+
const remaining = chunk.length - pos
|
|
510
|
+
|
|
511
|
+
if (offset < remaining) {
|
|
512
|
+
return chunk[pos + offset]
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
offset -= remaining
|
|
516
|
+
chunkIndex++
|
|
517
|
+
pos = 0
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
discardLeadingBytes (count) {
|
|
522
|
+
while (count > 0 && this.lineChunkIndex < this.chunks.length) {
|
|
523
|
+
const chunk = this.chunks[this.lineChunkIndex]
|
|
524
|
+
const remaining = chunk.length - this.linePos
|
|
525
|
+
|
|
526
|
+
if (count < remaining) {
|
|
527
|
+
this.linePos += count
|
|
528
|
+
count = 0
|
|
529
|
+
} else {
|
|
530
|
+
count -= remaining
|
|
531
|
+
this.lineChunkIndex++
|
|
532
|
+
this.linePos = 0
|
|
533
|
+
}
|
|
393
534
|
}
|
|
535
|
+
|
|
536
|
+
this.chunkIndex = this.lineChunkIndex
|
|
537
|
+
this.pos = this.linePos
|
|
538
|
+
this.dropConsumedChunks()
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
handleBOM () {
|
|
542
|
+
const first = this.peekBufferedByte(0)
|
|
543
|
+
const second = this.peekBufferedByte(1)
|
|
544
|
+
const third = this.peekBufferedByte(2)
|
|
545
|
+
|
|
546
|
+
if (second === undefined) {
|
|
547
|
+
if (first === BOM[0]) {
|
|
548
|
+
return true
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
this.checkBOM = false
|
|
552
|
+
return true
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
if (third === undefined) {
|
|
556
|
+
if (first === BOM[0] && second === BOM[1]) {
|
|
557
|
+
return true
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
this.checkBOM = false
|
|
561
|
+
return false
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
if (first === BOM[0] && second === BOM[1] && third === BOM[2]) {
|
|
565
|
+
this.discardLeadingBytes(3)
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
this.checkBOM = false
|
|
569
|
+
return !this.hasCurrentByte()
|
|
394
570
|
}
|
|
395
571
|
}
|
|
396
572
|
|
|
@@ -10,6 +10,7 @@ const { createFastMessageEvent } = require('../websocket/events')
|
|
|
10
10
|
const { isNetworkError } = require('../fetch/response')
|
|
11
11
|
const { kEnumerableProperty } = require('../../core/util')
|
|
12
12
|
const { environmentSettingsObject } = require('../fetch/util')
|
|
13
|
+
const { getGlobalDispatcher } = require('../../global')
|
|
13
14
|
|
|
14
15
|
let experimentalWarned = false
|
|
15
16
|
|
|
@@ -292,6 +293,7 @@ class EventSource extends EventTarget {
|
|
|
292
293
|
|
|
293
294
|
const eventSourceStream = new EventSourceStream({
|
|
294
295
|
eventSourceSettings: this.#state,
|
|
296
|
+
maxEventSize: this.#dispatcher.eventSourceOptions?.maxEventSize,
|
|
295
297
|
push: (event) => {
|
|
296
298
|
this.dispatchEvent(createFastMessageEvent(
|
|
297
299
|
event.type,
|
|
@@ -476,7 +478,8 @@ webidl.converters.EventSourceInitDict = webidl.dictionaryConverter([
|
|
|
476
478
|
},
|
|
477
479
|
{
|
|
478
480
|
key: 'dispatcher', // undici only
|
|
479
|
-
converter: webidl.converters.any
|
|
481
|
+
converter: webidl.converters.any,
|
|
482
|
+
defaultValue: () => getGlobalDispatcher()
|
|
480
483
|
},
|
|
481
484
|
{
|
|
482
485
|
key: 'node', // undici only
|
|
@@ -2215,8 +2215,6 @@ async function httpNetworkFetch (
|
|
|
2215
2215
|
}
|
|
2216
2216
|
const location = headersList.get('location', true)
|
|
2217
2217
|
|
|
2218
|
-
this.body = new Readable({ read: resume })
|
|
2219
|
-
|
|
2220
2218
|
const willFollow = location && request.redirect === 'follow' &&
|
|
2221
2219
|
redirectStatusSet.has(status)
|
|
2222
2220
|
|
|
@@ -2234,7 +2232,7 @@ async function httpNetworkFetch (
|
|
|
2234
2232
|
// CVE fix similar to urllib3 (GHSA-gm62-xv2j-4w53) and curl (CVE-2022-32206).
|
|
2235
2233
|
const maxContentEncodings = 5
|
|
2236
2234
|
if (codings.length > maxContentEncodings) {
|
|
2237
|
-
|
|
2235
|
+
this.abort(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`))
|
|
2238
2236
|
return true
|
|
2239
2237
|
}
|
|
2240
2238
|
|
|
@@ -2272,6 +2270,8 @@ async function httpNetworkFetch (
|
|
|
2272
2270
|
}
|
|
2273
2271
|
}
|
|
2274
2272
|
|
|
2273
|
+
this.body = new Readable({ read: resume })
|
|
2274
|
+
|
|
2275
2275
|
const onError = this.onError.bind(this)
|
|
2276
2276
|
|
|
2277
2277
|
resolve({
|
|
@@ -52,6 +52,19 @@ function collectASequenceOfCodePointsFast (char, input, position) {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
const ASCII_WHITESPACE_REPLACE_REGEX = /[\u0009\u000A\u000C\u000D\u0020]/g // eslint-disable-line no-control-regex
|
|
55
|
+
const nonASCIIRegex = /[^\x00-\x7F]/ // eslint-disable-line no-control-regex
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @param {string} str
|
|
59
|
+
* @returns {string}
|
|
60
|
+
*
|
|
61
|
+
* @see https://infra.spec.whatwg.org/#ascii-lowercase
|
|
62
|
+
*/
|
|
63
|
+
function asciiLowercase (str) {
|
|
64
|
+
return nonASCIIRegex.test(str)
|
|
65
|
+
? str.replace(/[A-Z]+/g, (upper) => upper.toLowerCase())
|
|
66
|
+
: str.toLowerCase()
|
|
67
|
+
}
|
|
55
68
|
|
|
56
69
|
/**
|
|
57
70
|
* @param {string} data
|
|
@@ -216,6 +229,7 @@ function serializeJavascriptValueToJSONString (value) {
|
|
|
216
229
|
}
|
|
217
230
|
|
|
218
231
|
module.exports = {
|
|
232
|
+
asciiLowercase,
|
|
219
233
|
collectASequenceOfCodePoints,
|
|
220
234
|
collectASequenceOfCodePointsFast,
|
|
221
235
|
forgivingBase64,
|