@warlock.js/core 5.31.0 → 5.32.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/CHANGELOG.md +23 -0
- package/esm/application/app.d.mts +3 -3
- package/esm/application/app.d.mts.map +1 -1
- package/esm/application/application-config-types.d.mts +1 -2
- package/esm/application/application-config-types.d.mts.map +1 -1
- package/esm/application/application.d.mts +5 -7
- package/esm/application/application.d.mts.map +1 -1
- package/esm/application/application.mjs +3 -1
- package/esm/application/application.mjs.map +1 -1
- package/esm/application/boot-signal.d.mts +14 -12
- package/esm/application/boot-signal.d.mts.map +1 -1
- package/esm/application/index.d.mts +2 -1
- package/esm/application/index.mjs +1 -1
- package/esm/application/public-url.d.mts +1 -2
- package/esm/application/public-url.d.mts.map +1 -1
- package/esm/application/roles.d.mts +10 -11
- package/esm/application/roles.d.mts.map +1 -1
- package/esm/benchmark/benchmark-snapshots.d.mts +1 -3
- package/esm/benchmark/benchmark-snapshots.d.mts.map +1 -1
- package/esm/benchmark/benchmark.d.mts +1 -3
- package/esm/benchmark/benchmark.d.mts.map +1 -1
- package/esm/benchmark/channels/console.channel.d.mts +1 -3
- package/esm/benchmark/channels/console.channel.d.mts.map +1 -1
- package/esm/benchmark/channels/noop.channel.d.mts +1 -3
- package/esm/benchmark/channels/noop.channel.d.mts.map +1 -1
- package/esm/benchmark/index.mjs +1 -1
- package/esm/benchmark/profiler.d.mts +1 -3
- package/esm/benchmark/profiler.d.mts.map +1 -1
- package/esm/benchmark/profiler.mjs +2 -1
- package/esm/benchmark/profiler.mjs.map +1 -1
- package/esm/benchmark/types.d.mts +22 -17
- package/esm/benchmark/types.d.mts.map +1 -1
- package/esm/bootstrap/setup.d.mts +1 -2
- package/esm/bootstrap/setup.d.mts.map +1 -1
- package/esm/bootstrap.d.mts +1 -2
- package/esm/bootstrap.d.mts.map +1 -1
- package/esm/cache/database-cache-driver.d.mts +3 -5
- package/esm/cache/database-cache-driver.d.mts.map +1 -1
- package/esm/cache/database-cache-driver.mjs +1 -1
- package/esm/cache/index.d.mts +2 -1
- package/esm/cache/index.mjs +1 -1
- package/esm/cli/cli-commands.manager.mjs +6 -3
- package/esm/cli/cli-commands.manager.mjs.map +1 -1
- package/esm/cli/commands/agents-md/agents-md-command.action.mjs +3 -2
- package/esm/cli/commands/agents-md/agents-md-command.action.mjs.map +1 -1
- package/esm/cli/commands/board/board-command.action.mjs +1 -1
- package/esm/cli/commands/check/check-command.action.mjs +1 -1
- package/esm/cli/commands/check/child-typecheck.mjs +1 -1
- package/esm/cli/commands/check/child-typecheck.mjs.map +1 -1
- package/esm/cli/commands/check/format-problems.mjs +1 -1
- package/esm/cli/commands/dev-server.command.mjs +3 -2
- package/esm/cli/commands/dev-server.command.mjs.map +1 -1
- package/esm/cli/commands/doctor/check.types.d.mts +29 -16
- package/esm/cli/commands/doctor/check.types.d.mts.map +1 -1
- package/esm/cli/commands/doctor/checks/locales-ts-deprecated.check.mjs +22 -27
- package/esm/cli/commands/doctor/checks/locales-ts-deprecated.check.mjs.map +1 -1
- package/esm/cli/commands/doctor/doctor-command.action.mjs +2 -1
- package/esm/cli/commands/doctor/doctor-command.action.mjs.map +1 -1
- package/esm/cli/commands/explain/explain-command.action.mjs +1 -1
- package/esm/cli/commands/generate/generators/controller.generator.mjs +5 -2
- package/esm/cli/commands/generate/generators/controller.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/generators/endpoint.generator.mjs +5 -3
- package/esm/cli/commands/generate/generators/endpoint.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/generators/model.generator.mjs +3 -2
- package/esm/cli/commands/generate/generators/model.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/generators/repository.generator.mjs +3 -1
- package/esm/cli/commands/generate/generators/repository.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/generators/resource.generator.mjs +3 -1
- package/esm/cli/commands/generate/generators/resource.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/generators/service.generator.mjs +3 -1
- package/esm/cli/commands/generate/generators/service.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/templates/endpoint-stubs.mjs +2 -2
- package/esm/cli/commands/generate/templates/endpoint-stubs.mjs.map +1 -1
- package/esm/cli/commands/generate/utils/endpoint-schema.mjs +1 -2
- package/esm/cli/commands/generate/utils/endpoint-schema.mjs.map +1 -1
- package/esm/cli/commands/generate/utils/name-parser.mjs +1 -1
- package/esm/cli/commands/generate/utils/path-resolver.mjs +1 -1
- package/esm/cli/commands/inspect/inspect-command.action.mjs +3 -2
- package/esm/cli/commands/inspect/inspect-command.action.mjs.map +1 -1
- package/esm/cli/commands/issue/collect-environment.mjs +187 -0
- package/esm/cli/commands/issue/collect-environment.mjs.map +1 -0
- package/esm/cli/commands/issue/issue-command.action.mjs +70 -0
- package/esm/cli/commands/issue/issue-command.action.mjs.map +1 -0
- package/esm/cli/commands/issue.command.mjs +31 -0
- package/esm/cli/commands/issue.command.mjs.map +1 -0
- package/esm/cli/commands/mcp/mcp-command.action.mjs +15 -14
- package/esm/cli/commands/mcp/mcp-command.action.mjs.map +1 -1
- package/esm/cli/commands/openapi-generator.action.mjs +1 -1
- package/esm/cli/commands/postman-generator.action.mjs +1 -1
- package/esm/cli/commands/routes/format-routes-table.mjs +1 -1
- package/esm/cli/commands/routes/route-row.mjs +1 -1
- package/esm/cli/commands/routes/routes-diff.action.mjs +2 -2
- package/esm/cli/commands/routes/routes-diff.action.mjs.map +1 -1
- package/esm/cli/commands/test.command.mjs +1 -1
- package/esm/cli/commands/trace/trace-command.action.mjs +1 -1
- package/esm/cli/commands-loader.mjs +1 -1
- package/esm/cli/framework-cli-commands.mjs +2 -0
- package/esm/cli/framework-cli-commands.mjs.map +1 -1
- package/esm/cli/parse-cli-args.mjs +2 -2
- package/esm/cli/parse-cli-args.mjs.map +1 -1
- package/esm/cli/start.d.mts +1 -1
- package/esm/cli/string-similarity.mjs +1 -1
- package/esm/commands/cli-command.d.mts +2 -4
- package/esm/commands/cli-command.d.mts.map +1 -1
- package/esm/commands/index.d.mts +2 -1
- package/esm/commands/index.mjs +1 -1
- package/esm/commands/types.d.mts +8 -8
- package/esm/commands/types.d.mts.map +1 -1
- package/esm/config/config-getter.d.mts +2 -3
- package/esm/config/config-getter.d.mts.map +1 -1
- package/esm/config/config-getter.mjs +5 -5
- package/esm/config/config-getter.mjs.map +1 -1
- package/esm/config/config-handlers.d.mts +1 -3
- package/esm/config/config-handlers.d.mts.map +1 -1
- package/esm/config/config-loader.d.mts +1 -2
- package/esm/config/config-loader.d.mts.map +1 -1
- package/esm/config/config-loader.mjs +3 -3
- package/esm/config/config-loader.mjs.map +1 -1
- package/esm/config/config-manager.mjs +1 -1
- package/esm/config/config-schema.d.mts +19 -16
- package/esm/config/config-schema.d.mts.map +1 -1
- package/esm/config/config-setter.d.mts +2 -4
- package/esm/config/config-setter.d.mts.map +1 -1
- package/esm/config/config-setter.mjs +2 -2
- package/esm/config/config-setter.mjs.map +1 -1
- package/esm/config/config-special-handlers.d.mts +2 -4
- package/esm/config/config-special-handlers.d.mts.map +1 -1
- package/esm/config/index.d.mts +2 -1
- package/esm/config/index.mjs +1 -1
- package/esm/config/types.d.mts +4 -5
- package/esm/config/types.d.mts.map +1 -1
- package/esm/connectors/access-connector.d.mts +1 -3
- package/esm/connectors/access-connector.d.mts.map +1 -1
- package/esm/connectors/access-connector.mjs +2 -2
- package/esm/connectors/access-connector.mjs.map +1 -1
- package/esm/connectors/ai-connector.d.mts +1 -3
- package/esm/connectors/ai-connector.d.mts.map +1 -1
- package/esm/connectors/ai-connector.mjs +2 -2
- package/esm/connectors/ai-connector.mjs.map +1 -1
- package/esm/connectors/assert-no-reserved-connector-names.d.mts +1 -3
- package/esm/connectors/assert-no-reserved-connector-names.d.mts.map +1 -1
- package/esm/connectors/assert-unique-connector-names.d.mts +1 -3
- package/esm/connectors/assert-unique-connector-names.d.mts.map +1 -1
- package/esm/connectors/assert-unique-connector-names.mjs +2 -1
- package/esm/connectors/assert-unique-connector-names.mjs.map +1 -1
- package/esm/connectors/base-connector.d.mts +1 -3
- package/esm/connectors/base-connector.d.mts.map +1 -1
- package/esm/connectors/cache-connector.d.mts +1 -3
- package/esm/connectors/cache-connector.d.mts.map +1 -1
- package/esm/connectors/cache-connector.mjs +3 -3
- package/esm/connectors/cache-connector.mjs.map +1 -1
- package/esm/connectors/connectors-manager.d.mts +2 -4
- package/esm/connectors/connectors-manager.d.mts.map +1 -1
- package/esm/connectors/connectors-manager.mjs +2 -2
- package/esm/connectors/connectors-manager.mjs.map +1 -1
- package/esm/connectors/database-connector.d.mts +1 -3
- package/esm/connectors/database-connector.d.mts.map +1 -1
- package/esm/connectors/database-connector.mjs +2 -2
- package/esm/connectors/database-connector.mjs.map +1 -1
- package/esm/connectors/describe-server-address.mjs +4 -4
- package/esm/connectors/describe-server-address.mjs.map +1 -1
- package/esm/connectors/herald-connector.d.mts +1 -3
- package/esm/connectors/herald-connector.d.mts.map +1 -1
- package/esm/connectors/herald-connector.mjs +2 -2
- package/esm/connectors/herald-connector.mjs.map +1 -1
- package/esm/connectors/http-connector.d.mts +1 -3
- package/esm/connectors/http-connector.d.mts.map +1 -1
- package/esm/connectors/http-connector.mjs +8 -7
- package/esm/connectors/http-connector.mjs.map +1 -1
- package/esm/connectors/index.d.mts +2 -1
- package/esm/connectors/index.mjs +1 -1
- package/esm/connectors/logger-connector.d.mts +1 -3
- package/esm/connectors/logger-connector.d.mts.map +1 -1
- package/esm/connectors/logger-connector.mjs +2 -2
- package/esm/connectors/logger-connector.mjs.map +1 -1
- package/esm/connectors/mail-connector.d.mts +1 -3
- package/esm/connectors/mail-connector.d.mts.map +1 -1
- package/esm/connectors/mail-connector.mjs +2 -2
- package/esm/connectors/mail-connector.mjs.map +1 -1
- package/esm/connectors/notifications-connector.d.mts +1 -3
- package/esm/connectors/notifications-connector.d.mts.map +1 -1
- package/esm/connectors/notifications-connector.mjs +2 -2
- package/esm/connectors/notifications-connector.mjs.map +1 -1
- package/esm/connectors/register-configured-connectors.d.mts +2 -4
- package/esm/connectors/register-configured-connectors.d.mts.map +1 -1
- package/esm/connectors/socket-connector.d.mts +1 -3
- package/esm/connectors/socket-connector.d.mts.map +1 -1
- package/esm/connectors/socket-connector.mjs +12 -10
- package/esm/connectors/socket-connector.mjs.map +1 -1
- package/esm/connectors/storage.connector.d.mts +1 -3
- package/esm/connectors/storage.connector.d.mts.map +1 -1
- package/esm/connectors/storage.connector.mjs +2 -2
- package/esm/connectors/storage.connector.mjs.map +1 -1
- package/esm/connectors/types.d.mts +17 -14
- package/esm/connectors/types.d.mts.map +1 -1
- package/esm/container/container-instance-registry.mjs.map +1 -1
- package/esm/container/development-app-modules.d.mts +7 -5
- package/esm/container/development-app-modules.d.mts.map +1 -1
- package/esm/container/development-model-modules.d.mts +6 -5
- package/esm/container/development-model-modules.d.mts.map +1 -1
- package/esm/container/index.d.mts +4 -4
- package/esm/container/index.d.mts.map +1 -1
- package/esm/database/index.d.mts +3 -1
- package/esm/database/index.mjs +1 -1
- package/esm/database/migrate-action.mjs +1 -1
- package/esm/database/models/database-log/database-log.d.mts +2 -3
- package/esm/database/models/database-log/database-log.d.mts.map +1 -1
- package/esm/database/models/database-log/index.d.mts +2 -1
- package/esm/database/models/database-log/index.mjs +1 -1
- package/esm/database/seed-command-action.mjs +1 -1
- package/esm/database/seeds/seeder.d.mts +2 -4
- package/esm/database/seeds/seeder.d.mts.map +1 -1
- package/esm/database/seeds/seeder.errors.d.mts +2 -3
- package/esm/database/seeds/seeder.errors.d.mts.map +1 -1
- package/esm/database/seeds/seeders.manager.mjs +2 -1
- package/esm/database/seeds/seeders.manager.mjs.map +1 -1
- package/esm/database/seeds/types.d.mts +7 -8
- package/esm/database/seeds/types.d.mts.map +1 -1
- package/esm/database/utils.d.mts +4 -5
- package/esm/database/utils.d.mts.map +1 -1
- package/esm/dev-server/app-module-registry.mjs +1 -1
- package/esm/dev-server/create-worker.mjs +5 -3
- package/esm/dev-server/create-worker.mjs.map +1 -1
- package/esm/dev-server/dependency-graph.d.mts +1 -3
- package/esm/dev-server/dependency-graph.d.mts.map +1 -1
- package/esm/dev-server/dependency-graph.mjs +1 -1
- package/esm/dev-server/dependency-graph.mjs.map +1 -1
- package/esm/dev-server/extract-translation-keys.mjs +16 -17
- package/esm/dev-server/extract-translation-keys.mjs.map +1 -1
- package/esm/dev-server/file-manager.d.mts +3 -7
- package/esm/dev-server/file-manager.d.mts.map +1 -1
- package/esm/dev-server/file-operations.d.mts +1 -3
- package/esm/dev-server/file-operations.d.mts.map +1 -1
- package/esm/dev-server/files-watcher.mjs +12 -11
- package/esm/dev-server/files-watcher.mjs.map +1 -1
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.mjs +36 -115
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.mjs.map +1 -1
- package/esm/dev-server/health-checker/file-health-checker.contract.d.mts +5 -5
- package/esm/dev-server/health-checker/file-health-checker.contract.d.mts.map +1 -1
- package/esm/dev-server/health-checker/file-health-result.d.mts +2 -2
- package/esm/dev-server/health-checker/file-health-result.d.mts.map +1 -1
- package/esm/dev-server/health-checker/files-healthcare.manager.mjs +1 -0
- package/esm/dev-server/health-checker/files-healthcare.manager.mjs.map +1 -1
- package/esm/dev-server/health-checker/oxlint-runner.mjs +6 -5
- package/esm/dev-server/health-checker/oxlint-runner.mjs.map +1 -1
- package/esm/dev-server/health-checker/workers/eslint-health.worker.d.mts +1 -1
- package/esm/dev-server/health-checker/workers/oxlint-health.worker.d.mts +1 -1
- package/esm/dev-server/health-checker/workers/ts-health.worker.d.mts +1 -1
- package/esm/dev-server/health-checker/workers/ts-health.worker.mjs +40 -174
- package/esm/dev-server/health-checker/workers/ts-health.worker.mjs.map +1 -1
- package/esm/dev-server/loader/hook-thread.d.mts +4 -8
- package/esm/dev-server/loader/hook-thread.d.mts.map +1 -1
- package/esm/dev-server/loader/load-hook.d.mts +10 -6
- package/esm/dev-server/loader/load-hook.d.mts.map +1 -1
- package/esm/dev-server/loader/load-hook.mjs +4 -3
- package/esm/dev-server/loader/load-hook.mjs.map +1 -1
- package/esm/dev-server/loader/own-resolver.mjs +1 -1
- package/esm/dev-server/loader/register-loader.mjs +3 -2
- package/esm/dev-server/loader/register-loader.mjs.map +1 -1
- package/esm/dev-server/loader/resolve-hook.d.mts +2 -2
- package/esm/dev-server/loader/resolve-hook.d.mts.map +1 -1
- package/esm/dev-server/loader/resolve-hook.mjs +2 -1
- package/esm/dev-server/loader/resolve-hook.mjs.map +1 -1
- package/esm/dev-server/loader/transpile-cache.mjs +2 -1
- package/esm/dev-server/loader/transpile-cache.mjs.map +1 -1
- package/esm/dev-server/manifest-manager.d.mts +1 -3
- package/esm/dev-server/manifest-manager.d.mts.map +1 -1
- package/esm/dev-server/model-module-registry.mjs +3 -3
- package/esm/dev-server/model-module-registry.mjs.map +1 -1
- package/esm/dev-server/model-resource-typings.mjs +40 -47
- package/esm/dev-server/model-resource-typings.mjs.map +1 -1
- package/esm/dev-server/module-loader.mjs +2 -2
- package/esm/dev-server/module-loader.mjs.map +1 -1
- package/esm/dev-server/package-json-manager.mjs +1 -1
- package/esm/dev-server/parse-imports.mjs +6 -38
- package/esm/dev-server/parse-imports.mjs.map +1 -1
- package/esm/dev-server/read-config-ast.mjs +3 -33
- package/esm/dev-server/read-config-ast.mjs.map +1 -1
- package/esm/dev-server/ready-block.mjs +1 -1
- package/esm/dev-server/shortcuts.mjs +1 -1
- package/esm/dev-server/special-files-collector.d.mts +2 -4
- package/esm/dev-server/special-files-collector.d.mts.map +1 -1
- package/esm/dev-server/supervisor.mjs +1 -1
- package/esm/dev-server/tsconfig-manager.mjs +3 -3
- package/esm/dev-server/tsconfig-manager.mjs.map +1 -1
- package/esm/dev-server/type-generator.mjs +28 -35
- package/esm/dev-server/type-generator.mjs.map +1 -1
- package/esm/dev-server/types.d.mts +3 -4
- package/esm/dev-server/types.d.mts.map +1 -1
- package/esm/dev-server/update-check-cache.mjs +2 -2
- package/esm/dev-server/update-check-cache.mjs.map +1 -1
- package/esm/encryption/encrypt.d.mts +2 -3
- package/esm/encryption/encrypt.d.mts.map +1 -1
- package/esm/encryption/hash.d.mts +1 -2
- package/esm/encryption/hash.d.mts.map +1 -1
- package/esm/encryption/index.mjs +1 -1
- package/esm/encryption/password.d.mts +2 -3
- package/esm/encryption/password.d.mts.map +1 -1
- package/esm/encryption/types.d.mts +2 -3
- package/esm/encryption/types.d.mts.map +1 -1
- package/esm/errors/error-codes.d.mts +29 -22
- package/esm/errors/error-codes.d.mts.map +1 -1
- package/esm/errors/warlock-error.d.mts +1 -3
- package/esm/errors/warlock-error.d.mts.map +1 -1
- package/esm/generations/add-command.action.mjs +3 -2
- package/esm/generations/add-command.action.mjs.map +1 -1
- package/esm/generations/features/bull-board.feature.mjs +2 -1
- package/esm/generations/features/bull-board.feature.mjs.map +1 -1
- package/esm/generations/features/notifications.feature.mjs +2 -1
- package/esm/generations/features/notifications.feature.mjs.map +1 -1
- package/esm/generations/features/shared/merge-web-sitemap-config.mjs +16 -23
- package/esm/generations/features/shared/merge-web-sitemap-config.mjs.map +1 -1
- package/esm/generations/features/shared/patch-tsconfig-include.mjs +1 -1
- package/esm/generations/features/shared/relocate-conflicting-home-route.mjs +1 -1
- package/esm/generations/features/sitemap.feature.mjs +2 -1
- package/esm/generations/features/sitemap.feature.mjs.map +1 -1
- package/esm/generations/generation-fs.mjs +1 -1
- package/esm/generations/generation-run.mjs +1 -1
- package/esm/generations/stubs.mjs +1 -1
- package/esm/generations/stubs.mjs.map +1 -1
- package/esm/http/boot-port-preflight.d.mts +4 -5
- package/esm/http/boot-port-preflight.d.mts.map +1 -1
- package/esm/http/boot-port-preflight.mjs +2 -2
- package/esm/http/boot-port-preflight.mjs.map +1 -1
- package/esm/http/bounded-stream-queue.d.mts +4 -4
- package/esm/http/bounded-stream-queue.d.mts.map +1 -1
- package/esm/http/bounded-stream-queue.mjs +1 -1
- package/esm/http/bounded-stream-queue.mjs.map +1 -1
- package/esm/http/build-cors-options.mjs +2 -2
- package/esm/http/build-cors-options.mjs.map +1 -1
- package/esm/http/build-rate-limit-options.d.mts +2 -3
- package/esm/http/build-rate-limit-options.d.mts.map +1 -1
- package/esm/http/build-rate-limit-options.mjs +1 -1
- package/esm/http/build-rate-limit-options.mjs.map +1 -1
- package/esm/http/conditional-request.d.mts +14 -13
- package/esm/http/conditional-request.d.mts.map +1 -1
- package/esm/http/config.d.mts +2 -4
- package/esm/http/config.d.mts.map +1 -1
- package/esm/http/config.mjs +2 -2
- package/esm/http/config.mjs.map +1 -1
- package/esm/http/context/request-context.d.mts +6 -7
- package/esm/http/context/request-context.d.mts.map +1 -1
- package/esm/http/context/request-memo.d.mts +1 -2
- package/esm/http/context/request-memo.d.mts.map +1 -1
- package/esm/http/createHttpApplication.d.mts +2 -3
- package/esm/http/createHttpApplication.d.mts.map +1 -1
- package/esm/http/createHttpApplication.mjs +2 -2
- package/esm/http/createHttpApplication.mjs.map +1 -1
- package/esm/http/csp.d.mts +10 -12
- package/esm/http/csp.d.mts.map +1 -1
- package/esm/http/csp.mjs +2 -2
- package/esm/http/csp.mjs.map +1 -1
- package/esm/http/csrf-default-guard.d.mts +2 -4
- package/esm/http/csrf-default-guard.d.mts.map +1 -1
- package/esm/http/csrf-default-guard.mjs +1 -1
- package/esm/http/csrf-default-guard.mjs.map +1 -1
- package/esm/http/csrf-origin-policy.d.mts +7 -9
- package/esm/http/csrf-origin-policy.d.mts.map +1 -1
- package/esm/http/csrf-origin-policy.mjs +2 -2
- package/esm/http/csrf-origin-policy.mjs.map +1 -1
- package/esm/http/database/RequestLog.d.mts +2 -3
- package/esm/http/database/RequestLog.d.mts.map +1 -1
- package/esm/http/error-codes.d.mts +1 -2
- package/esm/http/error-codes.d.mts.map +1 -1
- package/esm/http/error-mapper.d.mts +2 -4
- package/esm/http/error-mapper.d.mts.map +1 -1
- package/esm/http/error-mapper.mjs +2 -2
- package/esm/http/error-mapper.mjs.map +1 -1
- package/esm/http/errors/errors.d.mts +28 -29
- package/esm/http/errors/errors.d.mts.map +1 -1
- package/esm/http/escape-header-value.d.mts +1 -2
- package/esm/http/escape-header-value.d.mts.map +1 -1
- package/esm/http/events.d.mts +2 -4
- package/esm/http/events.d.mts.map +1 -1
- package/esm/http/health.d.mts +4 -4
- package/esm/http/health.d.mts.map +1 -1
- package/esm/http/index.d.mts +4 -1
- package/esm/http/index.mjs +1 -1
- package/esm/http/middleware/cache-response-middleware.d.mts +2 -4
- package/esm/http/middleware/cache-response-middleware.d.mts.map +1 -1
- package/esm/http/middleware/concurrency-limit.middleware.d.mts +3 -3
- package/esm/http/middleware/concurrency-limit.middleware.d.mts.map +1 -1
- package/esm/http/middleware/idempotency.middleware.d.mts +3 -3
- package/esm/http/middleware/idempotency.middleware.d.mts.map +1 -1
- package/esm/http/middleware/idempotency.middleware.mjs +6 -6
- package/esm/http/middleware/idempotency.middleware.mjs.map +1 -1
- package/esm/http/middleware/index.d.mts +3 -1
- package/esm/http/middleware/index.mjs +1 -1
- package/esm/http/middleware/inject-request-context.d.mts +2 -4
- package/esm/http/middleware/inject-request-context.d.mts.map +1 -1
- package/esm/http/middleware/inject-request-context.mjs +3 -3
- package/esm/http/middleware/inject-request-context.mjs.map +1 -1
- package/esm/http/middleware/ip-filter.middleware.d.mts +3 -3
- package/esm/http/middleware/ip-filter.middleware.d.mts.map +1 -1
- package/esm/http/middleware/maintenance.middleware.d.mts +3 -3
- package/esm/http/middleware/maintenance.middleware.d.mts.map +1 -1
- package/esm/http/middleware/maintenance.middleware.mjs +4 -4
- package/esm/http/middleware/maintenance.middleware.mjs.map +1 -1
- package/esm/http/middleware/max-body-size.middleware.d.mts +2 -2
- package/esm/http/middleware/max-body-size.middleware.d.mts.map +1 -1
- package/esm/http/middleware/middleware-list.d.mts +1 -3
- package/esm/http/middleware/middleware-list.d.mts.map +1 -1
- package/esm/http/middleware/rate-limit.middleware.d.mts +3 -3
- package/esm/http/middleware/rate-limit.middleware.d.mts.map +1 -1
- package/esm/http/middleware/rate-limit.middleware.mjs +2 -2
- package/esm/http/middleware/rate-limit.middleware.mjs.map +1 -1
- package/esm/http/middleware/utils/cidr-match.d.mts +2 -3
- package/esm/http/middleware/utils/cidr-match.d.mts.map +1 -1
- package/esm/http/middleware/utils/idempotency-key.d.mts +3 -5
- package/esm/http/middleware/utils/idempotency-key.d.mts.map +1 -1
- package/esm/http/middleware/utils/index.d.mts +2 -1
- package/esm/http/middleware/utils/parse-size.d.mts +1 -2
- package/esm/http/middleware/utils/parse-size.d.mts.map +1 -1
- package/esm/http/middleware/utils/parse-size.mjs +2 -2
- package/esm/http/middleware/utils/parse-size.mjs.map +1 -1
- package/esm/http/plugins.d.mts +2 -4
- package/esm/http/plugins.d.mts.map +1 -1
- package/esm/http/plugins.mjs +10 -10
- package/esm/http/plugins.mjs.map +1 -1
- package/esm/http/port-preflight.d.mts +3 -4
- package/esm/http/port-preflight.d.mts.map +1 -1
- package/esm/http/rate-limit-cache-store.mjs +4 -3
- package/esm/http/rate-limit-cache-store.mjs.map +1 -1
- package/esm/http/ready-report.d.mts +15 -10
- package/esm/http/ready-report.d.mts.map +1 -1
- package/esm/http/request-controller.d.mts +1 -3
- package/esm/http/request-controller.d.mts.map +1 -1
- package/esm/http/request-log-snapshot.d.mts +20 -16
- package/esm/http/request-log-snapshot.d.mts.map +1 -1
- package/esm/http/request-log-snapshot.mjs +3 -3
- package/esm/http/request-log-snapshot.mjs.map +1 -1
- package/esm/http/request.d.mts +8 -7
- package/esm/http/request.d.mts.map +1 -1
- package/esm/http/request.mjs +8 -7
- package/esm/http/request.mjs.map +1 -1
- package/esm/http/response.d.mts +12 -11
- package/esm/http/response.d.mts.map +1 -1
- package/esm/http/response.mjs +7 -7
- package/esm/http/response.mjs.map +1 -1
- package/esm/http/safe-redirect.d.mts +3 -4
- package/esm/http/safe-redirect.d.mts.map +1 -1
- package/esm/http/serialized.d.mts +12 -13
- package/esm/http/serialized.d.mts.map +1 -1
- package/esm/http/server-rebuilt.d.mts +3 -5
- package/esm/http/server-rebuilt.d.mts.map +1 -1
- package/esm/http/server.d.mts +9 -9
- package/esm/http/server.d.mts.map +1 -1
- package/esm/http/server.mjs +4 -4
- package/esm/http/server.mjs.map +1 -1
- package/esm/http/stream-react-response.d.mts +7 -7
- package/esm/http/stream-react-response.d.mts.map +1 -1
- package/esm/http/tracing/index.mjs +1 -1
- package/esm/http/tracing/trace-id.d.mts +2 -3
- package/esm/http/tracing/trace-id.d.mts.map +1 -1
- package/esm/http/tracing/tracing-dispatcher.d.mts +10 -11
- package/esm/http/tracing/tracing-dispatcher.d.mts.map +1 -1
- package/esm/http/tracing/tracing-dispatcher.mjs +2 -2
- package/esm/http/tracing/tracing-dispatcher.mjs.map +1 -1
- package/esm/http/tracing/tracing.type.d.mts +11 -9
- package/esm/http/tracing/tracing.type.d.mts.map +1 -1
- package/esm/http/types.d.mts +49 -43
- package/esm/http/types.d.mts.map +1 -1
- package/esm/http/uploaded-file.d.mts +6 -5
- package/esm/http/uploaded-file.d.mts.map +1 -1
- package/esm/http/uploads/generate-image-variants.d.mts +6 -6
- package/esm/http/uploads/generate-image-variants.d.mts.map +1 -1
- package/esm/http/uploads/generate-image-variants.mjs +1 -1
- package/esm/http/uploads/generate-image-variants.mjs.map +1 -1
- package/esm/http/uploads/image-variant-cache-entries.mjs +1 -1
- package/esm/http/uploads/image-variant-cache.mjs +8 -8
- package/esm/http/uploads/image-variant-cache.mjs.map +1 -1
- package/esm/http/uploads/image-variant-types.d.mts +7 -9
- package/esm/http/uploads/image-variant-types.d.mts.map +1 -1
- package/esm/http/uploads/image-variants-config-error.d.mts +1 -2
- package/esm/http/uploads/image-variants-config-error.d.mts.map +1 -1
- package/esm/http/uploads/index.d.mts +2 -1
- package/esm/http/uploads/index.mjs +1 -1
- package/esm/http/uploads/parse-uploaded-file-query.mjs +1 -1
- package/esm/http/uploads/parse-uploaded-file-query.mjs.map +1 -1
- package/esm/http/uploads/purge-image-variants.d.mts +2 -4
- package/esm/http/uploads/purge-image-variants.d.mts.map +1 -1
- package/esm/http/uploads/resolve-image-variant.d.mts +3 -5
- package/esm/http/uploads/resolve-image-variant.d.mts.map +1 -1
- package/esm/http/uploads/resolve-image-variants-config.mjs +4 -4
- package/esm/http/uploads/resolve-image-variants-config.mjs.map +1 -1
- package/esm/http/uploads/resolve-original-content-type.mjs +1 -1
- package/esm/http/uploads/resolve-original-content-type.mjs.map +1 -1
- package/esm/http/uploads/trim-image-variant-cache.mjs +3 -3
- package/esm/http/uploads/trim-image-variant-cache.mjs.map +1 -1
- package/esm/http/uploads/uploaded-file.controller.d.mts +6 -5
- package/esm/http/uploads/uploaded-file.controller.d.mts.map +1 -1
- package/esm/http/uploads/uploaded-file.controller.mjs +2 -1
- package/esm/http/uploads/uploaded-file.controller.mjs.map +1 -1
- package/esm/http/uploads/variant-cache-key.mjs +1 -1
- package/esm/http/uploads-config.d.mts +2 -4
- package/esm/http/uploads-config.d.mts.map +1 -1
- package/esm/http/uploads-types.d.mts +19 -17
- package/esm/http/uploads-types.d.mts.map +1 -1
- package/esm/http/xmlable.d.mts +1 -2
- package/esm/http/xmlable.d.mts.map +1 -1
- package/esm/image/image.d.mts +6 -7
- package/esm/image/image.d.mts.map +1 -1
- package/esm/image/image.mjs.map +1 -1
- package/esm/image/index.d.mts +2 -1
- package/esm/image/index.mjs +1 -1
- package/esm/index.d.mts +21 -0
- package/esm/loader/app-module-importer.d.mts +1 -2
- package/esm/loader/app-module-importer.d.mts.map +1 -1
- package/esm/localization/index.mjs +1 -1
- package/esm/localization/parse-locale-dictionary.d.mts +4 -5
- package/esm/localization/parse-locale-dictionary.d.mts.map +1 -1
- package/esm/localization/parse-locale-dictionary.mjs +1 -1
- package/esm/localization/parse-locale-dictionary.mjs.map +1 -1
- package/esm/localization/register-locale-dictionary.d.mts +3 -4
- package/esm/localization/register-locale-dictionary.d.mts.map +1 -1
- package/esm/localization/register-locale-dictionary.mjs +2 -2
- package/esm/localization/register-locale-dictionary.mjs.map +1 -1
- package/esm/logger/fatal-visibility.d.mts +1 -2
- package/esm/logger/fatal-visibility.d.mts.map +1 -1
- package/esm/logger/index.d.mts +2 -1
- package/esm/logger/index.mjs +1 -1
- package/esm/logger/logger.d.mts +1 -3
- package/esm/logger/logger.d.mts.map +1 -1
- package/esm/logger/types.d.mts +2 -3
- package/esm/logger/types.d.mts.map +1 -1
- package/esm/mail/config.d.mts +12 -14
- package/esm/mail/config.d.mts.map +1 -1
- package/esm/mail/events.d.mts +4 -6
- package/esm/mail/events.d.mts.map +1 -1
- package/esm/mail/index.d.mts +2 -1
- package/esm/mail/index.mjs +1 -1
- package/esm/mail/mail.d.mts +1 -3
- package/esm/mail/mail.d.mts.map +1 -1
- package/esm/mail/mailer-pool.d.mts +5 -7
- package/esm/mail/mailer-pool.d.mts.map +1 -1
- package/esm/mail/react-mail.d.mts +1 -3
- package/esm/mail/react-mail.d.mts.map +1 -1
- package/esm/mail/send-mail.d.mts +1 -3
- package/esm/mail/send-mail.d.mts.map +1 -1
- package/esm/mail/send-mail.mjs +2 -1
- package/esm/mail/send-mail.mjs.map +1 -1
- package/esm/mail/test-mailbox.d.mts +11 -13
- package/esm/mail/test-mailbox.d.mts.map +1 -1
- package/esm/mail/types.d.mts +17 -18
- package/esm/mail/types.d.mts.map +1 -1
- package/esm/manifest/manifest-manager.mjs +1 -1
- package/esm/openapi/build-openapi-document.d.mts +2 -4
- package/esm/openapi/build-openapi-document.d.mts.map +1 -1
- package/esm/openapi/cast-schema.mjs +1 -1
- package/esm/openapi/development-openapi-provider.d.mts +5 -6
- package/esm/openapi/development-openapi-provider.d.mts.map +1 -1
- package/esm/openapi/index.d.mts +3 -1
- package/esm/openapi/index.mjs +1 -1
- package/esm/openapi/openapi-child-output.mjs +2 -2
- package/esm/openapi/openapi-child-output.mjs.map +1 -1
- package/esm/openapi/postman/build-request-url.mjs +1 -1
- package/esm/openapi/postman/example-from-schema.d.mts +1 -3
- package/esm/openapi/postman/example-from-schema.d.mts.map +1 -1
- package/esm/openapi/postman/index.d.mts +2 -1
- package/esm/openapi/postman/openapi-to-postman-collection.d.mts +3 -5
- package/esm/openapi/postman/openapi-to-postman-collection.d.mts.map +1 -1
- package/esm/openapi/postman/postman-types.d.mts +19 -18
- package/esm/openapi/postman/postman-types.d.mts.map +1 -1
- package/esm/openapi/postman/schema-refs.d.mts +1 -3
- package/esm/openapi/postman/schema-refs.d.mts.map +1 -1
- package/esm/openapi/postman/uuid-v5.mjs +1 -1
- package/esm/openapi/schema-registry.d.mts +1 -1
- package/esm/openapi/security.mjs +1 -1
- package/esm/openapi/types.d.mts +23 -21
- package/esm/openapi/types.d.mts.map +1 -1
- package/esm/production/assert-generated-imports.mjs +1 -1
- package/esm/production/build-contributions.mjs +1 -1
- package/esm/production/bundle-framework-dependencies.mjs +1 -1
- package/esm/production/dist-build-manifest.mjs +1 -1
- package/esm/production/esbuild-plugins.mjs.map +1 -1
- package/esm/production/esbuild-preflight.mjs +1 -1
- package/esm/production/production-builder.mjs +2 -1
- package/esm/production/production-builder.mjs.map +1 -1
- package/esm/production/production-supervisor.mjs +1 -1
- package/esm/production/registration-child-runner.mjs +4 -3
- package/esm/production/registration-child-runner.mjs.map +1 -1
- package/esm/production/resolve-build-config.d.mts +4 -4
- package/esm/production/resolve-build-config.d.mts.map +1 -1
- package/esm/production/resolve-build-config.mjs +1 -1
- package/esm/production/route-registration-child.d.mts +1 -1
- package/esm/production/route-registration-child.mjs +8 -7
- package/esm/production/route-registration-child.mjs.map +1 -1
- package/esm/production/tsconfig-path-aliases.mjs +1 -1
- package/esm/react/index.d.mts +1 -3
- package/esm/react/index.d.mts.map +1 -1
- package/esm/react/index.mjs.map +1 -1
- package/esm/repositories/adapters/cascade/cascade-adapter.d.mts +3 -4
- package/esm/repositories/adapters/cascade/cascade-adapter.d.mts.map +1 -1
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.mts +2 -3
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.mts.map +1 -1
- package/esm/repositories/adapters/cascade/filter-applicator.mjs +10 -9
- package/esm/repositories/adapters/cascade/filter-applicator.mjs.map +1 -1
- package/esm/repositories/adapters/cascade/index.d.mts +2 -1
- package/esm/repositories/adapters/cascade/index.mjs +1 -1
- package/esm/repositories/contracts/index.d.mts +2 -1
- package/esm/repositories/contracts/query-builder.contract.d.mts +4 -6
- package/esm/repositories/contracts/query-builder.contract.d.mts.map +1 -1
- package/esm/repositories/contracts/repository-adapter.contract.d.mts +1 -3
- package/esm/repositories/contracts/repository-adapter.contract.d.mts.map +1 -1
- package/esm/repositories/contracts/types.d.mts +23 -25
- package/esm/repositories/contracts/types.d.mts.map +1 -1
- package/esm/repositories/index.d.mts +4 -1
- package/esm/repositories/index.mjs +1 -1
- package/esm/repositories/repository.manager.d.mts +2 -3
- package/esm/repositories/repository.manager.d.mts.map +1 -1
- package/esm/repositories/repository.manager.mjs +2 -2
- package/esm/repositories/repository.manager.mjs.map +1 -1
- package/esm/resource/define-resource.d.mts +3 -5
- package/esm/resource/define-resource.d.mts.map +1 -1
- package/esm/resource/index.d.mts +2 -1
- package/esm/resource/index.mjs +1 -1
- package/esm/resource/nullable-resource.d.mts +5 -7
- package/esm/resource/nullable-resource.d.mts.map +1 -1
- package/esm/resource/register-resource.d.mts +1 -3
- package/esm/resource/register-resource.d.mts.map +1 -1
- package/esm/resource/resource-field-builder.d.mts +1 -3
- package/esm/resource/resource-field-builder.d.mts.map +1 -1
- package/esm/resource/resource.d.mts +3 -5
- package/esm/resource/resource.d.mts.map +1 -1
- package/esm/resource/resource.mjs +4 -2
- package/esm/resource/resource.mjs.map +1 -1
- package/esm/resource/types.d.mts +21 -21
- package/esm/resource/types.d.mts.map +1 -1
- package/esm/restful/index.d.mts +2 -1
- package/esm/restful/index.mjs +1 -1
- package/esm/restful/restful.d.mts +12 -32
- package/esm/restful/restful.d.mts.map +1 -1
- package/esm/router/index.d.mts +2 -1
- package/esm/router/index.mjs +1 -1
- package/esm/router/named-api-routes-with-responses.mjs +2 -1
- package/esm/router/named-api-routes-with-responses.mjs.map +1 -1
- package/esm/router/normalize-request-path.d.mts +1 -2
- package/esm/router/normalize-request-path.d.mts.map +1 -1
- package/esm/router/normalize-route-path.d.mts +1 -2
- package/esm/router/normalize-route-path.d.mts.map +1 -1
- package/esm/router/positional-handler-diagnostics.d.mts +15 -13
- package/esm/router/positional-handler-diagnostics.d.mts.map +1 -1
- package/esm/router/resolve-route-rate-limit.mjs +3 -3
- package/esm/router/resolve-route-rate-limit.mjs.map +1 -1
- package/esm/router/route-builder.d.mts +1 -3
- package/esm/router/route-builder.d.mts.map +1 -1
- package/esm/router/route-guard-names.mjs +1 -1
- package/esm/router/route-guard-names.mjs.map +1 -1
- package/esm/router/route-name-method-suffix.d.mts +2 -3
- package/esm/router/route-name-method-suffix.d.mts.map +1 -1
- package/esm/router/route-name-taken-error.d.mts +1 -3
- package/esm/router/route-name-taken-error.d.mts.map +1 -1
- package/esm/router/route-registry.d.mts +1 -3
- package/esm/router/route-registry.d.mts.map +1 -1
- package/esm/router/router.d.mts +2 -4
- package/esm/router/router.d.mts.map +1 -1
- package/esm/router/router.mjs +8 -6
- package/esm/router/router.mjs.map +1 -1
- package/esm/router/types.d.mts +25 -26
- package/esm/router/types.d.mts.map +1 -1
- package/esm/router/unguarded-route-diagnostics.d.mts +6 -8
- package/esm/router/unguarded-route-diagnostics.d.mts.map +1 -1
- package/esm/socket/index.d.mts +2 -1
- package/esm/socket/index.mjs +1 -1
- package/esm/socket/types.d.mts +2 -4
- package/esm/socket/types.d.mts.map +1 -1
- package/esm/socket/utils.d.mts +1 -3
- package/esm/socket/utils.d.mts.map +1 -1
- package/esm/storage/config.d.mts +4 -6
- package/esm/storage/config.d.mts.map +1 -1
- package/esm/storage/context/storage-driver-context.d.mts +3 -4
- package/esm/storage/context/storage-driver-context.d.mts.map +1 -1
- package/esm/storage/drivers/cloud-driver.d.mts +2 -4
- package/esm/storage/drivers/cloud-driver.d.mts.map +1 -1
- package/esm/storage/drivers/cloud-driver.mjs.map +1 -1
- package/esm/storage/drivers/do-spaces-driver.d.mts +1 -3
- package/esm/storage/drivers/do-spaces-driver.d.mts.map +1 -1
- package/esm/storage/drivers/local-driver.d.mts +2 -3
- package/esm/storage/drivers/local-driver.d.mts.map +1 -1
- package/esm/storage/drivers/local-driver.mjs +8 -3
- package/esm/storage/drivers/local-driver.mjs.map +1 -1
- package/esm/storage/drivers/r2-driver.d.mts +1 -3
- package/esm/storage/drivers/r2-driver.d.mts.map +1 -1
- package/esm/storage/drivers/s3-driver.d.mts +1 -3
- package/esm/storage/drivers/s3-driver.d.mts.map +1 -1
- package/esm/storage/index.d.mts +2 -1
- package/esm/storage/index.mjs +1 -1
- package/esm/storage/local-disk-roots.mjs +2 -2
- package/esm/storage/local-disk-roots.mjs.map +1 -1
- package/esm/storage/scoped-storage.d.mts +2 -3
- package/esm/storage/scoped-storage.d.mts.map +1 -1
- package/esm/storage/storage-file.d.mts +1 -3
- package/esm/storage/storage-file.d.mts.map +1 -1
- package/esm/storage/storage.d.mts +3 -4
- package/esm/storage/storage.d.mts.map +1 -1
- package/esm/storage/types.d.mts +36 -36
- package/esm/storage/types.d.mts.map +1 -1
- package/esm/storage/utils/classify-ip-address.d.mts +1 -2
- package/esm/storage/utils/classify-ip-address.d.mts.map +1 -1
- package/esm/storage/utils/contain-path.d.mts +1 -2
- package/esm/storage/utils/contain-path.d.mts.map +1 -1
- package/esm/storage/utils/mime.d.mts +2 -3
- package/esm/storage/utils/mime.d.mts.map +1 -1
- package/esm/storage/utils/safe-fetch.d.mts +6 -6
- package/esm/storage/utils/safe-fetch.d.mts.map +1 -1
- package/esm/storage/utils/safe-fetch.mjs +3 -3
- package/esm/storage/utils/safe-fetch.mjs.map +1 -1
- package/esm/storage/utils/storage-capability-error.d.mts +1 -3
- package/esm/storage/utils/storage-capability-error.d.mts.map +1 -1
- package/esm/storage/utils/storage-error.d.mts +2 -3
- package/esm/storage/utils/storage-error.d.mts.map +1 -1
- package/esm/storage/utils/storage-not-initialized-error.d.mts +1 -2
- package/esm/storage/utils/storage-not-initialized-error.d.mts.map +1 -1
- package/esm/tests/authenticated-test-client.d.mts +5 -6
- package/esm/tests/authenticated-test-client.d.mts.map +1 -1
- package/esm/tests/factories.d.mts +38 -23
- package/esm/tests/factories.d.mts.map +1 -1
- package/esm/tests/fakes/cache-fake.d.mts +14 -9
- package/esm/tests/fakes/cache-fake.d.mts.map +1 -1
- package/esm/tests/fakes/clock-fake.d.mts +13 -8
- package/esm/tests/fakes/clock-fake.d.mts.map +1 -1
- package/esm/tests/fakes/fake-assertion-error.d.mts +2 -3
- package/esm/tests/fakes/fake-assertion-error.d.mts.map +1 -1
- package/esm/tests/fakes/ids-fake.d.mts +5 -4
- package/esm/tests/fakes/ids-fake.d.mts.map +1 -1
- package/esm/tests/fakes/index.d.mts +2 -1
- package/esm/tests/fakes/index.mjs +1 -1
- package/esm/tests/fakes/mail-fake.d.mts +21 -13
- package/esm/tests/fakes/mail-fake.d.mts.map +1 -1
- package/esm/tests/fakes/queue-fake.d.mts +21 -13
- package/esm/tests/fakes/queue-fake.d.mts.map +1 -1
- package/esm/tests/fakes/storage-fake.d.mts +12 -8
- package/esm/tests/fakes/storage-fake.d.mts.map +1 -1
- package/esm/tests/fakes/storage-fake.mjs +1 -1
- package/esm/tests/fakes/test-fakes.d.mts +8 -9
- package/esm/tests/fakes/test-fakes.d.mts.map +1 -1
- package/esm/tests/fakes/test-fakes.mjs +1 -1
- package/esm/tests/fakes/test-fakes.mjs.map +1 -1
- package/esm/tests/index.d.mts +1 -0
- package/esm/tests/snapshot-response.d.mts +4 -5
- package/esm/tests/snapshot-response.d.mts.map +1 -1
- package/esm/tests/start-http-development-server.d.mts +4 -6
- package/esm/tests/start-http-development-server.d.mts.map +1 -1
- package/esm/tests/start-http-development-server.mjs +5 -5
- package/esm/tests/start-http-development-server.mjs.map +1 -1
- package/esm/tests/test-connectors-selection.d.mts +2 -2
- package/esm/tests/test-connectors-selection.d.mts.map +1 -1
- package/esm/tests/test-connectors-selection.mjs +1 -1
- package/esm/tests/test-helpers.d.mts +11 -12
- package/esm/tests/test-helpers.d.mts.map +1 -1
- package/esm/tests/test-http-server.d.mts +14 -10
- package/esm/tests/test-http-server.d.mts.map +1 -1
- package/esm/tests/test-lifecycle-state.mjs +1 -1
- package/esm/tests/vitest-setup.d.mts +6 -7
- package/esm/tests/vitest-setup.d.mts.map +1 -1
- package/esm/tooling/agents-md/agents-md-markers.d.mts +4 -5
- package/esm/tooling/agents-md/agents-md-markers.d.mts.map +1 -1
- package/esm/tooling/agents-md/agents-md-markers.mjs +2 -1
- package/esm/tooling/agents-md/agents-md-markers.mjs.map +1 -1
- package/esm/tooling/agents-md/agents-md-refresher.d.mts +19 -12
- package/esm/tooling/agents-md/agents-md-refresher.d.mts.map +1 -1
- package/esm/tooling/agents-md/installed-skills.d.mts +13 -9
- package/esm/tooling/agents-md/installed-skills.d.mts.map +1 -1
- package/esm/tooling/agents-md/render-agents-md.d.mts +8 -7
- package/esm/tooling/agents-md/render-agents-md.d.mts.map +1 -1
- package/esm/tooling/agents-md/render-agents-md.mjs +2 -2
- package/esm/tooling/agents-md/render-agents-md.mjs.map +1 -1
- package/esm/tooling/agents-md/write-agents-md.d.mts +17 -12
- package/esm/tooling/agents-md/write-agents-md.d.mts.map +1 -1
- package/esm/tooling/board/board-message.d.mts +4 -6
- package/esm/tooling/board/board-message.d.mts.map +1 -1
- package/esm/tooling/board/board.d.mts +50 -38
- package/esm/tooling/board/board.d.mts.map +1 -1
- package/esm/tooling/board/board.mjs +4 -3
- package/esm/tooling/board/board.mjs.map +1 -1
- package/esm/tooling/board/board.types.d.mts +32 -23
- package/esm/tooling/board/board.types.d.mts.map +1 -1
- package/esm/tooling/check/changed-files.d.mts +4 -6
- package/esm/tooling/check/changed-files.d.mts.map +1 -1
- package/esm/tooling/check/changed-files.mjs +2 -2
- package/esm/tooling/check/changed-files.mjs.map +1 -1
- package/esm/tooling/check/check-report.types.d.mts +22 -17
- package/esm/tooling/check/check-report.types.d.mts.map +1 -1
- package/esm/tooling/check/code-style-conventions.mjs +25 -25
- package/esm/tooling/check/code-style-conventions.mjs.map +1 -1
- package/esm/tooling/check/conventions-step.d.mts +4 -6
- package/esm/tooling/check/conventions-step.d.mts.map +1 -1
- package/esm/tooling/check/conventions-step.mjs +7 -18
- package/esm/tooling/check/conventions-step.mjs.map +1 -1
- package/esm/tooling/check/environment-step.d.mts +2 -4
- package/esm/tooling/check/environment-step.d.mts.map +1 -1
- package/esm/tooling/check/environment-step.mjs +1 -1
- package/esm/tooling/check/index.mjs +1 -1
- package/esm/tooling/check/lint-step.d.mts +4 -5
- package/esm/tooling/check/lint-step.d.mts.map +1 -1
- package/esm/tooling/check/lint-step.mjs +2 -1
- package/esm/tooling/check/lint-step.mjs.map +1 -1
- package/esm/tooling/check/request-input.mjs +15 -15
- package/esm/tooling/check/request-input.mjs.map +1 -1
- package/esm/tooling/check/run-check.d.mts +22 -14
- package/esm/tooling/check/run-check.d.mts.map +1 -1
- package/esm/tooling/check/run-tests.d.mts +22 -15
- package/esm/tooling/check/run-tests.d.mts.map +1 -1
- package/esm/tooling/check/security-conventions.mjs +133 -131
- package/esm/tooling/check/security-conventions.mjs.map +1 -1
- package/esm/tooling/check/source-ast.mjs +92 -132
- package/esm/tooling/check/source-ast.mjs.map +1 -1
- package/esm/tooling/check/tests-step.d.mts +7 -8
- package/esm/tooling/check/tests-step.d.mts.map +1 -1
- package/esm/tooling/check/tests-step.mjs +3 -3
- package/esm/tooling/check/tests-step.mjs.map +1 -1
- package/esm/tooling/dev-state/dev-server-state.d.mts +17 -13
- package/esm/tooling/dev-state/dev-server-state.d.mts.map +1 -1
- package/esm/tooling/devtools/devtools-client.d.mts +29 -20
- package/esm/tooling/devtools/devtools-client.d.mts.map +1 -1
- package/esm/tooling/generate/generation.d.mts +34 -22
- package/esm/tooling/generate/generation.d.mts.map +1 -1
- package/esm/tooling/generate/generation.mjs +9 -5
- package/esm/tooling/generate/generation.mjs.map +1 -1
- package/esm/tooling/generate/generator-spec.d.mts +9 -9
- package/esm/tooling/generate/generator-spec.d.mts.map +1 -1
- package/esm/tooling/generate/index.mjs +1 -1
- package/esm/tooling/generate/project-files.mjs +3 -3
- package/esm/tooling/generate/project-files.mjs.map +1 -1
- package/esm/tooling/generate/run-cli.d.mts +14 -11
- package/esm/tooling/generate/run-cli.d.mts.map +1 -1
- package/esm/tooling/generate/run-cli.mjs +2 -2
- package/esm/tooling/generate/run-cli.mjs.map +1 -1
- package/esm/tooling/generate/unified-diff.d.mts +10 -7
- package/esm/tooling/generate/unified-diff.d.mts.map +1 -1
- package/esm/tooling/index.d.mts +1 -0
- package/esm/tooling/inspect/boot-for-inspect.d.mts +7 -7
- package/esm/tooling/inspect/boot-for-inspect.d.mts.map +1 -1
- package/esm/tooling/inspect/collect-config.mjs +3 -3
- package/esm/tooling/inspect/collect-config.mjs.map +1 -1
- package/esm/tooling/inspect/collect-models.d.mts +4 -3
- package/esm/tooling/inspect/collect-models.d.mts.map +1 -1
- package/esm/tooling/inspect/collect-models.mjs +1 -1
- package/esm/tooling/inspect/collect-packages.d.mts +1 -2
- package/esm/tooling/inspect/collect-packages.d.mts.map +1 -1
- package/esm/tooling/inspect/collect-pages.mjs +10 -10
- package/esm/tooling/inspect/collect-pages.mjs.map +1 -1
- package/esm/tooling/inspect/collect-routes.mjs +1 -1
- package/esm/tooling/inspect/event-recorder.d.mts +7 -7
- package/esm/tooling/inspect/event-recorder.d.mts.map +1 -1
- package/esm/tooling/inspect/index.d.mts +2 -1
- package/esm/tooling/inspect/index.mjs +1 -1
- package/esm/tooling/inspect/inspect-app.d.mts +25 -16
- package/esm/tooling/inspect/inspect-app.d.mts.map +1 -1
- package/esm/tooling/inspect/inspect-report.schema.d.mts +1 -2
- package/esm/tooling/inspect/inspect-report.schema.d.mts.map +1 -1
- package/esm/tooling/inspect/inspect-report.types.d.mts +86 -54
- package/esm/tooling/inspect/inspect-report.types.d.mts.map +1 -1
- package/esm/tooling/mcp/create-mcp-context.d.mts +11 -8
- package/esm/tooling/mcp/create-mcp-context.d.mts.map +1 -1
- package/esm/tooling/mcp/db-schema.d.mts +10 -9
- package/esm/tooling/mcp/db-schema.d.mts.map +1 -1
- package/esm/tooling/mcp/docs-search.d.mts +20 -15
- package/esm/tooling/mcp/docs-search.d.mts.map +1 -1
- package/esm/tooling/mcp/index.mjs +1 -1
- package/esm/tooling/mcp/load-ai-tools.d.mts +7 -8
- package/esm/tooling/mcp/load-ai-tools.d.mts.map +1 -1
- package/esm/tooling/mcp/load-ai-tools.mjs +2 -1
- package/esm/tooling/mcp/load-ai-tools.mjs.map +1 -1
- package/esm/tooling/mcp/mcp-tools.d.mts +29 -19
- package/esm/tooling/mcp/mcp-tools.d.mts.map +1 -1
- package/esm/tooling/mcp/mcp-tools.mjs +3 -2
- package/esm/tooling/mcp/mcp-tools.mjs.map +1 -1
- package/esm/tooling/mcp/start-mcp-server.d.mts +24 -17
- package/esm/tooling/mcp/start-mcp-server.d.mts.map +1 -1
- package/esm/tooling/mcp/start-mcp-server.mjs +1 -1
- package/esm/tooling/mcp/start-mcp-server.mjs.map +1 -1
- package/esm/tooling/mcp/tool-input.d.mts +7 -7
- package/esm/tooling/mcp/tool-input.d.mts.map +1 -1
- package/esm/tooling/problem.d.mts +27 -17
- package/esm/tooling/problem.d.mts.map +1 -1
- package/esm/tooling/syntax/ast.mjs +230 -0
- package/esm/tooling/syntax/ast.mjs.map +1 -0
- package/esm/tooling/syntax/imports.mjs +34 -0
- package/esm/tooling/syntax/imports.mjs.map +1 -0
- package/esm/tooling/trace/trace-report.types.d.mts +36 -22
- package/esm/tooling/trace/trace-report.types.d.mts.map +1 -1
- package/esm/tooling/trace/trace-request.d.mts +27 -20
- package/esm/tooling/trace/trace-request.d.mts.map +1 -1
- package/esm/tooling/trace/trace-request.mjs +2 -2
- package/esm/tooling/trace/trace-request.mjs.map +1 -1
- package/esm/tooling/typecheck/index.mjs +1 -1
- package/esm/tooling/typecheck/run-typecheck.d.mts +15 -48
- package/esm/tooling/typecheck/run-typecheck.d.mts.map +1 -1
- package/esm/tooling/typecheck/run-typecheck.mjs +42 -105
- package/esm/tooling/typecheck/run-typecheck.mjs.map +1 -1
- package/esm/tooling/typescript/compiler.d.mts +31 -0
- package/esm/tooling/typescript/compiler.d.mts.map +1 -0
- package/esm/tooling/typescript/compiler.mjs +120 -0
- package/esm/tooling/typescript/compiler.mjs.map +1 -0
- package/esm/updater/update-warlock-packages.mjs +3 -2
- package/esm/updater/update-warlock-packages.mjs.map +1 -1
- package/esm/upgrade/codemods/index.mjs +1 -1
- package/esm/upgrade/codemods/logger-sync-calls.mjs +1 -1
- package/esm/upgrade/codemods/logger-sync-calls.mjs.map +1 -1
- package/esm/upgrade/codemods/request-log-snapshot.mjs +1 -1
- package/esm/upgrade/codemods/request-log-snapshot.mjs.map +1 -1
- package/esm/upgrade/diff.mjs +1 -1
- package/esm/upgrade/diff.mjs.map +1 -1
- package/esm/upgrade/load-ts-morph.mjs +3 -2
- package/esm/upgrade/load-ts-morph.mjs.map +1 -1
- package/esm/upgrade/run-upgrade.mjs +1 -1
- package/esm/use-cases/index.d.mts +2 -1
- package/esm/use-cases/index.mjs +1 -1
- package/esm/use-cases/types.d.mts +116 -63
- package/esm/use-cases/types.d.mts.map +1 -1
- package/esm/use-cases/use-case-broadcast.d.mts +1 -3
- package/esm/use-cases/use-case-broadcast.d.mts.map +1 -1
- package/esm/use-cases/use-case-events.d.mts +3 -5
- package/esm/use-cases/use-case-events.d.mts.map +1 -1
- package/esm/use-cases/use-case-pipeline.d.mts +6 -6
- package/esm/use-cases/use-case-pipeline.d.mts.map +1 -1
- package/esm/use-cases/use-case.d.mts +2 -4
- package/esm/use-cases/use-case.d.mts.map +1 -1
- package/esm/use-cases/use-case.errors.d.mts +1 -3
- package/esm/use-cases/use-case.errors.d.mts.map +1 -1
- package/esm/use-cases/use-cases-registry.d.mts +8 -10
- package/esm/use-cases/use-cases-registry.d.mts.map +1 -1
- package/esm/utils/app-log.d.mts +1 -2
- package/esm/utils/app-log.d.mts.map +1 -1
- package/esm/utils/clock.d.mts +8 -6
- package/esm/utils/clock.d.mts.map +1 -1
- package/esm/utils/database-log.d.mts +3 -4
- package/esm/utils/database-log.d.mts.map +1 -1
- package/esm/utils/environment.d.mts +4 -5
- package/esm/utils/environment.d.mts.map +1 -1
- package/esm/utils/framework-vesion.mjs.map +1 -1
- package/esm/utils/get-localized.d.mts +2 -3
- package/esm/utils/get-localized.d.mts.map +1 -1
- package/esm/utils/ids.d.mts +9 -6
- package/esm/utils/ids.d.mts.map +1 -1
- package/esm/utils/index.d.mts +2 -1
- package/esm/utils/index.mjs +1 -1
- package/esm/utils/normalized-path.d.mts +1 -2
- package/esm/utils/normalized-path.d.mts.map +1 -1
- package/esm/utils/npm-registry.d.mts +1 -2
- package/esm/utils/npm-registry.d.mts.map +1 -1
- package/esm/utils/paths.d.mts +13 -14
- package/esm/utils/paths.d.mts.map +1 -1
- package/esm/utils/paths.mjs +2 -2
- package/esm/utils/paths.mjs.map +1 -1
- package/esm/utils/promise-all-object.d.mts +1 -2
- package/esm/utils/promise-all-object.d.mts.map +1 -1
- package/esm/utils/queue.d.mts +1 -2
- package/esm/utils/queue.d.mts.map +1 -1
- package/esm/utils/runtime.d.mts +11 -10
- package/esm/utils/runtime.d.mts.map +1 -1
- package/esm/utils/sleep.d.mts +1 -2
- package/esm/utils/sleep.d.mts.map +1 -1
- package/esm/utils/sluggable.d.mts +1 -3
- package/esm/utils/sluggable.d.mts.map +1 -1
- package/esm/utils/to-json.d.mts +1 -2
- package/esm/utils/to-json.d.mts.map +1 -1
- package/esm/utils/types.d.mts +1 -2
- package/esm/utils/types.d.mts.map +1 -1
- package/esm/utils/urls.d.mts +5 -6
- package/esm/utils/urls.d.mts.map +1 -1
- package/esm/utils/version-compare.d.mts +1 -2
- package/esm/utils/version-compare.d.mts.map +1 -1
- package/esm/validation/database/exists-except-current-id.d.mts +2 -3
- package/esm/validation/database/exists-except-current-id.d.mts.map +1 -1
- package/esm/validation/database/exists-except-current-user.d.mts +2 -3
- package/esm/validation/database/exists-except-current-user.d.mts.map +1 -1
- package/esm/validation/database/index.d.mts +2 -1
- package/esm/validation/database/index.mjs +1 -1
- package/esm/validation/database/types.d.mts +14 -10
- package/esm/validation/database/types.d.mts.map +1 -1
- package/esm/validation/database/unique-except-current-id.d.mts +2 -3
- package/esm/validation/database/unique-except-current-id.d.mts.map +1 -1
- package/esm/validation/database/unique-except-current-user.d.mts +2 -3
- package/esm/validation/database/unique-except-current-user.d.mts.map +1 -1
- package/esm/validation/file/file.d.mts +4 -6
- package/esm/validation/file/file.d.mts.map +1 -1
- package/esm/validation/file/index.d.mts +2 -1
- package/esm/validation/file/index.mjs +1 -1
- package/esm/validation/index.d.mts +5 -1
- package/esm/validation/index.mjs +1 -1
- package/esm/validation/plugins/index.mjs +1 -1
- package/esm/validation/types.d.mts +6 -4
- package/esm/validation/types.d.mts.map +1 -1
- package/esm/validation/validateAll.mjs +2 -2
- package/esm/validation/validateAll.mjs.map +1 -1
- package/esm/validation/validation-failure-status.mjs +2 -2
- package/esm/validation/validation-failure-status.mjs.map +1 -1
- package/esm/validation/validators/file-validator.d.mts +2 -4
- package/esm/validation/validators/file-validator.d.mts.map +1 -1
- package/esm/validation/validators/index.d.mts +2 -1
- package/esm/validation/validators/index.mjs +1 -1
- package/esm/vite/lower-stage3-decorators.d.mts +2 -3
- package/esm/vite/lower-stage3-decorators.d.mts.map +1 -1
- package/esm/warlock-config/define-config.d.mts +1 -3
- package/esm/warlock-config/define-config.d.mts.map +1 -1
- package/esm/warlock-config/define-config.mjs +3 -2
- package/esm/warlock-config/define-config.mjs.map +1 -1
- package/esm/warlock-config/index.d.mts +2 -1
- package/esm/warlock-config/index.mjs +1 -1
- package/esm/warlock-config/types.d.mts +6 -5
- package/esm/warlock-config/types.d.mts.map +1 -1
- package/esm/warlock-config/warlock-config.manager.d.mts +5 -7
- package/esm/warlock-config/warlock-config.manager.d.mts.map +1 -1
- package/esm/warlock-config/warlock-config.manager.mjs +2 -1
- package/esm/warlock-config/warlock-config.manager.mjs.map +1 -1
- package/esm/warlock-config/warn-deprecated-config.mjs +1 -1
- package/llms-full.txt +55 -5
- package/package.json +17 -15
- package/skills/create-module/SKILL.md +7 -0
- package/skills/index.md +2 -0
- package/skills/report-framework-issue.md +154 -0
- package/skills/run-app/SKILL.md +6 -5
- package/skills/upgrade-from-5-29/SKILL.md +41 -0
- package/skills/warlock-check/SKILL.md +1 -0
- package/esm/tooling/check/index.d.mts +0 -8
- package/esm/tooling/typecheck/index.d.mts +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StorageError } from "./storage-error.mjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/storage/utils/storage-capability-error.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Thrown when an operation needs an optional driver capability that the
|
|
@@ -9,7 +8,7 @@ import { StorageError } from "./storage-error.mjs";
|
|
|
9
8
|
* Callers can probe first (`storage.supportsPutIfAbsent()`) or branch on
|
|
10
9
|
* `instanceof StorageCapabilityError`.
|
|
11
10
|
*/
|
|
12
|
-
declare class StorageCapabilityError extends StorageError {
|
|
11
|
+
export declare class StorageCapabilityError extends StorageError {
|
|
13
12
|
/**
|
|
14
13
|
* The missing capability (e.g. "putIfAbsent").
|
|
15
14
|
*/
|
|
@@ -21,5 +20,4 @@ declare class StorageCapabilityError extends StorageError {
|
|
|
21
20
|
constructor(capability: string, driverName: string);
|
|
22
21
|
}
|
|
23
22
|
//#endregion
|
|
24
|
-
export { StorageCapabilityError };
|
|
25
23
|
//# sourceMappingURL=storage-capability-error.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-capability-error.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/storage/utils/storage-capability-error.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"storage-capability-error.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/storage/utils/storage-capability-error.ts"],"mappings":";;;;;;;;;;qBAUa,+BAA+B;;;;WAI1B;;;;WAKA;EAEhB,YAAmB,oBAAoB"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* mirroring the convention used by `@warlock.js/ai`'s error classes — it is
|
|
12
12
|
* for logs and telemetry, treated as opaque by consumers.
|
|
13
13
|
*/
|
|
14
|
-
type StorageErrorOptions = {
|
|
14
|
+
export type StorageErrorOptions = {
|
|
15
15
|
cause?: unknown;
|
|
16
16
|
context?: Record<string, unknown>;
|
|
17
17
|
};
|
|
@@ -19,7 +19,7 @@ type StorageErrorOptions = {
|
|
|
19
19
|
* Error thrown by storage drivers for refused or invalid operations
|
|
20
20
|
* (path-traversal attempts, blocked outbound fetches, oversized downloads).
|
|
21
21
|
*/
|
|
22
|
-
declare class StorageError extends Error {
|
|
22
|
+
export declare class StorageError extends Error {
|
|
23
23
|
/**
|
|
24
24
|
* Optional original thrown value preserved through re-wrapping.
|
|
25
25
|
*/
|
|
@@ -31,5 +31,4 @@ declare class StorageError extends Error {
|
|
|
31
31
|
constructor(message: string, options?: StorageErrorOptions);
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
export { StorageError, StorageErrorOptions };
|
|
35
34
|
//# sourceMappingURL=storage-error.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-error.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/storage/utils/storage-error.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"storage-error.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/storage/utils/storage-error.ts"],"mappings":";;;;;;;;;;;;;YAYY;EACV;EACA,UAAU;;;;;;qBAOC,qBAAqB;;;;WAIhB;;;;WAKA,UAAU;EAE1B,YAAmB,iBAAiB,UAAU"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* process, so `Storage#init()` was never called and `_driver` stayed
|
|
13
13
|
* `null`. This error names that cause and the fix directly instead.
|
|
14
14
|
*/
|
|
15
|
-
declare class StorageNotInitializedError extends Error {
|
|
15
|
+
export declare class StorageNotInitializedError extends Error {
|
|
16
16
|
/** Stable Warlock error code; `warlock explain WL2006` prints the fix. */
|
|
17
17
|
readonly code = "WL2006";
|
|
18
18
|
constructor(options?: {
|
|
@@ -20,5 +20,4 @@ declare class StorageNotInitializedError extends Error {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
export { StorageNotInitializedError };
|
|
24
23
|
//# sourceMappingURL=storage-not-initialized-error.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-not-initialized-error.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/storage/utils/storage-not-initialized-error.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"storage-not-initialized-error.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/storage/utils/storage-not-initialized-error.ts"],"mappings":";;;;;;;;;;;;;;qBAaa,mCAAmC;;WAE9B;EAEhB,YAAmB;IAAY"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { TestRequestClient, testDelete, testGet, testPatch, testPost, testPut, testRequest } from "./test-helpers.mjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/tests/authenticated-test-client.d.ts
|
|
4
3
|
/** Structural auth contract: an Auth model satisfies this without a runtime auth import. */
|
|
5
|
-
interface TestAuthenticableUser {
|
|
4
|
+
export interface TestAuthenticableUser {
|
|
6
5
|
generateAccessToken(): Promise<{
|
|
7
6
|
token: string;
|
|
8
7
|
}>;
|
|
9
8
|
removeAccessToken(token: string): Promise<void>;
|
|
10
9
|
}
|
|
11
10
|
/** An isolated HTTP client using one real issued access token. */
|
|
12
|
-
type AuthenticatedTestClient = {
|
|
11
|
+
export type AuthenticatedTestClient = {
|
|
13
12
|
request: typeof testRequest;
|
|
14
13
|
get: typeof testGet;
|
|
15
14
|
post: typeof testPost;
|
|
16
15
|
put: typeof testPut;
|
|
17
16
|
patch: typeof testPatch;
|
|
18
|
-
delete: typeof testDelete;
|
|
17
|
+
delete: typeof testDelete;
|
|
18
|
+
/** Revoke only this client's token; fixtures still own their user/data cleanup. */
|
|
19
19
|
dispose(): Promise<void>;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
@@ -26,7 +26,6 @@ type AuthenticatedTestClient = {
|
|
|
26
26
|
* Requests go to the shared test server, or through `client` — e.g. the one
|
|
27
27
|
* `createTestHttpServer()` returns (its own `actingAs()` passes it).
|
|
28
28
|
*/
|
|
29
|
-
declare function actingAs(user: TestAuthenticableUser, client?: TestRequestClient): Promise<AuthenticatedTestClient>;
|
|
29
|
+
export declare function actingAs(user: TestAuthenticableUser, client?: TestRequestClient): Promise<AuthenticatedTestClient>;
|
|
30
30
|
//#endregion
|
|
31
|
-
export { AuthenticatedTestClient, TestAuthenticableUser, actingAs };
|
|
32
31
|
//# sourceMappingURL=authenticated-test-client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticated-test-client.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/tests/authenticated-test-client.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"authenticated-test-client.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/tests/authenticated-test-client.ts"],"mappings":";;;iBAaiB;EACf,uBAAuB;IAAU;;EACjC,kBAAkB,gBAAgB;;;YAIxB;EACV,gBAAgB;EAChB,YAAY;EACZ,aAAa;EACb,YAAY;EACZ,cAAc;EACd,eAAe;;EAEf,WAAW;;;;;;;;;;wBAWS,SACpB,MAAM,uBACN,SAAQ,oBACP,QAAQ"}
|
|
@@ -1,41 +1,56 @@
|
|
|
1
1
|
import { ChildModel, Model, ModelSchema } from "@warlock.js/cascade";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/tests/factories.d.ts
|
|
4
3
|
/** A model's schema type. */
|
|
5
4
|
type SchemaOf<TModel extends Model> = TModel extends Model<infer TSchema> ? TSchema : ModelSchema;
|
|
6
5
|
/** The attributes a model is created from: a partial of its schema, as `Model.create()` takes. */
|
|
7
|
-
type FactoryAttributes<TModel extends Model> = Partial<SchemaOf<TModel>>;
|
|
6
|
+
export type FactoryAttributes<TModel extends Model> = Partial<SchemaOf<TModel>>;
|
|
8
7
|
/**
|
|
9
8
|
* Deterministic values for one record, derived only from its sequence number:
|
|
10
9
|
* the n-th record a factory builds is the same on every run, with no faker
|
|
11
10
|
* and no randomness.
|
|
12
11
|
*/
|
|
13
|
-
type FactorySeed = {
|
|
14
|
-
/** 1 for the first record this factory builds, 2 for the second, ... */
|
|
15
|
-
readonly
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
export type FactorySeed = {
|
|
13
|
+
/** 1 for the first record this factory builds, 2 for the second, ... */
|
|
14
|
+
readonly sequence: number;
|
|
15
|
+
/** Position within the current `makeMany()` / `createMany()` call, from 0. */
|
|
16
|
+
readonly index: number;
|
|
17
|
+
/** `"<prefix> <sequence>"`, e.g. `text("Post")` → `"Post 3"`. */
|
|
18
|
+
text(prefix?: string): string;
|
|
19
|
+
/** `"<prefix><sequence>@example.test"`, e.g. `"user3@example.test"`. */
|
|
20
|
+
email(prefix?: string): string;
|
|
21
|
+
/** A valid v4-shaped UUID numbered by the sequence. */
|
|
22
|
+
uuid(): string;
|
|
23
|
+
/** 2026-01-01T00:00:00Z plus `offsetDays` days. */
|
|
24
|
+
date(offsetDays?: number): Date;
|
|
25
|
+
/** An integer in `[min, max]`, cycling with the sequence. */
|
|
26
|
+
number(min?: number, max?: number): number;
|
|
27
|
+
/** One of `values`, cycling with the sequence. */
|
|
21
28
|
pick<T>(values: readonly T[]): T;
|
|
22
29
|
};
|
|
23
30
|
/** Overrides: a partial, or a function of the seed returning one. */
|
|
24
|
-
type FactoryOverrides<TAttributes> = Partial<TAttributes> | ((seed: FactorySeed) => Partial<TAttributes>);
|
|
31
|
+
export type FactoryOverrides<TAttributes> = Partial<TAttributes> | ((seed: FactorySeed) => Partial<TAttributes>);
|
|
25
32
|
/** A named variation, applied on top of the definition (and earlier states). */
|
|
26
|
-
type FactoryState<TAttributes> = (seed: FactorySeed, attributes: TAttributes) => Partial<TAttributes>;
|
|
27
|
-
type Factory<TModel extends Model, TAttributes = FactoryAttributes<TModel>> = {
|
|
28
|
-
/** Build attributes without saving anything — no database needed. */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
export type FactoryState<TAttributes> = (seed: FactorySeed, attributes: TAttributes) => Partial<TAttributes>;
|
|
34
|
+
export type Factory<TModel extends Model, TAttributes = FactoryAttributes<TModel>> = {
|
|
35
|
+
/** Build attributes without saving anything — no database needed. */
|
|
36
|
+
make(overrides?: FactoryOverrides<TAttributes>): TAttributes;
|
|
37
|
+
/** Build `count` attribute sets without saving anything. */
|
|
38
|
+
makeMany(count: number, overrides?: FactoryOverrides<TAttributes>): TAttributes[];
|
|
39
|
+
/** Create and save one record through `Model.create()`. */
|
|
40
|
+
create(overrides?: FactoryOverrides<TAttributes>): Promise<TModel>;
|
|
41
|
+
/** Create and save `count` records, one `Model.create()` each, in order. */
|
|
42
|
+
create(count: number, overrides?: FactoryOverrides<TAttributes>): Promise<TModel[]>;
|
|
43
|
+
/** Same as `create(count, overrides)`. */
|
|
44
|
+
createMany(count: number, overrides?: FactoryOverrides<TAttributes>): Promise<TModel[]>;
|
|
45
|
+
/** Register a named state on this factory; returns the factory for chaining. */
|
|
46
|
+
state(name: string, state: FactoryState<TAttributes>): Factory<TModel, TAttributes>;
|
|
47
|
+
/** A factory that applies the named states, in order, on top of the definition. */
|
|
48
|
+
with(...states: string[]): Factory<TModel, TAttributes>;
|
|
49
|
+
/** Restart this factory's sequence at 1. */
|
|
35
50
|
resetSequence(): void;
|
|
36
51
|
};
|
|
37
52
|
/** Restart every factory's sequence, e.g. in `beforeEach`. */
|
|
38
|
-
declare function resetFactorySequences(): void;
|
|
53
|
+
export declare function resetFactorySequences(): void;
|
|
39
54
|
/**
|
|
40
55
|
* Define a model factory: deterministic attributes for tests and seeders.
|
|
41
56
|
*
|
|
@@ -53,7 +68,7 @@ declare function resetFactorySequences(): void;
|
|
|
53
68
|
* const admin = await userFactory.with("admin").create();
|
|
54
69
|
* const users = await userFactory.create(3);
|
|
55
70
|
*/
|
|
56
|
-
declare function defineFactory<TModel extends Model>(model: ChildModel<TModel>, definition: (seed: FactorySeed) => FactoryAttributes<TModel>): Factory<TModel>;
|
|
71
|
+
export declare function defineFactory<TModel extends Model>(model: ChildModel<TModel>, definition: (seed: FactorySeed) => FactoryAttributes<TModel>): Factory<TModel>;
|
|
57
72
|
//#endregion
|
|
58
|
-
export {
|
|
73
|
+
export {};
|
|
59
74
|
//# sourceMappingURL=factories.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factories.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/tests/factories.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"factories.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/tests/factories.ts"],"mappings":";;;KAIK,SAAS,eAAe,SAAS,eAAe,YAAY,WAAW,UAAU;;YAG1E,kBAAkB,eAAe,SAAS,QAAQ,SAAS;;;;;;YAO3D;;WAED;;WAEA;;EAET,KAAK;;EAEL,MAAM;;EAEN;;EAEA,KAAK,sBAAsB;;EAE3B,OAAO,cAAc;;EAErB,KAAK,GAAG,iBAAiB,MAAM;;;YAIrB,iBAAiB,eACzB,QAAQ,iBACN,MAAM,gBAAgB,QAAQ;;YAGxB,aAAa,gBACvB,MAAM,aACN,YAAY,gBACT,QAAQ;YAED,QAAQ,eAAe,OAAO,cAAc,kBAAkB;;EAExE,KAAK,YAAY,iBAAiB,eAAe;;EAEjD,SAAS,eAAe,YAAY,iBAAiB,eAAe;;EAEpE,OAAO,YAAY,iBAAiB,eAAe,QAAQ;;EAE3D,OAAO,eAAe,YAAY,iBAAiB,eAAe,QAAQ;;EAE1E,WAAW,eAAe,YAAY,iBAAiB,eAAe,QAAQ;;EAE9E,MAAM,cAAc,OAAO,aAAa,eAAe,QAAQ,QAAQ;;EAEvE,QAAQ,mBAAmB,QAAQ,QAAQ;;EAE3C;;;wBAQc;;;;;;;;;;;;;;;;;;wBAqIA,cAAc,eAAe,OAC3C,OAAO,WAAW,SAClB,aAAa,MAAM,gBAAgB,kBAAkB,UACpD,QAAQ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CacheKey, MemoryCacheDriver } from "@warlock.js/cache";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/tests/fakes/cache-fake.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Swaps the cache's current driver for a fresh in-memory one.
|
|
@@ -14,16 +13,22 @@ import { CacheKey, MemoryCacheDriver } from "@warlock.js/cache";
|
|
|
14
13
|
*
|
|
15
14
|
* await cacheFake.assertHas("stats.dashboard");
|
|
16
15
|
*/
|
|
17
|
-
declare const cacheFake: {
|
|
18
|
-
/** Start a fresh in-memory store (idempotent: a second call empties it). */
|
|
16
|
+
export declare const cacheFake: {
|
|
17
|
+
/** Start a fresh in-memory store (idempotent: a second call empties it). */
|
|
18
|
+
install(): Promise<void>;
|
|
19
|
+
/** Put the previous driver back and drop the in-memory store. */
|
|
19
20
|
restore(): Promise<void>;
|
|
20
|
-
isInstalled(): boolean;
|
|
21
|
-
driver
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
isInstalled(): boolean;
|
|
22
|
+
/** The in-memory driver standing in for the configured one. */
|
|
23
|
+
driver(): MemoryCacheDriver;
|
|
24
|
+
/** Empty the store. */
|
|
25
|
+
clear(): Promise<void>;
|
|
26
|
+
/** Assert `key` is cached. */
|
|
27
|
+
assertHas(key: CacheKey): Promise<void>;
|
|
28
|
+
/** Assert `key` is not cached. */
|
|
29
|
+
assertMissing(key: CacheKey): Promise<void>;
|
|
30
|
+
/** Assert `key` holds a value deeply equal to `value`. */
|
|
25
31
|
assertStored(key: CacheKey, value: unknown): Promise<void>;
|
|
26
32
|
};
|
|
27
33
|
//#endregion
|
|
28
|
-
export { cacheFake };
|
|
29
34
|
//# sourceMappingURL=cache-fake.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/cache-fake.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/cache-fake.ts"],"mappings":";;;;;;;;;;;;;;;qBA+Ba;;EAEL,WAAW;;EAkBX,WAAW;EAgBjB;;EAKA,UAAU;;EAKJ,SAAS;;EAKT,UAAS,KAAM,WAAW;;EAS1B,cAAa,KAAM,WAAW;;EAS9B,aAAY,KAAM,UAAQ,iBAAmB"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The instant the fake clock starts at: 2026-01-01T00:00:00.000Z. Fixed so a
|
|
4
4
|
* snapshot or an expiry computed in a test is the same on every run.
|
|
5
5
|
*/
|
|
6
|
-
declare const DEFAULT_FAKE_NOW: number;
|
|
6
|
+
export declare const DEFAULT_FAKE_NOW: number;
|
|
7
7
|
/**
|
|
8
8
|
* A frozen `clock` (from `@warlock.js/core`) that only moves when told to.
|
|
9
9
|
*
|
|
@@ -18,15 +18,20 @@ declare const DEFAULT_FAKE_NOW: number;
|
|
|
18
18
|
*
|
|
19
19
|
* expect(await isResetTokenValid(token)).toBe(false);
|
|
20
20
|
*/
|
|
21
|
-
declare const clockFake: {
|
|
22
|
-
/** Freeze the clock at `at` (default {@link DEFAULT_FAKE_NOW}). */
|
|
21
|
+
export declare const clockFake: {
|
|
22
|
+
/** Freeze the clock at `at` (default {@link DEFAULT_FAKE_NOW}). */
|
|
23
|
+
install(at?: Date | string | number): void;
|
|
24
|
+
/** Hand the clock back to real time. */
|
|
23
25
|
restore(): void;
|
|
24
|
-
isInstalled(): boolean;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
isInstalled(): boolean;
|
|
27
|
+
/** Freeze at a given instant (installs the fake if needed). */
|
|
28
|
+
freeze(at?: Date | string | number): Date;
|
|
29
|
+
/** Move the frozen clock by `milliseconds` (negative goes back). */
|
|
30
|
+
travel(milliseconds: number): Date;
|
|
31
|
+
/** Jump the frozen clock to an instant. */
|
|
32
|
+
travelTo(at: Date | string | number): Date;
|
|
33
|
+
/** The fake clock's current time. */
|
|
28
34
|
now(): Date;
|
|
29
35
|
};
|
|
30
36
|
//#endregion
|
|
31
|
-
export { DEFAULT_FAKE_NOW, clockFake };
|
|
32
37
|
//# sourceMappingURL=clock-fake.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clock-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/clock-fake.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"clock-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/clock-fake.ts"],"mappings":";;;;;qBAMa;;;;;;;;;;;;;;;qBA6BA;;EAEX,QAAO,KAAK;;EAOZ;EAMA;;EAKA,OAAM,KAAK,yBAA8D;;EAOzE,OAAM,uBAAwB;;EAS9B,SAAQ,IAAK,yBAAyB;;EAKtC,OAAO"}
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
* Thrown by a fake's `assert*` helper. The message says what was expected and
|
|
4
4
|
* lists what the fake actually recorded, so a failing test explains itself.
|
|
5
5
|
*/
|
|
6
|
-
declare class FakeAssertionError extends Error {
|
|
6
|
+
export declare class FakeAssertionError extends Error {
|
|
7
7
|
constructor(message: string);
|
|
8
8
|
}
|
|
9
9
|
/** Render recorded entries for an assertion message, one per line. */
|
|
10
|
-
declare function describeRecorded<T>(entries: readonly T[], describe: (entry: T) => string, noun: string): string;
|
|
10
|
+
export declare function describeRecorded<T>(entries: readonly T[], describe: (entry: T) => string, noun: string): string;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { FakeAssertionError, describeRecorded };
|
|
13
12
|
//# sourceMappingURL=fake-assertion-error.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake-assertion-error.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/fake-assertion-error.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fake-assertion-error.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/fake-assertion-error.ts"],"mappings":";;;;;qBAIa,2BAA2B;EACtC,YAAmB;;;wBAQL,iBAAiB,GAC/B,kBAAkB,KAClB,WAAW,OAAO,cAClB"}
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
*
|
|
11
11
|
* expect(file.path).toBe("reports/00000000-0000-4000-8000-000000000001.pdf");
|
|
12
12
|
*/
|
|
13
|
-
declare const idsFake: {
|
|
13
|
+
export declare const idsFake: {
|
|
14
14
|
install(): void;
|
|
15
15
|
restore(): void;
|
|
16
|
-
isInstalled(): boolean;
|
|
17
|
-
|
|
16
|
+
isInstalled(): boolean;
|
|
17
|
+
/** Restart both sequences. */
|
|
18
|
+
reset(): void;
|
|
19
|
+
/** The UUID the n-th `ids.uuid()` call returns (1-based). */
|
|
18
20
|
uuid(n: number): string;
|
|
19
21
|
};
|
|
20
22
|
//#endregion
|
|
21
|
-
export { idsFake };
|
|
22
23
|
//# sourceMappingURL=ids-fake.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/ids-fake.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ids-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/ids-fake.ts"],"mappings":";;;;;;;;;;;;qBA6Ba;EACX;EASA;EAMA;;EAKA;;EAMA,KAAI"}
|
|
@@ -5,4 +5,5 @@ import { FakeAssertionError, describeRecorded } from "./fake-assertion-error.mjs
|
|
|
5
5
|
import { idsFake } from "./ids-fake.mjs";
|
|
6
6
|
import { MailMatcher, mailFake } from "./mail-fake.mjs";
|
|
7
7
|
import { JobReference, PushedJob, PushedJobMatcher, queueFake } from "./queue-fake.mjs";
|
|
8
|
-
import { storageFake } from "./storage-fake.mjs";
|
|
8
|
+
import { storageFake } from "./storage-fake.mjs";
|
|
9
|
+
export { DEFAULT_FAKE_NOW, FakeAssertionError, JobReference, MailMatcher, PushedJob, PushedJobMatcher, TEST_FAKE_NAMES, TestFakeName, TestFakesSelection, cacheFake, clockFake, describeRecorded, idsFake, installTestFakes, installedTestFakes, mailFake, queueFake, readConfiguredFakes, resolveTestFakes, restoreTestFakes, storageFake };
|
|
@@ -7,4 +7,4 @@ import { queueFake } from "./queue-fake.mjs";
|
|
|
7
7
|
import { storageFake } from "./storage-fake.mjs";
|
|
8
8
|
import { TEST_FAKE_NAMES, installTestFakes, installedTestFakes, readConfiguredFakes, resolveTestFakes, restoreTestFakes } from "./test-fakes.mjs";
|
|
9
9
|
|
|
10
|
-
export {
|
|
10
|
+
export { DEFAULT_FAKE_NOW, FakeAssertionError, TEST_FAKE_NAMES, cacheFake, clockFake, describeRecorded, idsFake, installTestFakes, installedTestFakes, mailFake, queueFake, readConfiguredFakes, resolveTestFakes, restoreTestFakes, storageFake };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { CapturedMail } from "../../mail/types.mjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/tests/fakes/mail-fake.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Which mails an assertion is about: a predicate, or fields that must all
|
|
6
5
|
* match. `to` matches any recipient (to, cc or bcc); `subject` is an exact
|
|
7
6
|
* string or a pattern.
|
|
8
7
|
*/
|
|
9
|
-
type MailMatcher = ((mail: CapturedMail) => boolean) | {
|
|
8
|
+
export type MailMatcher = ((mail: CapturedMail) => boolean) | {
|
|
10
9
|
to?: string;
|
|
11
10
|
subject?: string | RegExp;
|
|
12
|
-
from?: string;
|
|
11
|
+
from?: string;
|
|
12
|
+
/** Text the HTML or plain-text body contains. */
|
|
13
13
|
contains?: string;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
@@ -25,17 +25,25 @@ type MailMatcher = ((mail: CapturedMail) => boolean) | {
|
|
|
25
25
|
* mailFake.assertSent({ to: "ada@example.test", subject: /welcome/i });
|
|
26
26
|
* mailFake.assertSentCount(1);
|
|
27
27
|
*/
|
|
28
|
-
declare const mailFake: {
|
|
29
|
-
/** Start capturing (idempotent). Clears anything captured before. */
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
export declare const mailFake: {
|
|
29
|
+
/** Start capturing (idempotent). Clears anything captured before. */
|
|
30
|
+
install(): void;
|
|
31
|
+
/** Stop capturing and restore the mode that was in force before. */
|
|
32
|
+
restore(): void;
|
|
33
|
+
/** Whether the fake is installed. */
|
|
34
|
+
isInstalled(): boolean;
|
|
35
|
+
/** Forget captured mails, e.g. in `beforeEach`. */
|
|
36
|
+
clear(): void;
|
|
37
|
+
/** The captured mails, oldest first, optionally filtered. */
|
|
38
|
+
sent(matcher?: MailMatcher): CapturedMail[];
|
|
39
|
+
/** Assert at least one matching mail was sent; returns the first. */
|
|
40
|
+
assertSent(matcher?: MailMatcher): CapturedMail;
|
|
41
|
+
/** Assert no matching mail was sent. */
|
|
42
|
+
assertNotSent(matcher?: MailMatcher): void;
|
|
43
|
+
/** Assert exactly `count` matching mails were sent. */
|
|
44
|
+
assertSentCount(count: number, matcher?: MailMatcher): void;
|
|
45
|
+
/** Assert nothing at all was sent. */
|
|
37
46
|
assertNothingSent(): void;
|
|
38
47
|
};
|
|
39
48
|
//#endregion
|
|
40
|
-
export { MailMatcher, mailFake };
|
|
41
49
|
//# sourceMappingURL=mail-fake.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mail-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/mail-fake.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mail-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/mail-fake.ts"],"mappings":";;;;;;;YAUY,gBACN,MAAM;EAEN;EACA,mBAAmB;EACnB;;EAEA;;;;;;;;;;;;;;;qBA0EO;;EAEX;;EAWA;;EAYA;;EAKA;;EAKA,KAAI,UAAW,cAAc;;EAK7B,WAAU,UAAW,cAAc;;EAanC,cAAa,UAAW;;EAWxB,gBAAe,eAAc,UAAY;;EAWzC"}
|
|
@@ -6,20 +6,21 @@
|
|
|
6
6
|
* fake talks to it through the global dispatch-interceptor slot that package
|
|
7
7
|
* reads (`setDispatchInterceptor`).
|
|
8
8
|
*/
|
|
9
|
-
type PushedJob = {
|
|
9
|
+
export type PushedJob = {
|
|
10
10
|
id: string;
|
|
11
11
|
name: string;
|
|
12
12
|
queue: string;
|
|
13
|
-
payload: unknown;
|
|
13
|
+
payload: unknown;
|
|
14
|
+
/** The dispatch options (`delay`, `priority`, `jobId`, ...). */
|
|
14
15
|
options: Record<string, unknown>;
|
|
15
16
|
pushedAt: Date;
|
|
16
17
|
};
|
|
17
18
|
/** A job name, or anything with a `name` — the object `defineJob()` returns. */
|
|
18
|
-
type JobReference = string | {
|
|
19
|
+
export type JobReference = string | {
|
|
19
20
|
readonly name: string;
|
|
20
21
|
};
|
|
21
22
|
/** Which pushed jobs an assertion is about: a predicate, or a payload subset. */
|
|
22
|
-
type PushedJobMatcher = ((job: PushedJob) => boolean) | Record<string, unknown>;
|
|
23
|
+
export type PushedJobMatcher = ((job: PushedJob) => boolean) | Record<string, unknown>;
|
|
23
24
|
/**
|
|
24
25
|
* Records every `@warlock.js/queue` dispatch instead of pushing it to Redis.
|
|
25
26
|
*
|
|
@@ -32,17 +33,24 @@ type PushedJobMatcher = ((job: PushedJob) => boolean) | Record<string, unknown>;
|
|
|
32
33
|
* queueFake.assertPushed(sendInvoice, { orderId: order.id });
|
|
33
34
|
* queueFake.assertPushedCount(1);
|
|
34
35
|
*/
|
|
35
|
-
declare const queueFake: {
|
|
36
|
-
/** Start recording (idempotent). Clears anything recorded before. */
|
|
36
|
+
export declare const queueFake: {
|
|
37
|
+
/** Start recording (idempotent). Clears anything recorded before. */
|
|
38
|
+
install(): void;
|
|
39
|
+
/** Stop recording; dispatches reach the broker again. */
|
|
37
40
|
restore(): void;
|
|
38
|
-
isInstalled(): boolean;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
isInstalled(): boolean;
|
|
42
|
+
/** Forget recorded jobs. */
|
|
43
|
+
clear(): void;
|
|
44
|
+
/** Recorded jobs, oldest first; optionally only one job type. */
|
|
45
|
+
pushed(job?: JobReference, matcher?: PushedJobMatcher): PushedJob[];
|
|
46
|
+
/** Assert `job` was pushed (with a payload matching `matcher`); returns the first match. */
|
|
47
|
+
assertPushed(job: JobReference, matcher?: PushedJobMatcher): PushedJob;
|
|
48
|
+
/** Assert `job` was not pushed (with a matching payload). */
|
|
49
|
+
assertNotPushed(job: JobReference, matcher?: PushedJobMatcher): void;
|
|
50
|
+
/** Assert exactly `count` jobs were pushed — of type `job` when given. */
|
|
51
|
+
assertPushedCount(count: number, job?: JobReference): void;
|
|
52
|
+
/** Assert nothing was pushed. */
|
|
44
53
|
assertNothingPushed(): void;
|
|
45
54
|
};
|
|
46
55
|
//#endregion
|
|
47
|
-
export { JobReference, PushedJob, PushedJobMatcher, queueFake };
|
|
48
56
|
//# sourceMappingURL=queue-fake.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/queue-fake.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"queue-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/queue-fake.ts"],"mappings":";;;;;;;;YAUY;EACV;EACA;EACA;EACA;;EAEA,SAAS;EACT,UAAU;;;YAIA;WAAmC;;;YAGnC,qBAAqB,KAAK,yBAAyB;;;;;;;;;;;;;qBAoGlD;;EAEX;;EAaA;EASA;;EAKA;;EAMA,OAAM,MAAO,cAAY,UAAY,mBAAmB;;EAOxD,aAAY,KAAM,cAAY,UAAY,mBAAmB;;EAa7D,gBAAe,KAAM,cAAY,UAAY;;EAW7C,kBAAiB,eAAc,MAAQ;;EAWvC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StorageDriverName } from "../../storage/types.mjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/tests/fakes/storage-fake.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Points every configured storage driver — local, S3, R2, Spaces — at a
|
|
@@ -17,15 +16,20 @@ import { StorageDriverName } from "../../storage/types.mjs";
|
|
|
17
16
|
*
|
|
18
17
|
* await storageFake.assertExists(`avatars/${user.id}.png`);
|
|
19
18
|
*/
|
|
20
|
-
declare const storageFake: {
|
|
21
|
-
/** Re-register every driver as a local one under the temp root. */
|
|
19
|
+
export declare const storageFake: {
|
|
20
|
+
/** Re-register every driver as a local one under the temp root. */
|
|
21
|
+
install(): Promise<void>;
|
|
22
|
+
/** Drop the fake drivers; the real configuration is read again on next use. */
|
|
22
23
|
restore(): Promise<void>;
|
|
23
|
-
isInstalled(): boolean;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
isInstalled(): boolean;
|
|
25
|
+
/** The temp directory every fake driver lives under. */
|
|
26
|
+
root(): string;
|
|
27
|
+
/** Every stored file, as `<driver>/<path>`, sorted. */
|
|
28
|
+
files(driver?: StorageDriverName): string[];
|
|
29
|
+
/** Assert a file exists, on the default driver unless `driver` is given. */
|
|
30
|
+
assertExists(location: string, driver?: StorageDriverName): Promise<void>;
|
|
31
|
+
/** Assert a file does not exist, on the default driver unless `driver` is given. */
|
|
27
32
|
assertMissing(location: string, driver?: StorageDriverName): Promise<void>;
|
|
28
33
|
};
|
|
29
34
|
//#endregion
|
|
30
|
-
export { storageFake };
|
|
31
35
|
//# sourceMappingURL=storage-fake.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/storage-fake.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"storage-fake.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/storage-fake.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBA2Da;;EAEL,WAAW;;EAuCX,WAAW;EAoBjB;;EAKA;;EAKA,MAAK,SAAU;;EAQT,aAAY,kBAAiB,SAAW,oBAAoB;;EAa5D,cAAa,kBAAiB,SAAW,oBAAoB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region ../../packages/core/src/tests/fakes/test-fakes.d.ts
|
|
2
2
|
/** The fakes the test kit installs. */
|
|
3
|
-
declare const TEST_FAKE_NAMES: readonly ["mail", "queue", "cache", "storage", "clock", "ids"];
|
|
4
|
-
type TestFakeName = (typeof TEST_FAKE_NAMES)[number];
|
|
3
|
+
export declare const TEST_FAKE_NAMES: readonly ["mail", "queue", "cache", "storage", "clock", "ids"];
|
|
4
|
+
export type TestFakeName = (typeof TEST_FAKE_NAMES)[number];
|
|
5
5
|
/**
|
|
6
6
|
* Which fakes to install.
|
|
7
7
|
*
|
|
@@ -10,15 +10,15 @@ type TestFakeName = (typeof TEST_FAKE_NAMES)[number];
|
|
|
10
10
|
* - an object — all of them except the ones set to `false`, e.g.
|
|
11
11
|
* `{ cache: false }` keeps the configured cache driver.
|
|
12
12
|
*/
|
|
13
|
-
type TestFakesSelection = boolean | Partial<Record<TestFakeName, boolean>>;
|
|
13
|
+
export type TestFakesSelection = boolean | Partial<Record<TestFakeName, boolean>>;
|
|
14
14
|
/** Read `tests.fakes` from `src/config/tests.ts`, or `undefined` when unset. */
|
|
15
|
-
declare function readConfiguredFakes(): TestFakesSelection | undefined;
|
|
15
|
+
export declare function readConfiguredFakes(): TestFakesSelection | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* The fakes to install. Precedence: an explicit selection (the `fakes`
|
|
18
18
|
* option of `setupTest()` / `startHttpTestServer()`) > `tests.fakes` in
|
|
19
19
|
* `src/config/tests.ts` > all on.
|
|
20
20
|
*/
|
|
21
|
-
declare function resolveTestFakes(explicit?: TestFakesSelection): TestFakeName[];
|
|
21
|
+
export declare function resolveTestFakes(explicit?: TestFakesSelection): TestFakeName[];
|
|
22
22
|
/**
|
|
23
23
|
* Install the selected fakes. Called by `setupTest()` and
|
|
24
24
|
* `startHttpTestServer()` once their connectors are up; call it yourself only
|
|
@@ -26,14 +26,13 @@ declare function resolveTestFakes(explicit?: TestFakesSelection): TestFakeName[]
|
|
|
26
26
|
*
|
|
27
27
|
* @returns the fakes that are now installed.
|
|
28
28
|
*/
|
|
29
|
-
declare function installTestFakes(explicit?: TestFakesSelection): Promise<TestFakeName[]>;
|
|
29
|
+
export declare function installTestFakes(explicit?: TestFakesSelection): Promise<TestFakeName[]>;
|
|
30
30
|
/**
|
|
31
31
|
* Restore every installed fake, in reverse order. Every fake is restored even
|
|
32
32
|
* when one fails; the failures are rethrown together afterwards.
|
|
33
33
|
*/
|
|
34
|
-
declare function restoreTestFakes(): Promise<void>;
|
|
34
|
+
export declare function restoreTestFakes(): Promise<void>;
|
|
35
35
|
/** The fakes installed right now. */
|
|
36
|
-
declare function installedTestFakes(): TestFakeName[];
|
|
36
|
+
export declare function installedTestFakes(): TestFakeName[];
|
|
37
37
|
//#endregion
|
|
38
|
-
export { TEST_FAKE_NAMES, TestFakeName, TestFakesSelection, installTestFakes, installedTestFakes, readConfiguredFakes, resolveTestFakes, restoreTestFakes };
|
|
39
38
|
//# sourceMappingURL=test-fakes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-fakes.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/test-fakes.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"test-fakes.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tests/fakes/test-fakes.ts"],"mappings":";;qBAUa;YAED,uBAAuB;;;;;;;;;YAUvB,+BAA+B,QAAQ,OAAO;;wBAiB1C,uBAAuB;;;;;;wBA0CvB,iBAAiB,WAAW,qBAAqB;;;;;;;;wBAiB3C,iBAAiB,WAAW,qBAAqB,QAAQ;;;;;wBAgBzD,oBAAoB;;wBAiB1B,sBAAsB"}
|