@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,1096 @@
|
|
|
1
|
+
var fs = require("fs");
|
|
2
|
+
var zlib = require("zlib");
|
|
3
|
+
var fd_slicer = require("./fd-slicer");
|
|
4
|
+
var util = require("util");
|
|
5
|
+
var EventEmitter = require("events").EventEmitter;
|
|
6
|
+
var Transform = require("stream").Transform;
|
|
7
|
+
var PassThrough = require("stream").PassThrough;
|
|
8
|
+
var Writable = require("stream").Writable;
|
|
9
|
+
|
|
10
|
+
// Node 20 added zlib.crc32.
|
|
11
|
+
const crc32 = typeof zlib.crc32 === "function" ? zlib.crc32 : require("./crc32");
|
|
12
|
+
|
|
13
|
+
exports.open = open;
|
|
14
|
+
exports.fromFd = fromFd;
|
|
15
|
+
exports.fromBuffer = fromBuffer;
|
|
16
|
+
exports.fromRandomAccessReader = fromRandomAccessReader;
|
|
17
|
+
exports.openPromise = openPromise;
|
|
18
|
+
exports.fromFdPromise = fromFdPromise;
|
|
19
|
+
exports.fromBufferPromise = fromBufferPromise;
|
|
20
|
+
exports.fromRandomAccessReaderPromise = fromRandomAccessReaderPromise;
|
|
21
|
+
|
|
22
|
+
exports.dosDateTimeToDate = dosDateTimeToDate;
|
|
23
|
+
exports.getFileNameLowLevel = getFileNameLowLevel;
|
|
24
|
+
exports.validateFileName = validateFileName;
|
|
25
|
+
exports.parseExtraFields = parseExtraFields;
|
|
26
|
+
exports.ZipFile = ZipFile;
|
|
27
|
+
exports.Entry = Entry;
|
|
28
|
+
exports.LocalFileHeader = LocalFileHeader;
|
|
29
|
+
exports.RandomAccessReader = RandomAccessReader;
|
|
30
|
+
|
|
31
|
+
function openPromise(path, options) {
|
|
32
|
+
return new Promise((resolve, reject) => {
|
|
33
|
+
open(path, {...options, lazyEntries: true}, function(err, zipfile) {
|
|
34
|
+
if (err) return reject(err);
|
|
35
|
+
resolve(zipfile);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function fromFdPromise(fd, options) {
|
|
40
|
+
return new Promise((resolve, reject) => {
|
|
41
|
+
fromFd(fd, {...options, lazyEntries: true}, function(err, zipfile) {
|
|
42
|
+
if (err) return reject(err);
|
|
43
|
+
resolve(zipfile);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function fromBufferPromise(buffer, options) {
|
|
48
|
+
return new Promise((resolve, reject) => {
|
|
49
|
+
fromBuffer(buffer, {...options, lazyEntries: true}, function(err, zipfile) {
|
|
50
|
+
if (err) return reject(err);
|
|
51
|
+
resolve(zipfile);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function fromRandomAccessReaderPromise(reader, totalSize, options) {
|
|
56
|
+
return new Promise((resolve, reject) => {
|
|
57
|
+
fromRandomAccessReader(reader, totalSize, {...options, lazyEntries: true}, function(err, zipfile) {
|
|
58
|
+
if (err) return reject(err);
|
|
59
|
+
resolve(zipfile);
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function open(path, options, callback) {
|
|
65
|
+
if (typeof options === "function") {
|
|
66
|
+
callback = options;
|
|
67
|
+
options = null;
|
|
68
|
+
}
|
|
69
|
+
if (options == null) options = {};
|
|
70
|
+
if (options.autoClose == null) options.autoClose = true;
|
|
71
|
+
if (options.lazyEntries == null) options.lazyEntries = false;
|
|
72
|
+
if (options.decodeStrings == null) options.decodeStrings = true;
|
|
73
|
+
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
74
|
+
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
75
|
+
if (callback == null) callback = defaultCallback;
|
|
76
|
+
fs.open(path, "r", function(err, fd) {
|
|
77
|
+
if (err) return callback(err);
|
|
78
|
+
fromFd(fd, options, function(err, zipfile) {
|
|
79
|
+
if (err) fs.close(fd, defaultCallback);
|
|
80
|
+
callback(err, zipfile);
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function fromFd(fd, options, callback) {
|
|
86
|
+
if (typeof options === "function") {
|
|
87
|
+
callback = options;
|
|
88
|
+
options = null;
|
|
89
|
+
}
|
|
90
|
+
if (options == null) options = {};
|
|
91
|
+
if (options.autoClose == null) options.autoClose = false;
|
|
92
|
+
if (options.lazyEntries == null) options.lazyEntries = false;
|
|
93
|
+
if (options.decodeStrings == null) options.decodeStrings = true;
|
|
94
|
+
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
95
|
+
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
96
|
+
if (callback == null) callback = defaultCallback;
|
|
97
|
+
fs.fstat(fd, function(err, stats) {
|
|
98
|
+
if (err) return callback(err);
|
|
99
|
+
var reader = new fd_slicer.FdSlicer(fd);
|
|
100
|
+
fromRandomAccessReader(reader, stats.size, options, callback);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function fromBuffer(buffer, options, callback) {
|
|
105
|
+
if (typeof options === "function") {
|
|
106
|
+
callback = options;
|
|
107
|
+
options = null;
|
|
108
|
+
}
|
|
109
|
+
if (options == null) options = {};
|
|
110
|
+
options.autoClose = false;
|
|
111
|
+
if (options.lazyEntries == null) options.lazyEntries = false;
|
|
112
|
+
if (options.decodeStrings == null) options.decodeStrings = true;
|
|
113
|
+
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
114
|
+
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
115
|
+
var reader = new fd_slicer.BufferSlicer(buffer);
|
|
116
|
+
fromRandomAccessReader(reader, buffer.length, options, callback);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function fromRandomAccessReader(reader, totalSize, options, callback) {
|
|
120
|
+
if (typeof options === "function") {
|
|
121
|
+
callback = options;
|
|
122
|
+
options = null;
|
|
123
|
+
}
|
|
124
|
+
if (options == null) options = {};
|
|
125
|
+
if (options.autoClose == null) options.autoClose = true;
|
|
126
|
+
if (options.lazyEntries == null) options.lazyEntries = false;
|
|
127
|
+
if (options.decodeStrings == null) options.decodeStrings = true;
|
|
128
|
+
var decodeStrings = !!options.decodeStrings;
|
|
129
|
+
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
130
|
+
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
131
|
+
if (callback == null) callback = defaultCallback;
|
|
132
|
+
if (typeof totalSize !== "number") throw new Error("expected totalSize parameter to be a number");
|
|
133
|
+
if (totalSize > Number.MAX_SAFE_INTEGER) {
|
|
134
|
+
throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// the matching unref() call is in zipfile.close()
|
|
138
|
+
reader.ref();
|
|
139
|
+
|
|
140
|
+
// eocdr means End of Central Directory Record.
|
|
141
|
+
// search backwards for the eocdr signature.
|
|
142
|
+
// the last field of the eocdr is a variable-length comment.
|
|
143
|
+
// the comment size is encoded in a 2-byte field in the eocdr, which we can't find without trudging backwards through the comment to find it.
|
|
144
|
+
// as a consequence of this design decision, it's possible to have ambiguous zip file metadata if a coherent eocdr was in the comment.
|
|
145
|
+
// we search backwards for a eocdr signature, and hope that whoever made the zip file was smart enough to forbid the eocdr signature in the comment.
|
|
146
|
+
var eocdrWithoutCommentSize = 22;
|
|
147
|
+
var zip64EocdlSize = 20; // Zip64 end of central directory locator
|
|
148
|
+
var maxCommentSize = 0xffff; // 2-byte size
|
|
149
|
+
var bufferSize = Math.min(zip64EocdlSize + eocdrWithoutCommentSize + maxCommentSize, totalSize);
|
|
150
|
+
var buffer = newBuffer(bufferSize);
|
|
151
|
+
var bufferReadStart = totalSize - buffer.length;
|
|
152
|
+
readAndAssertNoEof(reader, buffer, 0, bufferSize, bufferReadStart, function(err) {
|
|
153
|
+
if (err) return callback(err);
|
|
154
|
+
for (var i = bufferSize - eocdrWithoutCommentSize; i >= 0; i -= 1) {
|
|
155
|
+
if (buffer.readUInt32LE(i) !== 0x06054b50) continue;
|
|
156
|
+
// found eocdr
|
|
157
|
+
var eocdrBuffer = buffer.subarray(i);
|
|
158
|
+
|
|
159
|
+
// 0 - End of central directory signature = 0x06054b50
|
|
160
|
+
// 4 - Number of this disk
|
|
161
|
+
var diskNumber = eocdrBuffer.readUInt16LE(4);
|
|
162
|
+
// 6 - Disk where central directory starts
|
|
163
|
+
// 8 - Number of central directory records on this disk
|
|
164
|
+
// 10 - Total number of central directory records
|
|
165
|
+
var entryCount = eocdrBuffer.readUInt16LE(10);
|
|
166
|
+
// 12 - Size of central directory (bytes)
|
|
167
|
+
// 16 - Offset of start of central directory, relative to start of archive
|
|
168
|
+
var centralDirectoryOffset = eocdrBuffer.readUInt32LE(16);
|
|
169
|
+
// 20 - Comment length
|
|
170
|
+
var commentLength = eocdrBuffer.readUInt16LE(20);
|
|
171
|
+
var expectedCommentLength = eocdrBuffer.length - eocdrWithoutCommentSize;
|
|
172
|
+
if (commentLength !== expectedCommentLength) {
|
|
173
|
+
return callback(new Error("Invalid comment length. Expected: " + expectedCommentLength + ". Found: " + commentLength + ". Are there extra bytes at the end of the file? Or is the end of central dir signature `PK☺☻` in the comment?"));
|
|
174
|
+
}
|
|
175
|
+
// 22 - Comment
|
|
176
|
+
// the encoding is always cp437.
|
|
177
|
+
var comment = decodeStrings ? decodeBuffer(eocdrBuffer.subarray(22), false)
|
|
178
|
+
: eocdrBuffer.subarray(22);
|
|
179
|
+
|
|
180
|
+
// Look for a Zip64 end of central directory locator
|
|
181
|
+
if (i - zip64EocdlSize >= 0 && buffer.readUInt32LE(i - zip64EocdlSize) === 0x07064b50) {
|
|
182
|
+
// ZIP64 format
|
|
183
|
+
var zip64EocdlBuffer = buffer.subarray(i - zip64EocdlSize, i - zip64EocdlSize + zip64EocdlSize);
|
|
184
|
+
// 0 - zip64 end of central dir locator signature = 0x07064b50
|
|
185
|
+
// 4 - number of the disk with the start of the zip64 end of central directory
|
|
186
|
+
// 8 - relative offset of the zip64 end of central directory record
|
|
187
|
+
var zip64EocdrOffset = readUInt64LE(zip64EocdlBuffer, 8);
|
|
188
|
+
// 16 - total number of disks
|
|
189
|
+
|
|
190
|
+
// ZIP64 end of central directory record
|
|
191
|
+
var zip64EocdrBuffer = newBuffer(56);
|
|
192
|
+
return readAndAssertNoEof(reader, zip64EocdrBuffer, 0, zip64EocdrBuffer.length, zip64EocdrOffset, function(err) {
|
|
193
|
+
if (err) return callback(err);
|
|
194
|
+
|
|
195
|
+
// 0 - zip64 end of central dir signature 4 bytes (0x06064b50)
|
|
196
|
+
if (zip64EocdrBuffer.readUInt32LE(0) !== 0x06064b50) {
|
|
197
|
+
return callback(new Error("invalid zip64 end of central directory record signature"));
|
|
198
|
+
}
|
|
199
|
+
// 4 - size of zip64 end of central directory record 8 bytes
|
|
200
|
+
// 12 - version made by 2 bytes
|
|
201
|
+
// 14 - version needed to extract 2 bytes
|
|
202
|
+
// 16 - number of this disk 4 bytes
|
|
203
|
+
diskNumber = zip64EocdrBuffer.readUInt32LE(16);
|
|
204
|
+
if (diskNumber !== 0) {
|
|
205
|
+
// Check this only after zip64 overrides. See #118.
|
|
206
|
+
return callback(new Error("multi-disk zip files are not supported: found disk number: " + diskNumber));
|
|
207
|
+
}
|
|
208
|
+
// 20 - number of the disk with the start of the central directory 4 bytes
|
|
209
|
+
// 24 - total number of entries in the central directory on this disk 8 bytes
|
|
210
|
+
// 32 - total number of entries in the central directory 8 bytes
|
|
211
|
+
entryCount = readUInt64LE(zip64EocdrBuffer, 32);
|
|
212
|
+
// 40 - size of the central directory 8 bytes
|
|
213
|
+
// 48 - offset of start of central directory with respect to the starting disk number 8 bytes
|
|
214
|
+
centralDirectoryOffset = readUInt64LE(zip64EocdrBuffer, 48);
|
|
215
|
+
// 56 - zip64 extensible data sector (variable size)
|
|
216
|
+
return callback(null, new ZipFile(reader, centralDirectoryOffset, totalSize, entryCount, comment, options.autoClose, options.lazyEntries, decodeStrings, options.validateEntrySizes, options.strictFileNames));
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// Not ZIP64 format
|
|
221
|
+
if (diskNumber !== 0) {
|
|
222
|
+
return callback(new Error("multi-disk zip files are not supported: found disk number: " + diskNumber));
|
|
223
|
+
}
|
|
224
|
+
return callback(null, new ZipFile(reader, centralDirectoryOffset, totalSize, entryCount, comment, options.autoClose, options.lazyEntries, decodeStrings, options.validateEntrySizes, options.strictFileNames));
|
|
225
|
+
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Not a zip file.
|
|
229
|
+
callback(new Error("End of central directory record signature not found. Either not a zip file, or file is truncated."));
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
util.inherits(ZipFile, EventEmitter);
|
|
234
|
+
function ZipFile(reader, centralDirectoryOffset, fileSize, entryCount, comment, autoClose, lazyEntries, decodeStrings, validateEntrySizes, strictFileNames) {
|
|
235
|
+
var self = this;
|
|
236
|
+
EventEmitter.call(self);
|
|
237
|
+
self.reader = reader;
|
|
238
|
+
// forward close events
|
|
239
|
+
self.reader.on("error", function(err) {
|
|
240
|
+
// error closing the fd
|
|
241
|
+
emitError(self, err);
|
|
242
|
+
});
|
|
243
|
+
self.reader.once("close", function() {
|
|
244
|
+
self.emit("close");
|
|
245
|
+
});
|
|
246
|
+
self.readEntryCursor = centralDirectoryOffset;
|
|
247
|
+
self.fileSize = fileSize;
|
|
248
|
+
self.entryCount = entryCount;
|
|
249
|
+
self.comment = comment;
|
|
250
|
+
self.entriesRead = 0;
|
|
251
|
+
self.autoClose = !!autoClose;
|
|
252
|
+
self.lazyEntries = !!lazyEntries;
|
|
253
|
+
self.decodeStrings = !!decodeStrings;
|
|
254
|
+
self.validateEntrySizes = !!validateEntrySizes;
|
|
255
|
+
self.strictFileNames = !!strictFileNames;
|
|
256
|
+
self.isOpen = true;
|
|
257
|
+
self.emittedError = false;
|
|
258
|
+
self.hasEachEntryBeenCalled = false;
|
|
259
|
+
|
|
260
|
+
if (!self.lazyEntries) self._readEntry();
|
|
261
|
+
}
|
|
262
|
+
ZipFile.prototype.close = function() {
|
|
263
|
+
if (!this.isOpen) return;
|
|
264
|
+
this.isOpen = false;
|
|
265
|
+
this.reader.unref();
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
function emitErrorAndAutoClose(self, err) {
|
|
269
|
+
if (self.autoClose) self.close();
|
|
270
|
+
emitError(self, err);
|
|
271
|
+
}
|
|
272
|
+
function emitError(self, err) {
|
|
273
|
+
if (self.emittedError) return;
|
|
274
|
+
self.emittedError = true;
|
|
275
|
+
self.emit("error", err);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
ZipFile.prototype.readEntry = function() {
|
|
279
|
+
if (!this.lazyEntries) throw new Error("readEntry() called without lazyEntries:true");
|
|
280
|
+
this._readEntry();
|
|
281
|
+
};
|
|
282
|
+
ZipFile.prototype._readEntry = function() {
|
|
283
|
+
var self = this;
|
|
284
|
+
if (self.entryCount === self.entriesRead) {
|
|
285
|
+
// done with metadata
|
|
286
|
+
setImmediate(function() {
|
|
287
|
+
if (self.autoClose) self.close();
|
|
288
|
+
if (self.emittedError) return;
|
|
289
|
+
self.emit("end");
|
|
290
|
+
});
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
if (self.emittedError) return;
|
|
294
|
+
var buffer = newBuffer(46);
|
|
295
|
+
readAndAssertNoEof(self.reader, buffer, 0, buffer.length, self.readEntryCursor, function(err) {
|
|
296
|
+
if (err) return emitErrorAndAutoClose(self, err);
|
|
297
|
+
if (self.emittedError) return;
|
|
298
|
+
var entry = new Entry();
|
|
299
|
+
// 0 - Central directory file header signature
|
|
300
|
+
var signature = buffer.readUInt32LE(0);
|
|
301
|
+
if (signature !== 0x02014b50) return emitErrorAndAutoClose(self, new Error("invalid central directory file header signature: 0x" + signature.toString(16)));
|
|
302
|
+
// 4 - Version made by
|
|
303
|
+
entry.versionMadeBy = buffer.readUInt16LE(4);
|
|
304
|
+
// 6 - Version needed to extract (minimum)
|
|
305
|
+
entry.versionNeededToExtract = buffer.readUInt16LE(6);
|
|
306
|
+
// 8 - General purpose bit flag
|
|
307
|
+
entry.generalPurposeBitFlag = buffer.readUInt16LE(8);
|
|
308
|
+
// 10 - Compression method
|
|
309
|
+
entry.compressionMethod = buffer.readUInt16LE(10);
|
|
310
|
+
// 12 - File last modification time
|
|
311
|
+
entry.lastModFileTime = buffer.readUInt16LE(12);
|
|
312
|
+
// 14 - File last modification date
|
|
313
|
+
entry.lastModFileDate = buffer.readUInt16LE(14);
|
|
314
|
+
// 16 - CRC-32
|
|
315
|
+
entry.crc32 = buffer.readUInt32LE(16);
|
|
316
|
+
// 20 - Compressed size
|
|
317
|
+
entry.compressedSize = buffer.readUInt32LE(20);
|
|
318
|
+
// 24 - Uncompressed size
|
|
319
|
+
entry.uncompressedSize = buffer.readUInt32LE(24);
|
|
320
|
+
// 28 - File name length (n)
|
|
321
|
+
entry.fileNameLength = buffer.readUInt16LE(28);
|
|
322
|
+
// 30 - Extra field length (m)
|
|
323
|
+
entry.extraFieldLength = buffer.readUInt16LE(30);
|
|
324
|
+
// 32 - File comment length (k)
|
|
325
|
+
entry.fileCommentLength = buffer.readUInt16LE(32);
|
|
326
|
+
// 34 - Disk number where file starts
|
|
327
|
+
// 36 - Internal file attributes
|
|
328
|
+
entry.internalFileAttributes = buffer.readUInt16LE(36);
|
|
329
|
+
// 38 - External file attributes
|
|
330
|
+
entry.externalFileAttributes = buffer.readUInt32LE(38);
|
|
331
|
+
// 42 - Relative offset of local file header
|
|
332
|
+
entry.relativeOffsetOfLocalHeader = buffer.readUInt32LE(42);
|
|
333
|
+
|
|
334
|
+
if (entry.generalPurposeBitFlag & 0x40) return emitErrorAndAutoClose(self, new Error("strong encryption is not supported"));
|
|
335
|
+
|
|
336
|
+
self.readEntryCursor += 46;
|
|
337
|
+
|
|
338
|
+
buffer = newBuffer(entry.fileNameLength + entry.extraFieldLength + entry.fileCommentLength);
|
|
339
|
+
readAndAssertNoEof(self.reader, buffer, 0, buffer.length, self.readEntryCursor, function(err) {
|
|
340
|
+
if (err) return emitErrorAndAutoClose(self, err);
|
|
341
|
+
if (self.emittedError) return;
|
|
342
|
+
// 46 - File name
|
|
343
|
+
entry.fileNameRaw = buffer.subarray(0, entry.fileNameLength);
|
|
344
|
+
// 46+n - Extra field
|
|
345
|
+
var fileCommentStart = entry.fileNameLength + entry.extraFieldLength;
|
|
346
|
+
entry.extraFieldRaw = buffer.subarray(entry.fileNameLength, fileCommentStart);
|
|
347
|
+
// 46+n+m - File comment
|
|
348
|
+
entry.fileCommentRaw = buffer.subarray(fileCommentStart, fileCommentStart + entry.fileCommentLength);
|
|
349
|
+
|
|
350
|
+
// Parse the extra fields, which we need for processing other fields.
|
|
351
|
+
try {
|
|
352
|
+
entry.extraFields = parseExtraFields(entry.extraFieldRaw);
|
|
353
|
+
} catch (err) {
|
|
354
|
+
return emitErrorAndAutoClose(self, err);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// Interpret strings according to bit flags, extra fields, and options.
|
|
358
|
+
if (self.decodeStrings) {
|
|
359
|
+
var isUtf8 = (entry.generalPurposeBitFlag & 0x800) !== 0;
|
|
360
|
+
entry.fileComment = decodeBuffer(entry.fileCommentRaw, isUtf8);
|
|
361
|
+
entry.fileName = getFileNameLowLevel(entry.generalPurposeBitFlag, entry.fileNameRaw, entry.extraFields, self.strictFileNames);
|
|
362
|
+
var errorMessage = validateFileName(entry.fileName);
|
|
363
|
+
if (errorMessage != null) return emitErrorAndAutoClose(self, new Error(errorMessage));
|
|
364
|
+
} else {
|
|
365
|
+
entry.fileComment = entry.fileCommentRaw;
|
|
366
|
+
entry.fileName = entry.fileNameRaw;
|
|
367
|
+
}
|
|
368
|
+
// Maintain API compatibility. See https://github.com/thejoshwolfe/yauzl/issues/47
|
|
369
|
+
entry.comment = entry.fileComment;
|
|
370
|
+
|
|
371
|
+
self.readEntryCursor += buffer.length;
|
|
372
|
+
self.entriesRead += 1;
|
|
373
|
+
|
|
374
|
+
// Check for the Zip64 Extended Information Extra Field.
|
|
375
|
+
for (var i = 0; i < entry.extraFields.length; i++) {
|
|
376
|
+
var extraField = entry.extraFields[i];
|
|
377
|
+
if (extraField.id !== 0x0001) continue;
|
|
378
|
+
// Found it.
|
|
379
|
+
|
|
380
|
+
var zip64EiefBuffer = extraField.data;
|
|
381
|
+
var index = 0;
|
|
382
|
+
// 0 - Original Size 8 bytes
|
|
383
|
+
if (entry.uncompressedSize === 0xffffffff) {
|
|
384
|
+
if (index + 8 > zip64EiefBuffer.length) {
|
|
385
|
+
return emitErrorAndAutoClose(self, new Error("zip64 extended information extra field does not include uncompressed size"));
|
|
386
|
+
}
|
|
387
|
+
entry.uncompressedSize = readUInt64LE(zip64EiefBuffer, index);
|
|
388
|
+
index += 8;
|
|
389
|
+
}
|
|
390
|
+
// 8 - Compressed Size 8 bytes
|
|
391
|
+
if (entry.compressedSize === 0xffffffff) {
|
|
392
|
+
if (index + 8 > zip64EiefBuffer.length) {
|
|
393
|
+
return emitErrorAndAutoClose(self, new Error("zip64 extended information extra field does not include compressed size"));
|
|
394
|
+
}
|
|
395
|
+
entry.compressedSize = readUInt64LE(zip64EiefBuffer, index);
|
|
396
|
+
index += 8;
|
|
397
|
+
}
|
|
398
|
+
// 16 - Relative Header Offset 8 bytes
|
|
399
|
+
if (entry.relativeOffsetOfLocalHeader === 0xffffffff) {
|
|
400
|
+
if (index + 8 > zip64EiefBuffer.length) {
|
|
401
|
+
return emitErrorAndAutoClose(self, new Error("zip64 extended information extra field does not include relative header offset"));
|
|
402
|
+
}
|
|
403
|
+
entry.relativeOffsetOfLocalHeader = readUInt64LE(zip64EiefBuffer, index);
|
|
404
|
+
index += 8;
|
|
405
|
+
}
|
|
406
|
+
// 24 - Disk Start Number 4 bytes
|
|
407
|
+
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// validate file size
|
|
412
|
+
if (self.validateEntrySizes && entry.compressionMethod === 0) {
|
|
413
|
+
var expectedCompressedSize = entry.uncompressedSize;
|
|
414
|
+
if (entry.isEncrypted()) {
|
|
415
|
+
// traditional encryption prefixes the file data with a header
|
|
416
|
+
expectedCompressedSize += 12;
|
|
417
|
+
}
|
|
418
|
+
if (entry.compressedSize !== expectedCompressedSize) {
|
|
419
|
+
var msg = "compressed/uncompressed size mismatch for stored file: " + entry.compressedSize + " != " + entry.uncompressedSize;
|
|
420
|
+
return emitErrorAndAutoClose(self, new Error(msg));
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
self.emit("entry", entry);
|
|
425
|
+
|
|
426
|
+
if (!self.lazyEntries) self._readEntry();
|
|
427
|
+
});
|
|
428
|
+
});
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
ZipFile.prototype.eachEntry = function() {
|
|
432
|
+
const self = this;
|
|
433
|
+
if (!self.lazyEntries) throw new Error("eachEntry() requires lazyEntries: true");
|
|
434
|
+
if (self.hasEachEntryBeenCalled) throw new Error("eachEntry() must only be called once per ZipFile");
|
|
435
|
+
self.hasEachEntryBeenCalled = true;
|
|
436
|
+
|
|
437
|
+
let pendingResolveReject = null;
|
|
438
|
+
self.on("entry", onEntry);
|
|
439
|
+
self.on("end", onEnd);
|
|
440
|
+
self.on("error", onError);
|
|
441
|
+
function cleanup() {
|
|
442
|
+
self.removeListener("entry", onEntry);
|
|
443
|
+
self.removeListener("end", onEnd);
|
|
444
|
+
self.removeListener("error", onError);
|
|
445
|
+
if (self.autoClose) self.close();
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
function onEntry(entry) {
|
|
449
|
+
let {resolve} = pendingResolveReject;
|
|
450
|
+
pendingResolveReject = null;
|
|
451
|
+
resolve({value: entry});
|
|
452
|
+
}
|
|
453
|
+
function onEnd() {
|
|
454
|
+
let {resolve} = pendingResolveReject;
|
|
455
|
+
pendingResolveReject = null;
|
|
456
|
+
cleanup();
|
|
457
|
+
resolve({done: true});
|
|
458
|
+
}
|
|
459
|
+
function onError(err) {
|
|
460
|
+
let {reject} = pendingResolveReject;
|
|
461
|
+
pendingResolveReject = null;
|
|
462
|
+
cleanup();
|
|
463
|
+
reject(err);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
return {
|
|
467
|
+
[Symbol.asyncIterator]() {
|
|
468
|
+
// Called once by `for await...of`.
|
|
469
|
+
return this;
|
|
470
|
+
},
|
|
471
|
+
next() {
|
|
472
|
+
// Called on each iteration in a `for await...of`.
|
|
473
|
+
const promise = new Promise((resolve, reject) => {
|
|
474
|
+
if (pendingResolveReject != null) throw new Error("next() called before previous Promise was resolved.");
|
|
475
|
+
pendingResolveReject = {resolve, reject};
|
|
476
|
+
});
|
|
477
|
+
self.readEntry();
|
|
478
|
+
return promise;
|
|
479
|
+
},
|
|
480
|
+
return(value) {
|
|
481
|
+
// Called when breaking, returning, throwing out of a `for await...of`.
|
|
482
|
+
cleanup();
|
|
483
|
+
return Promise.resolve({done: true, value});
|
|
484
|
+
},
|
|
485
|
+
throw(value) {
|
|
486
|
+
// Almost never called. Something about `yield*` maybe?
|
|
487
|
+
cleanup();
|
|
488
|
+
return Promise.reject(value);
|
|
489
|
+
},
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
ZipFile.prototype.openReadStream = function(entry, options, callback) {
|
|
494
|
+
var self = this;
|
|
495
|
+
// parameter validation
|
|
496
|
+
var relativeStart = 0;
|
|
497
|
+
var relativeEnd = entry.compressedSize;
|
|
498
|
+
if (callback == null) {
|
|
499
|
+
callback = options;
|
|
500
|
+
options = null;
|
|
501
|
+
}
|
|
502
|
+
if (options == null) {
|
|
503
|
+
options = {};
|
|
504
|
+
} else {
|
|
505
|
+
if (options.decodeFileData === false) {
|
|
506
|
+
// new, simple option
|
|
507
|
+
if (options.decrypt != null) {
|
|
508
|
+
throw new Error("cannot use options.decrypt when options.decodeFileData === false");
|
|
509
|
+
}
|
|
510
|
+
if (options.decompress != null) {
|
|
511
|
+
throw new Error("cannot use options.decompress when options.decodeFileData === false");
|
|
512
|
+
}
|
|
513
|
+
// start and end are allowed
|
|
514
|
+
} else {
|
|
515
|
+
// old, complicated options
|
|
516
|
+
if (options.decrypt != null) {
|
|
517
|
+
if (!entry.isEncrypted()) {
|
|
518
|
+
throw new Error("options.decrypt can only be specified for encrypted entries. See also option decodeFileData.");
|
|
519
|
+
}
|
|
520
|
+
if (options.decrypt !== false) throw new Error("invalid options.decrypt value: " + options.decrypt);
|
|
521
|
+
if (entry.isCompressed()) {
|
|
522
|
+
if (options.decompress !== false) throw new Error("entry is encrypted and compressed, and options.decompress !== false. See also option decodeFileData.");
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
if (options.decompress != null) {
|
|
526
|
+
if (!entry.isCompressed()) {
|
|
527
|
+
throw new Error("options.decompress can only be specified for compressed entries. See also option decodeFileData.");
|
|
528
|
+
}
|
|
529
|
+
if (!(options.decompress === false || options.decompress === true)) {
|
|
530
|
+
throw new Error("invalid options.decompress value: " + options.decompress);
|
|
531
|
+
}
|
|
532
|
+
decompress = options.decompress;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
if (options.start != null) {
|
|
536
|
+
relativeStart = options.start;
|
|
537
|
+
if (relativeStart < 0) throw new Error("options.start < 0");
|
|
538
|
+
if (relativeStart > entry.compressedSize) throw new Error("options.start > entry.compressedSize");
|
|
539
|
+
}
|
|
540
|
+
if (options.end != null) {
|
|
541
|
+
relativeEnd = options.end;
|
|
542
|
+
if (relativeEnd < 0) throw new Error("options.end < 0");
|
|
543
|
+
if (relativeEnd > entry.compressedSize) throw new Error("options.end > entry.compressedSize");
|
|
544
|
+
if (relativeEnd < relativeStart) throw new Error("options.end < options.start");
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
var rawMode = (
|
|
548
|
+
options.decodeFileData === false || // Explicitly requested raw.
|
|
549
|
+
(
|
|
550
|
+
(entry.compressionMethod === 0 || // Naturally without compression.
|
|
551
|
+
(entry.compressionMethod === 8 && options.decompress === false) // Deprecated compression bypass option.
|
|
552
|
+
) &&
|
|
553
|
+
(!entry.isEncrypted() || // Naturally without encryption.
|
|
554
|
+
options.decrypt === false // Deprecated encryption bypass option.
|
|
555
|
+
)
|
|
556
|
+
)
|
|
557
|
+
);
|
|
558
|
+
if (options.start != null || options.end != null) {
|
|
559
|
+
// Ensure slicing deals with raw data.
|
|
560
|
+
if (!rawMode) throw new Error("start/end range require options.decodeFileData === false for non-trivial encoded entries.");
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// any further errors can either be caused by the zipfile,
|
|
564
|
+
// or were introduced in a minor version of yauzl,
|
|
565
|
+
// so should be passed to the client rather than thrown.
|
|
566
|
+
if (!self.isOpen) return callback(new Error("closed"));
|
|
567
|
+
if (entry.isEncrypted() && !rawMode) {
|
|
568
|
+
if (options.decrypt !== false) return callback(new Error("entry is encrypted, and options.decodeFileData !== false"));
|
|
569
|
+
}
|
|
570
|
+
var decompress;
|
|
571
|
+
if (rawMode) {
|
|
572
|
+
decompress = false;
|
|
573
|
+
} else if (entry.compressionMethod === 8) {
|
|
574
|
+
// 8 - The file is Deflated
|
|
575
|
+
decompress = options.decodeFileData !== true;
|
|
576
|
+
} else {
|
|
577
|
+
return callback(new Error("unsupported compression method: " + entry.compressionMethod));
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
self.readLocalFileHeader(entry, {minimal: true}, function(err, localFileHeader) {
|
|
581
|
+
if (err) return callback(err);
|
|
582
|
+
self.openReadStreamLowLevel(
|
|
583
|
+
localFileHeader.fileDataStart, entry.compressedSize,
|
|
584
|
+
relativeStart, relativeEnd,
|
|
585
|
+
decompress, entry.uncompressedSize,
|
|
586
|
+
callback);
|
|
587
|
+
});
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
ZipFile.prototype.openReadStreamLowLevel = function(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize, callback) {
|
|
591
|
+
var self = this;
|
|
592
|
+
|
|
593
|
+
var fileDataEnd = fileDataStart + compressedSize;
|
|
594
|
+
var readStream = self.reader.createReadStream({
|
|
595
|
+
start: fileDataStart + relativeStart,
|
|
596
|
+
end: fileDataStart + relativeEnd,
|
|
597
|
+
});
|
|
598
|
+
var endpointStream = readStream;
|
|
599
|
+
if (decompress) {
|
|
600
|
+
var destroyed = false;
|
|
601
|
+
var inflateFilter = zlib.createInflateRaw();
|
|
602
|
+
readStream.on("error", function(err) {
|
|
603
|
+
// setImmediate here because errors can be emitted during the first call to pipe()
|
|
604
|
+
setImmediate(function() {
|
|
605
|
+
if (!destroyed) inflateFilter.emit("error", err);
|
|
606
|
+
});
|
|
607
|
+
});
|
|
608
|
+
readStream.pipe(inflateFilter);
|
|
609
|
+
|
|
610
|
+
if (self.validateEntrySizes) {
|
|
611
|
+
endpointStream = new AssertByteCountStream(uncompressedSize);
|
|
612
|
+
inflateFilter.on("error", function(err) {
|
|
613
|
+
// forward zlib errors to the client-visible stream
|
|
614
|
+
setImmediate(function() {
|
|
615
|
+
if (!destroyed) endpointStream.emit("error", err);
|
|
616
|
+
});
|
|
617
|
+
});
|
|
618
|
+
inflateFilter.pipe(endpointStream);
|
|
619
|
+
} else {
|
|
620
|
+
// the zlib filter is the client-visible stream
|
|
621
|
+
endpointStream = inflateFilter;
|
|
622
|
+
}
|
|
623
|
+
// this is part of yauzl's API, so implement this function on the client-visible stream
|
|
624
|
+
installDestroyFn(endpointStream, function() {
|
|
625
|
+
destroyed = true;
|
|
626
|
+
if (inflateFilter !== endpointStream) inflateFilter.unpipe(endpointStream);
|
|
627
|
+
readStream.unpipe(inflateFilter);
|
|
628
|
+
// TODO: the inflateFilter may cause a memory leak. see Issue #27.
|
|
629
|
+
readStream.destroy();
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
callback(null, endpointStream);
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
ZipFile.prototype.readLocalFileHeader = function(entry, options, callback) {
|
|
636
|
+
var self = this;
|
|
637
|
+
if (callback == null) {
|
|
638
|
+
callback = options;
|
|
639
|
+
options = null;
|
|
640
|
+
}
|
|
641
|
+
if (options == null) options = {};
|
|
642
|
+
|
|
643
|
+
self.reader.ref();
|
|
644
|
+
var buffer = newBuffer(30);
|
|
645
|
+
readAndAssertNoEof(self.reader, buffer, 0, buffer.length, entry.relativeOffsetOfLocalHeader, function(err) {
|
|
646
|
+
try {
|
|
647
|
+
if (err) return callback(err);
|
|
648
|
+
// 0 - Local file header signature = 0x04034b50
|
|
649
|
+
var signature = buffer.readUInt32LE(0);
|
|
650
|
+
if (signature !== 0x04034b50) {
|
|
651
|
+
return callback(new Error("invalid local file header signature: 0x" + signature.toString(16)));
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
var fileNameLength = buffer.readUInt16LE(26);
|
|
655
|
+
var extraFieldLength = buffer.readUInt16LE(28);
|
|
656
|
+
var fileDataStart = entry.relativeOffsetOfLocalHeader + 30 + fileNameLength + extraFieldLength;
|
|
657
|
+
// We now have enough information to do this bounds check.
|
|
658
|
+
if (fileDataStart + entry.compressedSize > self.fileSize) {
|
|
659
|
+
return callback(new Error("file data overflows file bounds: " +
|
|
660
|
+
fileDataStart + " + " + entry.compressedSize + " > " + self.fileSize));
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
if (options.minimal) {
|
|
664
|
+
return callback(null, {fileDataStart: fileDataStart});
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
var localFileHeader = new LocalFileHeader();
|
|
668
|
+
localFileHeader.fileDataStart = fileDataStart;
|
|
669
|
+
|
|
670
|
+
// 4 - Version needed to extract (minimum)
|
|
671
|
+
localFileHeader.versionNeededToExtract = buffer.readUInt16LE(4);
|
|
672
|
+
// 6 - General purpose bit flag
|
|
673
|
+
localFileHeader.generalPurposeBitFlag = buffer.readUInt16LE(6);
|
|
674
|
+
// 8 - Compression method
|
|
675
|
+
localFileHeader.compressionMethod = buffer.readUInt16LE(8);
|
|
676
|
+
// 10 - File last modification time
|
|
677
|
+
localFileHeader.lastModFileTime = buffer.readUInt16LE(10);
|
|
678
|
+
// 12 - File last modification date
|
|
679
|
+
localFileHeader.lastModFileDate = buffer.readUInt16LE(12);
|
|
680
|
+
// 14 - CRC-32
|
|
681
|
+
localFileHeader.crc32 = buffer.readUInt32LE(14);
|
|
682
|
+
// 18 - Compressed size
|
|
683
|
+
localFileHeader.compressedSize = buffer.readUInt32LE(18);
|
|
684
|
+
// 22 - Uncompressed size
|
|
685
|
+
localFileHeader.uncompressedSize = buffer.readUInt32LE(22);
|
|
686
|
+
// 26 - File name length (n)
|
|
687
|
+
localFileHeader.fileNameLength = fileNameLength;
|
|
688
|
+
// 28 - Extra field length (m)
|
|
689
|
+
localFileHeader.extraFieldLength = extraFieldLength;
|
|
690
|
+
// 30 - File name
|
|
691
|
+
// 30+n - Extra field
|
|
692
|
+
|
|
693
|
+
buffer = newBuffer(fileNameLength + extraFieldLength);
|
|
694
|
+
self.reader.ref();
|
|
695
|
+
readAndAssertNoEof(self.reader, buffer, 0, buffer.length, entry.relativeOffsetOfLocalHeader + 30, function(err) {
|
|
696
|
+
try {
|
|
697
|
+
if (err) return callback(err);
|
|
698
|
+
localFileHeader.fileName = buffer.subarray(0, fileNameLength);
|
|
699
|
+
localFileHeader.extraField = buffer.subarray(fileNameLength);
|
|
700
|
+
return callback(null, localFileHeader);
|
|
701
|
+
} finally {
|
|
702
|
+
self.reader.unref();
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
} finally {
|
|
706
|
+
self.reader.unref();
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
ZipFile.prototype.openReadStreamPromise = function(entry, options) {
|
|
712
|
+
return new Promise((resolve, reject) => {
|
|
713
|
+
this.openReadStream(entry, options, function(err, readStream) {
|
|
714
|
+
if (err) return reject(err);
|
|
715
|
+
resolve(readStream);
|
|
716
|
+
});
|
|
717
|
+
});
|
|
718
|
+
};
|
|
719
|
+
ZipFile.prototype.openReadStreamLowLevelPromise = function(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize) {
|
|
720
|
+
return new Promise((resolve, reject) => {
|
|
721
|
+
this.openReadStream(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize, function(err, readStream) {
|
|
722
|
+
if (err) return reject(err);
|
|
723
|
+
resolve(readStream);
|
|
724
|
+
});
|
|
725
|
+
});
|
|
726
|
+
};
|
|
727
|
+
ZipFile.prototype.readLocalFileHeaderPromise = function(entry, options) {
|
|
728
|
+
return new Promise((resolve, reject) => {
|
|
729
|
+
this.readLocalFileHeader(entry, options, function(err, localFileHeader) {
|
|
730
|
+
if (err) return reject(err);
|
|
731
|
+
resolve(localFileHeader);
|
|
732
|
+
});
|
|
733
|
+
});
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
function Entry() {
|
|
737
|
+
}
|
|
738
|
+
Entry.prototype.getLastModDate = function(options) {
|
|
739
|
+
if (options == null) options = {};
|
|
740
|
+
|
|
741
|
+
if (!options.forceDosFormat) {
|
|
742
|
+
// Check extended fields.
|
|
743
|
+
for (var i = 0; i < this.extraFields.length; i++) {
|
|
744
|
+
var extraField = this.extraFields[i];
|
|
745
|
+
if (extraField.id === 0x5455) {
|
|
746
|
+
// Info-ZIP "universal timestamp" extended field (`0x5455` aka `"UT"`).
|
|
747
|
+
// See the Info-ZIP source code unix/unix.c:set_extra_field() and zipfile.c:ef_scan_ut_time().
|
|
748
|
+
var data = extraField.data;
|
|
749
|
+
if (data.length < 5) continue; // Too short.
|
|
750
|
+
// The flags define which of the three fields are present: mtime, atime, ctime.
|
|
751
|
+
// We only care about mtime.
|
|
752
|
+
// Also, ctime is never included in practice.
|
|
753
|
+
// And also, atime is only included in the local file header for some reason
|
|
754
|
+
// despite the flags lying about its inclusion in the central header.
|
|
755
|
+
var flags = data[0];
|
|
756
|
+
var HAS_MTIME = 1;
|
|
757
|
+
if (!(flags & HAS_MTIME)) continue; // This will realistically never happen.
|
|
758
|
+
// Although the positions of all of the fields shift around depending on the presence of other fields,
|
|
759
|
+
// mtime is always first if present, and that's the only one we care about.
|
|
760
|
+
var posixTimestamp = data.readInt32LE(1);
|
|
761
|
+
return new Date(posixTimestamp * 1000);
|
|
762
|
+
} else if (extraField.id === 0x000a) {
|
|
763
|
+
var data = extraField.data;
|
|
764
|
+
if (data.length !== 32) continue; // The length is always the same.
|
|
765
|
+
// 4 bytes reserved
|
|
766
|
+
// 2 bytes Tag
|
|
767
|
+
if (data.readUInt16LE(4) !== 1) continue; // Tag1 is actually the only defined Tag.
|
|
768
|
+
// 2 bytes Size
|
|
769
|
+
if (data.readUInt16LE(6) !== 24) continue; // Size is always 24.
|
|
770
|
+
// 8 bytes Mtime
|
|
771
|
+
var hundredNanoSecondsSince1601 = data.readUInt32LE(8) + 4294967296 * data.readInt32LE(12);
|
|
772
|
+
// Convert from NTFS to POSIX milliseconds.
|
|
773
|
+
// The big number below is the milliseconds between year 1601 and year 1970
|
|
774
|
+
// (i.e. the negative POSIX timestamp of 1601-01-01 00:00:00Z)
|
|
775
|
+
var millisecondsSince1970 = hundredNanoSecondsSince1601 / 10000 - 11644473600000;
|
|
776
|
+
// Note on numeric precision: JavaScript Number objects lose precision above Number.MAX_SAFE_INTEGER,
|
|
777
|
+
// and NTFS timestamps are typically much bigger than that limit.
|
|
778
|
+
// (MAX_SAFE_INTEGER would represent 1629-07-17T23:58:45.475Z.)
|
|
779
|
+
// However, we're losing precision in the conversion from 100nanosecond units to millisecond units anyway,
|
|
780
|
+
// and the time at which we also lose 1-millisecond precision is year 275760, the JavaScript Date limit (by design).
|
|
781
|
+
// Up through the year 2057, this conversion only drops 4 bits of precision,
|
|
782
|
+
// which is well under the 13-14 bits ratio between the milliseconds and 100nanoseconds.
|
|
783
|
+
return new Date(millisecondsSince1970);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
// Fallback to non-extended encoding.
|
|
789
|
+
return dosDateTimeToDate(this.lastModFileDate, this.lastModFileTime, options.timezone);
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
Entry.prototype.canDecodeFileData = function() {
|
|
793
|
+
return (
|
|
794
|
+
!this.isEncrypted() &&
|
|
795
|
+
(this.compressionMethod === 0 || this.compressionMethod === 8)
|
|
796
|
+
);
|
|
797
|
+
};
|
|
798
|
+
Entry.prototype.isEncrypted = function() {
|
|
799
|
+
return (this.generalPurposeBitFlag & 0x1) !== 0;
|
|
800
|
+
};
|
|
801
|
+
Entry.prototype.isCompressed = function() {
|
|
802
|
+
return this.compressionMethod === 8;
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
function LocalFileHeader() {
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
function dosDateTimeToDate(date, time, timezone) {
|
|
809
|
+
var day = date & 0x1f; // 1-31
|
|
810
|
+
var month = (date >> 5 & 0xf) - 1; // 1-12, 0-11
|
|
811
|
+
var year = (date >> 9 & 0x7f) + 1980; // 0-128, 1980-2108
|
|
812
|
+
|
|
813
|
+
var millisecond = 0;
|
|
814
|
+
var second = (time & 0x1f) * 2; // 0-29, 0-58 (even numbers)
|
|
815
|
+
var minute = time >> 5 & 0x3f; // 0-59
|
|
816
|
+
var hour = time >> 11 & 0x1f; // 0-23
|
|
817
|
+
|
|
818
|
+
if (timezone == null || timezone === "local") {
|
|
819
|
+
return new Date(year, month, day, hour, minute, second, millisecond);
|
|
820
|
+
} else if (timezone === "UTC") {
|
|
821
|
+
return new Date(Date.UTC(year, month, day, hour, minute, second, millisecond));
|
|
822
|
+
} else {
|
|
823
|
+
throw new Error("unrecognized options.timezone: " + options.timezone);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
function getFileNameLowLevel(generalPurposeBitFlag, fileNameBuffer, extraFields, strictFileNames) {
|
|
828
|
+
var fileName = null;
|
|
829
|
+
|
|
830
|
+
// check for Info-ZIP Unicode Path Extra Field (0x7075)
|
|
831
|
+
// see https://github.com/thejoshwolfe/yauzl/issues/33
|
|
832
|
+
for (var i = 0; i < extraFields.length; i++) {
|
|
833
|
+
var extraField = extraFields[i];
|
|
834
|
+
if (extraField.id === 0x7075) {
|
|
835
|
+
if (extraField.data.length < 6) {
|
|
836
|
+
// too short to be meaningful
|
|
837
|
+
continue;
|
|
838
|
+
}
|
|
839
|
+
// Version 1 byte version of this extra field, currently 1
|
|
840
|
+
if (extraField.data.readUInt8(0) !== 1) {
|
|
841
|
+
// > Changes may not be backward compatible so this extra
|
|
842
|
+
// > field should not be used if the version is not recognized.
|
|
843
|
+
continue;
|
|
844
|
+
}
|
|
845
|
+
// NameCRC32 4 bytes File Name Field CRC32 Checksum
|
|
846
|
+
var oldNameCrc32 = extraField.data.readUInt32LE(1);
|
|
847
|
+
if (crc32(fileNameBuffer) !== oldNameCrc32) {
|
|
848
|
+
// > If the CRC check fails, this UTF-8 Path Extra Field should be
|
|
849
|
+
// > ignored and the File Name field in the header should be used instead.
|
|
850
|
+
continue;
|
|
851
|
+
}
|
|
852
|
+
// UnicodeName Variable UTF-8 version of the entry File Name
|
|
853
|
+
fileName = decodeBuffer(extraField.data.subarray(5), true);
|
|
854
|
+
break;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
if (fileName == null) {
|
|
859
|
+
// The typical case.
|
|
860
|
+
var isUtf8 = (generalPurposeBitFlag & 0x800) !== 0;
|
|
861
|
+
fileName = decodeBuffer(fileNameBuffer, isUtf8);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
if (!strictFileNames) {
|
|
865
|
+
// Allow backslash.
|
|
866
|
+
fileName = fileName.replace(/\\/g, "/");
|
|
867
|
+
}
|
|
868
|
+
return fileName;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
function validateFileName(fileName) {
|
|
872
|
+
if (fileName.indexOf("\\") !== -1) {
|
|
873
|
+
return "invalid characters in fileName: " + fileName;
|
|
874
|
+
}
|
|
875
|
+
if (/^[a-zA-Z]:/.test(fileName) || /^\//.test(fileName)) {
|
|
876
|
+
return "absolute path: " + fileName;
|
|
877
|
+
}
|
|
878
|
+
if (fileName.split("/").indexOf("..") !== -1) {
|
|
879
|
+
return "invalid relative path: " + fileName;
|
|
880
|
+
}
|
|
881
|
+
// all good
|
|
882
|
+
return null;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
function parseExtraFields(extraFieldBuffer) {
|
|
886
|
+
var extraFields = [];
|
|
887
|
+
var i = 0;
|
|
888
|
+
while (i < extraFieldBuffer.length - 3) {
|
|
889
|
+
var headerId = extraFieldBuffer.readUInt16LE(i + 0);
|
|
890
|
+
var dataSize = extraFieldBuffer.readUInt16LE(i + 2);
|
|
891
|
+
var dataStart = i + 4;
|
|
892
|
+
var dataEnd = dataStart + dataSize;
|
|
893
|
+
if (dataEnd > extraFieldBuffer.length) throw new Error("extra field length exceeds extra field buffer size");
|
|
894
|
+
var dataBuffer = extraFieldBuffer.subarray(dataStart, dataEnd);
|
|
895
|
+
extraFields.push({
|
|
896
|
+
id: headerId,
|
|
897
|
+
data: dataBuffer,
|
|
898
|
+
});
|
|
899
|
+
i = dataEnd;
|
|
900
|
+
}
|
|
901
|
+
return extraFields;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
function readAndAssertNoEof(reader, buffer, offset, length, position, callback) {
|
|
905
|
+
if (length === 0) {
|
|
906
|
+
// fs.read will throw an out-of-bounds error if you try to read 0 bytes from a 0 byte file
|
|
907
|
+
return setImmediate(function() { callback(null, newBuffer(0)); });
|
|
908
|
+
}
|
|
909
|
+
reader.read(buffer, offset, length, position, function(err, bytesRead) {
|
|
910
|
+
if (err) return callback(err);
|
|
911
|
+
if (bytesRead < length) {
|
|
912
|
+
return callback(new Error("unexpected EOF"));
|
|
913
|
+
}
|
|
914
|
+
callback();
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
util.inherits(AssertByteCountStream, Transform);
|
|
919
|
+
function AssertByteCountStream(byteCount) {
|
|
920
|
+
Transform.call(this);
|
|
921
|
+
this.actualByteCount = 0;
|
|
922
|
+
this.expectedByteCount = byteCount;
|
|
923
|
+
}
|
|
924
|
+
AssertByteCountStream.prototype._transform = function(chunk, encoding, cb) {
|
|
925
|
+
this.actualByteCount += chunk.length;
|
|
926
|
+
if (this.actualByteCount > this.expectedByteCount) {
|
|
927
|
+
var msg = "too many bytes in the stream. expected " + this.expectedByteCount + ". got at least " + this.actualByteCount;
|
|
928
|
+
return cb(new Error(msg));
|
|
929
|
+
}
|
|
930
|
+
cb(null, chunk);
|
|
931
|
+
};
|
|
932
|
+
AssertByteCountStream.prototype._flush = function(cb) {
|
|
933
|
+
if (this.actualByteCount < this.expectedByteCount) {
|
|
934
|
+
var msg = "not enough bytes in the stream. expected " + this.expectedByteCount + ". got only " + this.actualByteCount;
|
|
935
|
+
return cb(new Error(msg));
|
|
936
|
+
}
|
|
937
|
+
cb();
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
util.inherits(RandomAccessReader, EventEmitter);
|
|
941
|
+
function RandomAccessReader() {
|
|
942
|
+
EventEmitter.call(this);
|
|
943
|
+
this.refCount = 0;
|
|
944
|
+
}
|
|
945
|
+
RandomAccessReader.prototype.ref = function() {
|
|
946
|
+
this.refCount += 1;
|
|
947
|
+
};
|
|
948
|
+
RandomAccessReader.prototype.unref = function() {
|
|
949
|
+
var self = this;
|
|
950
|
+
self.refCount -= 1;
|
|
951
|
+
|
|
952
|
+
if (self.refCount > 0) return;
|
|
953
|
+
if (self.refCount < 0) throw new Error("invalid unref");
|
|
954
|
+
|
|
955
|
+
self.close(onCloseDone);
|
|
956
|
+
|
|
957
|
+
function onCloseDone(err) {
|
|
958
|
+
if (err) return self.emit('error', err);
|
|
959
|
+
self.emit('close');
|
|
960
|
+
}
|
|
961
|
+
};
|
|
962
|
+
RandomAccessReader.prototype.createReadStream = function(options) {
|
|
963
|
+
if (options == null) options = {};
|
|
964
|
+
var start = options.start;
|
|
965
|
+
var end = options.end;
|
|
966
|
+
if (start === end) {
|
|
967
|
+
var emptyStream = new PassThrough();
|
|
968
|
+
setImmediate(function() {
|
|
969
|
+
emptyStream.end();
|
|
970
|
+
});
|
|
971
|
+
return emptyStream;
|
|
972
|
+
}
|
|
973
|
+
var stream = this._readStreamForRange(start, end);
|
|
974
|
+
|
|
975
|
+
var destroyed = false;
|
|
976
|
+
var refUnrefFilter = new RefUnrefFilter(this);
|
|
977
|
+
stream.on("error", function(err) {
|
|
978
|
+
setImmediate(function() {
|
|
979
|
+
if (!destroyed) refUnrefFilter.emit("error", err);
|
|
980
|
+
});
|
|
981
|
+
});
|
|
982
|
+
installDestroyFn(refUnrefFilter, function() {
|
|
983
|
+
stream.unpipe(refUnrefFilter);
|
|
984
|
+
refUnrefFilter.unref();
|
|
985
|
+
stream.destroy();
|
|
986
|
+
});
|
|
987
|
+
|
|
988
|
+
var byteCounter = new AssertByteCountStream(end - start);
|
|
989
|
+
refUnrefFilter.on("error", function(err) {
|
|
990
|
+
setImmediate(function() {
|
|
991
|
+
if (!destroyed) byteCounter.emit("error", err);
|
|
992
|
+
});
|
|
993
|
+
});
|
|
994
|
+
installDestroyFn(byteCounter, function() {
|
|
995
|
+
destroyed = true;
|
|
996
|
+
refUnrefFilter.unpipe(byteCounter);
|
|
997
|
+
refUnrefFilter.destroy();
|
|
998
|
+
});
|
|
999
|
+
|
|
1000
|
+
return stream.pipe(refUnrefFilter).pipe(byteCounter);
|
|
1001
|
+
};
|
|
1002
|
+
RandomAccessReader.prototype._readStreamForRange = function(start, end) {
|
|
1003
|
+
throw new Error("not implemented");
|
|
1004
|
+
};
|
|
1005
|
+
RandomAccessReader.prototype.read = function(buffer, offset, length, position, callback) {
|
|
1006
|
+
var readStream = this.createReadStream({start: position, end: position + length});
|
|
1007
|
+
var writeStream = new Writable();
|
|
1008
|
+
var written = 0;
|
|
1009
|
+
writeStream._write = function(chunk, encoding, cb) {
|
|
1010
|
+
chunk.copy(buffer, offset + written, 0, chunk.length);
|
|
1011
|
+
written += chunk.length;
|
|
1012
|
+
cb();
|
|
1013
|
+
};
|
|
1014
|
+
writeStream.on("finish", callback);
|
|
1015
|
+
readStream.on("error", function(error) {
|
|
1016
|
+
callback(error);
|
|
1017
|
+
});
|
|
1018
|
+
readStream.pipe(writeStream);
|
|
1019
|
+
};
|
|
1020
|
+
RandomAccessReader.prototype.close = function(callback) {
|
|
1021
|
+
setImmediate(callback);
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
util.inherits(RefUnrefFilter, PassThrough);
|
|
1025
|
+
function RefUnrefFilter(context) {
|
|
1026
|
+
PassThrough.call(this);
|
|
1027
|
+
this.context = context;
|
|
1028
|
+
this.context.ref();
|
|
1029
|
+
this.unreffedYet = false;
|
|
1030
|
+
}
|
|
1031
|
+
RefUnrefFilter.prototype._flush = function(cb) {
|
|
1032
|
+
this.unref();
|
|
1033
|
+
cb();
|
|
1034
|
+
};
|
|
1035
|
+
RefUnrefFilter.prototype.unref = function(cb) {
|
|
1036
|
+
if (this.unreffedYet) return;
|
|
1037
|
+
this.unreffedYet = true;
|
|
1038
|
+
this.context.unref();
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
var cp437 = '\u0000☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ';
|
|
1042
|
+
function decodeBuffer(buffer, isUtf8) {
|
|
1043
|
+
if (isUtf8) {
|
|
1044
|
+
return buffer.toString("utf8");
|
|
1045
|
+
} else {
|
|
1046
|
+
var result = "";
|
|
1047
|
+
for (var i = 0; i < buffer.length; i++) {
|
|
1048
|
+
result += cp437[buffer[i]];
|
|
1049
|
+
}
|
|
1050
|
+
return result;
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
function readUInt64LE(buffer, offset) {
|
|
1055
|
+
// There is no native function for this, because we can't actually store 64-bit integers precisely.
|
|
1056
|
+
// after 53 bits, JavaScript's Number type (IEEE 754 double) can't store individual integers anymore.
|
|
1057
|
+
// but since 53 bits is a whole lot more than 32 bits, we do our best anyway.
|
|
1058
|
+
// As of 2020, Node has added support for BigInt, which obviates this whole function,
|
|
1059
|
+
// but yauzl hasn't been updated to depend on BigInt (yet?).
|
|
1060
|
+
var lower32 = buffer.readUInt32LE(offset);
|
|
1061
|
+
var upper32 = buffer.readUInt32LE(offset + 4);
|
|
1062
|
+
// we can't use bitshifting here, because JavaScript bitshifting only works on 32-bit integers.
|
|
1063
|
+
return upper32 * 0x100000000 + lower32;
|
|
1064
|
+
// as long as we're bounds checking the result of this function against the total file size,
|
|
1065
|
+
// we'll catch any overflow errors, because we already made sure the total file size was within reason.
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
// Node 10 deprecated new Buffer().
|
|
1069
|
+
var newBuffer;
|
|
1070
|
+
if (typeof Buffer.allocUnsafe === "function") {
|
|
1071
|
+
newBuffer = function(len) {
|
|
1072
|
+
return Buffer.allocUnsafe(len);
|
|
1073
|
+
};
|
|
1074
|
+
} else {
|
|
1075
|
+
newBuffer = function(len) {
|
|
1076
|
+
return new Buffer(len);
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
// Node 8 introduced a proper destroy() implementation on writable streams.
|
|
1081
|
+
function installDestroyFn(stream, fn) {
|
|
1082
|
+
if (typeof stream.destroy === "function") {
|
|
1083
|
+
// New API.
|
|
1084
|
+
stream._destroy = function(err, cb) {
|
|
1085
|
+
fn();
|
|
1086
|
+
if (cb != null) cb(err);
|
|
1087
|
+
};
|
|
1088
|
+
} else {
|
|
1089
|
+
// Old API.
|
|
1090
|
+
stream.destroy = fn;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
function defaultCallback(err) {
|
|
1095
|
+
if (err) throw err;
|
|
1096
|
+
}
|