@gfdelarue/testkit 0.3.0
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/LICENSE +68 -0
- package/README.md +1125 -0
- package/bin/testkit-windows-owner-arm64.exe +0 -0
- package/bin/testkit-windows-owner-x64.exe +0 -0
- package/bin/testkit.mjs +60 -0
- package/dist/app/cleanup/index.d.ts +52 -0
- package/dist/app/cleanup/index.js +1 -0
- package/dist/app/cloud/campaigns.d.ts +6 -0
- package/dist/app/cloud/campaigns.js +1 -0
- package/dist/app/cloud/control-actions.d.ts +12 -0
- package/dist/app/cloud/control-actions.js +2 -0
- package/dist/app/cloud/control-links.d.ts +5 -0
- package/dist/app/cloud/control-links.js +1 -0
- package/dist/app/cloud/control-read.d.ts +24 -0
- package/dist/app/cloud/control-read.js +1 -0
- package/dist/app/cloud/control-resources.d.ts +3 -0
- package/dist/app/cloud/control-resources.js +1 -0
- package/dist/app/cloud/control.d.ts +34 -0
- package/dist/app/cloud/control.js +5 -0
- package/dist/app/cloud/credentials.d.ts +11 -0
- package/dist/app/cloud/credentials.js +2 -0
- package/dist/app/cloud/index.d.ts +22 -0
- package/dist/app/cloud/index.js +2 -0
- package/dist/app/cloud/login.d.ts +63 -0
- package/dist/app/cloud/login.js +2 -0
- package/dist/app/cloud/migration/archive.d.ts +13 -0
- package/dist/app/cloud/migration/archive.js +1 -0
- package/dist/app/cloud/migration/commands.d.ts +8 -0
- package/dist/app/cloud/migration/commands.js +1 -0
- package/dist/app/cloud/migration/evidence.d.ts +13 -0
- package/dist/app/cloud/migration/evidence.js +2 -0
- package/dist/app/cloud/migration/files.d.ts +16 -0
- package/dist/app/cloud/migration/files.js +2 -0
- package/dist/app/cloud/migration/index.d.ts +6 -0
- package/dist/app/cloud/migration/index.js +1 -0
- package/dist/app/cloud/migration/journal.d.ts +64 -0
- package/dist/app/cloud/migration/journal.js +1 -0
- package/dist/app/cloud/migration/mapping-dispositions.d.ts +3 -0
- package/dist/app/cloud/migration/mapping-dispositions.js +1 -0
- package/dist/app/cloud/migration/mapping.d.ts +11 -0
- package/dist/app/cloud/migration/mapping.js +2 -0
- package/dist/app/cloud/migration/model.d.ts +175 -0
- package/dist/app/cloud/migration/model.js +1 -0
- package/dist/app/cloud/migration/plan.d.ts +7 -0
- package/dist/app/cloud/migration/plan.js +1 -0
- package/dist/app/cloud/migration/progress.d.ts +19 -0
- package/dist/app/cloud/migration/progress.js +1 -0
- package/dist/app/cloud/migration/reconcile.d.ts +22 -0
- package/dist/app/cloud/migration/reconcile.js +1 -0
- package/dist/app/cloud/migration/reconciliation-spool.d.ts +4 -0
- package/dist/app/cloud/migration/reconciliation-spool.js +1 -0
- package/dist/app/cloud/migration/state.d.ts +15 -0
- package/dist/app/cloud/migration/state.js +1 -0
- package/dist/app/cloud/migration/transfer.d.ts +6 -0
- package/dist/app/cloud/migration/transfer.js +1 -0
- package/dist/app/db-schema/prepare.d.ts +11 -0
- package/dist/app/db-schema/prepare.js +1 -0
- package/dist/app/db-schema/refresh.d.ts +17 -0
- package/dist/app/db-schema/refresh.js +1 -0
- package/dist/app/db-schema/verify.d.ts +11 -0
- package/dist/app/db-schema/verify.js +1 -0
- package/dist/app/destroy/index.d.ts +16 -0
- package/dist/app/destroy/index.js +1 -0
- package/dist/app/discover/index.d.ts +8 -0
- package/dist/app/discover/index.js +2 -0
- package/dist/app/doctor/index.d.ts +17 -0
- package/dist/app/doctor/index.js +1 -0
- package/dist/app/file-selection.d.ts +1 -0
- package/dist/app/file-selection.js +1 -0
- package/dist/app/inspect/artifacts.d.ts +29 -0
- package/dist/app/inspect/artifacts.js +1 -0
- package/dist/app/inspect/index.d.ts +112 -0
- package/dist/app/inspect/index.js +1 -0
- package/dist/app/lint/index.d.ts +28 -0
- package/dist/app/lint/index.js +2 -0
- package/dist/app/lint/native.d.ts +10 -0
- package/dist/app/lint/native.js +1 -0
- package/dist/app/lint/options.d.ts +67 -0
- package/dist/app/lint/options.js +1 -0
- package/dist/app/lint/policy.d.ts +21 -0
- package/dist/app/lint/policy.js +1 -0
- package/dist/app/lint/rules/data.d.ts +3 -0
- package/dist/app/lint/rules/data.js +1 -0
- package/dist/app/lint/rules/engine-imports.d.ts +3 -0
- package/dist/app/lint/rules/engine-imports.js +1 -0
- package/dist/app/lint/rules/syntax.d.ts +4 -0
- package/dist/app/lint/rules/syntax.js +1 -0
- package/dist/app/lint/rules/unit.d.ts +3 -0
- package/dist/app/lint/rules/unit.js +1 -0
- package/dist/app/lint/shared.d.ts +36 -0
- package/dist/app/lint/shared.js +1 -0
- package/dist/app/package-inspection.d.ts +20 -0
- package/dist/app/package-inspection.js +1 -0
- package/dist/app/run/endpoint-readiness.d.ts +43 -0
- package/dist/app/run/endpoint-readiness.js +1 -0
- package/dist/app/run/engine-evidence-persistence.d.ts +39 -0
- package/dist/app/run/engine-evidence-persistence.js +1 -0
- package/dist/app/run/engine-execution-cleanup.d.ts +8 -0
- package/dist/app/run/engine-execution-cleanup.js +1 -0
- package/dist/app/run/engine-execution-failures.d.ts +41 -0
- package/dist/app/run/engine-execution-failures.js +1 -0
- package/dist/app/run/engine-execution-observer.d.ts +21 -0
- package/dist/app/run/engine-execution-observer.js +1 -0
- package/dist/app/run/engine-execution-reporting.d.ts +17 -0
- package/dist/app/run/engine-execution-reporting.js +1 -0
- package/dist/app/run/engine-execution.d.ts +60 -0
- package/dist/app/run/engine-execution.js +1 -0
- package/dist/app/run/engine-orchestration.d.ts +49 -0
- package/dist/app/run/engine-orchestration.js +1 -0
- package/dist/app/run/failure-details.d.ts +36 -0
- package/dist/app/run/failure-details.js +1 -0
- package/dist/app/run/live-run.d.ts +27 -0
- package/dist/app/run/live-run.js +1 -0
- package/dist/app/run/operation-progress.d.ts +13 -0
- package/dist/app/run/operation-progress.js +1 -0
- package/dist/app/run/orchestrator.d.ts +68 -0
- package/dist/app/run/orchestrator.js +1 -0
- package/dist/app/run/planning-types.d.ts +68 -0
- package/dist/app/run/planning-types.js +1 -0
- package/dist/app/run/planning.d.ts +15 -0
- package/dist/app/run/planning.js +1 -0
- package/dist/app/run/playwright-configuration.d.ts +2 -0
- package/dist/app/run/playwright-configuration.js +1 -0
- package/dist/app/run/request.d.ts +30 -0
- package/dist/app/run/request.js +1 -0
- package/dist/app/run/results.d.ts +161 -0
- package/dist/app/run/results.js +1 -0
- package/dist/app/run/run-events.d.ts +144 -0
- package/dist/app/run/run-events.js +1 -0
- package/dist/app/run/run-finalization.d.ts +52 -0
- package/dist/app/run/run-finalization.js +1 -0
- package/dist/app/run/run-guards.d.ts +3 -0
- package/dist/app/run/run-guards.js +3 -0
- package/dist/app/run/runtime-failures.d.ts +18 -0
- package/dist/app/run/runtime-failures.js +1 -0
- package/dist/app/run/runtime-fixtures.d.ts +2 -0
- package/dist/app/run/runtime-fixtures.js +1 -0
- package/dist/app/run/runtime-task-types.d.ts +20 -0
- package/dist/app/run/runtime-task-types.js +1 -0
- package/dist/app/run/scheduler/estimates.d.ts +32 -0
- package/dist/app/run/scheduler/estimates.js +1 -0
- package/dist/app/run/scheduler/identity.d.ts +9 -0
- package/dist/app/run/scheduler/identity.js +1 -0
- package/dist/app/run/scheduler/index.d.ts +124 -0
- package/dist/app/run/scheduler/index.js +1 -0
- package/dist/app/run/scheduler/observations.d.ts +20 -0
- package/dist/app/run/scheduler/observations.js +1 -0
- package/dist/app/run/selection.d.ts +10 -0
- package/dist/app/run/selection.js +1 -0
- package/dist/app/run/setup/runtime-node-setup-errors.d.ts +13 -0
- package/dist/app/run/setup/runtime-node-setup-errors.js +1 -0
- package/dist/app/run/setup/runtime-node-setup-protocol.d.ts +85 -0
- package/dist/app/run/setup/runtime-node-setup-protocol.js +1 -0
- package/dist/app/run/setup/runtime-node-setup-worker.d.ts +1 -0
- package/dist/app/run/setup/runtime-node-setup-worker.js +1 -0
- package/dist/app/run/setup/runtime-node-setup.d.ts +48 -0
- package/dist/app/run/setup/runtime-node-setup.js +3 -0
- package/dist/app/run/task-batches.d.ts +23 -0
- package/dist/app/run/task-batches.js +1 -0
- package/dist/app/run/worker-loop.d.ts +57 -0
- package/dist/app/run/worker-loop.js +1 -0
- package/dist/app/setup/playwright.d.ts +22 -0
- package/dist/app/setup/playwright.js +1 -0
- package/dist/app/status/index.d.ts +7 -0
- package/dist/app/status/index.js +1 -0
- package/dist/app/status/model.d.ts +29 -0
- package/dist/app/status/model.js +1 -0
- package/dist/app/status/runs.d.ts +99 -0
- package/dist/app/status/runs.js +1 -0
- package/dist/app/stop/index.d.ts +14 -0
- package/dist/app/stop/index.js +1 -0
- package/dist/app/typecheck/index.d.ts +61 -0
- package/dist/app/typecheck/index.js +4 -0
- package/dist/app/typecheck/unavailable.d.ts +1 -0
- package/dist/app/typecheck/unavailable.js +1 -0
- package/dist/cli/cloud-apply-help.d.ts +1 -0
- package/dist/cli/cloud-apply-help.js +56 -0
- package/dist/cli/cloud-selection.d.ts +2 -0
- package/dist/cli/cloud-selection.js +3 -0
- package/dist/cli/command-catalog.d.ts +238 -0
- package/dist/cli/command-catalog.js +1 -0
- package/dist/cli/command-flags.d.ts +19 -0
- package/dist/cli/command-flags.js +1 -0
- package/dist/cli/command-registry.d.ts +2 -0
- package/dist/cli/command-registry.js +1 -0
- package/dist/cli/commands/artifacts.d.ts +48 -0
- package/dist/cli/commands/artifacts.js +3 -0
- package/dist/cli/commands/cleanup.d.ts +13 -0
- package/dist/cli/commands/cleanup.js +1 -0
- package/dist/cli/commands/cloud/apply.d.ts +5 -0
- package/dist/cli/commands/cloud/apply.js +1 -0
- package/dist/cli/commands/cloud/campaign/create.d.ts +5 -0
- package/dist/cli/commands/cloud/campaign/create.js +1 -0
- package/dist/cli/commands/cloud/download.d.ts +5 -0
- package/dist/cli/commands/cloud/download.js +1 -0
- package/dist/cli/commands/cloud/list.d.ts +5 -0
- package/dist/cli/commands/cloud/list.js +1 -0
- package/dist/cli/commands/cloud/login.d.ts +13 -0
- package/dist/cli/commands/cloud/login.js +2 -0
- package/dist/cli/commands/cloud/logout.d.ts +7 -0
- package/dist/cli/commands/cloud/logout.js +1 -0
- package/dist/cli/commands/cloud/migrate/apply.d.ts +2 -0
- package/dist/cli/commands/cloud/migrate/apply.js +1 -0
- package/dist/cli/commands/cloud/migrate/plan.d.ts +7 -0
- package/dist/cli/commands/cloud/migrate/plan.js +1 -0
- package/dist/cli/commands/cloud/migrate/progress.d.ts +2 -0
- package/dist/cli/commands/cloud/migrate/progress.js +2 -0
- package/dist/cli/commands/cloud/migrate/reconcile.d.ts +2 -0
- package/dist/cli/commands/cloud/migrate/reconcile.js +1 -0
- package/dist/cli/commands/cloud/policy/preview.d.ts +5 -0
- package/dist/cli/commands/cloud/policy/preview.js +1 -0
- package/dist/cli/commands/cloud/project/create.d.ts +5 -0
- package/dist/cli/commands/cloud/project/create.js +1 -0
- package/dist/cli/commands/cloud/publish.d.ts +7 -0
- package/dist/cli/commands/cloud/publish.js +1 -0
- package/dist/cli/commands/cloud/session/revoke.d.ts +8 -0
- package/dist/cli/commands/cloud/session/revoke.js +1 -0
- package/dist/cli/commands/cloud/show.d.ts +5 -0
- package/dist/cli/commands/cloud/show.js +1 -0
- package/dist/cli/commands/cloud/snapshot.d.ts +5 -0
- package/dist/cli/commands/cloud/snapshot.js +1 -0
- package/dist/cli/commands/cloud/status.d.ts +33 -0
- package/dist/cli/commands/cloud/status.js +1 -0
- package/dist/cli/commands/db/schema/refresh.d.ts +2 -0
- package/dist/cli/commands/db/schema/refresh.js +1 -0
- package/dist/cli/commands/db/schema/verify.d.ts +2 -0
- package/dist/cli/commands/db/schema/verify.js +1 -0
- package/dist/cli/commands/destroy.d.ts +9 -0
- package/dist/cli/commands/destroy.js +1 -0
- package/dist/cli/commands/discover.d.ts +2 -0
- package/dist/cli/commands/discover.js +1 -0
- package/dist/cli/commands/doctor.d.ts +2 -0
- package/dist/cli/commands/doctor.js +1 -0
- package/dist/cli/commands/guard/unsafe-entrypoint.d.ts +2 -0
- package/dist/cli/commands/guard/unsafe-entrypoint.js +2 -0
- package/dist/cli/commands/lint.d.ts +2 -0
- package/dist/cli/commands/lint.js +1 -0
- package/dist/cli/commands/run/status.d.ts +5 -0
- package/dist/cli/commands/run/status.js +1 -0
- package/dist/cli/commands/run/stop.d.ts +7 -0
- package/dist/cli/commands/run/stop.js +1 -0
- package/dist/cli/commands/run.d.ts +9 -0
- package/dist/cli/commands/run.js +1 -0
- package/dist/cli/commands/setup/playwright.d.ts +2 -0
- package/dist/cli/commands/setup/playwright.js +1 -0
- package/dist/cli/commands/status.d.ts +5 -0
- package/dist/cli/commands/status.js +1 -0
- package/dist/cli/commands/stop.d.ts +12 -0
- package/dist/cli/commands/stop.js +1 -0
- package/dist/cli/commands/typecheck.d.ts +2 -0
- package/dist/cli/commands/typecheck.js +1 -0
- package/dist/cli/commands/workspace.d.ts +2 -0
- package/dist/cli/commands/workspace.js +1 -0
- package/dist/cli/entrypoint.d.ts +1 -0
- package/dist/cli/entrypoint.js +1 -0
- package/dist/cli/framework/command.d.ts +21 -0
- package/dist/cli/framework/command.js +1 -0
- package/dist/cli/framework/definitions.d.ts +100 -0
- package/dist/cli/framework/definitions.js +1 -0
- package/dist/cli/framework/errors.d.ts +6 -0
- package/dist/cli/framework/errors.js +1 -0
- package/dist/cli/framework/execute.d.ts +13 -0
- package/dist/cli/framework/execute.js +6 -0
- package/dist/cli/framework/help.d.ts +11 -0
- package/dist/cli/framework/help.js +8 -0
- package/dist/cli/framework/index.d.ts +3 -0
- package/dist/cli/framework/index.js +1 -0
- package/dist/cli/framework/parser.d.ts +6 -0
- package/dist/cli/framework/parser.js +1 -0
- package/dist/cli/index.d.ts +4 -0
- package/dist/cli/index.js +1 -0
- package/dist/cli/json-errors.d.ts +3 -0
- package/dist/cli/json-errors.js +1 -0
- package/dist/cli/operations/db/schema/refresh/operation.d.ts +6 -0
- package/dist/cli/operations/db/schema/refresh/operation.js +1 -0
- package/dist/cli/operations/db/schema/verify/operation.d.ts +6 -0
- package/dist/cli/operations/db/schema/verify/operation.js +1 -0
- package/dist/cli/operations/run/operation.d.ts +24 -0
- package/dist/cli/operations/run/operation.js +2 -0
- package/dist/cli/process-signal.d.ts +1 -0
- package/dist/cli/process-signal.js +1 -0
- package/dist/cli/renderers/artifact-preview.d.ts +4 -0
- package/dist/cli/renderers/artifact-preview.js +1 -0
- package/dist/cli/renderers/cleanup/format.d.ts +14 -0
- package/dist/cli/renderers/cleanup/format.js +1 -0
- package/dist/cli/renderers/db-schema/text.d.ts +4 -0
- package/dist/cli/renderers/db-schema/text.js +1 -0
- package/dist/cli/renderers/destroy/text.d.ts +4 -0
- package/dist/cli/renderers/destroy/text.js +1 -0
- package/dist/cli/renderers/discover/report.d.ts +7 -0
- package/dist/cli/renderers/discover/report.js +1 -0
- package/dist/cli/renderers/discover/text.d.ts +3 -0
- package/dist/cli/renderers/discover/text.js +1 -0
- package/dist/cli/renderers/doctor/text.d.ts +2 -0
- package/dist/cli/renderers/doctor/text.js +1 -0
- package/dist/cli/renderers/lint/text.d.ts +2 -0
- package/dist/cli/renderers/lint/text.js +1 -0
- package/dist/cli/renderers/run/events.d.ts +8 -0
- package/dist/cli/renderers/run/events.js +2 -0
- package/dist/cli/renderers/run/failure.d.ts +8 -0
- package/dist/cli/renderers/run/failure.js +1 -0
- package/dist/cli/renderers/run/formatting.d.ts +79 -0
- package/dist/cli/renderers/run/formatting.js +1 -0
- package/dist/cli/renderers/run/status.d.ts +6 -0
- package/dist/cli/renderers/run/status.js +1 -0
- package/dist/cli/renderers/run/text-reporter.d.ts +19 -0
- package/dist/cli/renderers/run/text-reporter.js +23 -0
- package/dist/cli/renderers/status/text.d.ts +2 -0
- package/dist/cli/renderers/status/text.js +1 -0
- package/dist/cli/renderers/stop/text.d.ts +7 -0
- package/dist/cli/renderers/stop/text.js +1 -0
- package/dist/cli/renderers/typecheck/text.d.ts +2 -0
- package/dist/cli/renderers/typecheck/text.js +1 -0
- package/dist/cli/terminal/colors.d.ts +10 -0
- package/dist/cli/terminal/colors.js +1 -0
- package/dist/cli/terminal/layout.d.ts +11 -0
- package/dist/cli/terminal/layout.js +2 -0
- package/dist/cli/version-drift.d.ts +25 -0
- package/dist/cli/version-drift.js +7 -0
- package/dist/cloud/account.d.ts +34 -0
- package/dist/cloud/account.js +1 -0
- package/dist/cloud/archive-contract.d.ts +1 -0
- package/dist/cloud/archive-contract.js +1 -0
- package/dist/cloud/archive.d.ts +12 -0
- package/dist/cloud/archive.js +1 -0
- package/dist/cloud/campaigns.d.ts +200 -0
- package/dist/cloud/campaigns.js +2 -0
- package/dist/cloud/client.d.ts +68 -0
- package/dist/cloud/client.js +4 -0
- package/dist/cloud/download.d.ts +5 -0
- package/dist/cloud/download.js +1 -0
- package/dist/cloud/historical-contract.d.ts +224 -0
- package/dist/cloud/historical-contract.js +1 -0
- package/dist/cloud/historical-json.d.ts +16 -0
- package/dist/cloud/historical-json.js +1 -0
- package/dist/cloud/historical.d.ts +69 -0
- package/dist/cloud/historical.js +1 -0
- package/dist/cloud/pagination.d.ts +5 -0
- package/dist/cloud/pagination.js +1 -0
- package/dist/cloud/transport.d.ts +18 -0
- package/dist/cloud/transport.js +1 -0
- package/dist/config/authoring/build-config-contract.d.ts +27 -0
- package/dist/config/authoring/build-config-contract.js +1 -0
- package/dist/config/authoring/configured-step-contract.d.ts +18 -0
- package/dist/config/authoring/configured-step-contract.js +1 -0
- package/dist/config/authoring/http-execution-contract.d.ts +70 -0
- package/dist/config/authoring/http-execution-contract.js +1 -0
- package/dist/config/authoring/http-methods.d.ts +18 -0
- package/dist/config/authoring/http-methods.js +1 -0
- package/dist/config/authoring/index.d.ts +376 -0
- package/dist/config/authoring/index.js +1 -0
- package/dist/config/authoring/preset-env.d.ts +19 -0
- package/dist/config/authoring/preset-env.js +1 -0
- package/dist/config/authoring/runtime.d.ts +64 -0
- package/dist/config/authoring/runtime.js +1 -0
- package/dist/config/loader/cloud.d.ts +2 -0
- package/dist/config/loader/cloud.js +1 -0
- package/dist/config/loader/config-loader.d.ts +9 -0
- package/dist/config/loader/config-loader.js +1 -0
- package/dist/config/loader/database-materialization.d.ts +19 -0
- package/dist/config/loader/database-materialization.js +1 -0
- package/dist/config/loader/database-roles.d.ts +2 -0
- package/dist/config/loader/database-roles.js +1 -0
- package/dist/config/loader/database.d.ts +55 -0
- package/dist/config/loader/database.js +1 -0
- package/dist/config/loader/decode-discovery.d.ts +5 -0
- package/dist/config/loader/decode-discovery.js +1 -0
- package/dist/config/loader/decode-execution.d.ts +9 -0
- package/dist/config/loader/decode-execution.js +1 -0
- package/dist/config/loader/dependencies.d.ts +7 -0
- package/dist/config/loader/dependencies.js +1 -0
- package/dist/config/loader/discover-tests.d.ts +101 -0
- package/dist/config/loader/discover-tests.js +1 -0
- package/dist/config/loader/discovery-summary.d.ts +29 -0
- package/dist/config/loader/discovery-summary.js +1 -0
- package/dist/config/loader/discovery.d.ts +54 -0
- package/dist/config/loader/discovery.js +2 -0
- package/dist/config/loader/env.d.ts +4 -0
- package/dist/config/loader/env.js +1 -0
- package/dist/config/loader/execution-model.d.ts +16 -0
- package/dist/config/loader/execution-model.js +1 -0
- package/dist/config/loader/file-metadata.d.ts +19 -0
- package/dist/config/loader/file-metadata.js +1 -0
- package/dist/config/loader/index.d.ts +10 -0
- package/dist/config/loader/index.js +1 -0
- package/dist/config/loader/load.d.ts +89 -0
- package/dist/config/loader/load.js +1 -0
- package/dist/config/loader/managed-configs.d.ts +21 -0
- package/dist/config/loader/managed-configs.js +1 -0
- package/dist/config/loader/path-policy.d.ts +9 -0
- package/dist/config/loader/path-policy.js +1 -0
- package/dist/config/loader/paths.d.ts +5 -0
- package/dist/config/loader/paths.js +1 -0
- package/dist/config/loader/runtime-isolation.d.ts +44 -0
- package/dist/config/loader/runtime-isolation.js +1 -0
- package/dist/config/loader/runtime.d.ts +25 -0
- package/dist/config/loader/runtime.js +1 -0
- package/dist/config/loader/skip-config.d.ts +44 -0
- package/dist/config/loader/skip-config.js +1 -0
- package/dist/config/loader/validation.d.ts +16 -0
- package/dist/config/loader/validation.js +1 -0
- package/dist/config/loader/values.d.ts +4 -0
- package/dist/config/loader/values.js +1 -0
- package/dist/config/runtime/build-assets.d.ts +6 -0
- package/dist/config/runtime/build-assets.js +1 -0
- package/dist/config/runtime/env/index.d.ts +35 -0
- package/dist/config/runtime/env/index.js +1 -0
- package/dist/config/runtime/next-runtime-tsconfig.d.ts +6 -0
- package/dist/config/runtime/next-runtime-tsconfig.js +2 -0
- package/dist/database/activity-gate.d.ts +22 -0
- package/dist/database/activity-gate.js +1 -0
- package/dist/database/admin.d.ts +31 -0
- package/dist/database/admin.js +2 -0
- package/dist/database/cleanup.d.ts +36 -0
- package/dist/database/cleanup.js +1 -0
- package/dist/database/configured-steps.d.ts +27 -0
- package/dist/database/configured-steps.js +1 -0
- package/dist/database/constants.d.ts +11 -0
- package/dist/database/constants.js +1 -0
- package/dist/database/docker.d.ts +65 -0
- package/dist/database/docker.js +5 -0
- package/dist/database/drizzle/index.d.ts +13 -0
- package/dist/database/drizzle/index.js +1 -0
- package/dist/database/fingerprint.d.ts +12 -0
- package/dist/database/fingerprint.js +1 -0
- package/dist/database/index.d.ts +41 -0
- package/dist/database/index.js +1 -0
- package/dist/database/local-postgres.d.ts +71 -0
- package/dist/database/local-postgres.js +2 -0
- package/dist/database/naming.d.ts +17 -0
- package/dist/database/naming.js +1 -0
- package/dist/database/postgres/index.d.ts +71 -0
- package/dist/database/postgres/index.js +2 -0
- package/dist/database/progress.d.ts +6 -0
- package/dist/database/progress.js +1 -0
- package/dist/database/roles.d.ts +19 -0
- package/dist/database/roles.js +41 -0
- package/dist/database/runtime-config.d.ts +16 -0
- package/dist/database/runtime-config.js +1 -0
- package/dist/database/runtime-reservations.d.ts +19 -0
- package/dist/database/runtime-reservations.js +1 -0
- package/dist/database/schema-operations.d.ts +18 -0
- package/dist/database/schema-operations.js +1 -0
- package/dist/database/schema-source.d.ts +93 -0
- package/dist/database/schema-source.js +3 -0
- package/dist/database/source-refresh-lock.d.ts +8 -0
- package/dist/database/source-refresh-lock.js +1 -0
- package/dist/database/source-url.d.ts +22 -0
- package/dist/database/source-url.js +2 -0
- package/dist/database/state-files.d.ts +13 -0
- package/dist/database/state-files.js +1 -0
- package/dist/database/state.d.ts +26 -0
- package/dist/database/state.js +1 -0
- package/dist/database/steps.d.ts +16 -0
- package/dist/database/steps.js +4 -0
- package/dist/database/template-steps.d.ts +35 -0
- package/dist/database/template-steps.js +4 -0
- package/dist/domain/file-timeout.d.ts +28 -0
- package/dist/domain/file-timeout.js +1 -0
- package/dist/domain/identifiers.d.ts +9 -0
- package/dist/domain/identifiers.js +1 -0
- package/dist/domain/operation-display.d.ts +10 -0
- package/dist/domain/operation-display.js +1 -0
- package/dist/domain/operation-reason.d.ts +5 -0
- package/dist/domain/operation-reason.js +1 -0
- package/dist/domain/postgres-route.d.ts +4 -0
- package/dist/domain/postgres-route.js +1 -0
- package/dist/domain/runtime-identity.d.ts +1 -0
- package/dist/domain/runtime-identity.js +1 -0
- package/dist/domain/runtime-isolation-contract.d.ts +5 -0
- package/dist/domain/runtime-isolation-contract.js +1 -0
- package/dist/domain/service-name.d.ts +2 -0
- package/dist/domain/service-name.js +1 -0
- package/dist/domain/suite-selection.d.ts +20 -0
- package/dist/domain/suite-selection.js +1 -0
- package/dist/domain/test-outcomes.d.ts +3 -0
- package/dist/domain/test-outcomes.js +1 -0
- package/dist/domain/test-types.d.ts +16 -0
- package/dist/domain/test-types.js +1 -0
- package/dist/engines/adapters/evidence-files.d.ts +32 -0
- package/dist/engines/adapters/evidence-files.js +1 -0
- package/dist/engines/adapters/evidence-identity.d.ts +12 -0
- package/dist/engines/adapters/evidence-identity.js +1 -0
- package/dist/engines/adapters/execution.d.ts +38 -0
- package/dist/engines/adapters/execution.js +1 -0
- package/dist/engines/adapters/native-report.d.ts +25 -0
- package/dist/engines/adapters/native-report.js +1 -0
- package/dist/engines/adapters/workspace.d.ts +4 -0
- package/dist/engines/adapters/workspace.js +1 -0
- package/dist/engines/api/capabilities.d.ts +31 -0
- package/dist/engines/api/capabilities.js +1 -0
- package/dist/engines/api/evidence.d.ts +38 -0
- package/dist/engines/api/evidence.js +1 -0
- package/dist/engines/api/execution-observer.d.ts +8 -0
- package/dist/engines/api/execution-observer.js +1 -0
- package/dist/engines/api/execution-scope.d.ts +17 -0
- package/dist/engines/api/execution-scope.js +1 -0
- package/dist/engines/api/execution.d.ts +99 -0
- package/dist/engines/api/execution.js +1 -0
- package/dist/engines/api/index.d.ts +5 -0
- package/dist/engines/api/index.js +1 -0
- package/dist/engines/api/k6-runtime-input.d.ts +26 -0
- package/dist/engines/api/k6-runtime-input.js +1 -0
- package/dist/engines/api/runtime-artifact.d.ts +19 -0
- package/dist/engines/api/runtime-artifact.js +1 -0
- package/dist/engines/bundle-cache.d.ts +32 -0
- package/dist/engines/bundle-cache.js +1 -0
- package/dist/engines/catalog.d.ts +32 -0
- package/dist/engines/catalog.js +1 -0
- package/dist/engines/contracts/fixture-manifest.d.ts +34 -0
- package/dist/engines/contracts/fixture-manifest.js +1 -0
- package/dist/engines/contracts/json-bounds.d.ts +36 -0
- package/dist/engines/contracts/json-bounds.js +2 -0
- package/dist/engines/contracts/k6-repository-configuration.d.ts +12 -0
- package/dist/engines/contracts/k6-repository-configuration.js +1 -0
- package/dist/engines/contracts/test-context.d.ts +15 -0
- package/dist/engines/contracts/test-context.js +1 -0
- package/dist/engines/definitions.d.ts +15 -0
- package/dist/engines/definitions.js +1 -0
- package/dist/engines/factory.d.ts +6 -0
- package/dist/engines/factory.js +1 -0
- package/dist/engines/installation-catalog.d.ts +27 -0
- package/dist/engines/installation-catalog.js +1 -0
- package/dist/engines/installations/k6.d.ts +98 -0
- package/dist/engines/installations/k6.js +1 -0
- package/dist/engines/installations/node-vitest.d.ts +47 -0
- package/dist/engines/installations/node-vitest.js +1 -0
- package/dist/engines/installations/package-resolution.d.ts +51 -0
- package/dist/engines/installations/package-resolution.js +1 -0
- package/dist/engines/installations/playwright-resolution-child.d.ts +1 -0
- package/dist/engines/installations/playwright-resolution-child.js +2 -0
- package/dist/engines/installations/playwright.d.ts +85 -0
- package/dist/engines/installations/playwright.js +1 -0
- package/dist/engines/installations/types.d.ts +10 -0
- package/dist/engines/installations/types.js +1 -0
- package/dist/engines/k6/adapter/bundle.d.ts +25 -0
- package/dist/engines/k6/adapter/bundle.js +112 -0
- package/dist/engines/k6/adapter/evidence.d.ts +15 -0
- package/dist/engines/k6/adapter/evidence.js +4 -0
- package/dist/engines/k6/adapter/executor.d.ts +13 -0
- package/dist/engines/k6/adapter/executor.js +1 -0
- package/dist/engines/k6/adapter/index.d.ts +1 -0
- package/dist/engines/k6/adapter/index.js +1 -0
- package/dist/engines/k6/adapter/input.d.ts +21 -0
- package/dist/engines/k6/adapter/input.js +1 -0
- package/dist/engines/k6/adapter/native-summary.d.ts +11 -0
- package/dist/engines/k6/adapter/native-summary.js +1 -0
- package/dist/engines/k6/adapter/repository-configuration.d.ts +2 -0
- package/dist/engines/k6/adapter/repository-configuration.js +1 -0
- package/dist/engines/k6/authoring-type-paths.d.ts +3 -0
- package/dist/engines/k6/authoring-type-paths.js +1 -0
- package/dist/engines/k6/runtime/ambient-types/bundle-manifest.json +146 -0
- package/dist/engines/k6/runtime/ambient-types/k6/LICENSE +21 -0
- package/dist/engines/k6/runtime/ambient-types/k6/browser/index.d.ts +6332 -0
- package/dist/engines/k6/runtime/ambient-types/k6/crypto/index.d.ts +218 -0
- package/dist/engines/k6/runtime/ambient-types/k6/data/index.d.ts +16 -0
- package/dist/engines/k6/runtime/ambient-types/k6/encoding/index.d.ts +46 -0
- package/dist/engines/k6/runtime/ambient-types/k6/execution/index.d.ts +127 -0
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/csv/index.d.ts +96 -0
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/fs/index.d.ts +104 -0
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/redis/index.d.ts +821 -0
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/streams/index.d.ts +198 -0
- package/dist/engines/k6/runtime/ambient-types/k6/global.d.ts +83 -0
- package/dist/engines/k6/runtime/ambient-types/k6/html/index.d.ts +1325 -0
- package/dist/engines/k6/runtime/ambient-types/k6/http/index.d.ts +806 -0
- package/dist/engines/k6/runtime/ambient-types/k6/index.d.ts +126 -0
- package/dist/engines/k6/runtime/ambient-types/k6/metrics/index.d.ts +66 -0
- package/dist/engines/k6/runtime/ambient-types/k6/net/grpc/index.d.ts +247 -0
- package/dist/engines/k6/runtime/ambient-types/k6/options/index.d.ts +459 -0
- package/dist/engines/k6/runtime/ambient-types/k6/package.json +79 -0
- package/dist/engines/k6/runtime/ambient-types/k6/secrets/index.d.ts +36 -0
- package/dist/engines/k6/runtime/ambient-types/k6/timers/index.d.ts +47 -0
- package/dist/engines/k6/runtime/ambient-types/k6/websockets/index.d.ts +324 -0
- package/dist/engines/k6/runtime/ambient-types/k6/ws/index.d.ts +283 -0
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/LICENSE +201 -0
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/index.d.ts +397 -0
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/package.json +15 -0
- package/dist/engines/k6/runtime/artifacts.d.ts +2 -0
- package/dist/engines/k6/runtime/artifacts.js +1 -0
- package/dist/engines/k6/runtime/checks.d.ts +17 -0
- package/dist/engines/k6/runtime/checks.js +1 -0
- package/dist/engines/k6/runtime/dal-fixtures.d.ts +24 -0
- package/dist/engines/k6/runtime/dal-fixtures.js +1 -0
- package/dist/engines/k6/runtime/dal-suite.d.ts +24 -0
- package/dist/engines/k6/runtime/dal-suite.js +1 -0
- package/dist/engines/k6/runtime/dal.d.ts +10 -0
- package/dist/engines/k6/runtime/dal.js +1 -0
- package/dist/engines/k6/runtime/fixtures.d.ts +3 -0
- package/dist/engines/k6/runtime/fixtures.js +1 -0
- package/dist/engines/k6/runtime/http-assertions.d.ts +19 -0
- package/dist/engines/k6/runtime/http-assertions.js +1 -0
- package/dist/engines/k6/runtime/http-checks.d.ts +19 -0
- package/dist/engines/k6/runtime/http-checks.js +1 -0
- package/dist/engines/k6/runtime/http-suite-runtime.d.ts +103 -0
- package/dist/engines/k6/runtime/http-suite-runtime.js +1 -0
- package/dist/engines/k6/runtime/http.d.ts +15 -0
- package/dist/engines/k6/runtime/http.js +1 -0
- package/dist/engines/k6/runtime/index.d.ts +11 -0
- package/dist/engines/k6/runtime/index.js +1 -0
- package/dist/engines/k6/runtime/input.d.ts +3 -0
- package/dist/engines/k6/runtime/input.js +1 -0
- package/dist/engines/k6/runtime/k6-repository-configuration.d.ts +9 -0
- package/dist/engines/k6/runtime/k6-repository-configuration.js +1 -0
- package/dist/engines/k6/runtime/node-setup.d.ts +13 -0
- package/dist/engines/k6/runtime/node-setup.js +1 -0
- package/dist/engines/k6/runtime/runtime-globals.d.ts +10 -0
- package/dist/engines/k6/runtime/runtime-globals.js +1 -0
- package/dist/engines/k6/runtime/runtime.d.ts +54 -0
- package/dist/engines/k6/runtime/runtime.js +1 -0
- package/dist/engines/k6/runtime/shared/assertion-details.d.ts +19 -0
- package/dist/engines/k6/runtime/shared/assertion-details.js +2 -0
- package/dist/engines/k6/runtime/shared/db-normalization.d.ts +19 -0
- package/dist/engines/k6/runtime/shared/db-normalization.js +1 -0
- package/dist/engines/k6/runtime/shared/error-body.d.ts +3 -0
- package/dist/engines/k6/runtime/shared/error-body.js +1 -0
- package/dist/engines/k6/runtime/shared/file-data.d.ts +1 -0
- package/dist/engines/k6/runtime/shared/file-data.js +1 -0
- package/dist/engines/k6/runtime/shared/fixture-engine.d.ts +8 -0
- package/dist/engines/k6/runtime/shared/fixture-engine.js +2 -0
- package/dist/engines/k6/runtime/shared/http-check-plan.d.ts +29 -0
- package/dist/engines/k6/runtime/shared/http-check-plan.js +1 -0
- package/dist/engines/k6/runtime/shared/http-parsing.d.ts +10 -0
- package/dist/engines/k6/runtime/shared/http-parsing.js +3 -0
- package/dist/engines/k6/runtime/shared/ordering.d.ts +2 -0
- package/dist/engines/k6/runtime/shared/ordering.js +1 -0
- package/dist/engines/k6/runtime/shared/properties.d.ts +1 -0
- package/dist/engines/k6/runtime/shared/properties.js +1 -0
- package/dist/engines/k6/runtime/suite.d.ts +4 -0
- package/dist/engines/k6/runtime/suite.js +1 -0
- package/dist/engines/k6/runtime/types.d.ts +242 -0
- package/dist/engines/k6/runtime/types.js +1 -0
- package/dist/engines/k6/runtime/xk6-sql-driver-postgres.d.ts +7 -0
- package/dist/engines/k6/runtime/xk6-sql-driver-postgres.js +1 -0
- package/dist/engines/managed-module-resolution-policy-input.d.ts +9 -0
- package/dist/engines/managed-module-resolution-policy-input.js +1 -0
- package/dist/engines/managed-module-resolution-policy.d.ts +25 -0
- package/dist/engines/managed-module-resolution-policy.js +1 -0
- package/dist/engines/managed-module-resolution.d.ts +13 -0
- package/dist/engines/managed-module-resolution.js +697 -0
- package/dist/engines/manager.d.ts +24 -0
- package/dist/engines/manager.js +1 -0
- package/dist/engines/node-vitest/adapter/adapter.d.ts +16 -0
- package/dist/engines/node-vitest/adapter/adapter.js +1 -0
- package/dist/engines/node-vitest/adapter/consumer-typescript-paths.d.ts +17 -0
- package/dist/engines/node-vitest/adapter/consumer-typescript-paths.js +3 -0
- package/dist/engines/node-vitest/adapter/evidence.d.ts +33 -0
- package/dist/engines/node-vitest/adapter/evidence.js +2 -0
- package/dist/engines/node-vitest/adapter/failure-details.d.ts +2 -0
- package/dist/engines/node-vitest/adapter/failure-details.js +2 -0
- package/dist/engines/node-vitest/adapter/index.d.ts +1 -0
- package/dist/engines/node-vitest/adapter/index.js +1 -0
- package/dist/engines/node-vitest/adapter/reporter.d.ts +7 -0
- package/dist/engines/node-vitest/adapter/reporter.js +1 -0
- package/dist/engines/node-vitest/adapter/resolution.d.ts +12 -0
- package/dist/engines/node-vitest/adapter/resolution.js +1 -0
- package/dist/engines/node-vitest/adapter/workspace.d.ts +19 -0
- package/dist/engines/node-vitest/adapter/workspace.js +177 -0
- package/dist/engines/node-vitest/runtime/contract/index.d.ts +64 -0
- package/dist/engines/node-vitest/runtime/contract/index.js +1 -0
- package/dist/engines/node-vitest/runtime/data/http.d.ts +4 -0
- package/dist/engines/node-vitest/runtime/data/http.js +1 -0
- package/dist/engines/node-vitest/runtime/data/index.d.ts +8 -0
- package/dist/engines/node-vitest/runtime/data/index.js +1 -0
- package/dist/engines/node-vitest/runtime/data/primitives.d.ts +1 -0
- package/dist/engines/node-vitest/runtime/data/primitives.js +1 -0
- package/dist/engines/node-vitest/runtime/data/report.d.ts +3 -0
- package/dist/engines/node-vitest/runtime/data/report.js +6 -0
- package/dist/engines/node-vitest/runtime/data/runner.d.ts +4 -0
- package/dist/engines/node-vitest/runtime/data/runner.js +1 -0
- package/dist/engines/node-vitest/runtime/data/scenario.d.ts +12 -0
- package/dist/engines/node-vitest/runtime/data/scenario.js +2 -0
- package/dist/engines/node-vitest/runtime/data/types.d.ts +412 -0
- package/dist/engines/node-vitest/runtime/data/types.js +1 -0
- package/dist/engines/node-vitest/runtime/runtime-input.d.ts +63 -0
- package/dist/engines/node-vitest/runtime/runtime-input.js +1 -0
- package/dist/engines/playwright/adapter/adapter.d.ts +18 -0
- package/dist/engines/playwright/adapter/adapter.js +1 -0
- package/dist/engines/playwright/adapter/attachments.d.ts +25 -0
- package/dist/engines/playwright/adapter/attachments.js +1 -0
- package/dist/engines/playwright/adapter/config.d.ts +45 -0
- package/dist/engines/playwright/adapter/config.js +167 -0
- package/dist/engines/playwright/adapter/evidence-validation.d.ts +12 -0
- package/dist/engines/playwright/adapter/evidence-validation.js +1 -0
- package/dist/engines/playwright/adapter/evidence.d.ts +32 -0
- package/dist/engines/playwright/adapter/evidence.js +1 -0
- package/dist/engines/playwright/adapter/failure-details.d.ts +2 -0
- package/dist/engines/playwright/adapter/failure-details.js +2 -0
- package/dist/engines/playwright/adapter/index.d.ts +3 -0
- package/dist/engines/playwright/adapter/index.js +1 -0
- package/dist/engines/playwright/adapter/reporter.d.ts +12 -0
- package/dist/engines/playwright/adapter/reporter.js +1 -0
- package/dist/engines/playwright/runtime/config-file.d.ts +2 -0
- package/dist/engines/playwright/runtime/config-file.js +1 -0
- package/dist/engines/playwright/runtime/config.d.ts +24 -0
- package/dist/engines/playwright/runtime/config.js +1 -0
- package/dist/engines/playwright/runtime/index.d.ts +4 -0
- package/dist/engines/playwright/runtime/index.js +1 -0
- package/dist/engines/playwright/runtime/runtime-input.d.ts +36 -0
- package/dist/engines/playwright/runtime/runtime-input.js +151 -0
- package/dist/engines/playwright/runtime/sandbox.d.ts +84 -0
- package/dist/engines/playwright/runtime/sandbox.js +1 -0
- package/dist/engines/runtime-input-file.d.ts +25 -0
- package/dist/engines/runtime-input-file.js +1 -0
- package/dist/environment/lifecycle-artifacts.d.ts +7 -0
- package/dist/environment/lifecycle-artifacts.js +1 -0
- package/dist/environment/lifecycle-controller.d.ts +71 -0
- package/dist/environment/lifecycle-controller.js +1 -0
- package/dist/environment/lifecycle.d.ts +29 -0
- package/dist/environment/lifecycle.js +1 -0
- package/dist/environment/maintenance.d.ts +68 -0
- package/dist/environment/maintenance.js +1 -0
- package/dist/environment/planning-types.d.ts +35 -0
- package/dist/environment/planning-types.js +1 -0
- package/dist/environment/readiness.d.ts +12 -0
- package/dist/environment/readiness.js +1 -0
- package/dist/environment/ready-environment.d.ts +17 -0
- package/dist/environment/ready-environment.js +1 -0
- package/dist/environment/run-environment.d.ts +38 -0
- package/dist/environment/run-environment.js +1 -0
- package/dist/environment/run-stopping.d.ts +13 -0
- package/dist/environment/run-stopping.js +1 -0
- package/dist/environment/runtime-contexts.d.ts +32 -0
- package/dist/environment/runtime-contexts.js +1 -0
- package/dist/environment/runtime-manager.d.ts +95 -0
- package/dist/environment/runtime-manager.js +1 -0
- package/dist/environment/runtime-planning.d.ts +16 -0
- package/dist/environment/runtime-planning.js +1 -0
- package/dist/environment/runtime-preparation.d.ts +30 -0
- package/dist/environment/runtime-preparation.js +1 -0
- package/dist/environment/runtime-service.d.ts +18 -0
- package/dist/environment/runtime-service.js +1 -0
- package/dist/environment/services.d.ts +48 -0
- package/dist/environment/services.js +1 -0
- package/dist/environment/state.d.ts +18 -0
- package/dist/environment/state.js +1 -0
- package/dist/environment/status-runtime.d.ts +53 -0
- package/dist/environment/status-runtime.js +1 -0
- package/dist/environment/template.d.ts +180 -0
- package/dist/environment/template.js +1 -0
- package/dist/evidence/artifact-config.d.ts +14 -0
- package/dist/evidence/artifact-config.js +1 -0
- package/dist/evidence/artifact-validation.d.ts +5 -0
- package/dist/evidence/artifact-validation.js +1 -0
- package/dist/evidence/artifacts.d.ts +75 -0
- package/dist/evidence/artifacts.js +2 -0
- package/dist/evidence/bundles.d.ts +28 -0
- package/dist/evidence/bundles.js +1 -0
- package/dist/evidence/ci-provenance.d.ts +9 -0
- package/dist/evidence/ci-provenance.js +1 -0
- package/dist/evidence/contracts.d.ts +162 -0
- package/dist/evidence/contracts.js +1 -0
- package/dist/evidence/file-evidence.d.ts +23 -0
- package/dist/evidence/file-evidence.js +1 -0
- package/dist/evidence/finalization.d.ts +9 -0
- package/dist/evidence/finalization.js +1 -0
- package/dist/evidence/index.d.ts +8 -0
- package/dist/evidence/index.js +1 -0
- package/dist/evidence/logs.d.ts +31 -0
- package/dist/evidence/logs.js +2 -0
- package/dist/evidence/operation-timings.d.ts +60 -0
- package/dist/evidence/operation-timings.js +1 -0
- package/dist/evidence/read-bundle.d.ts +4 -0
- package/dist/evidence/read-bundle.js +1 -0
- package/dist/evidence/read-fields.d.ts +22 -0
- package/dist/evidence/read-fields.js +1 -0
- package/dist/evidence/read-provenance.d.ts +2 -0
- package/dist/evidence/read-provenance.js +1 -0
- package/dist/evidence/read-redaction.d.ts +2 -0
- package/dist/evidence/read-redaction.js +1 -0
- package/dist/evidence/read-retention.d.ts +2 -0
- package/dist/evidence/read-retention.js +1 -0
- package/dist/evidence/read-run.d.ts +2 -0
- package/dist/evidence/read-run.js +1 -0
- package/dist/evidence/reading.d.ts +28 -0
- package/dist/evidence/reading.js +1 -0
- package/dist/evidence/reporting-types.d.ts +330 -0
- package/dist/evidence/reporting-types.js +1 -0
- package/dist/evidence/reporting.d.ts +3 -0
- package/dist/evidence/reporting.js +1 -0
- package/dist/evidence/secure-file-copy.d.ts +24 -0
- package/dist/evidence/secure-file-copy.js +1 -0
- package/dist/evidence/setup-progress.d.ts +63 -0
- package/dist/evidence/setup-progress.js +1 -0
- package/dist/evidence/step-output.d.ts +16 -0
- package/dist/evidence/step-output.js +6 -0
- package/dist/evidence/storage-inventory.d.ts +27 -0
- package/dist/evidence/storage-inventory.js +1 -0
- package/dist/evidence/storage.d.ts +27 -0
- package/dist/evidence/storage.js +2 -0
- package/dist/evidence/timing.d.ts +23 -0
- package/dist/evidence/timing.js +1 -0
- package/dist/file.d.ts +11 -0
- package/dist/file.js +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -0
- package/dist/kernel/error-serialization.d.ts +38 -0
- package/dist/kernel/error-serialization.js +1 -0
- package/dist/kernel/redaction.d.ts +1 -0
- package/dist/kernel/redaction.js +1 -0
- package/dist/kernel/unknown-values.d.ts +6 -0
- package/dist/kernel/unknown-values.js +1 -0
- package/dist/process/capture-output.d.ts +7 -0
- package/dist/process/capture-output.js +1 -0
- package/dist/process/command-shell.d.ts +1 -0
- package/dist/process/command-shell.js +1 -0
- package/dist/process/environment-overlay.d.ts +17 -0
- package/dist/process/environment-overlay.js +1 -0
- package/dist/process/environment.d.ts +33 -0
- package/dist/process/environment.js +1 -0
- package/dist/process/files/contained-path.d.ts +8 -0
- package/dist/process/files/contained-path.js +1 -0
- package/dist/process/files/directory-status.d.ts +14 -0
- package/dist/process/files/directory-status.js +1 -0
- package/dist/process/files/dotenv.d.ts +2 -0
- package/dist/process/files/dotenv.js +1 -0
- package/dist/process/files/file-snapshot.d.ts +34 -0
- package/dist/process/files/file-snapshot.js +1 -0
- package/dist/process/files/json-file.d.ts +11 -0
- package/dist/process/files/json-file.js +1 -0
- package/dist/process/files/paths.d.ts +1 -0
- package/dist/process/files/paths.js +1 -0
- package/dist/process/files/temp-dir.d.ts +11 -0
- package/dist/process/files/temp-dir.js +1 -0
- package/dist/process/host/metadata.d.ts +6 -0
- package/dist/process/host/metadata.js +1 -0
- package/dist/process/host/platform.d.ts +57 -0
- package/dist/process/host/platform.js +1 -0
- package/dist/process/host-command.d.ts +4 -0
- package/dist/process/host-command.js +3 -0
- package/dist/process/host-inspection-command.d.ts +13 -0
- package/dist/process/host-inspection-command.js +1 -0
- package/dist/process/host-process.d.ts +14 -0
- package/dist/process/host-process.js +1 -0
- package/dist/process/index.d.ts +9 -0
- package/dist/process/index.js +1 -0
- package/dist/process/lifecycle-fence.d.ts +11 -0
- package/dist/process/lifecycle-fence.js +1 -0
- package/dist/process/locks.d.ts +28 -0
- package/dist/process/locks.js +4 -0
- package/dist/process/process-contracts.d.ts +70 -0
- package/dist/process/process-contracts.js +1 -0
- package/dist/process/process-group.d.ts +12 -0
- package/dist/process/process-group.js +1 -0
- package/dist/process/process-identity.d.ts +27 -0
- package/dist/process/process-identity.js +1 -0
- package/dist/process/process-limits.d.ts +6 -0
- package/dist/process/process-limits.js +1 -0
- package/dist/process/process.d.ts +11 -0
- package/dist/process/process.js +1 -0
- package/dist/process/readiness.d.ts +37 -0
- package/dist/process/readiness.js +1 -0
- package/dist/process/recovery.d.ts +3 -0
- package/dist/process/recovery.js +1 -0
- package/dist/process/runs/manifest.d.ts +85 -0
- package/dist/process/runs/manifest.js +1 -0
- package/dist/process/runs/ownership.d.ts +11 -0
- package/dist/process/runs/ownership.js +1 -0
- package/dist/process/runs/product-state.d.ts +2 -0
- package/dist/process/runs/product-state.js +1 -0
- package/dist/process/runs/schema.d.ts +3 -0
- package/dist/process/runs/schema.js +1 -0
- package/dist/process/runs/stop.d.ts +19 -0
- package/dist/process/runs/stop.js +1 -0
- package/dist/process/runtime-socket.d.ts +4 -0
- package/dist/process/runtime-socket.js +1 -0
- package/dist/process/service-processes.d.ts +13 -0
- package/dist/process/service-processes.js +1 -0
- package/dist/process/shutdown.d.ts +10 -0
- package/dist/process/shutdown.js +1 -0
- package/dist/process/windows-cli-owner.d.ts +2 -0
- package/dist/process/windows-cli-owner.js +3 -0
- package/dist/process/windows-native.d.ts +6 -0
- package/dist/process/windows-native.js +1 -0
- package/dist/process/windows-process-identity.d.ts +4 -0
- package/dist/process/windows-process-identity.js +1 -0
- package/dist/repo/ci-environment.d.ts +7 -0
- package/dist/repo/ci-environment.js +1 -0
- package/dist/repo/fingerprint-policy.d.ts +15 -0
- package/dist/repo/fingerprint-policy.js +1 -0
- package/dist/repo/git-path.d.ts +2 -0
- package/dist/repo/git-path.js +1 -0
- package/dist/repo/managed-git.d.ts +10 -0
- package/dist/repo/managed-git.js +1 -0
- package/dist/repo/metadata.d.ts +3 -0
- package/dist/repo/metadata.js +1 -0
- package/dist/repo/physical-tree.d.ts +37 -0
- package/dist/repo/physical-tree.js +1 -0
- package/dist/repo/remote.d.ts +6 -0
- package/dist/repo/remote.js +1 -0
- package/dist/repo/state.d.ts +25 -0
- package/dist/repo/state.js +5 -0
- package/dist/steps/build-config.d.ts +35 -0
- package/dist/steps/build-config.js +1 -0
- package/dist/steps/configured-step-testkit-modules.d.ts +19 -0
- package/dist/steps/configured-step-testkit-modules.js +1 -0
- package/dist/steps/configured-steps.d.ts +51 -0
- package/dist/steps/configured-steps.js +1 -0
- package/dist/steps/environment.d.ts +78 -0
- package/dist/steps/environment.js +1 -0
- package/dist/steps/index.d.ts +2 -0
- package/dist/steps/index.js +1 -0
- package/dist/steps/module-runner.d.ts +1 -0
- package/dist/steps/module-runner.js +1 -0
- package/dist/steps/run.d.ts +36 -0
- package/dist/steps/run.js +3 -0
- package/dist/toolchains/archive.d.ts +53 -0
- package/dist/toolchains/archive.js +1 -0
- package/dist/toolchains/esbuild.d.ts +9 -0
- package/dist/toolchains/esbuild.js +1 -0
- package/dist/toolchains/host-node-support.d.ts +3 -0
- package/dist/toolchains/host-node-support.js +1 -0
- package/dist/toolchains/index.d.ts +114 -0
- package/dist/toolchains/index.js +4 -0
- package/dist/toolchains/managed-node-releases.d.ts +28 -0
- package/dist/toolchains/managed-node-releases.js +1 -0
- package/dist/toolchains/node-cache.d.ts +20 -0
- package/dist/toolchains/node-cache.js +1 -0
- package/dist/toolchains/node-integrity.d.ts +16 -0
- package/dist/toolchains/node-integrity.js +1 -0
- package/dist/toolchains/node-provisioning.d.ts +29 -0
- package/dist/toolchains/node-provisioning.js +2 -0
- package/dist/toolchains/semver.d.ts +13 -0
- package/dist/toolchains/semver.js +1 -0
- package/dist/toolchains/shared-operation.d.ts +11 -0
- package/dist/toolchains/shared-operation.js +1 -0
- package/dist/toolchains/timeouts.d.ts +1 -0
- package/dist/toolchains/timeouts.js +1 -0
- package/dist/toolchains/vitest/index.d.ts +13 -0
- package/dist/toolchains/vitest/index.js +1 -0
- package/docs/cloud-control.md +105 -0
- package/docs/engine-architecture.md +631 -0
- package/docs/test-types.md +120 -0
- package/docs/testkit-cloud-boundary.md +640 -0
- package/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/node_modules/@isaacs/fs-minipass/README.md +71 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/node_modules/buffer-crc32/LICENSE +19 -0
- package/node_modules/buffer-crc32/README.md +55 -0
- package/node_modules/buffer-crc32/dist/index.cjs +306 -0
- package/node_modules/buffer-crc32/dist/index.d.cts +35 -0
- package/node_modules/buffer-crc32/dist/index.d.mts +35 -0
- package/node_modules/buffer-crc32/dist/index.mjs +304 -0
- package/node_modules/buffer-crc32/index.d.ts +35 -0
- package/node_modules/buffer-crc32/package.json +54 -0
- package/node_modules/chownr/LICENSE.md +63 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
- package/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/esm/index.js +85 -0
- package/node_modules/chownr/dist/esm/index.js.map +1 -0
- package/node_modules/chownr/dist/esm/package.json +3 -0
- package/node_modules/chownr/package.json +69 -0
- package/node_modules/diff/CONTRIBUTING.md +28 -0
- package/node_modules/diff/LICENSE +29 -0
- package/node_modules/diff/README.md +468 -0
- package/node_modules/diff/dist/diff.js +2313 -0
- package/node_modules/diff/dist/diff.min.js +1 -0
- package/node_modules/diff/eslint.config.mjs +182 -0
- package/node_modules/diff/libcjs/convert/dmp.d.ts +8 -0
- package/node_modules/diff/libcjs/convert/dmp.d.ts.map +1 -0
- package/node_modules/diff/libcjs/convert/dmp.js +24 -0
- package/node_modules/diff/libcjs/convert/xml.d.ts +6 -0
- package/node_modules/diff/libcjs/convert/xml.d.ts.map +1 -0
- package/node_modules/diff/libcjs/convert/xml.js +34 -0
- package/node_modules/diff/libcjs/diff/array.d.ts +19 -0
- package/node_modules/diff/libcjs/diff/array.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/array.js +23 -0
- package/node_modules/diff/libcjs/diff/base.d.ts +20 -0
- package/node_modules/diff/libcjs/diff/base.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/base.js +256 -0
- package/node_modules/diff/libcjs/diff/character.d.ts +19 -0
- package/node_modules/diff/libcjs/diff/character.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/character.js +14 -0
- package/node_modules/diff/libcjs/diff/css.d.ts +18 -0
- package/node_modules/diff/libcjs/diff/css.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/css.js +17 -0
- package/node_modules/diff/libcjs/diff/json.d.ts +24 -0
- package/node_modules/diff/libcjs/diff/json.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/json.js +86 -0
- package/node_modules/diff/libcjs/diff/line.d.ts +24 -0
- package/node_modules/diff/libcjs/diff/line.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/line.js +74 -0
- package/node_modules/diff/libcjs/diff/sentence.d.ts +21 -0
- package/node_modules/diff/libcjs/diff/sentence.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/sentence.js +50 -0
- package/node_modules/diff/libcjs/diff/word.d.ts +35 -0
- package/node_modules/diff/libcjs/diff/word.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/word.js +289 -0
- package/node_modules/diff/libcjs/index.d.ts +20 -0
- package/node_modules/diff/libcjs/index.d.ts.map +1 -0
- package/node_modules/diff/libcjs/index.js +67 -0
- package/node_modules/diff/libcjs/package.json +1 -0
- package/node_modules/diff/libcjs/patch/apply.d.ts +62 -0
- package/node_modules/diff/libcjs/patch/apply.d.ts.map +1 -0
- package/node_modules/diff/libcjs/patch/apply.js +264 -0
- package/node_modules/diff/libcjs/patch/create.d.ts +131 -0
- package/node_modules/diff/libcjs/patch/create.d.ts.map +1 -0
- package/node_modules/diff/libcjs/patch/create.js +364 -0
- package/node_modules/diff/libcjs/patch/line-endings.d.ts +17 -0
- package/node_modules/diff/libcjs/patch/line-endings.d.ts.map +1 -0
- package/node_modules/diff/libcjs/patch/line-endings.js +50 -0
- package/node_modules/diff/libcjs/patch/parse.d.ts +16 -0
- package/node_modules/diff/libcjs/patch/parse.d.ts.map +1 -0
- package/node_modules/diff/libcjs/patch/parse.js +515 -0
- package/node_modules/diff/libcjs/patch/reverse.d.ts +22 -0
- package/node_modules/diff/libcjs/patch/reverse.d.ts.map +1 -0
- package/node_modules/diff/libcjs/patch/reverse.js +63 -0
- package/node_modules/diff/libcjs/types.d.ts +260 -0
- package/node_modules/diff/libcjs/types.d.ts.map +1 -0
- package/node_modules/diff/libcjs/types.js +2 -0
- package/node_modules/diff/libcjs/util/array.d.ts +3 -0
- package/node_modules/diff/libcjs/util/array.d.ts.map +1 -0
- package/node_modules/diff/libcjs/util/array.js +21 -0
- package/node_modules/diff/libcjs/util/distance-iterator.d.ts +2 -0
- package/node_modules/diff/libcjs/util/distance-iterator.d.ts.map +1 -0
- package/node_modules/diff/libcjs/util/distance-iterator.js +40 -0
- package/node_modules/diff/libcjs/util/params.d.ts +4 -0
- package/node_modules/diff/libcjs/util/params.d.ts.map +1 -0
- package/node_modules/diff/libcjs/util/params.js +17 -0
- package/node_modules/diff/libcjs/util/string.d.ts +30 -0
- package/node_modules/diff/libcjs/util/string.d.ts.map +1 -0
- package/node_modules/diff/libcjs/util/string.js +199 -0
- package/node_modules/diff/libesm/convert/dmp.d.ts +8 -0
- package/node_modules/diff/libesm/convert/dmp.d.ts.map +1 -0
- package/node_modules/diff/libesm/convert/dmp.js +21 -0
- package/node_modules/diff/libesm/convert/xml.d.ts +6 -0
- package/node_modules/diff/libesm/convert/xml.d.ts.map +1 -0
- package/node_modules/diff/libesm/convert/xml.js +31 -0
- package/node_modules/diff/libesm/diff/array.d.ts +19 -0
- package/node_modules/diff/libesm/diff/array.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/array.js +16 -0
- package/node_modules/diff/libesm/diff/base.d.ts +20 -0
- package/node_modules/diff/libesm/diff/base.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/base.js +253 -0
- package/node_modules/diff/libesm/diff/character.d.ts +19 -0
- package/node_modules/diff/libesm/diff/character.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/character.js +7 -0
- package/node_modules/diff/libesm/diff/css.d.ts +18 -0
- package/node_modules/diff/libesm/diff/css.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/css.js +10 -0
- package/node_modules/diff/libesm/diff/json.d.ts +24 -0
- package/node_modules/diff/libesm/diff/json.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/json.js +78 -0
- package/node_modules/diff/libesm/diff/line.d.ts +24 -0
- package/node_modules/diff/libesm/diff/line.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/line.js +65 -0
- package/node_modules/diff/libesm/diff/sentence.d.ts +21 -0
- package/node_modules/diff/libesm/diff/sentence.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/sentence.js +43 -0
- package/node_modules/diff/libesm/diff/word.d.ts +35 -0
- package/node_modules/diff/libesm/diff/word.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/word.js +281 -0
- package/node_modules/diff/libesm/index.d.ts +20 -0
- package/node_modules/diff/libesm/index.d.ts.map +1 -0
- package/node_modules/diff/libesm/index.js +30 -0
- package/node_modules/diff/libesm/package.json +1 -0
- package/node_modules/diff/libesm/patch/apply.d.ts +62 -0
- package/node_modules/diff/libesm/patch/apply.d.ts.map +1 -0
- package/node_modules/diff/libesm/patch/apply.js +257 -0
- package/node_modules/diff/libesm/patch/create.d.ts +131 -0
- package/node_modules/diff/libesm/patch/create.d.ts.map +1 -0
- package/node_modules/diff/libesm/patch/create.js +357 -0
- package/node_modules/diff/libesm/patch/line-endings.d.ts +17 -0
- package/node_modules/diff/libesm/patch/line-endings.d.ts.map +1 -0
- package/node_modules/diff/libesm/patch/line-endings.js +44 -0
- package/node_modules/diff/libesm/patch/parse.d.ts +16 -0
- package/node_modules/diff/libesm/patch/parse.d.ts.map +1 -0
- package/node_modules/diff/libesm/patch/parse.js +512 -0
- package/node_modules/diff/libesm/patch/reverse.d.ts +22 -0
- package/node_modules/diff/libesm/patch/reverse.d.ts.map +1 -0
- package/node_modules/diff/libesm/patch/reverse.js +60 -0
- package/node_modules/diff/libesm/types.d.ts +260 -0
- package/node_modules/diff/libesm/types.d.ts.map +1 -0
- package/node_modules/diff/libesm/types.js +1 -0
- package/node_modules/diff/libesm/util/array.d.ts +3 -0
- package/node_modules/diff/libesm/util/array.d.ts.map +1 -0
- package/node_modules/diff/libesm/util/array.js +17 -0
- package/node_modules/diff/libesm/util/distance-iterator.d.ts +2 -0
- package/node_modules/diff/libesm/util/distance-iterator.d.ts.map +1 -0
- package/node_modules/diff/libesm/util/distance-iterator.js +37 -0
- package/node_modules/diff/libesm/util/params.d.ts +4 -0
- package/node_modules/diff/libesm/util/params.d.ts.map +1 -0
- package/node_modules/diff/libesm/util/params.js +14 -0
- package/node_modules/diff/libesm/util/string.d.ts +30 -0
- package/node_modules/diff/libesm/util/string.d.ts.map +1 -0
- package/node_modules/diff/libesm/util/string.js +184 -0
- package/node_modules/diff/package.json +130 -0
- package/node_modules/diff/release-notes.md +474 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/minizlib/README.md +64 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/minizlib/package.json +80 -0
- package/node_modules/pend/LICENSE +23 -0
- package/node_modules/pend/README.md +41 -0
- package/node_modules/pend/index.js +55 -0
- package/node_modules/pend/package.json +18 -0
- package/node_modules/pend/test.js +137 -0
- package/node_modules/tar/LICENSE.md +55 -0
- package/node_modules/tar/README.md +1233 -0
- package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/create.js +82 -0
- package/node_modules/tar/dist/commonjs/create.js.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/commonjs/header.d.ts +53 -0
- package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/header.js +348 -0
- package/node_modules/tar/dist/commonjs/header.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
- package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/index.js +64 -0
- package/node_modules/tar/dist/commonjs/index.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/list.js +153 -0
- package/node_modules/tar/dist/commonjs/list.js.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/options.d.ts +604 -0
- package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/options.js +66 -0
- package/node_modules/tar/dist/commonjs/options.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts +105 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/package.json +3 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts +92 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/parse.js +655 -0
- package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.js +182 -0
- package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
- package/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/types.d.ts +16 -0
- package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/types.js +70 -0
- package/node_modules/tar/dist/commonjs/types.js.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/update.js +33 -0
- package/node_modules/tar/dist/commonjs/update.js.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/create.d.ts +3 -0
- package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/create.js +76 -0
- package/node_modules/tar/dist/esm/create.js.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/esm/extract.d.ts +3 -0
- package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/extract.js +49 -0
- package/node_modules/tar/dist/esm/extract.js.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/esm/header.d.ts +53 -0
- package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/header.js +311 -0
- package/node_modules/tar/dist/esm/header.js.map +1 -0
- package/node_modules/tar/dist/esm/index.d.ts +20 -0
- package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/index.js +20 -0
- package/node_modules/tar/dist/esm/index.js.map +1 -0
- package/node_modules/tar/dist/esm/index.min.js +4 -0
- package/node_modules/tar/dist/esm/index.min.js.map +7 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/esm/list.d.ts +7 -0
- package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/list.js +113 -0
- package/node_modules/tar/dist/esm/list.js.map +1 -0
- package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
- package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/make-command.js +48 -0
- package/node_modules/tar/dist/esm/make-command.js.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/esm/options.d.ts +604 -0
- package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/options.js +54 -0
- package/node_modules/tar/dist/esm/options.js.map +1 -0
- package/node_modules/tar/dist/esm/pack.d.ts +105 -0
- package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pack.js +502 -0
- package/node_modules/tar/dist/esm/pack.js.map +1 -0
- package/node_modules/tar/dist/esm/package.json +3 -0
- package/node_modules/tar/dist/esm/parse.d.ts +92 -0
- package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/parse.js +651 -0
- package/node_modules/tar/dist/esm/parse.js.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/esm/pax.d.ts +26 -0
- package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pax.js +178 -0
- package/node_modules/tar/dist/esm/pax.js.map +1 -0
- package/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
- package/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/node_modules/tar/dist/esm/process-umask.js.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/replace.d.ts +2 -0
- package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/replace.js +221 -0
- package/node_modules/tar/dist/esm/replace.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/esm/types.d.ts +16 -0
- package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/types.js +65 -0
- package/node_modules/tar/dist/esm/types.js.map +1 -0
- package/node_modules/tar/dist/esm/unpack.d.ts +101 -0
- package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/unpack.js +891 -0
- package/node_modules/tar/dist/esm/unpack.js.map +1 -0
- package/node_modules/tar/dist/esm/update.d.ts +2 -0
- package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/update.js +30 -0
- package/node_modules/tar/dist/esm/update.js.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
- package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
- package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/winchars.js +9 -0
- package/node_modules/tar/dist/esm/winchars.js.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
- package/node_modules/tar/package.json +298 -0
- package/node_modules/typescript/LICENSE.txt +55 -0
- package/node_modules/typescript/README.md +50 -0
- package/node_modules/typescript/SECURITY.md +41 -0
- package/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/node_modules/typescript/bin/tsc +2 -0
- package/node_modules/typescript/bin/tsserver +2 -0
- package/node_modules/typescript/lib/_tsc.js +133818 -0
- package/node_modules/typescript/lib/_tsserver.js +659 -0
- package/node_modules/typescript/lib/_typingsInstaller.js +222 -0
- package/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/lib.d.ts +22 -0
- package/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
- package/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- package/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
- package/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
- package/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- package/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- package/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
- package/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- package/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- package/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- package/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- package/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- package/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- package/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- package/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- package/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
- package/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- package/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- package/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- package/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- package/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- package/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- package/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
- package/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- package/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
- package/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
- package/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- package/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- package/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- package/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
- package/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
- package/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- package/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- package/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
- package/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
- package/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- package/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
- package/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
- package/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- package/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
- package/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- package/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
- package/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- package/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
- package/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- package/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
- package/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/tsc.js +8 -0
- package/node_modules/typescript/lib/tsserver.js +8 -0
- package/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
- package/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- package/node_modules/typescript/lib/typesMap.json +497 -0
- package/node_modules/typescript/lib/typescript.d.ts +11437 -0
- package/node_modules/typescript/lib/typescript.js +200276 -0
- package/node_modules/typescript/lib/typingsInstaller.js +8 -0
- package/node_modules/typescript/lib/watchGuard.js +53 -0
- package/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/package.json +120 -0
- package/node_modules/yallist/LICENSE.md +63 -0
- package/node_modules/yallist/README.md +205 -0
- package/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
- package/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/node_modules/yallist/dist/commonjs/index.js.map +1 -0
- package/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/node_modules/yallist/dist/esm/index.d.ts +39 -0
- package/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/esm/index.js +379 -0
- package/node_modules/yallist/dist/esm/index.js.map +1 -0
- package/node_modules/yallist/dist/esm/package.json +3 -0
- package/node_modules/yallist/package.json +68 -0
- package/node_modules/yauzl/LICENSE +21 -0
- package/node_modules/yauzl/README.md +1015 -0
- package/node_modules/yauzl/crc32.js +45 -0
- package/node_modules/yauzl/fd-slicer.js +188 -0
- package/node_modules/yauzl/index.js +1096 -0
- package/node_modules/yauzl/package.json +40 -0
- package/node_modules/yazl/LICENSE +21 -0
- package/node_modules/yazl/README.md +457 -0
- package/node_modules/yazl/index.js +826 -0
- package/node_modules/yazl/package.json +34 -0
- package/package.json +163 -0
- package/testkit-config-schema.md +718 -0
|
@@ -0,0 +1,1038 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Minipass = exports.isWritable = exports.isReadable = exports.isStream = void 0;
|
|
7
|
+
const proc = typeof process === 'object' && process
|
|
8
|
+
? process
|
|
9
|
+
: {
|
|
10
|
+
stdout: null,
|
|
11
|
+
stderr: null,
|
|
12
|
+
};
|
|
13
|
+
const node_events_1 = require("node:events");
|
|
14
|
+
const node_stream_1 = __importDefault(require("node:stream"));
|
|
15
|
+
const node_string_decoder_1 = require("node:string_decoder");
|
|
16
|
+
/**
|
|
17
|
+
* Return true if the argument is a Minipass stream, Node stream, or something
|
|
18
|
+
* else that Minipass can interact with.
|
|
19
|
+
*/
|
|
20
|
+
const isStream = (s) => !!s &&
|
|
21
|
+
typeof s === 'object' &&
|
|
22
|
+
(s instanceof Minipass ||
|
|
23
|
+
s instanceof node_stream_1.default ||
|
|
24
|
+
(0, exports.isReadable)(s) ||
|
|
25
|
+
(0, exports.isWritable)(s))
|
|
26
|
+
/**
|
|
27
|
+
* Return true if the argument is a valid {@link Minipass.Readable}
|
|
28
|
+
*/
|
|
29
|
+
;
|
|
30
|
+
exports.isStream = isStream;
|
|
31
|
+
/**
|
|
32
|
+
* Return true if the argument is a valid {@link Minipass.Readable}
|
|
33
|
+
*/
|
|
34
|
+
const isReadable = (s) => !!s &&
|
|
35
|
+
typeof s === 'object' &&
|
|
36
|
+
s instanceof node_events_1.EventEmitter &&
|
|
37
|
+
typeof s.pipe === 'function' &&
|
|
38
|
+
// node core Writable streams have a pipe() method, but it throws
|
|
39
|
+
s.pipe !== node_stream_1.default.Writable.prototype.pipe
|
|
40
|
+
/**
|
|
41
|
+
* Return true if the argument is a valid {@link Minipass.Writable}
|
|
42
|
+
*/
|
|
43
|
+
;
|
|
44
|
+
exports.isReadable = isReadable;
|
|
45
|
+
/**
|
|
46
|
+
* Return true if the argument is a valid {@link Minipass.Writable}
|
|
47
|
+
*/
|
|
48
|
+
const isWritable = (s) => !!s &&
|
|
49
|
+
typeof s === 'object' &&
|
|
50
|
+
s instanceof node_events_1.EventEmitter &&
|
|
51
|
+
typeof s.write === 'function' &&
|
|
52
|
+
typeof s.end === 'function';
|
|
53
|
+
exports.isWritable = isWritable;
|
|
54
|
+
const EOF = Symbol('EOF');
|
|
55
|
+
const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
|
|
56
|
+
const EMITTED_END = Symbol('emittedEnd');
|
|
57
|
+
const EMITTING_END = Symbol('emittingEnd');
|
|
58
|
+
const EMITTED_ERROR = Symbol('emittedError');
|
|
59
|
+
const CLOSED = Symbol('closed');
|
|
60
|
+
const READ = Symbol('read');
|
|
61
|
+
const FLUSH = Symbol('flush');
|
|
62
|
+
const FLUSHCHUNK = Symbol('flushChunk');
|
|
63
|
+
const ENCODING = Symbol('encoding');
|
|
64
|
+
const DECODER = Symbol('decoder');
|
|
65
|
+
const FLOWING = Symbol('flowing');
|
|
66
|
+
const PAUSED = Symbol('paused');
|
|
67
|
+
const RESUME = Symbol('resume');
|
|
68
|
+
const BUFFER = Symbol('buffer');
|
|
69
|
+
const PIPES = Symbol('pipes');
|
|
70
|
+
const BUFFERLENGTH = Symbol('bufferLength');
|
|
71
|
+
const BUFFERPUSH = Symbol('bufferPush');
|
|
72
|
+
const BUFFERSHIFT = Symbol('bufferShift');
|
|
73
|
+
const OBJECTMODE = Symbol('objectMode');
|
|
74
|
+
// internal event when stream is destroyed
|
|
75
|
+
const DESTROYED = Symbol('destroyed');
|
|
76
|
+
// internal event when stream has an error
|
|
77
|
+
const ERROR = Symbol('error');
|
|
78
|
+
const EMITDATA = Symbol('emitData');
|
|
79
|
+
const EMITEND = Symbol('emitEnd');
|
|
80
|
+
const EMITEND2 = Symbol('emitEnd2');
|
|
81
|
+
const ASYNC = Symbol('async');
|
|
82
|
+
const ABORT = Symbol('abort');
|
|
83
|
+
const ABORTED = Symbol('aborted');
|
|
84
|
+
const SIGNAL = Symbol('signal');
|
|
85
|
+
const DATALISTENERS = Symbol('dataListeners');
|
|
86
|
+
const DISCARDED = Symbol('discarded');
|
|
87
|
+
const defer = (fn) => Promise.resolve().then(fn);
|
|
88
|
+
const nodefer = (fn) => fn();
|
|
89
|
+
const isEndish = (ev) => ev === 'end' || ev === 'finish' || ev === 'prefinish';
|
|
90
|
+
const isArrayBufferLike = (b) => b instanceof ArrayBuffer ||
|
|
91
|
+
(!!b &&
|
|
92
|
+
typeof b === 'object' &&
|
|
93
|
+
b.constructor &&
|
|
94
|
+
b.constructor.name === 'ArrayBuffer' &&
|
|
95
|
+
b.byteLength >= 0);
|
|
96
|
+
const isArrayBufferView = (b) => !Buffer.isBuffer(b) && ArrayBuffer.isView(b);
|
|
97
|
+
/**
|
|
98
|
+
* Internal class representing a pipe to a destination stream.
|
|
99
|
+
*
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
class Pipe {
|
|
103
|
+
src;
|
|
104
|
+
dest;
|
|
105
|
+
opts;
|
|
106
|
+
ondrain;
|
|
107
|
+
constructor(src, dest, opts) {
|
|
108
|
+
this.src = src;
|
|
109
|
+
this.dest = dest;
|
|
110
|
+
this.opts = opts;
|
|
111
|
+
this.ondrain = () => src[RESUME]();
|
|
112
|
+
this.dest.on('drain', this.ondrain);
|
|
113
|
+
}
|
|
114
|
+
unpipe() {
|
|
115
|
+
this.dest.removeListener('drain', this.ondrain);
|
|
116
|
+
}
|
|
117
|
+
// only here for the prototype
|
|
118
|
+
/* c8 ignore start */
|
|
119
|
+
proxyErrors(_er) { }
|
|
120
|
+
/* c8 ignore stop */
|
|
121
|
+
end() {
|
|
122
|
+
this.unpipe();
|
|
123
|
+
if (this.opts.end)
|
|
124
|
+
this.dest.end();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Internal class representing a pipe to a destination stream where
|
|
129
|
+
* errors are proxied.
|
|
130
|
+
*
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
class PipeProxyErrors extends Pipe {
|
|
134
|
+
unpipe() {
|
|
135
|
+
this.src.removeListener('error', this.proxyErrors);
|
|
136
|
+
super.unpipe();
|
|
137
|
+
}
|
|
138
|
+
constructor(src, dest, opts) {
|
|
139
|
+
super(src, dest, opts);
|
|
140
|
+
this.proxyErrors = (er) => this.dest.emit('error', er);
|
|
141
|
+
src.on('error', this.proxyErrors);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
const isObjectModeOptions = (o) => !!o.objectMode;
|
|
145
|
+
const isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== 'buffer';
|
|
146
|
+
/**
|
|
147
|
+
* Main export, the Minipass class
|
|
148
|
+
*
|
|
149
|
+
* `RType` is the type of data emitted, defaults to Buffer
|
|
150
|
+
*
|
|
151
|
+
* `WType` is the type of data to be written, if RType is buffer or string,
|
|
152
|
+
* then any {@link Minipass.ContiguousData} is allowed.
|
|
153
|
+
*
|
|
154
|
+
* `Events` is the set of event handler signatures that this object
|
|
155
|
+
* will emit, see {@link Minipass.Events}
|
|
156
|
+
*/
|
|
157
|
+
class Minipass extends node_events_1.EventEmitter {
|
|
158
|
+
[FLOWING] = false;
|
|
159
|
+
[PAUSED] = false;
|
|
160
|
+
[PIPES] = [];
|
|
161
|
+
[BUFFER] = [];
|
|
162
|
+
[OBJECTMODE];
|
|
163
|
+
[ENCODING];
|
|
164
|
+
[ASYNC];
|
|
165
|
+
[DECODER];
|
|
166
|
+
[EOF] = false;
|
|
167
|
+
[EMITTED_END] = false;
|
|
168
|
+
[EMITTING_END] = false;
|
|
169
|
+
[CLOSED] = false;
|
|
170
|
+
[EMITTED_ERROR] = null;
|
|
171
|
+
[BUFFERLENGTH] = 0;
|
|
172
|
+
[DESTROYED] = false;
|
|
173
|
+
[SIGNAL];
|
|
174
|
+
[ABORTED] = false;
|
|
175
|
+
[DATALISTENERS] = 0;
|
|
176
|
+
[DISCARDED] = false;
|
|
177
|
+
/**
|
|
178
|
+
* true if the stream can be written
|
|
179
|
+
*/
|
|
180
|
+
writable = true;
|
|
181
|
+
/**
|
|
182
|
+
* true if the stream can be read
|
|
183
|
+
*/
|
|
184
|
+
readable = true;
|
|
185
|
+
/**
|
|
186
|
+
* If `RType` is Buffer, then options do not need to be provided.
|
|
187
|
+
* Otherwise, an options object must be provided to specify either
|
|
188
|
+
* {@link Minipass.SharedOptions.objectMode} or
|
|
189
|
+
* {@link Minipass.SharedOptions.encoding}, as appropriate.
|
|
190
|
+
*/
|
|
191
|
+
constructor(...args) {
|
|
192
|
+
const options = (args[0] ||
|
|
193
|
+
{});
|
|
194
|
+
super();
|
|
195
|
+
if (options.objectMode && typeof options.encoding === 'string') {
|
|
196
|
+
throw new TypeError('Encoding and objectMode may not be used together');
|
|
197
|
+
}
|
|
198
|
+
if (isObjectModeOptions(options)) {
|
|
199
|
+
this[OBJECTMODE] = true;
|
|
200
|
+
this[ENCODING] = null;
|
|
201
|
+
}
|
|
202
|
+
else if (isEncodingOptions(options)) {
|
|
203
|
+
this[ENCODING] = options.encoding;
|
|
204
|
+
this[OBJECTMODE] = false;
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
this[OBJECTMODE] = false;
|
|
208
|
+
this[ENCODING] = null;
|
|
209
|
+
}
|
|
210
|
+
this[ASYNC] = !!options.async;
|
|
211
|
+
this[DECODER] = this[ENCODING]
|
|
212
|
+
? new node_string_decoder_1.StringDecoder(this[ENCODING])
|
|
213
|
+
: null;
|
|
214
|
+
//@ts-ignore - private option for debugging and testing
|
|
215
|
+
if (options && options.debugExposeBuffer === true) {
|
|
216
|
+
Object.defineProperty(this, 'buffer', { get: () => this[BUFFER] });
|
|
217
|
+
}
|
|
218
|
+
//@ts-ignore - private option for debugging and testing
|
|
219
|
+
if (options && options.debugExposePipes === true) {
|
|
220
|
+
Object.defineProperty(this, 'pipes', { get: () => this[PIPES] });
|
|
221
|
+
}
|
|
222
|
+
const { signal } = options;
|
|
223
|
+
if (signal) {
|
|
224
|
+
this[SIGNAL] = signal;
|
|
225
|
+
if (signal.aborted) {
|
|
226
|
+
this[ABORT]();
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
signal.addEventListener('abort', () => this[ABORT]());
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* The amount of data stored in the buffer waiting to be read.
|
|
235
|
+
*
|
|
236
|
+
* For Buffer strings, this will be the total byte length.
|
|
237
|
+
* For string encoding streams, this will be the string character length,
|
|
238
|
+
* according to JavaScript's `string.length` logic.
|
|
239
|
+
* For objectMode streams, this is a count of the items waiting to be
|
|
240
|
+
* emitted.
|
|
241
|
+
*/
|
|
242
|
+
get bufferLength() {
|
|
243
|
+
return this[BUFFERLENGTH];
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* The `BufferEncoding` currently in use, or `null`
|
|
247
|
+
*/
|
|
248
|
+
get encoding() {
|
|
249
|
+
return this[ENCODING];
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* @deprecated - This is a read only property
|
|
253
|
+
*/
|
|
254
|
+
set encoding(_enc) {
|
|
255
|
+
throw new Error('Encoding must be set at instantiation time');
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* @deprecated - Encoding may only be set at instantiation time
|
|
259
|
+
*/
|
|
260
|
+
setEncoding(_enc) {
|
|
261
|
+
throw new Error('Encoding must be set at instantiation time');
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* True if this is an objectMode stream
|
|
265
|
+
*/
|
|
266
|
+
get objectMode() {
|
|
267
|
+
return this[OBJECTMODE];
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* @deprecated - This is a read-only property
|
|
271
|
+
*/
|
|
272
|
+
set objectMode(_om) {
|
|
273
|
+
throw new Error('objectMode must be set at instantiation time');
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* true if this is an async stream
|
|
277
|
+
*/
|
|
278
|
+
get ['async']() {
|
|
279
|
+
return this[ASYNC];
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Set to true to make this stream async.
|
|
283
|
+
*
|
|
284
|
+
* Once set, it cannot be unset, as this would potentially cause incorrect
|
|
285
|
+
* behavior. Ie, a sync stream can be made async, but an async stream
|
|
286
|
+
* cannot be safely made sync.
|
|
287
|
+
*/
|
|
288
|
+
set ['async'](a) {
|
|
289
|
+
this[ASYNC] = this[ASYNC] || !!a;
|
|
290
|
+
}
|
|
291
|
+
// drop everything and get out of the flow completely
|
|
292
|
+
[ABORT]() {
|
|
293
|
+
this[ABORTED] = true;
|
|
294
|
+
this.emit('abort', this[SIGNAL]?.reason);
|
|
295
|
+
this.destroy(this[SIGNAL]?.reason);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* True if the stream has been aborted.
|
|
299
|
+
*/
|
|
300
|
+
get aborted() {
|
|
301
|
+
return this[ABORTED];
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* No-op setter. Stream aborted status is set via the AbortSignal provided
|
|
305
|
+
* in the constructor options.
|
|
306
|
+
*/
|
|
307
|
+
set aborted(_) { }
|
|
308
|
+
write(chunk, encoding, cb) {
|
|
309
|
+
if (this[ABORTED])
|
|
310
|
+
return false;
|
|
311
|
+
if (this[EOF])
|
|
312
|
+
throw new Error('write after end');
|
|
313
|
+
if (this[DESTROYED]) {
|
|
314
|
+
this.emit('error', Object.assign(new Error('Cannot call write after a stream was destroyed'), { code: 'ERR_STREAM_DESTROYED' }));
|
|
315
|
+
return true;
|
|
316
|
+
}
|
|
317
|
+
if (typeof encoding === 'function') {
|
|
318
|
+
cb = encoding;
|
|
319
|
+
encoding = 'utf8';
|
|
320
|
+
}
|
|
321
|
+
if (!encoding)
|
|
322
|
+
encoding = 'utf8';
|
|
323
|
+
const fn = this[ASYNC] ? defer : nodefer;
|
|
324
|
+
// convert array buffers and typed array views into buffers
|
|
325
|
+
// at some point in the future, we may want to do the opposite!
|
|
326
|
+
// leave strings and buffers as-is
|
|
327
|
+
// anything is only allowed if in object mode, so throw
|
|
328
|
+
if (!this[OBJECTMODE] && !Buffer.isBuffer(chunk)) {
|
|
329
|
+
if (isArrayBufferView(chunk)) {
|
|
330
|
+
//@ts-ignore - sinful unsafe type changing
|
|
331
|
+
chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
332
|
+
}
|
|
333
|
+
else if (isArrayBufferLike(chunk)) {
|
|
334
|
+
//@ts-ignore - sinful unsafe type changing
|
|
335
|
+
chunk = Buffer.from(chunk);
|
|
336
|
+
}
|
|
337
|
+
else if (typeof chunk !== 'string') {
|
|
338
|
+
throw new Error('Non-contiguous data written to non-objectMode stream');
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
// handle object mode up front, since it's simpler
|
|
342
|
+
// this yields better performance, fewer checks later.
|
|
343
|
+
if (this[OBJECTMODE]) {
|
|
344
|
+
// maybe impossible?
|
|
345
|
+
/* c8 ignore start */
|
|
346
|
+
if (this[FLOWING] && this[BUFFERLENGTH] !== 0)
|
|
347
|
+
this[FLUSH](true);
|
|
348
|
+
/* c8 ignore stop */
|
|
349
|
+
if (this[FLOWING])
|
|
350
|
+
this.emit('data', chunk);
|
|
351
|
+
else
|
|
352
|
+
this[BUFFERPUSH](chunk);
|
|
353
|
+
if (this[BUFFERLENGTH] !== 0)
|
|
354
|
+
this.emit('readable');
|
|
355
|
+
if (cb)
|
|
356
|
+
fn(cb);
|
|
357
|
+
return this[FLOWING];
|
|
358
|
+
}
|
|
359
|
+
// at this point the chunk is a buffer or string
|
|
360
|
+
// don't buffer it up or send it to the decoder
|
|
361
|
+
if (!chunk.length) {
|
|
362
|
+
if (this[BUFFERLENGTH] !== 0)
|
|
363
|
+
this.emit('readable');
|
|
364
|
+
if (cb)
|
|
365
|
+
fn(cb);
|
|
366
|
+
return this[FLOWING];
|
|
367
|
+
}
|
|
368
|
+
// fast-path writing strings of same encoding to a stream with
|
|
369
|
+
// an empty buffer, skipping the buffer/decoder dance
|
|
370
|
+
if (typeof chunk === 'string' &&
|
|
371
|
+
// unless it is a string already ready for us to use
|
|
372
|
+
!(encoding === this[ENCODING] && !this[DECODER]?.lastNeed)) {
|
|
373
|
+
//@ts-ignore - sinful unsafe type change
|
|
374
|
+
chunk = Buffer.from(chunk, encoding);
|
|
375
|
+
}
|
|
376
|
+
if (Buffer.isBuffer(chunk) && this[ENCODING]) {
|
|
377
|
+
//@ts-ignore - sinful unsafe type change
|
|
378
|
+
chunk = this[DECODER].write(chunk);
|
|
379
|
+
}
|
|
380
|
+
// Note: flushing CAN potentially switch us into not-flowing mode
|
|
381
|
+
if (this[FLOWING] && this[BUFFERLENGTH] !== 0)
|
|
382
|
+
this[FLUSH](true);
|
|
383
|
+
if (this[FLOWING])
|
|
384
|
+
this.emit('data', chunk);
|
|
385
|
+
else
|
|
386
|
+
this[BUFFERPUSH](chunk);
|
|
387
|
+
if (this[BUFFERLENGTH] !== 0)
|
|
388
|
+
this.emit('readable');
|
|
389
|
+
if (cb)
|
|
390
|
+
fn(cb);
|
|
391
|
+
return this[FLOWING];
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Low-level explicit read method.
|
|
395
|
+
*
|
|
396
|
+
* In objectMode, the argument is ignored, and one item is returned if
|
|
397
|
+
* available.
|
|
398
|
+
*
|
|
399
|
+
* `n` is the number of bytes (or in the case of encoding streams,
|
|
400
|
+
* characters) to consume. If `n` is not provided, then the entire buffer
|
|
401
|
+
* is returned, or `null` is returned if no data is available.
|
|
402
|
+
*
|
|
403
|
+
* If `n` is greater that the amount of data in the internal buffer,
|
|
404
|
+
* then `null` is returned.
|
|
405
|
+
*/
|
|
406
|
+
read(n) {
|
|
407
|
+
if (this[DESTROYED])
|
|
408
|
+
return null;
|
|
409
|
+
this[DISCARDED] = false;
|
|
410
|
+
if (this[BUFFERLENGTH] === 0 ||
|
|
411
|
+
n === 0 ||
|
|
412
|
+
(n && n > this[BUFFERLENGTH])) {
|
|
413
|
+
this[MAYBE_EMIT_END]();
|
|
414
|
+
return null;
|
|
415
|
+
}
|
|
416
|
+
if (this[OBJECTMODE])
|
|
417
|
+
n = null;
|
|
418
|
+
if (this[BUFFER].length > 1 && !this[OBJECTMODE]) {
|
|
419
|
+
// not object mode, so if we have an encoding, then RType is string
|
|
420
|
+
// otherwise, must be Buffer
|
|
421
|
+
this[BUFFER] = [
|
|
422
|
+
(this[ENCODING]
|
|
423
|
+
? this[BUFFER].join('')
|
|
424
|
+
: Buffer.concat(this[BUFFER], this[BUFFERLENGTH])),
|
|
425
|
+
];
|
|
426
|
+
}
|
|
427
|
+
const ret = this[READ](n || null, this[BUFFER][0]);
|
|
428
|
+
this[MAYBE_EMIT_END]();
|
|
429
|
+
return ret;
|
|
430
|
+
}
|
|
431
|
+
[READ](n, chunk) {
|
|
432
|
+
if (this[OBJECTMODE])
|
|
433
|
+
this[BUFFERSHIFT]();
|
|
434
|
+
else {
|
|
435
|
+
const c = chunk;
|
|
436
|
+
if (n === c.length || n === null)
|
|
437
|
+
this[BUFFERSHIFT]();
|
|
438
|
+
else if (typeof c === 'string') {
|
|
439
|
+
this[BUFFER][0] = c.slice(n);
|
|
440
|
+
chunk = c.slice(0, n);
|
|
441
|
+
this[BUFFERLENGTH] -= n;
|
|
442
|
+
}
|
|
443
|
+
else {
|
|
444
|
+
this[BUFFER][0] = c.subarray(n);
|
|
445
|
+
chunk = c.subarray(0, n);
|
|
446
|
+
this[BUFFERLENGTH] -= n;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
this.emit('data', chunk);
|
|
450
|
+
if (!this[BUFFER].length && !this[EOF])
|
|
451
|
+
this.emit('drain');
|
|
452
|
+
return chunk;
|
|
453
|
+
}
|
|
454
|
+
end(chunk, encoding, cb) {
|
|
455
|
+
if (typeof chunk === 'function') {
|
|
456
|
+
cb = chunk;
|
|
457
|
+
chunk = undefined;
|
|
458
|
+
}
|
|
459
|
+
if (typeof encoding === 'function') {
|
|
460
|
+
cb = encoding;
|
|
461
|
+
encoding = 'utf8';
|
|
462
|
+
}
|
|
463
|
+
if (chunk !== undefined)
|
|
464
|
+
this.write(chunk, encoding);
|
|
465
|
+
if (cb)
|
|
466
|
+
this.once('end', cb);
|
|
467
|
+
this[EOF] = true;
|
|
468
|
+
this.writable = false;
|
|
469
|
+
// if we haven't written anything, then go ahead and emit,
|
|
470
|
+
// even if we're not reading.
|
|
471
|
+
// we'll re-emit if a new 'end' listener is added anyway.
|
|
472
|
+
// This makes MP more suitable to write-only use cases.
|
|
473
|
+
if (this[FLOWING] || !this[PAUSED])
|
|
474
|
+
this[MAYBE_EMIT_END]();
|
|
475
|
+
return this;
|
|
476
|
+
}
|
|
477
|
+
// don't let the internal resume be overwritten
|
|
478
|
+
[RESUME]() {
|
|
479
|
+
if (this[DESTROYED])
|
|
480
|
+
return;
|
|
481
|
+
if (!this[DATALISTENERS] && !this[PIPES].length) {
|
|
482
|
+
this[DISCARDED] = true;
|
|
483
|
+
}
|
|
484
|
+
this[PAUSED] = false;
|
|
485
|
+
this[FLOWING] = true;
|
|
486
|
+
this.emit('resume');
|
|
487
|
+
if (this[BUFFER].length)
|
|
488
|
+
this[FLUSH]();
|
|
489
|
+
else if (this[EOF])
|
|
490
|
+
this[MAYBE_EMIT_END]();
|
|
491
|
+
else
|
|
492
|
+
this.emit('drain');
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Resume the stream if it is currently in a paused state
|
|
496
|
+
*
|
|
497
|
+
* If called when there are no pipe destinations or `data` event listeners,
|
|
498
|
+
* this will place the stream in a "discarded" state, where all data will
|
|
499
|
+
* be thrown away. The discarded state is removed if a pipe destination or
|
|
500
|
+
* data handler is added, if pause() is called, or if any synchronous or
|
|
501
|
+
* asynchronous iteration is started.
|
|
502
|
+
*/
|
|
503
|
+
resume() {
|
|
504
|
+
return this[RESUME]();
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Pause the stream
|
|
508
|
+
*/
|
|
509
|
+
pause() {
|
|
510
|
+
this[FLOWING] = false;
|
|
511
|
+
this[PAUSED] = true;
|
|
512
|
+
this[DISCARDED] = false;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* true if the stream has been forcibly destroyed
|
|
516
|
+
*/
|
|
517
|
+
get destroyed() {
|
|
518
|
+
return this[DESTROYED];
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* true if the stream is currently in a flowing state, meaning that
|
|
522
|
+
* any writes will be immediately emitted.
|
|
523
|
+
*/
|
|
524
|
+
get flowing() {
|
|
525
|
+
return this[FLOWING];
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* true if the stream is currently in a paused state
|
|
529
|
+
*/
|
|
530
|
+
get paused() {
|
|
531
|
+
return this[PAUSED];
|
|
532
|
+
}
|
|
533
|
+
[BUFFERPUSH](chunk) {
|
|
534
|
+
if (this[OBJECTMODE])
|
|
535
|
+
this[BUFFERLENGTH] += 1;
|
|
536
|
+
else
|
|
537
|
+
this[BUFFERLENGTH] += chunk.length;
|
|
538
|
+
this[BUFFER].push(chunk);
|
|
539
|
+
}
|
|
540
|
+
[BUFFERSHIFT]() {
|
|
541
|
+
if (this[OBJECTMODE])
|
|
542
|
+
this[BUFFERLENGTH] -= 1;
|
|
543
|
+
else
|
|
544
|
+
this[BUFFERLENGTH] -= this[BUFFER][0].length;
|
|
545
|
+
return this[BUFFER].shift();
|
|
546
|
+
}
|
|
547
|
+
[FLUSH](noDrain = false) {
|
|
548
|
+
do { } while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) &&
|
|
549
|
+
this[BUFFER].length);
|
|
550
|
+
if (!noDrain && !this[BUFFER].length && !this[EOF])
|
|
551
|
+
this.emit('drain');
|
|
552
|
+
}
|
|
553
|
+
[FLUSHCHUNK](chunk) {
|
|
554
|
+
this.emit('data', chunk);
|
|
555
|
+
return this[FLOWING];
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Pipe all data emitted by this stream into the destination provided.
|
|
559
|
+
*
|
|
560
|
+
* Triggers the flow of data.
|
|
561
|
+
*/
|
|
562
|
+
pipe(dest, opts) {
|
|
563
|
+
if (this[DESTROYED])
|
|
564
|
+
return dest;
|
|
565
|
+
this[DISCARDED] = false;
|
|
566
|
+
const ended = this[EMITTED_END];
|
|
567
|
+
opts = opts || {};
|
|
568
|
+
if (dest === proc.stdout || dest === proc.stderr)
|
|
569
|
+
opts.end = false;
|
|
570
|
+
else
|
|
571
|
+
opts.end = opts.end !== false;
|
|
572
|
+
opts.proxyErrors = !!opts.proxyErrors;
|
|
573
|
+
// piping an ended stream ends immediately
|
|
574
|
+
if (ended) {
|
|
575
|
+
if (opts.end)
|
|
576
|
+
dest.end();
|
|
577
|
+
}
|
|
578
|
+
else {
|
|
579
|
+
// "as" here just ignores the WType, which pipes don't care about,
|
|
580
|
+
// since they're only consuming from us, and writing to the dest
|
|
581
|
+
this[PIPES].push(!opts.proxyErrors
|
|
582
|
+
? new Pipe(this, dest, opts)
|
|
583
|
+
: new PipeProxyErrors(this, dest, opts));
|
|
584
|
+
if (this[ASYNC])
|
|
585
|
+
defer(() => this[RESUME]());
|
|
586
|
+
else
|
|
587
|
+
this[RESUME]();
|
|
588
|
+
}
|
|
589
|
+
return dest;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Fully unhook a piped destination stream.
|
|
593
|
+
*
|
|
594
|
+
* If the destination stream was the only consumer of this stream (ie,
|
|
595
|
+
* there are no other piped destinations or `'data'` event listeners)
|
|
596
|
+
* then the flow of data will stop until there is another consumer or
|
|
597
|
+
* {@link Minipass#resume} is explicitly called.
|
|
598
|
+
*/
|
|
599
|
+
unpipe(dest) {
|
|
600
|
+
const p = this[PIPES].find(p => p.dest === dest);
|
|
601
|
+
if (p) {
|
|
602
|
+
if (this[PIPES].length === 1) {
|
|
603
|
+
if (this[FLOWING] && this[DATALISTENERS] === 0) {
|
|
604
|
+
this[FLOWING] = false;
|
|
605
|
+
}
|
|
606
|
+
this[PIPES] = [];
|
|
607
|
+
}
|
|
608
|
+
else
|
|
609
|
+
this[PIPES].splice(this[PIPES].indexOf(p), 1);
|
|
610
|
+
p.unpipe();
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Alias for {@link Minipass#on}
|
|
615
|
+
*/
|
|
616
|
+
addListener(ev, handler) {
|
|
617
|
+
return this.on(ev, handler);
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* Mostly identical to `EventEmitter.on`, with the following
|
|
621
|
+
* behavior differences to prevent data loss and unnecessary hangs:
|
|
622
|
+
*
|
|
623
|
+
* - Adding a 'data' event handler will trigger the flow of data
|
|
624
|
+
*
|
|
625
|
+
* - Adding a 'readable' event handler when there is data waiting to be read
|
|
626
|
+
* will cause 'readable' to be emitted immediately.
|
|
627
|
+
*
|
|
628
|
+
* - Adding an 'endish' event handler ('end', 'finish', etc.) which has
|
|
629
|
+
* already passed will cause the event to be emitted immediately and all
|
|
630
|
+
* handlers removed.
|
|
631
|
+
*
|
|
632
|
+
* - Adding an 'error' event handler after an error has been emitted will
|
|
633
|
+
* cause the event to be re-emitted immediately with the error previously
|
|
634
|
+
* raised.
|
|
635
|
+
*/
|
|
636
|
+
on(ev, handler) {
|
|
637
|
+
const ret = super.on(ev, handler);
|
|
638
|
+
if (ev === 'data') {
|
|
639
|
+
this[DISCARDED] = false;
|
|
640
|
+
this[DATALISTENERS]++;
|
|
641
|
+
if (!this[PIPES].length && !this[FLOWING]) {
|
|
642
|
+
this[RESUME]();
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
else if (ev === 'readable' && this[BUFFERLENGTH] !== 0) {
|
|
646
|
+
super.emit('readable');
|
|
647
|
+
}
|
|
648
|
+
else if (isEndish(ev) && this[EMITTED_END]) {
|
|
649
|
+
super.emit(ev);
|
|
650
|
+
this.removeAllListeners(ev);
|
|
651
|
+
}
|
|
652
|
+
else if (ev === 'error' && this[EMITTED_ERROR]) {
|
|
653
|
+
const h = handler;
|
|
654
|
+
if (this[ASYNC])
|
|
655
|
+
defer(() => h.call(this, this[EMITTED_ERROR]));
|
|
656
|
+
else
|
|
657
|
+
h.call(this, this[EMITTED_ERROR]);
|
|
658
|
+
}
|
|
659
|
+
return ret;
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Alias for {@link Minipass#off}
|
|
663
|
+
*/
|
|
664
|
+
removeListener(ev, handler) {
|
|
665
|
+
return this.off(ev, handler);
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* Mostly identical to `EventEmitter.off`
|
|
669
|
+
*
|
|
670
|
+
* If a 'data' event handler is removed, and it was the last consumer
|
|
671
|
+
* (ie, there are no pipe destinations or other 'data' event listeners),
|
|
672
|
+
* then the flow of data will stop until there is another consumer or
|
|
673
|
+
* {@link Minipass#resume} is explicitly called.
|
|
674
|
+
*/
|
|
675
|
+
off(ev, handler) {
|
|
676
|
+
const ret = super.off(ev, handler);
|
|
677
|
+
// if we previously had listeners, and now we don't, and we don't
|
|
678
|
+
// have any pipes, then stop the flow, unless it's been explicitly
|
|
679
|
+
// put in a discarded flowing state via stream.resume().
|
|
680
|
+
if (ev === 'data') {
|
|
681
|
+
this[DATALISTENERS] = this.listeners('data').length;
|
|
682
|
+
if (this[DATALISTENERS] === 0 &&
|
|
683
|
+
!this[DISCARDED] &&
|
|
684
|
+
!this[PIPES].length) {
|
|
685
|
+
this[FLOWING] = false;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
return ret;
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Mostly identical to `EventEmitter.removeAllListeners`
|
|
692
|
+
*
|
|
693
|
+
* If all 'data' event handlers are removed, and they were the last consumer
|
|
694
|
+
* (ie, there are no pipe destinations), then the flow of data will stop
|
|
695
|
+
* until there is another consumer or {@link Minipass#resume} is explicitly
|
|
696
|
+
* called.
|
|
697
|
+
*/
|
|
698
|
+
removeAllListeners(ev) {
|
|
699
|
+
const ret = super.removeAllListeners(ev);
|
|
700
|
+
if (ev === 'data' || ev === undefined) {
|
|
701
|
+
this[DATALISTENERS] = 0;
|
|
702
|
+
if (!this[DISCARDED] && !this[PIPES].length) {
|
|
703
|
+
this[FLOWING] = false;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
return ret;
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* true if the 'end' event has been emitted
|
|
710
|
+
*/
|
|
711
|
+
get emittedEnd() {
|
|
712
|
+
return this[EMITTED_END];
|
|
713
|
+
}
|
|
714
|
+
[MAYBE_EMIT_END]() {
|
|
715
|
+
if (!this[EMITTING_END] &&
|
|
716
|
+
!this[EMITTED_END] &&
|
|
717
|
+
!this[DESTROYED] &&
|
|
718
|
+
this[BUFFER].length === 0 &&
|
|
719
|
+
this[EOF]) {
|
|
720
|
+
this[EMITTING_END] = true;
|
|
721
|
+
this.emit('end');
|
|
722
|
+
this.emit('prefinish');
|
|
723
|
+
this.emit('finish');
|
|
724
|
+
if (this[CLOSED])
|
|
725
|
+
this.emit('close');
|
|
726
|
+
this[EMITTING_END] = false;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* Mostly identical to `EventEmitter.emit`, with the following
|
|
731
|
+
* behavior differences to prevent data loss and unnecessary hangs:
|
|
732
|
+
*
|
|
733
|
+
* If the stream has been destroyed, and the event is something other
|
|
734
|
+
* than 'close' or 'error', then `false` is returned and no handlers
|
|
735
|
+
* are called.
|
|
736
|
+
*
|
|
737
|
+
* If the event is 'end', and has already been emitted, then the event
|
|
738
|
+
* is ignored. If the stream is in a paused or non-flowing state, then
|
|
739
|
+
* the event will be deferred until data flow resumes. If the stream is
|
|
740
|
+
* async, then handlers will be called on the next tick rather than
|
|
741
|
+
* immediately.
|
|
742
|
+
*
|
|
743
|
+
* If the event is 'close', and 'end' has not yet been emitted, then
|
|
744
|
+
* the event will be deferred until after 'end' is emitted.
|
|
745
|
+
*
|
|
746
|
+
* If the event is 'error', and an AbortSignal was provided for the stream,
|
|
747
|
+
* and there are no listeners, then the event is ignored, matching the
|
|
748
|
+
* behavior of node core streams in the presense of an AbortSignal.
|
|
749
|
+
*
|
|
750
|
+
* If the event is 'finish' or 'prefinish', then all listeners will be
|
|
751
|
+
* removed after emitting the event, to prevent double-firing.
|
|
752
|
+
*/
|
|
753
|
+
emit(ev, ...args) {
|
|
754
|
+
const data = args[0];
|
|
755
|
+
// error and close are only events allowed after calling destroy()
|
|
756
|
+
if (ev !== 'error' &&
|
|
757
|
+
ev !== 'close' &&
|
|
758
|
+
ev !== DESTROYED &&
|
|
759
|
+
this[DESTROYED]) {
|
|
760
|
+
return false;
|
|
761
|
+
}
|
|
762
|
+
else if (ev === 'data') {
|
|
763
|
+
return !this[OBJECTMODE] && !data
|
|
764
|
+
? false
|
|
765
|
+
: this[ASYNC]
|
|
766
|
+
? (defer(() => this[EMITDATA](data)), true)
|
|
767
|
+
: this[EMITDATA](data);
|
|
768
|
+
}
|
|
769
|
+
else if (ev === 'end') {
|
|
770
|
+
return this[EMITEND]();
|
|
771
|
+
}
|
|
772
|
+
else if (ev === 'close') {
|
|
773
|
+
this[CLOSED] = true;
|
|
774
|
+
// don't emit close before 'end' and 'finish'
|
|
775
|
+
if (!this[EMITTED_END] && !this[DESTROYED])
|
|
776
|
+
return false;
|
|
777
|
+
const ret = super.emit('close');
|
|
778
|
+
this.removeAllListeners('close');
|
|
779
|
+
return ret;
|
|
780
|
+
}
|
|
781
|
+
else if (ev === 'error') {
|
|
782
|
+
this[EMITTED_ERROR] = data;
|
|
783
|
+
super.emit(ERROR, data);
|
|
784
|
+
const ret = !this[SIGNAL] || this.listeners('error').length
|
|
785
|
+
? super.emit('error', data)
|
|
786
|
+
: false;
|
|
787
|
+
this[MAYBE_EMIT_END]();
|
|
788
|
+
return ret;
|
|
789
|
+
}
|
|
790
|
+
else if (ev === 'resume') {
|
|
791
|
+
const ret = super.emit('resume');
|
|
792
|
+
this[MAYBE_EMIT_END]();
|
|
793
|
+
return ret;
|
|
794
|
+
}
|
|
795
|
+
else if (ev === 'finish' || ev === 'prefinish') {
|
|
796
|
+
const ret = super.emit(ev);
|
|
797
|
+
this.removeAllListeners(ev);
|
|
798
|
+
return ret;
|
|
799
|
+
}
|
|
800
|
+
// Some other unknown event
|
|
801
|
+
const ret = super.emit(ev, ...args);
|
|
802
|
+
this[MAYBE_EMIT_END]();
|
|
803
|
+
return ret;
|
|
804
|
+
}
|
|
805
|
+
[EMITDATA](data) {
|
|
806
|
+
for (const p of this[PIPES]) {
|
|
807
|
+
if (p.dest.write(data) === false)
|
|
808
|
+
this.pause();
|
|
809
|
+
}
|
|
810
|
+
const ret = this[DISCARDED] ? false : super.emit('data', data);
|
|
811
|
+
this[MAYBE_EMIT_END]();
|
|
812
|
+
return ret;
|
|
813
|
+
}
|
|
814
|
+
[EMITEND]() {
|
|
815
|
+
if (this[EMITTED_END])
|
|
816
|
+
return false;
|
|
817
|
+
this[EMITTED_END] = true;
|
|
818
|
+
this.readable = false;
|
|
819
|
+
return this[ASYNC]
|
|
820
|
+
? (defer(() => this[EMITEND2]()), true)
|
|
821
|
+
: this[EMITEND2]();
|
|
822
|
+
}
|
|
823
|
+
[EMITEND2]() {
|
|
824
|
+
if (this[DECODER]) {
|
|
825
|
+
const data = this[DECODER].end();
|
|
826
|
+
if (data) {
|
|
827
|
+
for (const p of this[PIPES]) {
|
|
828
|
+
p.dest.write(data);
|
|
829
|
+
}
|
|
830
|
+
if (!this[DISCARDED])
|
|
831
|
+
super.emit('data', data);
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
for (const p of this[PIPES]) {
|
|
835
|
+
p.end();
|
|
836
|
+
}
|
|
837
|
+
const ret = super.emit('end');
|
|
838
|
+
this.removeAllListeners('end');
|
|
839
|
+
return ret;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Return a Promise that resolves to an array of all emitted data once
|
|
843
|
+
* the stream ends.
|
|
844
|
+
*/
|
|
845
|
+
async collect() {
|
|
846
|
+
const buf = Object.assign([], {
|
|
847
|
+
dataLength: 0,
|
|
848
|
+
});
|
|
849
|
+
if (!this[OBJECTMODE])
|
|
850
|
+
buf.dataLength = 0;
|
|
851
|
+
// set the promise first, in case an error is raised
|
|
852
|
+
// by triggering the flow here.
|
|
853
|
+
const p = this.promise();
|
|
854
|
+
this.on('data', c => {
|
|
855
|
+
buf.push(c);
|
|
856
|
+
if (!this[OBJECTMODE])
|
|
857
|
+
buf.dataLength += c.length;
|
|
858
|
+
});
|
|
859
|
+
await p;
|
|
860
|
+
return buf;
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Return a Promise that resolves to the concatenation of all emitted data
|
|
864
|
+
* once the stream ends.
|
|
865
|
+
*
|
|
866
|
+
* Not allowed on objectMode streams.
|
|
867
|
+
*/
|
|
868
|
+
async concat() {
|
|
869
|
+
if (this[OBJECTMODE]) {
|
|
870
|
+
throw new Error('cannot concat in objectMode');
|
|
871
|
+
}
|
|
872
|
+
const buf = await this.collect();
|
|
873
|
+
return (this[ENCODING]
|
|
874
|
+
? buf.join('')
|
|
875
|
+
: Buffer.concat(buf, buf.dataLength));
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Return a void Promise that resolves once the stream ends.
|
|
879
|
+
*/
|
|
880
|
+
async promise() {
|
|
881
|
+
return new Promise((resolve, reject) => {
|
|
882
|
+
this.on(DESTROYED, () => reject(new Error('stream destroyed')));
|
|
883
|
+
this.on('error', er => reject(er));
|
|
884
|
+
this.on('end', () => resolve());
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Asynchronous `for await of` iteration.
|
|
889
|
+
*
|
|
890
|
+
* This will continue emitting all chunks until the stream terminates.
|
|
891
|
+
*/
|
|
892
|
+
[Symbol.asyncIterator]() {
|
|
893
|
+
// set this up front, in case the consumer doesn't call next()
|
|
894
|
+
// right away.
|
|
895
|
+
this[DISCARDED] = false;
|
|
896
|
+
let stopped = false;
|
|
897
|
+
const stop = async () => {
|
|
898
|
+
this.pause();
|
|
899
|
+
stopped = true;
|
|
900
|
+
return { value: undefined, done: true };
|
|
901
|
+
};
|
|
902
|
+
const next = () => {
|
|
903
|
+
if (stopped)
|
|
904
|
+
return stop();
|
|
905
|
+
const res = this.read();
|
|
906
|
+
if (res !== null)
|
|
907
|
+
return Promise.resolve({ done: false, value: res });
|
|
908
|
+
if (this[EOF])
|
|
909
|
+
return stop();
|
|
910
|
+
let resolve;
|
|
911
|
+
let reject;
|
|
912
|
+
const onerr = (er) => {
|
|
913
|
+
this.off('data', ondata);
|
|
914
|
+
this.off('end', onend);
|
|
915
|
+
this.off(DESTROYED, ondestroy);
|
|
916
|
+
stop();
|
|
917
|
+
reject(er);
|
|
918
|
+
};
|
|
919
|
+
const ondata = (value) => {
|
|
920
|
+
this.off('error', onerr);
|
|
921
|
+
this.off('end', onend);
|
|
922
|
+
this.off(DESTROYED, ondestroy);
|
|
923
|
+
this.pause();
|
|
924
|
+
resolve({ value, done: !!this[EOF] });
|
|
925
|
+
};
|
|
926
|
+
const onend = () => {
|
|
927
|
+
this.off('error', onerr);
|
|
928
|
+
this.off('data', ondata);
|
|
929
|
+
this.off(DESTROYED, ondestroy);
|
|
930
|
+
stop();
|
|
931
|
+
resolve({ done: true, value: undefined });
|
|
932
|
+
};
|
|
933
|
+
const ondestroy = () => onerr(new Error('stream destroyed'));
|
|
934
|
+
return new Promise((res, rej) => {
|
|
935
|
+
reject = rej;
|
|
936
|
+
resolve = res;
|
|
937
|
+
this.once(DESTROYED, ondestroy);
|
|
938
|
+
this.once('error', onerr);
|
|
939
|
+
this.once('end', onend);
|
|
940
|
+
this.once('data', ondata);
|
|
941
|
+
});
|
|
942
|
+
};
|
|
943
|
+
return {
|
|
944
|
+
next,
|
|
945
|
+
throw: stop,
|
|
946
|
+
return: stop,
|
|
947
|
+
[Symbol.asyncIterator]() {
|
|
948
|
+
return this;
|
|
949
|
+
},
|
|
950
|
+
[Symbol.asyncDispose]: async () => { },
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Synchronous `for of` iteration.
|
|
955
|
+
*
|
|
956
|
+
* The iteration will terminate when the internal buffer runs out, even
|
|
957
|
+
* if the stream has not yet terminated.
|
|
958
|
+
*/
|
|
959
|
+
[Symbol.iterator]() {
|
|
960
|
+
// set this up front, in case the consumer doesn't call next()
|
|
961
|
+
// right away.
|
|
962
|
+
this[DISCARDED] = false;
|
|
963
|
+
let stopped = false;
|
|
964
|
+
const stop = () => {
|
|
965
|
+
this.pause();
|
|
966
|
+
this.off(ERROR, stop);
|
|
967
|
+
this.off(DESTROYED, stop);
|
|
968
|
+
this.off('end', stop);
|
|
969
|
+
stopped = true;
|
|
970
|
+
return { done: true, value: undefined };
|
|
971
|
+
};
|
|
972
|
+
const next = () => {
|
|
973
|
+
if (stopped)
|
|
974
|
+
return stop();
|
|
975
|
+
const value = this.read();
|
|
976
|
+
return value === null ? stop() : { done: false, value };
|
|
977
|
+
};
|
|
978
|
+
this.once('end', stop);
|
|
979
|
+
this.once(ERROR, stop);
|
|
980
|
+
this.once(DESTROYED, stop);
|
|
981
|
+
return {
|
|
982
|
+
next,
|
|
983
|
+
throw: stop,
|
|
984
|
+
return: stop,
|
|
985
|
+
[Symbol.iterator]() {
|
|
986
|
+
return this;
|
|
987
|
+
},
|
|
988
|
+
[Symbol.dispose]: () => { },
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* Destroy a stream, preventing it from being used for any further purpose.
|
|
993
|
+
*
|
|
994
|
+
* If the stream has a `close()` method, then it will be called on
|
|
995
|
+
* destruction.
|
|
996
|
+
*
|
|
997
|
+
* After destruction, any attempt to write data, read data, or emit most
|
|
998
|
+
* events will be ignored.
|
|
999
|
+
*
|
|
1000
|
+
* If an error argument is provided, then it will be emitted in an
|
|
1001
|
+
* 'error' event.
|
|
1002
|
+
*/
|
|
1003
|
+
destroy(er) {
|
|
1004
|
+
if (this[DESTROYED]) {
|
|
1005
|
+
if (er)
|
|
1006
|
+
this.emit('error', er);
|
|
1007
|
+
else
|
|
1008
|
+
this.emit(DESTROYED);
|
|
1009
|
+
return this;
|
|
1010
|
+
}
|
|
1011
|
+
this[DESTROYED] = true;
|
|
1012
|
+
this[DISCARDED] = true;
|
|
1013
|
+
// throw away all buffered data, it's never coming out
|
|
1014
|
+
this[BUFFER].length = 0;
|
|
1015
|
+
this[BUFFERLENGTH] = 0;
|
|
1016
|
+
const wc = this;
|
|
1017
|
+
if (typeof wc.close === 'function' && !this[CLOSED])
|
|
1018
|
+
wc.close();
|
|
1019
|
+
if (er)
|
|
1020
|
+
this.emit('error', er);
|
|
1021
|
+
// if no error to emit, still reject pending promises
|
|
1022
|
+
else
|
|
1023
|
+
this.emit(DESTROYED);
|
|
1024
|
+
return this;
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* Alias for {@link isStream}
|
|
1028
|
+
*
|
|
1029
|
+
* Former export location, maintained for backwards compatibility.
|
|
1030
|
+
*
|
|
1031
|
+
* @deprecated
|
|
1032
|
+
*/
|
|
1033
|
+
static get isStream() {
|
|
1034
|
+
return exports.isStream;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
exports.Minipass = Minipass;
|
|
1038
|
+
//# sourceMappingURL=index.js.map
|