@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
package/esm/utils/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../packages/core/src/utils/types.d.ts
|
|
2
|
-
type AppConfigurations = {
|
|
2
|
+
export type AppConfigurations = {
|
|
3
3
|
/**
|
|
4
4
|
* Set default timezone
|
|
5
5
|
*/
|
|
@@ -24,5 +24,4 @@ type AppConfigurations = {
|
|
|
24
24
|
locales?: string[];
|
|
25
25
|
};
|
|
26
26
|
//#endregion
|
|
27
|
-
export { AppConfigurations };
|
|
28
27
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/utils/types.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/utils/types.ts"],"mappings":";YAAY;;;;EAIV;;;;EAIA;;;;;;EAMA;;;;EAIA;;;;EAIA"}
|
package/esm/utils/urls.d.mts
CHANGED
|
@@ -2,23 +2,22 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Set base url
|
|
4
4
|
*/
|
|
5
|
-
declare function setBaseUrl(url: string): void;
|
|
5
|
+
export declare function setBaseUrl(url: string): void;
|
|
6
6
|
/**
|
|
7
7
|
* Get full path for the given path
|
|
8
8
|
*/
|
|
9
|
-
declare function url(path?: string): string;
|
|
9
|
+
export declare function url(path?: string): string;
|
|
10
10
|
/**
|
|
11
11
|
* Get uploads url
|
|
12
12
|
*/
|
|
13
|
-
declare function uploadsUrl(path?: string): string;
|
|
13
|
+
export declare function uploadsUrl(path?: string): string;
|
|
14
14
|
/**
|
|
15
15
|
* Get full path for the given path related to public route
|
|
16
16
|
*/
|
|
17
|
-
declare function publicUrl(path?: string): string;
|
|
17
|
+
export declare function publicUrl(path?: string): string;
|
|
18
18
|
/**
|
|
19
19
|
* Assets url
|
|
20
20
|
*/
|
|
21
|
-
declare function assetsUrl(path?: string): string;
|
|
21
|
+
export declare function assetsUrl(path?: string): string;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { assetsUrl, publicUrl, setBaseUrl, uploadsUrl, url };
|
|
24
23
|
//# sourceMappingURL=urls.d.mts.map
|
package/esm/utils/urls.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urls.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/utils/urls.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"urls.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/utils/urls.ts"],"mappings":";;;;wBAOgB,WAAW;;;;wBAOX,IAAI;;;;wBAOJ,WAAW;;;;wBAOX,UAAU;;;;wBAOV,UAAU"}
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
* (`1.2.0` > `1.2.0-beta`). Unparseable input yields `false` — we never nag
|
|
15
15
|
* on a version string we can't understand.
|
|
16
16
|
*/
|
|
17
|
-
declare function isNewerVersion(latest: string, current: string): boolean;
|
|
17
|
+
export declare function isNewerVersion(latest: string, current: string): boolean;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { isNewerVersion };
|
|
20
19
|
//# sourceMappingURL=version-compare.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-compare.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/utils/version-compare.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"version-compare.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/utils/version-compare.ts"],"mappings":";;;;;;;;;;;;;;;;wBAiHgB,eAAe,gBAAgB"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ExistsExceptCurrentIdRuleOptions } from "./types.mjs";
|
|
2
|
+
import "../types.mjs";
|
|
2
3
|
import { SchemaRule } from "@warlock.js/seal";
|
|
3
|
-
|
|
4
4
|
//#region ../../packages/core/src/validation/database/exists-except-current-id.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Exists except current ID rule
|
|
7
7
|
*/
|
|
8
|
-
declare const existsExceptCurrentIdRule: SchemaRule<ExistsExceptCurrentIdRuleOptions>;
|
|
8
|
+
export declare const existsExceptCurrentIdRule: SchemaRule<ExistsExceptCurrentIdRuleOptions>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { existsExceptCurrentIdRule };
|
|
11
10
|
//# sourceMappingURL=exists-except-current-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exists-except-current-id.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/database/exists-except-current-id.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"exists-except-current-id.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/database/exists-except-current-id.ts"],"mappings":";;;;;;;qBAQa,2BAA2B,WAAW"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ExistsExceptCurrentUserRuleOptions } from "./types.mjs";
|
|
2
|
+
import "../types.mjs";
|
|
2
3
|
import { SchemaRule } from "@warlock.js/seal";
|
|
3
|
-
|
|
4
4
|
//#region ../../packages/core/src/validation/database/exists-except-current-user.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Exists except current user rule
|
|
7
7
|
*/
|
|
8
|
-
declare const existsExceptCurrentUserRule: SchemaRule<ExistsExceptCurrentUserRuleOptions>;
|
|
8
|
+
export declare const existsExceptCurrentUserRule: SchemaRule<ExistsExceptCurrentUserRuleOptions>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { existsExceptCurrentUserRule };
|
|
11
10
|
//# sourceMappingURL=exists-except-current-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exists-except-current-user.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/database/exists-except-current-user.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"exists-except-current-user.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/database/exists-except-current-user.ts"],"mappings":";;;;;;;qBAQa,6BAA6B,WAAW"}
|
|
@@ -2,4 +2,5 @@ import { existsExceptCurrentIdRule } from "./exists-except-current-id.mjs";
|
|
|
2
2
|
import { existsExceptCurrentUserRule } from "./exists-except-current-user.mjs";
|
|
3
3
|
import { ExistsExceptCurrentIdRuleOptions, ExistsExceptCurrentUserRuleOptions, UniqueExceptCurrentIdRuleOptions, UniqueExceptCurrentUserRuleOptions } from "./types.mjs";
|
|
4
4
|
import { uniqueExceptCurrentIdRule } from "./unique-except-current-id.mjs";
|
|
5
|
-
import { uniqueExceptCurrentUserRule } from "./unique-except-current-user.mjs";
|
|
5
|
+
import { uniqueExceptCurrentUserRule } from "./unique-except-current-user.mjs";
|
|
6
|
+
export { ExistsExceptCurrentIdRuleOptions, ExistsExceptCurrentUserRuleOptions, UniqueExceptCurrentIdRuleOptions, UniqueExceptCurrentUserRuleOptions, existsExceptCurrentIdRule, existsExceptCurrentUserRule, uniqueExceptCurrentIdRule, uniqueExceptCurrentUserRule };
|
|
@@ -3,4 +3,4 @@ import { existsExceptCurrentUserRule } from "./exists-except-current-user.mjs";
|
|
|
3
3
|
import { uniqueExceptCurrentIdRule } from "./unique-except-current-id.mjs";
|
|
4
4
|
import { uniqueExceptCurrentUserRule } from "./unique-except-current-user.mjs";
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { existsExceptCurrentIdRule, existsExceptCurrentUserRule, uniqueExceptCurrentIdRule, uniqueExceptCurrentUserRule };
|
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
import { BaseQueryRuleOptions, BaseUniqueRuleOptions } from "@warlock.js/cascade";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/validation/database/types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Options for unique except current user rule
|
|
6
5
|
*/
|
|
7
|
-
type UniqueExceptCurrentUserRuleOptions = BaseUniqueRuleOptions & {
|
|
8
|
-
/** Column for current user filter (default: id) */
|
|
6
|
+
export type UniqueExceptCurrentUserRuleOptions = BaseUniqueRuleOptions & {
|
|
7
|
+
/** Column for current user filter (default: id) */
|
|
8
|
+
exceptCurrentUserColumn?: string;
|
|
9
|
+
/** Value field from current user model (default: id) */
|
|
9
10
|
exceptCurrentUserValue?: string;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
12
13
|
* Options for unique except current id rule
|
|
13
14
|
*/
|
|
14
|
-
type UniqueExceptCurrentIdRuleOptions = BaseUniqueRuleOptions & {
|
|
15
|
-
/** Column for current id filter (default: id) */
|
|
15
|
+
export type UniqueExceptCurrentIdRuleOptions = BaseUniqueRuleOptions & {
|
|
16
|
+
/** Column for current id filter (default: id) */
|
|
17
|
+
exceptCurrentIdColumn?: string;
|
|
16
18
|
};
|
|
17
19
|
/**
|
|
18
20
|
* Options for exists except current user rule
|
|
19
21
|
*/
|
|
20
|
-
type ExistsExceptCurrentUserRuleOptions = BaseQueryRuleOptions & {
|
|
21
|
-
/** Column for current user filter (default: id) */
|
|
22
|
+
export type ExistsExceptCurrentUserRuleOptions = BaseQueryRuleOptions & {
|
|
23
|
+
/** Column for current user filter (default: id) */
|
|
24
|
+
exceptCurrentUserColumn?: string;
|
|
25
|
+
/** Value field from current user model (default: id) */
|
|
22
26
|
exceptCurrentUserValue?: string;
|
|
23
27
|
};
|
|
24
28
|
/**
|
|
25
29
|
* Options for exists except current id rule
|
|
26
30
|
*/
|
|
27
|
-
type ExistsExceptCurrentIdRuleOptions = BaseQueryRuleOptions & {
|
|
28
|
-
/** Column for current id filter (default: id) */
|
|
31
|
+
export type ExistsExceptCurrentIdRuleOptions = BaseQueryRuleOptions & {
|
|
32
|
+
/** Column for current id filter (default: id) */
|
|
33
|
+
exceptCurrentIdColumn?: string;
|
|
29
34
|
};
|
|
30
35
|
//#endregion
|
|
31
|
-
export { ExistsExceptCurrentIdRuleOptions, ExistsExceptCurrentUserRuleOptions, UniqueExceptCurrentIdRuleOptions, UniqueExceptCurrentUserRuleOptions };
|
|
32
36
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/database/types.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/database/types.ts"],"mappings":";;;;;YAKY,qCAAqC;;EAE/C;;EAEA;;;;;YAMU,mCAAmC;;EAE7C;;;;;YAMU,qCAAqC;;EAE/C;;EAEA;;;;;YAMU,mCAAmC;;EAE7C"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { UniqueExceptCurrentIdRuleOptions } from "./types.mjs";
|
|
2
|
+
import "../types.mjs";
|
|
2
3
|
import { SchemaRule } from "@warlock.js/seal";
|
|
3
|
-
|
|
4
4
|
//#region ../../packages/core/src/validation/database/unique-except-current-id.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Unique except current ID rule
|
|
7
7
|
*/
|
|
8
|
-
declare const uniqueExceptCurrentIdRule: SchemaRule<UniqueExceptCurrentIdRuleOptions>;
|
|
8
|
+
export declare const uniqueExceptCurrentIdRule: SchemaRule<UniqueExceptCurrentIdRuleOptions>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { uniqueExceptCurrentIdRule };
|
|
11
10
|
//# sourceMappingURL=unique-except-current-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unique-except-current-id.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/database/unique-except-current-id.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"unique-except-current-id.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/database/unique-except-current-id.ts"],"mappings":";;;;;;;qBAOa,2BAA2B,WAAW"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { UniqueExceptCurrentUserRuleOptions } from "./types.mjs";
|
|
2
|
+
import "../types.mjs";
|
|
2
3
|
import { SchemaRule } from "@warlock.js/seal";
|
|
3
|
-
|
|
4
4
|
//#region ../../packages/core/src/validation/database/unique-except-current-user.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Unique except current user rule
|
|
7
7
|
*/
|
|
8
|
-
declare const uniqueExceptCurrentUserRule: SchemaRule<UniqueExceptCurrentUserRuleOptions>;
|
|
8
|
+
export declare const uniqueExceptCurrentUserRule: SchemaRule<UniqueExceptCurrentUserRuleOptions>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { uniqueExceptCurrentUserRule };
|
|
11
10
|
//# sourceMappingURL=unique-except-current-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unique-except-current-user.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/database/unique-except-current-user.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"unique-except-current-user.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/database/unique-except-current-user.ts"],"mappings":";;;;;;;qBASa,6BAA6B,WAAW"}
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { SchemaRule } from "@warlock.js/seal";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/validation/file/file.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* File rule - validates uploaded file
|
|
6
5
|
*/
|
|
7
|
-
declare const fileRule: SchemaRule;
|
|
6
|
+
export declare const fileRule: SchemaRule;
|
|
8
7
|
/**
|
|
9
8
|
* Image rule - validates uploaded image
|
|
10
9
|
*/
|
|
11
|
-
declare const imageRule: SchemaRule;
|
|
10
|
+
export declare const imageRule: SchemaRule;
|
|
12
11
|
/**
|
|
13
12
|
* File extension rule - validates file extension
|
|
14
13
|
*/
|
|
15
|
-
declare const fileExtensionRule: SchemaRule<{
|
|
14
|
+
export declare const fileExtensionRule: SchemaRule<{
|
|
16
15
|
extensions: string | string[];
|
|
17
16
|
}>;
|
|
18
17
|
/**
|
|
19
18
|
* File type rule - validates MIME type
|
|
20
19
|
*/
|
|
21
|
-
declare const fileTypeRule: SchemaRule<{
|
|
20
|
+
export declare const fileTypeRule: SchemaRule<{
|
|
22
21
|
mimeTypes: string | string[];
|
|
23
22
|
}>;
|
|
24
23
|
//#endregion
|
|
25
|
-
export { fileExtensionRule, fileRule, fileTypeRule, imageRule };
|
|
26
24
|
//# sourceMappingURL=file.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/file/file.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"file.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/file/file.ts"],"mappings":";;;;;qBAMa,UAAU;;;;qBAcV,WAAW;;;;qBAeX,mBAAmB;EAC9B;;;;;qBAsBW,cAAc;EAAa"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import { fileExtensionRule, fileRule, fileTypeRule, imageRule } from "./file.mjs";
|
|
1
|
+
import { fileExtensionRule, fileRule, fileTypeRule, imageRule } from "./file.mjs";
|
|
2
|
+
export { fileExtensionRule, fileRule, fileTypeRule, imageRule };
|
|
@@ -3,6 +3,10 @@ import { existsExceptCurrentUserRule } from "./database/exists-except-current-us
|
|
|
3
3
|
import { ExistsExceptCurrentIdRuleOptions, ExistsExceptCurrentUserRuleOptions, UniqueExceptCurrentIdRuleOptions, UniqueExceptCurrentUserRuleOptions } from "./database/types.mjs";
|
|
4
4
|
import { uniqueExceptCurrentIdRule } from "./database/unique-except-current-id.mjs";
|
|
5
5
|
import { uniqueExceptCurrentUserRule } from "./database/unique-except-current-user.mjs";
|
|
6
|
+
import "./database/index.mjs";
|
|
6
7
|
import { FileValidator, uploadedFileMetadataSchema } from "./validators/file-validator.mjs";
|
|
8
|
+
import "./validators/index.mjs";
|
|
7
9
|
import { ValidationConfiguration, ValidationResponseConfiguration } from "./types.mjs";
|
|
8
|
-
import { fileExtensionRule, fileRule, fileTypeRule, imageRule } from "./file/file.mjs";
|
|
10
|
+
import { fileExtensionRule, fileRule, fileTypeRule, imageRule } from "./file/file.mjs";
|
|
11
|
+
import "./file/index.mjs";
|
|
12
|
+
export { ExistsExceptCurrentIdRuleOptions, ExistsExceptCurrentUserRuleOptions, FileValidator, UniqueExceptCurrentIdRuleOptions, UniqueExceptCurrentUserRuleOptions, ValidationConfiguration, ValidationResponseConfiguration, existsExceptCurrentIdRule, existsExceptCurrentUserRule, fileExtensionRule, fileRule, fileTypeRule, imageRule, uniqueExceptCurrentIdRule, uniqueExceptCurrentUserRule, uploadedFileMetadataSchema };
|
package/esm/validation/index.mjs
CHANGED
|
@@ -8,4 +8,4 @@ import "./file/index.mjs";
|
|
|
8
8
|
import { FileValidator, uploadedFileMetadataSchema } from "./validators/file-validator.mjs";
|
|
9
9
|
import "./validators/index.mjs";
|
|
10
10
|
|
|
11
|
-
export {
|
|
11
|
+
export { FileValidator, existsExceptCurrentIdRule, existsExceptCurrentUserRule, fileExtensionRule, fileRule, fileTypeRule, imageRule, uniqueExceptCurrentIdRule, uniqueExceptCurrentUserRule, uploadedFileMetadataSchema };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { UploadedFile } from "../http/uploaded-file.mjs";
|
|
2
|
+
import "../http/index.mjs";
|
|
2
3
|
import { Route } from "../router/types.mjs";
|
|
3
4
|
import { ExistsExceptCurrentIdRuleOptions, ExistsExceptCurrentUserRuleOptions, UniqueExceptCurrentIdRuleOptions, UniqueExceptCurrentUserRuleOptions } from "./database/types.mjs";
|
|
5
|
+
import "./database/index.mjs";
|
|
4
6
|
import { FileValidator } from "./validators/file-validator.mjs";
|
|
7
|
+
import "./validators/index.mjs";
|
|
5
8
|
import { ArrayValidator, BaseValidator, Infer, ObjectValidator, StandardSchemaV1, StringValidator, TranslateAttributeCallback, TranslateRuleCallback, ValidationResult } from "@warlock.js/seal";
|
|
6
9
|
import { ChildModel, Model } from "@warlock.js/cascade";
|
|
7
|
-
|
|
8
10
|
//#region ../../packages/core/src/validation/types.d.ts
|
|
9
11
|
/**
|
|
10
12
|
* The object shape produced by `v.localized()`'s inner `v.object({
|
|
@@ -64,7 +66,7 @@ declare module "@warlock.js/seal" {
|
|
|
64
66
|
/**
|
|
65
67
|
* `validation.response`: how a failed schema validation is answered.
|
|
66
68
|
*/
|
|
67
|
-
type ValidationResponseConfiguration = {
|
|
69
|
+
export type ValidationResponseConfiguration = {
|
|
68
70
|
/**
|
|
69
71
|
* Key holding the list of field errors in the framework body.
|
|
70
72
|
*
|
|
@@ -103,7 +105,7 @@ type ValidationResponseConfiguration = {
|
|
|
103
105
|
*/
|
|
104
106
|
body?: (result: ValidationResult, route: Route) => unknown;
|
|
105
107
|
};
|
|
106
|
-
type ValidationConfiguration = {
|
|
108
|
+
export type ValidationConfiguration = {
|
|
107
109
|
/**
|
|
108
110
|
* How a failed schema validation is answered: the framework body's keys,
|
|
109
111
|
* its status, or a `body` hook that replaces it.
|
|
@@ -146,5 +148,5 @@ type ValidationConfiguration = {
|
|
|
146
148
|
translateAttribute?: TranslateAttributeCallback;
|
|
147
149
|
};
|
|
148
150
|
//#endregion
|
|
149
|
-
export {
|
|
151
|
+
export type { ExistsExceptCurrentIdRuleOptions, ExistsExceptCurrentUserRuleOptions, UniqueExceptCurrentIdRuleOptions, UniqueExceptCurrentUserRuleOptions };
|
|
150
152
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/validation/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/validation/types.ts"],"mappings":";;;;;;;;;;;;;;;KAoCK,wBAAwB,UAAU,iBAAiB;EACtD,YAAY,kBAAkB;EAC9B,OAAO;KAEP;EACE;EACA,OAAO,MAAM;;;YAME;IACf,OAAO,0BAA0B,gBAAgB,iBAAiB;IAClE,YACE,UAAU,gBAAgB,kBAAkB,6CAE5C,iBAAiB,GACjB,0BACG;MACH,WAAW,wBAAwB;QACjC,iBACA;MACE;MACA,OAAO,MAAM;;;YAKX;;IAER,wBACE,OAAO,WAAW,iBAClB,cAAc,QAAQ;MACpB;;;IAKJ,sBACE,OAAO,WAAW,iBAClB,cAAc,QAAQ;MACpB;;;IAKJ,wBACE,OAAO,WAAW,iBAClB,cAAc,QAAQ;MACpB;;;IAKJ,sBACE,OAAO,WAAW,iBAClB,cAAc,QAAQ;MACpB;;;YAMI;IACR,wBACE,OAAO,WAAW,iBAClB,cAAc,QAAQ;MACpB;;IAGJ,sBACE,OAAO,WAAW,iBAClB,cAAc,QAAQ;MACpB;;IAGJ,wBACE,OAAO,WAAW,iBAClB,cAAc,QAAQ;MACpB;;IAGJ,sBACE,OAAO,WAAW,iBAClB,cAAc,QAAQ;MACpB;;;;;;;YAiBI;;;;;;EAMV;;;;;;EAMA;;;;;;EAMA;;;;;;;EAOA;;;;;;;;;;;;EAYA,QAAQ,QAAQ,kBAAkB,OAAO;;YAG/B;;;;;EAKV,WAAW;;;;;;;EAOX;;;;;;;EAQA;;;;;;;EAOA;;;;;EAKA;;;;;EAKA,gBAAgB;;;;EAIhB,qBAAqB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { validationFailureStatus } from "./validation-failure-status.mjs";
|
|
2
2
|
import { Response } from "../http/response.mjs";
|
|
3
3
|
import { v } from "@warlock.js/seal";
|
|
4
|
-
import
|
|
4
|
+
import baseConfig from "@mongez/config";
|
|
5
5
|
import { log } from "@warlock.js/logger";
|
|
6
6
|
import { merge } from "@mongez/reinforcements";
|
|
7
7
|
|
|
@@ -116,7 +116,7 @@ async function validateAll(validation, request, response) {
|
|
|
116
116
|
if (result) {
|
|
117
117
|
log.info("validation", "failed", "Validation failed");
|
|
118
118
|
if (result instanceof Response) return result;
|
|
119
|
-
return response.send(result,
|
|
119
|
+
return response.send(result, baseConfig.get("validation.responseStatus", 400));
|
|
120
120
|
}
|
|
121
121
|
log.info("validation", "passed", "Validation passed");
|
|
122
122
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateAll.mjs","names":["candidate"],"sources":["../../../../../../../../packages/core/src/validation/validateAll.ts"],"sourcesContent":["import config from \"@mongez/config\";\nimport { merge } from \"@mongez/reinforcements\";\nimport { log } from \"@warlock.js/logger\";\nimport { v, type ObjectValidator, type ValidationResult } from \"@warlock.js/seal\";\nimport type { Request } from \"../http\";\nimport { Response } from \"../http/response\";\nimport type { RequestHandlerValidation, Route } from \"../router\";\nimport { validationFailureStatus } from \"./validation-failure-status\";\n\nfunction resolveDataToParse(\n validating: RequestHandlerValidation[\"validating\"],\n schema: RequestHandlerValidation[\"schema\"],\n request: Request,\n) {\n if (!validating || validating.length === 0) {\n const data = request.allExceptParams();\n\n // Duck-typed rather than `instanceof ObjectValidator`: the app's schema can\n // come from a different copy of seal than core's, and `instanceof` would\n // then silently fall back to ignoring params.\n const shape = (schema as { schema?: unknown } | undefined)?.schema;\n\n if (!shape || typeof shape !== \"object\") return data;\n\n for (const [key, value] of Object.entries(request.params)) {\n if (data[key] === undefined && Object.hasOwn(shape, key)) {\n data[key] = value;\n }\n }\n\n return data;\n }\n\n let data: any = {};\n\n for (const validatingType of validating) {\n if (validatingType === \"body\") {\n data = merge(data, request.body);\n }\n\n if (validatingType === \"query\") {\n data = merge(data, request.query);\n }\n\n if (validatingType === \"params\") {\n data = merge(data, request.params);\n }\n\n if (validatingType === \"headers\") {\n data = merge(data, request.headers);\n }\n }\n\n return data;\n}\n\n/**\n * Route segments arrive from Fastify as strings. A params schema is an\n * explicit request to parse those segments, so enable Seal's built-in\n * coercion for validators that support it (numbers and booleans) without\n * mutating the application-owned schema.\n *\n * This is deliberately duck-typed: a route may carry a Seal schema from a\n * linked application copy rather than core's installed copy.\n */\nconst coercingParamsSchemas = new WeakMap<ObjectValidator, ObjectValidator>();\n\nfunction coercingParamsSchema(schema: ObjectValidator): ObjectValidator {\n const cached = coercingParamsSchemas.get(schema);\n\n if (cached) return cached;\n\n const coercing = buildCoercingParamsSchema(schema);\n\n coercingParamsSchemas.set(schema, coercing);\n\n return coercing;\n}\n\nfunction buildCoercingParamsSchema(schema: ObjectValidator): ObjectValidator {\n const candidate = schema as ObjectValidator & {\n clone?: () => ObjectValidator;\n schema?: Record<string, { coerce?: () => unknown }>;\n };\n const cloned = candidate.clone?.() ?? schema;\n const shape = (cloned as typeof candidate).schema;\n\n if (!shape) return cloned;\n\n for (const [key, validator] of Object.entries(shape)) {\n if (typeof validator.coerce === \"function\") {\n shape[key] = validator.coerce() as typeof validator;\n }\n }\n\n return cloned;\n}\n\n/**\n * Answer a failed `schema` or `params` validation: the route's own\n * `onFailure` hook first, then `response.failedSchema(result)`, which applies\n * the global `validation.response.body` hook or the framework body.\n */\nasync function sendValidationFailure(\n validation: RequestHandlerValidation,\n result: ValidationResult,\n request: Request,\n response: Response,\n) {\n if (validation.onFailure) {\n const custom = await validation.onFailure(result, { request, response, route: request.route });\n\n if (custom) {\n return response.send(custom.body, custom.status ?? validationFailureStatus());\n }\n }\n\n return response.failedSchema(result);\n}\n\n/**\n * Validate the request route\n */\nexport async function validateAll(\n validation: Route[\"handler\"][\"validation\"],\n request: Request,\n response: Response,\n) {\n if (!validation) return;\n\n log.info(\"validation\", \"started\", \"Start validating the request\");\n\n let validatedData: Record<string, unknown> | undefined;\n\n if (validation.schema) {\n log.info(\"validation\", \"schema\", \"Validating request schema\");\n try {\n const data = resolveDataToParse(validation.validating, validation.schema, request);\n const result = await v.validate(validation.schema, data);\n\n if (!result.isValid) {\n log.warn(\"validation\", \"schema\", \"Schema Validation failed\");\n return sendValidationFailure(validation, result, request, response);\n }\n\n if (result.data) {\n validatedData = result.data;\n }\n\n log.success(\"validation\", \"schema\", \"Schema Validation passed\");\n } catch (error) {\n log.warn(\"app.validation\", \"error\", error);\n throw error;\n }\n }\n\n if (validation.params) {\n log.info(\"validation\", \"params\", \"Validating route params schema\");\n try {\n const result = await v.validate(coercingParamsSchema(validation.params), request.params);\n\n if (!result.isValid) {\n log.warn(\"validation\", \"params\", \"Route params schema validation failed\");\n return sendValidationFailure(validation, result, request, response);\n }\n\n if (result.data) {\n for (const [key, value] of Object.entries(result.data)) {\n request.setParam(key, value);\n }\n\n validatedData = { ...validatedData, ...result.data };\n }\n\n log.success(\"validation\", \"params\", \"Route params schema validation passed\");\n } catch (error) {\n log.warn(\"app.validation\", \"error\", error);\n throw error;\n }\n }\n\n if (validatedData) {\n request.setValidatedData(validatedData);\n }\n\n if (validation.validate) {\n const result = await validation.validate({ request, response });\n\n // if there is a result, it means it failed\n if (result) {\n log.info(\"validation\", \"failed\", \"Validation failed\");\n\n // a returned Response already carries its own status; anything else is\n // sent with the configured failure status (400 by default)\n if (result instanceof Response) return result;\n\n return response.send(result, config.get(\"validation.responseStatus\", 400));\n }\n\n log.info(\"validation\", \"passed\", \"Validation passed\");\n }\n}\n"],"mappings":"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
|
|
1
|
+
{"version":3,"file":"validateAll.mjs","names":["candidate","config"],"sources":["../../../../../../../../packages/core/src/validation/validateAll.ts"],"sourcesContent":["import config from \"@mongez/config\";\nimport { merge } from \"@mongez/reinforcements\";\nimport { log } from \"@warlock.js/logger\";\nimport { v, type ObjectValidator, type ValidationResult } from \"@warlock.js/seal\";\nimport type { Request } from \"../http\";\nimport { Response } from \"../http/response\";\nimport type { RequestHandlerValidation, Route } from \"../router\";\nimport { validationFailureStatus } from \"./validation-failure-status\";\n\nfunction resolveDataToParse(\n validating: RequestHandlerValidation[\"validating\"],\n schema: RequestHandlerValidation[\"schema\"],\n request: Request,\n) {\n if (!validating || validating.length === 0) {\n const data = request.allExceptParams();\n\n // Duck-typed rather than `instanceof ObjectValidator`: the app's schema can\n // come from a different copy of seal than core's, and `instanceof` would\n // then silently fall back to ignoring params.\n const shape = (schema as { schema?: unknown } | undefined)?.schema;\n\n if (!shape || typeof shape !== \"object\") return data;\n\n for (const [key, value] of Object.entries(request.params)) {\n if (data[key] === undefined && Object.hasOwn(shape, key)) {\n data[key] = value;\n }\n }\n\n return data;\n }\n\n let data: any = {};\n\n for (const validatingType of validating) {\n if (validatingType === \"body\") {\n data = merge(data, request.body);\n }\n\n if (validatingType === \"query\") {\n data = merge(data, request.query);\n }\n\n if (validatingType === \"params\") {\n data = merge(data, request.params);\n }\n\n if (validatingType === \"headers\") {\n data = merge(data, request.headers);\n }\n }\n\n return data;\n}\n\n/**\n * Route segments arrive from Fastify as strings. A params schema is an\n * explicit request to parse those segments, so enable Seal's built-in\n * coercion for validators that support it (numbers and booleans) without\n * mutating the application-owned schema.\n *\n * This is deliberately duck-typed: a route may carry a Seal schema from a\n * linked application copy rather than core's installed copy.\n */\nconst coercingParamsSchemas = new WeakMap<ObjectValidator, ObjectValidator>();\n\nfunction coercingParamsSchema(schema: ObjectValidator): ObjectValidator {\n const cached = coercingParamsSchemas.get(schema);\n\n if (cached) return cached;\n\n const coercing = buildCoercingParamsSchema(schema);\n\n coercingParamsSchemas.set(schema, coercing);\n\n return coercing;\n}\n\nfunction buildCoercingParamsSchema(schema: ObjectValidator): ObjectValidator {\n const candidate = schema as ObjectValidator & {\n clone?: () => ObjectValidator;\n schema?: Record<string, { coerce?: () => unknown }>;\n };\n const cloned = candidate.clone?.() ?? schema;\n const shape = (cloned as typeof candidate).schema;\n\n if (!shape) return cloned;\n\n for (const [key, validator] of Object.entries(shape)) {\n if (typeof validator.coerce === \"function\") {\n shape[key] = validator.coerce() as typeof validator;\n }\n }\n\n return cloned;\n}\n\n/**\n * Answer a failed `schema` or `params` validation: the route's own\n * `onFailure` hook first, then `response.failedSchema(result)`, which applies\n * the global `validation.response.body` hook or the framework body.\n */\nasync function sendValidationFailure(\n validation: RequestHandlerValidation,\n result: ValidationResult,\n request: Request,\n response: Response,\n) {\n if (validation.onFailure) {\n const custom = await validation.onFailure(result, { request, response, route: request.route });\n\n if (custom) {\n return response.send(custom.body, custom.status ?? validationFailureStatus());\n }\n }\n\n return response.failedSchema(result);\n}\n\n/**\n * Validate the request route\n */\nexport async function validateAll(\n validation: Route[\"handler\"][\"validation\"],\n request: Request,\n response: Response,\n) {\n if (!validation) return;\n\n log.info(\"validation\", \"started\", \"Start validating the request\");\n\n let validatedData: Record<string, unknown> | undefined;\n\n if (validation.schema) {\n log.info(\"validation\", \"schema\", \"Validating request schema\");\n try {\n const data = resolveDataToParse(validation.validating, validation.schema, request);\n const result = await v.validate(validation.schema, data);\n\n if (!result.isValid) {\n log.warn(\"validation\", \"schema\", \"Schema Validation failed\");\n return sendValidationFailure(validation, result, request, response);\n }\n\n if (result.data) {\n validatedData = result.data;\n }\n\n log.success(\"validation\", \"schema\", \"Schema Validation passed\");\n } catch (error) {\n log.warn(\"app.validation\", \"error\", error);\n throw error;\n }\n }\n\n if (validation.params) {\n log.info(\"validation\", \"params\", \"Validating route params schema\");\n try {\n const result = await v.validate(coercingParamsSchema(validation.params), request.params);\n\n if (!result.isValid) {\n log.warn(\"validation\", \"params\", \"Route params schema validation failed\");\n return sendValidationFailure(validation, result, request, response);\n }\n\n if (result.data) {\n for (const [key, value] of Object.entries(result.data)) {\n request.setParam(key, value);\n }\n\n validatedData = { ...validatedData, ...result.data };\n }\n\n log.success(\"validation\", \"params\", \"Route params schema validation passed\");\n } catch (error) {\n log.warn(\"app.validation\", \"error\", error);\n throw error;\n }\n }\n\n if (validatedData) {\n request.setValidatedData(validatedData);\n }\n\n if (validation.validate) {\n const result = await validation.validate({ request, response });\n\n // if there is a result, it means it failed\n if (result) {\n log.info(\"validation\", \"failed\", \"Validation failed\");\n\n // a returned Response already carries its own status; anything else is\n // sent with the configured failure status (400 by default)\n if (result instanceof Response) return result;\n\n return response.send(result, config.get(\"validation.responseStatus\", 400));\n }\n\n log.info(\"validation\", \"passed\", \"Validation passed\");\n }\n}\n"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import baseConfig from "@mongez/config";
|
|
2
2
|
|
|
3
3
|
//#region ../../packages/core/src/validation/validation-failure-status.ts
|
|
4
4
|
/**
|
|
@@ -6,7 +6,7 @@ import config from "@mongez/config";
|
|
|
6
6
|
* 422 when it is not configured.
|
|
7
7
|
*/
|
|
8
8
|
function validationFailureStatus() {
|
|
9
|
-
const status =
|
|
9
|
+
const status = baseConfig.get("validation.response.status");
|
|
10
10
|
return typeof status === "number" && Number.isInteger(status) ? status : 422;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-failure-status.mjs","names":[],"sources":["../../../../../../../../packages/core/src/validation/validation-failure-status.ts"],"sourcesContent":["import config from \"@mongez/config\";\n\n/**\n * The status of a failed schema validation: `validation.response.status`, or\n * 422 when it is not configured.\n */\nexport function validationFailureStatus(): number {\n const status: unknown = config.get(\"validation.response.status\");\n\n return typeof status === \"number\" && Number.isInteger(status) ? status : 422;\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,0BAAkC;CAChD,MAAM,
|
|
1
|
+
{"version":3,"file":"validation-failure-status.mjs","names":["config"],"sources":["../../../../../../../../packages/core/src/validation/validation-failure-status.ts"],"sourcesContent":["import config from \"@mongez/config\";\n\n/**\n * The status of a failed schema validation: `validation.response.status`, or\n * 422 when it is not configured.\n */\nexport function validationFailureStatus(): number {\n const status: unknown = config.get(\"validation.response.status\");\n\n return typeof status === \"number\" && Number.isInteger(status) ? status : 422;\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,0BAAkC;CAChD,MAAM,SAAkBA,WAAO,IAAI,4BAA4B;CAE/D,OAAO,OAAO,WAAW,YAAY,OAAO,UAAU,MAAM,IAAI,SAAS;AAC3E"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseValidator, FileSizeOption, JsonSchemaResult, JsonSchemaTarget, StandardSchemaV1 } from "@warlock.js/seal";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/validation/validators/file-validator.d.ts
|
|
4
|
-
declare const uploadedFileMetadataSchema: import("@warlock.js/seal").ObjectValidator<{
|
|
3
|
+
export declare const uploadedFileMetadataSchema: import("@warlock.js/seal").ObjectValidator<{
|
|
5
4
|
location: import("@warlock.js/seal").StringValidator & StandardSchemaV1<string, string>;
|
|
6
5
|
width: import("@warlock.js/seal").IntValidator & StandardSchemaV1<number, number>;
|
|
7
6
|
height: import("@warlock.js/seal").IntValidator & StandardSchemaV1<number, number>;
|
|
@@ -13,7 +12,7 @@ declare const uploadedFileMetadataSchema: import("@warlock.js/seal").ObjectValid
|
|
|
13
12
|
/**
|
|
14
13
|
* File validator class
|
|
15
14
|
*/
|
|
16
|
-
declare class FileValidator extends BaseValidator {
|
|
15
|
+
export declare class FileValidator extends BaseValidator {
|
|
17
16
|
constructor(errorMessage?: string);
|
|
18
17
|
/**
|
|
19
18
|
* Check if value is a File type
|
|
@@ -72,5 +71,4 @@ declare class FileValidator extends BaseValidator {
|
|
|
72
71
|
toJsonSchema(target?: JsonSchemaTarget): JsonSchemaResult;
|
|
73
72
|
}
|
|
74
73
|
//#endregion
|
|
75
|
-
export { FileValidator, uploadedFileMetadataSchema };
|
|
76
74
|
//# sourceMappingURL=file-validator.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-validator.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/validators/file-validator.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"file-validator.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/validation/validators/file-validator.ts"],"mappings":";;qBAoBa,uDAA0B;;;;;;;;;;;;qBAa1B,sBAAsB;EACjC,YAAmB;;;;EAQZ,YAAY;;EAKZ,MAAM;;EAKN,OAAO,+BAA+B;;EAOtC,SAAS,8BAA8B;;EAOvC,IAAI;;EAKJ,MAAM;;EAWN,KAAK;;EAWL,QAAQ,eAAe,gBAAgB;;EAOvC,IAAI,eAAe,gBAAgB;;EAKnC,QAAQ,eAAe,gBAAgB;;EAOvC,IAAI,cAAc;;EAKlB,SAAS,eAAe;;EAOxB,SAAS,eAAe;;EAOxB,UAAU,gBAAgB;;EAO1B,UAAU,gBAAgB;;;;;;;EAY1B,OAAO,4BAA4B,gBAAgB;;;;;;;;;;;;;;;;EAuB1C,aAAa,SAAQ,mBAAqC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import { FileValidator, uploadedFileMetadataSchema } from "./file-validator.mjs";
|
|
1
|
+
import { FileValidator, uploadedFileMetadataSchema } from "./file-validator.mjs";
|
|
2
|
+
export { FileValidator, uploadedFileMetadataSchema };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* just for one type — the shape is assignable to Vite's `PluginOption` wherever
|
|
7
7
|
* it's placed in a config's `plugins` array.
|
|
8
8
|
*/
|
|
9
|
-
interface DecoratorLoweringPlugin {
|
|
9
|
+
export interface DecoratorLoweringPlugin {
|
|
10
10
|
name: string;
|
|
11
11
|
enforce: "pre";
|
|
12
12
|
transform(code: string, id: string): Promise<{
|
|
@@ -47,7 +47,6 @@ interface DecoratorLoweringPlugin {
|
|
|
47
47
|
* });
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
declare function lowerStage3Decorators(): DecoratorLoweringPlugin;
|
|
50
|
+
export declare function lowerStage3Decorators(): DecoratorLoweringPlugin;
|
|
51
51
|
//#endregion
|
|
52
|
-
export { DecoratorLoweringPlugin, lowerStage3Decorators };
|
|
53
52
|
//# sourceMappingURL=lower-stage3-decorators.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lower-stage3-decorators.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/vite/lower-stage3-decorators.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"lower-stage3-decorators.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/vite/lower-stage3-decorators.ts"],"mappings":";;;;;;;;iBASiB;EACf;EACA;EACA,UAAU,cAAc,aAAa;IAAU;IAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAoC/C,yBAAyB"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { WarlockConfig } from "./types.mjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/warlock-config/define-config.d.ts
|
|
4
|
-
declare function defineConfig(options: WarlockConfig): WarlockConfig;
|
|
3
|
+
export declare function defineConfig(options: WarlockConfig): WarlockConfig;
|
|
5
4
|
//#endregion
|
|
6
|
-
export { defineConfig };
|
|
7
5
|
//# sourceMappingURL=define-config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-config.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/warlock-config/define-config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"define-config.d.mts","names":[],"sources":["../../../../../../../../packages/core/src/warlock-config/define-config.ts"],"mappings":";;wBAKgB,aAAa,SAAS,gBAQsB"}
|
|
@@ -4,10 +4,11 @@ import { merge } from "@mongez/reinforcements";
|
|
|
4
4
|
|
|
5
5
|
//#region ../../packages/core/src/warlock-config/define-config.ts
|
|
6
6
|
function defineConfig(options) {
|
|
7
|
-
|
|
7
|
+
const normalized = options.build ? {
|
|
8
8
|
...options,
|
|
9
9
|
build: normalizeBuildConfig(options.build)
|
|
10
|
-
} : options
|
|
10
|
+
} : options;
|
|
11
|
+
return merge(defaultWarlockConfigurations, normalized);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-config.mjs","names":[],"sources":["../../../../../../../../packages/core/src/warlock-config/define-config.ts"],"sourcesContent":["import { merge } from \"@mongez/reinforcements\";\nimport { defaultWarlockConfigurations } from \"./default-configurations\";\nimport { normalizeBuildConfig } from \"./normalize-build-config\";\nimport type { WarlockConfig } from \"./types\";\n\nexport function defineConfig(options: WarlockConfig) {\n // Fold `build.outDirectory` into `build.outdir` BEFORE merging. Afterwards\n // is too late: the defaults supply an `outdir`, so the alias could never\n // tell \"the user set outdir\" from \"the default did\" and would be dropped.\n const normalized: WarlockConfig = options.build\n ? { ...options, build: normalizeBuildConfig(options.build) }\n : options;\n\n return merge(defaultWarlockConfigurations, normalized) as WarlockConfig;\n}\n"],"mappings":";;;;;AAKA,SAAgB,aAAa,SAAwB;
|
|
1
|
+
{"version":3,"file":"define-config.mjs","names":[],"sources":["../../../../../../../../packages/core/src/warlock-config/define-config.ts"],"sourcesContent":["import { merge } from \"@mongez/reinforcements\";\nimport { defaultWarlockConfigurations } from \"./default-configurations\";\nimport { normalizeBuildConfig } from \"./normalize-build-config\";\nimport type { WarlockConfig } from \"./types\";\n\nexport function defineConfig(options: WarlockConfig) {\n // Fold `build.outDirectory` into `build.outdir` BEFORE merging. Afterwards\n // is too late: the defaults supply an `outdir`, so the alias could never\n // tell \"the user set outdir\" from \"the default did\" and would be dropped.\n const normalized: WarlockConfig = options.build\n ? { ...options, build: normalizeBuildConfig(options.build) }\n : options;\n\n return merge(defaultWarlockConfigurations, normalized) as WarlockConfig;\n}\n"],"mappings":";;;;;AAKA,SAAgB,aAAa,SAAwB;CAInD,MAAM,aAA4B,QAAQ,QACtC;EAAE,GAAG;EAAS,OAAO,qBAAqB,QAAQ,KAAK;CAAE,IACzD;CAEJ,OAAO,MAAM,8BAA8B,UAAU;AACvD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { WarlockConfig } from "./types.mjs";
|
|
2
2
|
import { defineConfig } from "./define-config.mjs";
|
|
3
|
-
import { WarlockConfigManager, isUnknownTsExtensionError, isUnresolvedConfigImportError, isUnsupportedTypeStrippingError, warlockConfigManager } from "./warlock-config.manager.mjs";
|
|
3
|
+
import { WarlockConfigManager, isUnknownTsExtensionError, isUnresolvedConfigImportError, isUnsupportedTypeStrippingError, warlockConfigManager } from "./warlock-config.manager.mjs";
|
|
4
|
+
export { WarlockConfig, WarlockConfigManager, defineConfig, isUnknownTsExtensionError, isUnresolvedConfigImportError, isUnsupportedTypeStrippingError, warlockConfigManager };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { WarlockConfigManager, isUnknownTsExtensionError, isUnresolvedConfigImportError, isUnsupportedTypeStrippingError, warlockConfigManager } from "./warlock-config.manager.mjs";
|
|
2
2
|
import { defineConfig } from "./define-config.mjs";
|
|
3
3
|
|
|
4
|
-
export {
|
|
4
|
+
export { WarlockConfigManager, defineConfig, isUnknownTsExtensionError, isUnresolvedConfigImportError, isUnsupportedTypeStrippingError, warlockConfigManager };
|
|
@@ -3,14 +3,13 @@ import { Connector } from "../connectors/types.mjs";
|
|
|
3
3
|
import { CLICommand } from "../commands/cli-command.mjs";
|
|
4
4
|
import { MigrationConstructor } from "@warlock.js/cascade";
|
|
5
5
|
import { BuildOptions } from "esbuild";
|
|
6
|
-
|
|
7
6
|
//#region ../../packages/core/src/warlock-config/types.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* Resolved Warlock Configuration
|
|
10
9
|
*
|
|
11
10
|
* This is the final configuration after merging user config with defaults
|
|
12
11
|
*/
|
|
13
|
-
type WarlockConfig = {
|
|
12
|
+
export type WarlockConfig = {
|
|
14
13
|
/**
|
|
15
14
|
* Server configuration
|
|
16
15
|
*/
|
|
@@ -237,8 +236,11 @@ type WarlockConfig = {
|
|
|
237
236
|
* @default false
|
|
238
237
|
*/
|
|
239
238
|
mcp?: boolean | {
|
|
240
|
-
/** `0` picks a free port. @default 0 */
|
|
241
|
-
|
|
239
|
+
/** `0` picks a free port. @default 0 */
|
|
240
|
+
port?: number;
|
|
241
|
+
/** Bearer token clients must send. @default none (loopback only) */
|
|
242
|
+
token?: string;
|
|
243
|
+
/** Let generate tools write into the project. @default false */
|
|
242
244
|
allowWrites?: boolean;
|
|
243
245
|
};
|
|
244
246
|
};
|
|
@@ -292,5 +294,4 @@ type WarlockConfig = {
|
|
|
292
294
|
};
|
|
293
295
|
};
|
|
294
296
|
//#endregion
|
|
295
|
-
export { WarlockConfig };
|
|
296
297
|
//# sourceMappingURL=types.d.mts.map
|