@warlock.js/core 4.1.7 → 4.1.9
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/esm/application/app.d.mts +1 -1
- package/esm/application/app.mjs +1 -1
- package/esm/application/application-config-types.d.mts +1 -1
- package/esm/application/application.d.mts +1 -1
- package/esm/application/application.mjs +1 -1
- package/esm/benchmark/benchmark-snapshots.d.mts +1 -1
- package/esm/benchmark/benchmark-snapshots.mjs +1 -1
- package/esm/benchmark/benchmark.d.mts +1 -1
- package/esm/benchmark/benchmark.mjs +1 -1
- package/esm/benchmark/channels/console.channel.d.mts +1 -1
- package/esm/benchmark/channels/console.channel.mjs +1 -1
- package/esm/benchmark/channels/noop.channel.d.mts +1 -1
- package/esm/benchmark/channels/noop.channel.mjs +1 -1
- package/esm/benchmark/profiler.d.mts +1 -1
- package/esm/benchmark/profiler.mjs +1 -1
- package/esm/benchmark/types.d.mts +1 -1
- package/esm/bootstrap/setup.d.mts +1 -1
- package/esm/bootstrap/setup.mjs +1 -1
- package/esm/bootstrap.d.mts +1 -1
- package/esm/bootstrap.mjs +1 -1
- package/esm/cache/database-cache-driver.d.mts +1 -1
- package/esm/cache/database-cache-driver.mjs +1 -1
- package/esm/cache/index.mjs +1 -1
- package/esm/cli/cli-command.d.mts +1 -1
- package/esm/cli/cli-command.mjs +1 -1
- package/esm/cli/cli-commands.manager.mjs +1 -1
- package/esm/cli/cli-commands.utils.mjs +1 -1
- package/esm/cli/commands/add.command.mjs +1 -1
- package/esm/cli/commands/build.command.mjs +1 -1
- package/esm/cli/commands/create-database.command.mjs +1 -1
- package/esm/cli/commands/dev-server.command.mjs +1 -1
- package/esm/cli/commands/drop-tables.command.mjs +1 -1
- package/esm/cli/commands/generate/generate.command.mjs +1 -1
- package/esm/cli/commands/generate/generators/column-dsl-parser.mjs +1 -1
- package/esm/cli/commands/generate/generators/controller.generator.mjs +1 -1
- package/esm/cli/commands/generate/generators/migration.generator.mjs +1 -1
- package/esm/cli/commands/generate/generators/model.generator.mjs +1 -1
- package/esm/cli/commands/generate/generators/module.generator.mjs +1 -1
- package/esm/cli/commands/generate/generators/repository.generator.mjs +1 -1
- package/esm/cli/commands/generate/generators/resource.generator.mjs +1 -1
- package/esm/cli/commands/generate/generators/service.generator.mjs +1 -1
- package/esm/cli/commands/generate/templates/stubs.mjs +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/generate/utils/prompt.mjs +1 -1
- package/esm/cli/commands/generate/utils/writer.mjs +1 -1
- package/esm/cli/commands/migrate.command.mjs +1 -1
- package/esm/cli/commands/seed.command.mjs +1 -1
- package/esm/cli/commands/start-production.command.mjs +1 -1
- package/esm/cli/commands/storage-put.action.mjs +1 -1
- package/esm/cli/commands/storage-put.command.mjs +1 -1
- package/esm/cli/commands/typings-generator.command.mjs +1 -1
- package/esm/cli/commands-loader.mjs +1 -1
- package/esm/cli/framework-cli-commands.mjs +1 -1
- package/esm/cli/parse-cli-args.mjs +1 -1
- package/esm/cli/start.mjs +1 -1
- package/esm/cli/string-similarity.mjs +1 -1
- package/esm/cli/types.d.mts +1 -1
- package/esm/config/config-getter.d.mts +1 -1
- package/esm/config/config-getter.mjs +1 -1
- package/esm/config/config-handlers.d.mts +1 -1
- package/esm/config/config-handlers.mjs +1 -1
- package/esm/config/config-loader.d.mts +1 -1
- package/esm/config/config-loader.mjs +1 -1
- package/esm/config/config-manager.mjs +1 -1
- package/esm/config/config-special-handlers.d.mts +1 -1
- package/esm/config/config-special-handlers.mjs +1 -1
- package/esm/config/load-config-files.mjs +1 -1
- package/esm/config/types.d.mts +1 -1
- package/esm/connectors/base-connector.d.mts +1 -1
- package/esm/connectors/base-connector.mjs +1 -1
- package/esm/connectors/cache-connector.d.mts +1 -1
- package/esm/connectors/cache-connector.mjs +1 -1
- package/esm/connectors/connectors-manager.d.mts +1 -1
- package/esm/connectors/connectors-manager.mjs +1 -1
- package/esm/connectors/database-connector.d.mts +1 -1
- package/esm/connectors/database-connector.mjs +1 -1
- package/esm/connectors/herald-connector.d.mts +1 -1
- package/esm/connectors/herald-connector.mjs +1 -1
- package/esm/connectors/http-connector.d.mts +1 -1
- package/esm/connectors/http-connector.mjs +1 -1
- package/esm/connectors/logger-connector.d.mts +1 -1
- package/esm/connectors/logger-connector.mjs +1 -1
- package/esm/connectors/mail-connector.d.mts +1 -1
- package/esm/connectors/mail-connector.mjs +1 -1
- package/esm/connectors/socket-connector.d.mts +1 -1
- package/esm/connectors/socket-connector.mjs +1 -1
- package/esm/connectors/storage.connector.d.mts +1 -1
- package/esm/connectors/storage.connector.mjs +1 -1
- package/esm/connectors/types.d.mts +1 -1
- package/esm/connectors/types.mjs +1 -1
- package/esm/container/index.d.mts +1 -1
- package/esm/container/index.mjs +1 -1
- package/esm/database/create-database-action.mjs +1 -1
- package/esm/database/drop-tables-action.mjs +1 -1
- package/esm/database/migrate-action.mjs +1 -1
- package/esm/database/models/database-log/database-log.d.mts +1 -1
- package/esm/database/models/database-log/database-log.mjs +1 -1
- package/esm/database/seed-command-action.mjs +1 -1
- package/esm/database/seeds/seeder.d.mts +1 -1
- package/esm/database/seeds/seeder.mjs +1 -1
- package/esm/database/seeds/seeders.manager.mjs +1 -1
- package/esm/database/seeds/seeds-table-migration.mjs +1 -1
- package/esm/database/seeds/types.d.mts +1 -1
- package/esm/database/seeds/utils.mjs +1 -1
- package/esm/database/utils.d.mts +1 -1
- package/esm/database/utils.mjs +1 -1
- package/esm/dev-server/create-worker.mjs +9 -7
- package/esm/dev-server/create-worker.mjs.map +1 -1
- package/esm/dev-server/dependency-graph.d.mts +1 -1
- package/esm/dev-server/dependency-graph.mjs +1 -1
- package/esm/dev-server/dev-logger.mjs +1 -1
- package/esm/dev-server/development-server.mjs +1 -1
- package/esm/dev-server/events.mjs +1 -1
- package/esm/dev-server/file-event-handler.mjs +1 -1
- package/esm/dev-server/file-manager.d.mts +1 -1
- package/esm/dev-server/file-manager.mjs +1 -1
- package/esm/dev-server/file-operations.d.mts +1 -1
- package/esm/dev-server/file-operations.mjs +1 -1
- package/esm/dev-server/files-orchestrator.d.mts +1 -1
- package/esm/dev-server/files-orchestrator.mjs +1 -1
- package/esm/dev-server/files-watcher.d.mts +1 -1
- package/esm/dev-server/files-watcher.mjs +1 -1
- package/esm/dev-server/flags.mjs +1 -1
- package/esm/dev-server/health-checker/checkers/base-health-checker.d.mts +1 -1
- package/esm/dev-server/health-checker/checkers/base-health-checker.mjs +1 -1
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.d.mts +1 -1
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.mjs +1 -1
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.d.mts +1 -1
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.mjs +1 -1
- package/esm/dev-server/health-checker/file-health-checker.contract.d.mts +1 -1
- package/esm/dev-server/health-checker/file-health-result.d.mts +1 -1
- package/esm/dev-server/health-checker/file-health-result.mjs +1 -1
- package/esm/dev-server/health-checker/files-healthcare.manager.d.mts +1 -1
- package/esm/dev-server/health-checker/files-healthcare.manager.mjs +1 -1
- package/esm/dev-server/health-checker/workers/eslint-health.worker.mjs +1 -1
- package/esm/dev-server/health-checker/workers/ts-health.worker.mjs +1 -1
- package/esm/dev-server/layer-executor.mjs +1 -1
- package/esm/dev-server/loader/build-transpile-init.mjs +1 -1
- package/esm/dev-server/loader/hook-thread.d.mts +1 -1
- package/esm/dev-server/loader/hook-thread.mjs +1 -1
- package/esm/dev-server/loader/load-hook.d.mts +1 -1
- package/esm/dev-server/loader/load-hook.mjs +1 -1
- package/esm/dev-server/loader/own-resolver.mjs +1 -1
- package/esm/dev-server/loader/register-loader.mjs +3 -4
- package/esm/dev-server/loader/register-loader.mjs.map +1 -1
- package/esm/dev-server/loader/resolve-capture.mjs +1 -1
- package/esm/dev-server/loader/resolve-hook.d.mts +1 -1
- package/esm/dev-server/loader/resolve-hook.mjs +1 -1
- package/esm/dev-server/loader/source-slug.mjs +1 -1
- package/esm/dev-server/loader/transpile-cache.mjs +1 -1
- package/esm/dev-server/loader/version-registry.mjs +1 -1
- package/esm/dev-server/manifest-manager.d.mts +1 -1
- package/esm/dev-server/manifest-manager.mjs +1 -1
- package/esm/dev-server/module-loader.d.mts +1 -1
- package/esm/dev-server/module-loader.mjs +1 -1
- package/esm/dev-server/package-json-manager.mjs +1 -1
- package/esm/dev-server/parse-imports.mjs +1 -1
- package/esm/dev-server/path.mjs +1 -1
- package/esm/dev-server/special-files-collector.d.mts +1 -1
- package/esm/dev-server/special-files-collector.mjs +1 -1
- package/esm/dev-server/start-development-server.mjs +1 -1
- package/esm/dev-server/tsconfig-manager.mjs +1 -1
- package/esm/dev-server/type-generator.mjs +1 -1
- package/esm/dev-server/types.d.mts +1 -1
- package/esm/dev-server/utils.mjs +1 -1
- package/esm/encryption/encrypt.d.mts +1 -1
- package/esm/encryption/encrypt.mjs +1 -1
- package/esm/encryption/hash.d.mts +1 -1
- package/esm/encryption/hash.mjs +1 -1
- package/esm/encryption/password.d.mts +1 -1
- package/esm/encryption/password.mjs +1 -1
- package/esm/encryption/types.d.mts +1 -1
- package/esm/generations/add-command.action.mjs +1 -1
- package/esm/generations/stubs.mjs +1 -1
- package/esm/http/config.d.mts +1 -1
- package/esm/http/config.mjs +1 -1
- package/esm/http/context/request-context.d.mts +1 -1
- package/esm/http/context/request-context.mjs +1 -1
- package/esm/http/createHttpApplication.d.mts +1 -1
- package/esm/http/createHttpApplication.mjs +1 -1
- package/esm/http/database/RequestLog.d.mts +1 -1
- package/esm/http/database/RequestLog.mjs +1 -1
- package/esm/http/error-codes.d.mts +1 -1
- package/esm/http/error-codes.mjs +1 -1
- package/esm/http/errors/errors.d.mts +1 -1
- package/esm/http/errors/errors.mjs +1 -1
- package/esm/http/events.d.mts +1 -1
- package/esm/http/events.mjs +1 -1
- package/esm/http/middleware/cache-response-middleware.d.mts +1 -1
- package/esm/http/middleware/cache-response-middleware.mjs +1 -1
- package/esm/http/middleware/concurrency-limit.middleware.d.mts +1 -1
- package/esm/http/middleware/concurrency-limit.middleware.mjs +1 -1
- package/esm/http/middleware/idempotency.middleware.d.mts +1 -1
- package/esm/http/middleware/idempotency.middleware.mjs +1 -1
- package/esm/http/middleware/inject-request-context.d.mts +1 -1
- package/esm/http/middleware/inject-request-context.mjs +1 -1
- package/esm/http/middleware/ip-filter.middleware.d.mts +1 -1
- package/esm/http/middleware/ip-filter.middleware.mjs +1 -1
- package/esm/http/middleware/maintenance.middleware.d.mts +1 -1
- package/esm/http/middleware/maintenance.middleware.mjs +1 -1
- package/esm/http/middleware/max-body-size.middleware.d.mts +1 -1
- package/esm/http/middleware/max-body-size.middleware.mjs +1 -1
- package/esm/http/middleware/middleware-list.d.mts +1 -1
- package/esm/http/middleware/middleware-list.mjs +1 -1
- package/esm/http/middleware/rate-limit.middleware.d.mts +1 -1
- package/esm/http/middleware/rate-limit.middleware.mjs +1 -1
- package/esm/http/middleware/utils/cidr-match.d.mts +1 -1
- package/esm/http/middleware/utils/cidr-match.mjs +1 -1
- package/esm/http/middleware/utils/idempotency-key.d.mts +1 -1
- package/esm/http/middleware/utils/idempotency-key.mjs +1 -1
- package/esm/http/middleware/utils/parse-size.d.mts +1 -1
- package/esm/http/middleware/utils/parse-size.mjs +1 -1
- package/esm/http/plugins.d.mts +1 -1
- package/esm/http/plugins.mjs +1 -1
- package/esm/http/request-controller.d.mts +1 -1
- package/esm/http/request-controller.mjs +1 -1
- package/esm/http/request.d.mts +1 -1
- package/esm/http/request.mjs +1 -1
- package/esm/http/response.d.mts +1 -1
- package/esm/http/response.mjs +1 -1
- package/esm/http/server.d.mts +1 -1
- package/esm/http/server.mjs +1 -1
- package/esm/http/types.d.mts +1 -1
- package/esm/http/uploaded-file.d.mts +1 -1
- package/esm/http/uploaded-file.mjs +1 -1
- package/esm/http/uploads-config.d.mts +1 -1
- package/esm/http/uploads-config.mjs +1 -1
- package/esm/http/uploads-types.d.mts +1 -1
- package/esm/image/image.d.mts +1 -1
- package/esm/image/image.mjs +1 -1
- package/esm/index.d.mts +4 -1
- package/esm/logger/logger.d.mts +1 -1
- package/esm/logger/logger.mjs +1 -1
- package/esm/logger/types.d.mts +1 -1
- package/esm/mail/config.d.mts +1 -1
- package/esm/mail/config.mjs +1 -1
- package/esm/mail/events.d.mts +1 -1
- package/esm/mail/events.mjs +1 -1
- package/esm/mail/mail.d.mts +1 -1
- package/esm/mail/mail.mjs +1 -1
- package/esm/mail/mailer-pool.d.mts +1 -1
- package/esm/mail/mailer-pool.mjs +1 -1
- package/esm/mail/react-mail.d.mts +1 -1
- package/esm/mail/react-mail.mjs +1 -1
- package/esm/mail/send-mail.d.mts +1 -1
- package/esm/mail/send-mail.mjs +1 -1
- package/esm/mail/test-mailbox.d.mts +1 -1
- package/esm/mail/test-mailbox.mjs +1 -1
- package/esm/mail/types.d.mts +1 -1
- package/esm/mail/types.mjs +1 -1
- package/esm/manifest/manifest-manager.mjs +1 -1
- package/esm/production/build-app-production.mjs +1 -1
- package/esm/production/esbuild-plugins.mjs +1 -1
- package/esm/production/production-builder.mjs +1 -1
- package/esm/production/resolve-build-config.mjs +1 -1
- package/esm/react/index.d.mts +1 -1
- package/esm/react/index.mjs +1 -1
- package/esm/repositories/adapters/cascade/cascade-adapter.d.mts +1 -1
- package/esm/repositories/adapters/cascade/cascade-adapter.mjs +1 -1
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.mts +1 -1
- package/esm/repositories/adapters/cascade/cascade-query-builder.mjs +1 -1
- package/esm/repositories/adapters/cascade/filter-applicator.mjs +1 -1
- package/esm/repositories/contracts/query-builder.contract.d.mts +1 -1
- package/esm/repositories/contracts/repository-adapter.contract.d.mts +1 -1
- package/esm/repositories/contracts/types.d.mts +1 -1
- package/esm/repositories/repository.manager.d.mts +1 -1
- package/esm/repositories/repository.manager.mjs +1 -1
- package/esm/resource/define-resource.d.mts +1 -1
- package/esm/resource/define-resource.mjs +1 -1
- package/esm/resource/register-resource.d.mts +1 -1
- package/esm/resource/register-resource.mjs +1 -1
- package/esm/resource/resource-field-builder.d.mts +1 -1
- package/esm/resource/resource-field-builder.mjs +1 -1
- package/esm/resource/resource.d.mts +1 -1
- package/esm/resource/resource.mjs +1 -1
- package/esm/resource/types.d.mts +1 -1
- package/esm/restful/restful.d.mts +1 -1
- package/esm/restful/restful.mjs +1 -1
- package/esm/router/route-builder.d.mts +1 -1
- package/esm/router/route-builder.mjs +1 -1
- package/esm/router/route-registry.mjs +1 -1
- package/esm/router/router.d.mts +1 -1
- package/esm/router/router.mjs +1 -1
- package/esm/router/types.d.mts +1 -1
- package/esm/socket/types.d.mts +1 -1
- package/esm/socket/utils.d.mts +1 -1
- package/esm/socket/utils.mjs +1 -1
- package/esm/storage/config.d.mts +1 -1
- package/esm/storage/config.mjs +1 -1
- package/esm/storage/context/storage-driver-context.d.mts +1 -1
- package/esm/storage/context/storage-driver-context.mjs +1 -1
- package/esm/storage/drivers/cloud-driver.d.mts +1 -1
- package/esm/storage/drivers/cloud-driver.mjs +1 -1
- package/esm/storage/drivers/do-spaces-driver.d.mts +1 -1
- package/esm/storage/drivers/do-spaces-driver.mjs +1 -1
- package/esm/storage/drivers/local-driver.d.mts +1 -1
- package/esm/storage/drivers/local-driver.mjs +1 -1
- package/esm/storage/drivers/r2-driver.d.mts +1 -1
- package/esm/storage/drivers/r2-driver.mjs +1 -1
- package/esm/storage/drivers/s3-driver.d.mts +1 -1
- package/esm/storage/drivers/s3-driver.mjs +1 -1
- package/esm/storage/scoped-storage.d.mts +1 -1
- package/esm/storage/scoped-storage.mjs +1 -1
- package/esm/storage/storage-file.d.mts +1 -1
- package/esm/storage/storage-file.mjs +1 -1
- package/esm/storage/storage.d.mts +1 -1
- package/esm/storage/storage.mjs +1 -1
- package/esm/storage/types.d.mts +1 -1
- package/esm/storage/utils/mime.d.mts +1 -1
- package/esm/storage/utils/mime.mjs +1 -1
- package/esm/tests/start-http-development-server.d.mts +1 -1
- package/esm/tests/start-http-development-server.mjs +1 -1
- package/esm/tests/test-helpers.d.mts +1 -1
- package/esm/tests/test-helpers.mjs +1 -1
- package/esm/tests/vitest-setup.d.mts +1 -1
- package/esm/tests/vitest-setup.mjs +1 -1
- package/esm/use-cases/types.d.mts +1 -1
- package/esm/use-cases/use-case-broadcast.d.mts +1 -1
- package/esm/use-cases/use-case-broadcast.mjs +1 -1
- package/esm/use-cases/use-case-events.d.mts +1 -1
- package/esm/use-cases/use-case-events.mjs +1 -1
- package/esm/use-cases/use-case-pipeline.d.mts +1 -1
- package/esm/use-cases/use-case-pipeline.mjs +1 -1
- package/esm/use-cases/use-case.d.mts +1 -1
- package/esm/use-cases/use-case.errors.d.mts +1 -1
- package/esm/use-cases/use-case.errors.mjs +1 -1
- package/esm/use-cases/use-case.mjs +1 -1
- package/esm/use-cases/use-cases-registry.d.mts +1 -1
- package/esm/use-cases/use-cases-registry.mjs +1 -1
- package/esm/utils/app-log.d.mts +1 -1
- package/esm/utils/app-log.mjs +1 -1
- package/esm/utils/database-log.d.mts +1 -1
- package/esm/utils/database-log.mjs +1 -1
- package/esm/utils/environment.d.mts +1 -1
- package/esm/utils/environment.mjs +1 -1
- package/esm/utils/framework-vesion.mjs +1 -1
- package/esm/utils/get-localized.d.mts +1 -1
- package/esm/utils/get-localized.mjs +1 -1
- package/esm/utils/paths.d.mts +1 -1
- package/esm/utils/paths.mjs +1 -1
- package/esm/utils/promise-all-object.d.mts +1 -1
- package/esm/utils/promise-all-object.mjs +1 -1
- package/esm/utils/queue.d.mts +1 -1
- package/esm/utils/queue.mjs +1 -1
- package/esm/utils/sleep.d.mts +1 -1
- package/esm/utils/sleep.mjs +1 -1
- package/esm/utils/sluggable.d.mts +1 -1
- package/esm/utils/sluggable.mjs +1 -1
- package/esm/utils/to-json.d.mts +1 -1
- package/esm/utils/to-json.mjs +1 -1
- package/esm/utils/types.d.mts +1 -1
- package/esm/utils/urls.d.mts +1 -1
- package/esm/utils/urls.mjs +1 -1
- package/esm/validation/database/exists-except-current-id.d.mts +1 -1
- package/esm/validation/database/exists-except-current-id.mjs +1 -1
- package/esm/validation/database/exists-except-current-user.d.mts +1 -1
- package/esm/validation/database/exists-except-current-user.mjs +1 -1
- package/esm/validation/database/types.d.mts +1 -1
- package/esm/validation/database/unique-except-current-id.d.mts +1 -1
- package/esm/validation/database/unique-except-current-id.mjs +1 -1
- package/esm/validation/database/unique-except-current-user.d.mts +1 -1
- package/esm/validation/database/unique-except-current-user.mjs +1 -1
- package/esm/validation/file/file.d.mts +1 -1
- package/esm/validation/file/file.mjs +1 -1
- package/esm/validation/init.mjs +1 -1
- package/esm/validation/plugins/database-plugin.mjs +1 -1
- package/esm/validation/plugins/file-plugin.mjs +1 -1
- package/esm/validation/plugins/localized-plugin.mjs +1 -1
- package/esm/validation/types.d.mts +1 -1
- package/esm/validation/validateAll.mjs +1 -1
- package/esm/validation/validators/file-validator.d.mts +1 -1
- package/esm/validation/validators/file-validator.mjs +1 -1
- package/esm/warlock-config/default-configurations.mjs +1 -1
- package/esm/warlock-config/define-config.d.mts +1 -1
- package/esm/warlock-config/define-config.mjs +1 -1
- package/esm/warlock-config/types.d.mts +1 -1
- package/esm/warlock-config/warlock-config.manager.d.mts +1 -1
- package/esm/warlock-config/warlock-config.manager.mjs +1 -1
- package/package.json +10 -10
package/esm/http/events.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Response } from "./response.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/http/events.d.ts
|
|
4
4
|
declare function logResponse(response: Response): void;
|
|
5
5
|
declare function wrapResponseInDataKey(response: Response): void;
|
|
6
6
|
//#endregion
|
package/esm/http/events.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Request } from "../request.mjs";
|
|
2
2
|
import { Response } from "../response.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/http/middleware/cache-response-middleware.d.ts
|
|
5
5
|
type CacheMiddlewareOptions = {
|
|
6
6
|
/**
|
|
7
7
|
* Cache key
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { except } from "@mongez/reinforcements";
|
|
2
2
|
import { cache } from "@warlock.js/cache";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/http/middleware/cache-response-middleware.ts
|
|
5
5
|
const defaultCacheOptions = { withLocale: true };
|
|
6
6
|
async function parseCacheOptions(cacheOptions, request) {
|
|
7
7
|
if (typeof cacheOptions === "string") cacheOptions = { cacheKey: cacheOptions };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Request } from "../request.mjs";
|
|
2
2
|
import { Middleware } from "../../router/types.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/http/middleware/concurrency-limit.middleware.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Options for the concurrency limit middleware.
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t } from "./inject-request-context.mjs";
|
|
2
2
|
import { HttpErrorCodes } from "../error-codes.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/http/middleware/concurrency-limit.middleware.ts
|
|
5
5
|
const counters = /* @__PURE__ */ new Map();
|
|
6
6
|
function release(key) {
|
|
7
7
|
const after = (counters.get(key) || 1) - 1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Middleware } from "../../router/types.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../@warlock.js/core/src/http/middleware/idempotency.middleware.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options for the idempotency middleware.
|
|
5
5
|
*/
|
|
@@ -4,7 +4,7 @@ import { buildIdempotencyCacheKey, hashBody, isValidIdempotencyKey } from "./uti
|
|
|
4
4
|
import baseConfig from "@mongez/config";
|
|
5
5
|
import { cache } from "@warlock.js/cache";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/core/src/http/middleware/idempotency.middleware.ts
|
|
8
8
|
const DEFAULT_METHODS = [
|
|
9
9
|
"POST",
|
|
10
10
|
"PUT",
|
|
@@ -2,7 +2,7 @@ import { Request } from "../request.mjs";
|
|
|
2
2
|
import { Response } from "../response.mjs";
|
|
3
3
|
import { ReturnedResponse } from "../types.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/http/middleware/inject-request-context.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create request store and execute middleware + handler
|
|
8
8
|
*
|
|
@@ -7,7 +7,7 @@ import { trans } from "@mongez/localization";
|
|
|
7
7
|
import { DatabaseWriterValidationError } from "@warlock.js/cascade";
|
|
8
8
|
import { contextManager } from "@warlock.js/context";
|
|
9
9
|
|
|
10
|
-
//#region
|
|
10
|
+
//#region ../@warlock.js/core/src/http/middleware/inject-request-context.ts
|
|
11
11
|
/**
|
|
12
12
|
* Request Context Middleware
|
|
13
13
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Middleware } from "../../router/types.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../@warlock.js/core/src/http/middleware/ip-filter.middleware.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options for the IP filter middleware. Use at least one of `allow` / `deny`.
|
|
5
5
|
*
|
|
@@ -2,7 +2,7 @@ import { t } from "./inject-request-context.mjs";
|
|
|
2
2
|
import { HttpErrorCodes } from "../error-codes.mjs";
|
|
3
3
|
import { anyMatch } from "./utils/cidr-match.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/http/middleware/ip-filter.middleware.ts
|
|
6
6
|
/**
|
|
7
7
|
* Allow / deny requests by client IP. Fail-closed: if the IP can't be read,
|
|
8
8
|
* the request is rejected with 403.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Middleware } from "../../router/types.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../@warlock.js/core/src/http/middleware/maintenance.middleware.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options for the maintenance middleware.
|
|
5
5
|
*/
|
|
@@ -2,7 +2,7 @@ import { t } from "./inject-request-context.mjs";
|
|
|
2
2
|
import { HttpErrorCodes } from "../error-codes.mjs";
|
|
3
3
|
import baseConfig from "@mongez/config";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/http/middleware/maintenance.middleware.ts
|
|
6
6
|
function isAllowlisted(path, patterns) {
|
|
7
7
|
return patterns.some((pattern) => {
|
|
8
8
|
if (pattern.endsWith("*")) return path.startsWith(pattern.slice(0, -1));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Middleware } from "../../router/types.mjs";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../@warlock.js/core/src/http/middleware/max-body-size.middleware.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Reject requests whose `Content-Length` exceeds the configured cap.
|
|
5
5
|
*
|
|
@@ -2,7 +2,7 @@ import { t } from "./inject-request-context.mjs";
|
|
|
2
2
|
import { HttpErrorCodes } from "../error-codes.mjs";
|
|
3
3
|
import { parseSize } from "./utils/parse-size.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/http/middleware/max-body-size.middleware.ts
|
|
6
6
|
/**
|
|
7
7
|
* Reject requests whose `Content-Length` exceeds the configured cap.
|
|
8
8
|
*
|
|
@@ -6,7 +6,7 @@ import { maintenanceMiddleware } from "./maintenance.middleware.mjs";
|
|
|
6
6
|
import { maxBodySizeMiddleware } from "./max-body-size.middleware.mjs";
|
|
7
7
|
import { rateLimitMiddleware } from "./rate-limit.middleware.mjs";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../@warlock.js/core/src/http/middleware/middleware-list.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* Built-in HTTP middleware factories.
|
|
12
12
|
*
|
|
@@ -6,7 +6,7 @@ import { maintenanceMiddleware } from "./maintenance.middleware.mjs";
|
|
|
6
6
|
import { maxBodySizeMiddleware } from "./max-body-size.middleware.mjs";
|
|
7
7
|
import { rateLimitMiddleware } from "./rate-limit.middleware.mjs";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../@warlock.js/core/src/http/middleware/middleware-list.ts
|
|
10
10
|
/**
|
|
11
11
|
* Built-in HTTP middleware factories.
|
|
12
12
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Request } from "../request.mjs";
|
|
2
2
|
import { Middleware } from "../../router/types.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/http/middleware/rate-limit.middleware.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Options for the per-route rate limit middleware.
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t } from "./inject-request-context.mjs";
|
|
2
2
|
import { HttpErrorCodes } from "../error-codes.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/http/middleware/rate-limit.middleware.ts
|
|
5
5
|
const buckets = /* @__PURE__ */ new Map();
|
|
6
6
|
/**
|
|
7
7
|
* Sweep expired buckets so the Map doesn't grow unbounded with one-shot keys
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../@warlock.js/core/src/http/middleware/utils/cidr-match.d.ts
|
|
2
2
|
declare function ipMatches(ip: string, pattern: string): boolean;
|
|
3
3
|
/**
|
|
4
4
|
* Returns true if `ip` matches any pattern in the list.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Request } from "../../request.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/http/middleware/utils/idempotency-key.d.ts
|
|
4
4
|
declare function isValidIdempotencyKey(value: unknown): value is string;
|
|
5
5
|
/**
|
|
6
6
|
* Hash a request body to a stable hex digest.
|
package/esm/http/plugins.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FastifyInstance } from "./server.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/http/plugins.d.ts
|
|
4
4
|
declare function registerHttpPlugins(server: FastifyInstance): Promise<void>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { registerHttpPlugins };
|
package/esm/http/plugins.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "../utils/index.mjs";
|
|
|
3
3
|
import baseConfig from "@mongez/config";
|
|
4
4
|
import fastifyMultipart from "@fastify/multipart";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/http/plugins.ts
|
|
7
7
|
const defaultCorsOptions = {
|
|
8
8
|
origin: "*",
|
|
9
9
|
methods: "*"
|
|
@@ -3,7 +3,7 @@ import { Response } from "./response.mjs";
|
|
|
3
3
|
import { ReturnedResponse } from "./types.mjs";
|
|
4
4
|
import { RequestControllerContract } from "../router/types.mjs";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/http/request-controller.d.ts
|
|
7
7
|
declare abstract class RequestController implements RequestControllerContract {
|
|
8
8
|
readonly request: Request;
|
|
9
9
|
readonly response: Response;
|
package/esm/http/request.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ import { LogLevel } from "@warlock.js/logger";
|
|
|
8
8
|
import { FastifyRequest } from "fastify";
|
|
9
9
|
import { IncomingHttpHeaders } from "node:http2";
|
|
10
10
|
|
|
11
|
-
//#region
|
|
11
|
+
//#region ../@warlock.js/core/src/http/request.d.ts
|
|
12
12
|
type StandardHeaders = { [K in keyof IncomingHttpHeaders as string extends K ? never : number extends K ? never : K]: IncomingHttpHeaders[K] };
|
|
13
13
|
type HeaderKeys = keyof StandardHeaders;
|
|
14
14
|
declare class Request<RequestValidation = any> {
|
package/esm/http/request.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { Random, except, get, only, rtrim, set, unset } from "@mongez/reinforcem
|
|
|
11
11
|
import { colors } from "@mongez/copper";
|
|
12
12
|
import events from "@mongez/events";
|
|
13
13
|
|
|
14
|
-
//#region
|
|
14
|
+
//#region ../@warlock.js/core/src/http/request.ts
|
|
15
15
|
var Request = class Request {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.payload = {};
|
package/esm/http/response.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ import { FastifyReply } from "fastify";
|
|
|
9
9
|
import { CookieSerializeOptions } from "@fastify/cookie";
|
|
10
10
|
import React from "react";
|
|
11
11
|
|
|
12
|
-
//#region
|
|
12
|
+
//#region ../@warlock.js/core/src/http/response.d.ts
|
|
13
13
|
type CookieValue = string | number | boolean | Record<string, any> | Array<any>;
|
|
14
14
|
/**
|
|
15
15
|
* Cookie options accepted by `response.cookie()`.
|
package/esm/http/response.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { fileExistsAsync } from "@warlock.js/fs";
|
|
|
10
10
|
import fs from "fs";
|
|
11
11
|
import mime from "mime";
|
|
12
12
|
|
|
13
|
-
//#region
|
|
13
|
+
//#region ../@warlock.js/core/src/http/response.ts
|
|
14
14
|
let ResponseStatus = /* @__PURE__ */ function(ResponseStatus) {
|
|
15
15
|
ResponseStatus[ResponseStatus["OK"] = 200] = "OK";
|
|
16
16
|
ResponseStatus[ResponseStatus["CREATED"] = 201] = "CREATED";
|
package/esm/http/server.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Fastify, { FastifyServerOptions } from "fastify";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/http/server.d.ts
|
|
4
4
|
type FastifyInstance$1 = ReturnType<typeof Fastify>;
|
|
5
5
|
declare function startHttpServer(options?: FastifyServerOptions): FastifyInstance$1;
|
|
6
6
|
/**
|
package/esm/http/server.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import baseConfig from "@mongez/config";
|
|
2
2
|
import Fastify from "fastify";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/http/server.ts
|
|
5
5
|
/**
|
|
6
6
|
* Default Fastify body limit. Kept at the historical 200GB so existing apps
|
|
7
7
|
* don't regress on upgrade. Override via `http.bodyLimit` in config; for
|
package/esm/http/types.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { CookieSerializeOptions } from "@fastify/cookie";
|
|
|
4
4
|
import { FastifyCorsOptions } from "@fastify/cors";
|
|
5
5
|
import React from "react";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/core/src/http/types.d.ts
|
|
8
8
|
type RequestEvent = "executingMiddleware" | "executedMiddleware" | "executingAction" | "executedAction";
|
|
9
9
|
/**
|
|
10
10
|
* Allowed response type
|
|
@@ -6,7 +6,7 @@ import { Image, ImageFormat, ImageTransformOptions } from "../image/image.mjs";
|
|
|
6
6
|
import { ImageTransformCallback, PrefixConfig, SaveAsOptions, SaveOptions, UploadedFileImageOptions } from "./uploads-types.mjs";
|
|
7
7
|
import { MultipartFile } from "@fastify/multipart";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../@warlock.js/core/src/http/uploaded-file.d.ts
|
|
10
10
|
type UploadedFileMetadata = {
|
|
11
11
|
name: string;
|
|
12
12
|
mimeType: string;
|
|
@@ -8,7 +8,7 @@ import path from "path";
|
|
|
8
8
|
import { Random } from "@mongez/reinforcements";
|
|
9
9
|
import dayjs from "dayjs";
|
|
10
10
|
|
|
11
|
-
//#region
|
|
11
|
+
//#region ../@warlock.js/core/src/http/uploaded-file.ts
|
|
12
12
|
/**
|
|
13
13
|
* UploadedFile - Handles multipart file uploads with storage and image integration
|
|
14
14
|
*
|
|
@@ -2,7 +2,7 @@ import { StorageDriverName } from "../storage/types.mjs";
|
|
|
2
2
|
import { Image, ImageFormat, ImageTransformOptions } from "../image/image.mjs";
|
|
3
3
|
import { FileValidationOptions } from "./uploaded-file.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/http/uploads-types.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Prefix options for file path generation
|
|
8
8
|
*
|
package/esm/image/image.d.mts
CHANGED
package/esm/image/image.mjs
CHANGED
package/esm/index.d.mts
CHANGED
|
@@ -142,4 +142,7 @@ import { WarlockConfigManager, warlockConfigManager } from "./warlock-config/war
|
|
|
142
142
|
import { env } from "@mongez/dotenv";
|
|
143
143
|
import { colors } from "@mongez/copper";
|
|
144
144
|
export * from "@mongez/localization";
|
|
145
|
-
export { $registerUseCase, $unregisterUseCase, AllRepositoryOptions, AppConfigurations, Application, BadRequestError, BadSchemaUseCaseError, BaseConnector, BaseHealthChecker, type BenchmarkChannel, type BenchmarkConfigurations, type BenchmarkErrorResult, type BenchmarkOptions, BenchmarkProfiler, type BenchmarkProfilerOptions, type BenchmarkResult, BenchmarkSnapshots, type BenchmarkSnapshotsOptions, type BenchmarkStats, type BenchmarkSuccessResult, CLICommand, CLICommandAction, CLICommandOption, CLICommandOptions, CLICommandPreload, CLICommandSource, CacheConnector, type CacheMiddlewareOptions, CachedRepositoryOptions, type CapturedMail, CascadeAdapter, CascadeQueryBuilder, ChunkCallback, CloudDriver, CloudStorageDriverContract, CloudStorageDriverOptions, CloudStorageFileData, CommandActionData, type ConcurrencyLimitOptions, ConfigKey, ConfigKeyRegistry, ConfigName, ConfigRegistry, ConfigSpecialHandlers, ConflictError, Connector, ConnectorLifecyclePhase, ConnectorName, ConnectorPriority, ConnectorsManager, ConsoleChannel, ContainerTypes, CookieOptions, CursorPaginationOptions, CursorPaginationResult, DOSpacesDriver, DatabaseCacheDriver, type DatabaseCacheOptions, DatabaseConnector, DatabaseLog, DatabaseLogModel, DatabaseLogOptions, DefineResourceOptions, DeleteManyResult, EncryptionConfigurations, EncryptionPasswordConfigurations, Environment, EslintHealthChecker, EventSubscription, ExistsExceptCurrentIdRuleOptions, ExistsExceptCurrentUserRuleOptions, FastifyInstance, FileNamingStrategy, FileValidationOptions, FileValidator, FileVisibility, FilesOrchestrator, FilterFunction, FilterOperator, FilterOptions, FilterRule, FilterRules, ForbiddenError, GroupedRoutesOptions, HeraldConnector, HttpConfigurations, HttpConnector, HttpError, HttpErrorCodes, type IdempotencyOptions, Image, ImageFormat, ImageInput, ImageTransformCallback, ImageTransformConfig, ImageTransformOptions, type IpFilterOptions, ListOptions, LocalDriver, LocalStorageDriverOptions, LocalizedObject, LogConfigurations, LoggerConnector, MAIL_EVENTS, Mail, type MailAddress, type MailAttachment, type MailConfigurations, MailError, type MailErrorCode, type MailEvents, type MailMode, type MailOptions, type MailPriority, type MailResult, MailerConnector, type MailersConfig, type MaintenanceOptions, Middleware, MiddlewareResponse, MimeTypes, NoopChannel, type NormalizedMail, NotAcceptableError, NotAllowedError, PaginationMode, PaginationResult, PartialMiddleware, PartialPick, PipelineOptions, PrefixConfig, PrefixOptions, PresignedOptions, PresignedUploadOptions, PutDirectoryOptions, PutDirectoryResult, PutOptions, QueryBuilderContract, Queue, R2Driver, R2StorageDriverOptions, type RateLimitOptions, RegisterResource, RegisteredUseCase, RepositoryAdapterContract, RepositoryConfigurations, RepositoryEvent, RepositoryManager, RepositoryOptions, RepositoryOptionsWithCursor, RepositoryOptionsWithPages, Request, RequestContextStore, RequestController, RequestControllerContract, RequestEvent, RequestHandler, RequestHandlerType, RequestHandlerValidation, RequestLog, RequestMethod, ResolvedCLICommandOption, Resource, ResourceArraySchema, ResourceCastType, ResourceConstructor, ResourceContract, ResourceFieldBuilder, ResourceFieldBuilderDateOutputOptions, ResourceFieldConfig, ResourceMethod, ResourceNotFoundError, ResourceOutputValueCastType, ResourceSchema, ResourceSelfReference, Response, ResponseBodyValue, ResponseEvent, ResponseSSEController, ResponseSchema, ResponseStatus, ResponseStreamController, Restful, RestfulMiddleware, ReturnedResponse, Route, RouteOptions, RouteResource, Router, RouterGroupCallback, RouterStacks, S3Driver, type SESConfigurations, type SMTPConfigurations, SaveAsOptions, SaveMode, SaveOptions, ScopedStorage, ScopedStorageContract, SeedResult, Seeder, SeederMetadata, SendBufferOptions, SendFileOptions, ServerError, SocketConnector, SocketOptions, Storage, StorageConfigurations, StorageConnector, StorageCopyEventPayload, StorageDriverConfig, StorageDriverContextStore, StorageDriverContract, StorageDriverName, StorageDriverRegistry, StorageDriverType, StorageEventHandler, StorageEventPayload, StorageEventType, StorageFile, StorageFileData, StorageFileInfo, StorageManagerContract, StoragePutEventPayload, TemporaryTokenError, TemporaryTokenPayload, TemporaryTokenValidation, TypedAllRepositoryOptions, TypedRepositoryOptions, TypedRepositoryOptionsWithCursor, TypedRepositoryOptionsWithPages, TypescriptHealthChecker, UPLOADS_DEFAULTS, UnAuthorizedError, UniqueExceptCurrentIdRuleOptions, UniqueExceptCurrentUserRuleOptions, UploadedFile, UploadedFileImageOptions, UploadsConfigurations, UseCase, UseCaseAfterMiddleware, UseCaseBeforeMiddleware, UseCaseBroadcastChannel, UseCaseBroadcastEvent, UseCaseBroadcastOption, UseCaseConfigurations, UseCaseContext, UseCaseErrorResult, UseCaseEventsCallbacksMap, UseCaseGuard, UseCaseHandler, UseCaseOnExecutingContext, UseCaseResult, UseCaseRuntimeOptions, UseCaseWithSchema, ValidationConfiguration, WarlockConfig, WarlockConfigManager, WatermarkConfig, WhereOperator, addUseCaseHistory, anyMatch, app, appLog, appPath, assertMailCount, assertMailSent, assetsUrl, bootstrap, broadcastUseCaseResult, buildIdempotencyCacheKey, cachePath, captureMail, clearTestMailbox, closeAllMailers, closeMailer, colors, command, config, configPath, configSpecialHandlers, connectorsManager, container, createHttpApplication, createRequestStore, decrypt, defaultHttpConfigurations, defineConfig, defineResource, displayEnvironmentMode, encrypt, env, environment, existsExceptCurrentIdRule, existsExceptCurrentUserRule, expectJson, fileExtensionRule, fileRule, fileTypeRule, filesOrchestrator, findMailsBySubject, findMailsTo, fireLifecycleEvent, fromRequest, generateMailId, getDefaultMailConfig, getHttpServer, getLastMail, getLocalized, getMailEventName, getMailMode, getMailboxSize, getMailer, getMailerConfig, getMimeType, getPoolStats, getSocketServer, getTestMailbox, getTestServerUrl, getUseCase, getUseCaseHistory, getUseCases, globalEventsCallbacksMap, globalUseCasesEvents, hashBody, hashPassword, hmacHash, httpConfig, imageRule, increaseUseCaseFailedCalls, increaseUseCaseSuccessCalls, ipMatches, isDevelopmentMode, isProductionMode, isTestMode, isTestServerRunning, isValidIdempotencyKey, loadS3, logResponse, logsPath, mailEvents, measure, middleware, onCleanup, parseJsonResponse, parseSize, paths, promiseAllObject, publicPath, publicUrl, registerAppConfig, registerHttpPlugins, renderReact, renderReactMail, requestContext, resetMailConfig, resolveMailConfig, rootPath, router, runPipeline, sanitizePath, seeder, sendMail, setBaseUrl, setEnvironment, setLogConfigurations, setMailConfigurations, setMailMode, setupTest, sleep, sluggable, srcPath, startHttpServer, startHttpTestServer, stopHttpApplication, stopHttpTestServer, storage, storageConfig, storageConfigurations, storageDriverContext, storagePath, t, tempPath, testDelete, testGet, testPatch, testPost, testPut, testRequest, toJson, uniqueExceptCurrentIdRule, uniqueExceptCurrentUserRule, uploadedFileMetadataSchema, uploadsConfig, uploadsPath, uploadsUrl, url, useCase, useComputedModel, useComputedSlug, useCurrentUser, useHashedPassword, useRequest, useRequestStore, verifyMailer, verifyPassword, warlockConfigManager, warlockPath, wasMailSentTo, wasMailSentWithSubject, wrapResponseInDataKey };
|
|
145
|
+
export { $registerUseCase, $unregisterUseCase, AllRepositoryOptions, AppConfigurations, Application, BadRequestError, BadSchemaUseCaseError, BaseConnector, BaseHealthChecker, type BenchmarkChannel, type BenchmarkConfigurations, type BenchmarkErrorResult, type BenchmarkOptions, BenchmarkProfiler, type BenchmarkProfilerOptions, type BenchmarkResult, BenchmarkSnapshots, type BenchmarkSnapshotsOptions, type BenchmarkStats, type BenchmarkSuccessResult, CLICommand, CLICommandAction, CLICommandOption, CLICommandOptions, CLICommandPreload, CLICommandSource, CacheConnector, type CacheMiddlewareOptions, CachedRepositoryOptions, type CapturedMail, CascadeAdapter, CascadeQueryBuilder, ChunkCallback, CloudDriver, CloudStorageDriverContract, CloudStorageDriverOptions, CloudStorageFileData, CommandActionData, type ConcurrencyLimitOptions, ConfigKey, ConfigKeyRegistry, ConfigName, ConfigRegistry, ConfigSpecialHandlers, ConflictError, Connector, ConnectorLifecyclePhase, ConnectorName, ConnectorPriority, ConnectorsManager, ConsoleChannel, ContainerTypes, CookieOptions, CursorPaginationOptions, CursorPaginationResult, DOSpacesDriver, DatabaseCacheDriver, type DatabaseCacheOptions, DatabaseConnector, DatabaseLog, DatabaseLogModel, DatabaseLogOptions, DefineResourceOptions, DeleteManyResult, EncryptionConfigurations, EncryptionPasswordConfigurations, Environment, EslintHealthChecker, EventSubscription, ExistsExceptCurrentIdRuleOptions, ExistsExceptCurrentUserRuleOptions, FastifyInstance, FileNamingStrategy, FileValidationOptions, FileValidator, FileVisibility, FilesOrchestrator, FilterFunction, FilterOperator, FilterOptions, FilterRule, FilterRules, ForbiddenError, GroupedRoutesOptions, HeraldConnector, HttpConfigurations, HttpConnector, HttpError, HttpErrorCodes, type IdempotencyOptions, Image, ImageFormat, ImageInput, ImageTransformCallback, ImageTransformConfig, ImageTransformOptions, type IpFilterOptions, ListOptions, LocalDriver, LocalStorageDriverOptions, LocalizedObject, LogConfigurations, LoggerConnector, MAIL_EVENTS, Mail, type MailAddress, type MailAttachment, type MailConfigurations, MailError, type MailErrorCode, type MailEvents, type MailMode, type MailOptions, type MailPriority, type MailResult, MailerConnector, type MailersConfig, type MaintenanceOptions, Middleware, MiddlewareResponse, MimeTypes, NoopChannel, type NormalizedMail, NotAcceptableError, NotAllowedError, PaginationMode, PaginationResult, PartialMiddleware, PartialPick, PipelineOptions, PrefixConfig, PrefixOptions, PresignedOptions, PresignedUploadOptions, PutDirectoryOptions, PutDirectoryResult, PutOptions, QueryBuilderContract, Queue, R2Driver, R2StorageDriverOptions, type RateLimitOptions, RegisterResource, RegisteredUseCase, RepositoryAdapterContract, RepositoryConfigurations, RepositoryEvent, RepositoryManager, RepositoryOptions, RepositoryOptionsWithCursor, RepositoryOptionsWithPages, Request, RequestContextStore, RequestController, RequestControllerContract, RequestEvent, RequestHandler, RequestHandlerType, RequestHandlerValidation, RequestLog, RequestMethod, ResolvedCLICommandOption, Resource, ResourceArraySchema, ResourceCastType, ResourceConstructor, ResourceContract, ResourceFieldBuilder, ResourceFieldBuilderDateOutputOptions, ResourceFieldConfig, ResourceMethod, ResourceNotFoundError, ResourceOutputValueCastType, ResourceSchema, ResourceSelfReference, Response, ResponseBodyValue, ResponseEvent, ResponseSSEController, ResponseSchema, ResponseStatus, ResponseStreamController, Restful, RestfulMiddleware, ReturnedResponse, Route, RouteOptions, RouteResource, Router, RouterGroupCallback, RouterStacks, S3Driver, type SESConfigurations, type SMTPConfigurations, SaveAsOptions, SaveMode, SaveOptions, ScopedStorage, ScopedStorageContract, SeedResult, Seeder, SeederMetadata, SendBufferOptions, SendFileOptions, ServerError, SocketConnector, SocketOptions, Storage, StorageConfigurations, StorageConnector, StorageCopyEventPayload, StorageDriverConfig, StorageDriverContextStore, StorageDriverContract, StorageDriverName, StorageDriverRegistry, StorageDriverType, StorageEventHandler, StorageEventPayload, StorageEventType, StorageFile, StorageFileData, StorageFileInfo, StorageManagerContract, StoragePutEventPayload, TemporaryTokenError, TemporaryTokenPayload, TemporaryTokenValidation, TypedAllRepositoryOptions, TypedRepositoryOptions, TypedRepositoryOptionsWithCursor, TypedRepositoryOptionsWithPages, TypescriptHealthChecker, UPLOADS_DEFAULTS, UnAuthorizedError, UniqueExceptCurrentIdRuleOptions, UniqueExceptCurrentUserRuleOptions, UploadedFile, UploadedFileImageOptions, UploadsConfigurations, UseCase, UseCaseAfterMiddleware, UseCaseBeforeMiddleware, UseCaseBroadcastChannel, UseCaseBroadcastEvent, UseCaseBroadcastOption, UseCaseConfigurations, UseCaseContext, UseCaseErrorResult, UseCaseEventsCallbacksMap, UseCaseGuard, UseCaseHandler, UseCaseOnExecutingContext, UseCaseResult, UseCaseRuntimeOptions, UseCaseWithSchema, ValidationConfiguration, WarlockConfig, WarlockConfigManager, WatermarkConfig, WhereOperator, addUseCaseHistory, anyMatch, app, appLog, appPath, assertMailCount, assertMailSent, assetsUrl, bootstrap, broadcastUseCaseResult, buildIdempotencyCacheKey, cachePath, captureMail, clearTestMailbox, closeAllMailers, closeMailer, colors, command, config, configPath, configSpecialHandlers, connectorsManager, container, createHttpApplication, createRequestStore, decrypt, defaultHttpConfigurations, defineConfig, defineResource, displayEnvironmentMode, encrypt, env, environment, existsExceptCurrentIdRule, existsExceptCurrentUserRule, expectJson, fileExtensionRule, fileRule, fileTypeRule, filesOrchestrator, findMailsBySubject, findMailsTo, fireLifecycleEvent, fromRequest, generateMailId, getDefaultMailConfig, getHttpServer, getLastMail, getLocalized, getMailEventName, getMailMode, getMailboxSize, getMailer, getMailerConfig, getMimeType, getPoolStats, getSocketServer, getTestMailbox, getTestServerUrl, getUseCase, getUseCaseHistory, getUseCases, globalEventsCallbacksMap, globalUseCasesEvents, hashBody, hashPassword, hmacHash, httpConfig, imageRule, increaseUseCaseFailedCalls, increaseUseCaseSuccessCalls, ipMatches, isDevelopmentMode, isProductionMode, isTestMode, isTestServerRunning, isValidIdempotencyKey, loadS3, logResponse, logsPath, mailEvents, measure, middleware, onCleanup, parseJsonResponse, parseSize, paths, promiseAllObject, publicPath, publicUrl, registerAppConfig, registerHttpPlugins, renderReact, renderReactMail, requestContext, resetMailConfig, resolveMailConfig, rootPath, router, runPipeline, sanitizePath, seeder, sendMail, setBaseUrl, setEnvironment, setLogConfigurations, setMailConfigurations, setMailMode, setupTest, sleep, sluggable, srcPath, startHttpServer, startHttpTestServer, stopHttpApplication, stopHttpTestServer, storage, storageConfig, storageConfigurations, storageDriverContext, storagePath, t, tempPath, testDelete, testGet, testPatch, testPost, testPut, testRequest, toJson, uniqueExceptCurrentIdRule, uniqueExceptCurrentUserRule, uploadedFileMetadataSchema, uploadsConfig, uploadsPath, uploadsUrl, url, useCase, useComputedModel, useComputedSlug, useCurrentUser, useHashedPassword, useRequest, useRequestStore, verifyMailer, verifyPassword, warlockConfigManager, warlockPath, wasMailSentTo, wasMailSentWithSubject, wrapResponseInDataKey };
|
|
146
|
+
import "./config/types.mjs";
|
|
147
|
+
import "./storage/types.mjs";
|
|
148
|
+
import "./validation/types.mjs";
|
package/esm/logger/logger.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LogConfigurations } from "./types.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/logger/logger.d.ts
|
|
4
4
|
declare function setLogConfigurations(options: LogConfigurations): void;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { setLogConfigurations };
|
package/esm/logger/logger.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { environment } from "../utils/environment.mjs";
|
|
|
2
2
|
import "../utils/index.mjs";
|
|
3
3
|
import { log } from "@warlock.js/logger";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/logger/logger.ts
|
|
6
6
|
function setLogConfigurations(options) {
|
|
7
7
|
const channels = [];
|
|
8
8
|
const envChannels = options[environment()]?.channels;
|
package/esm/logger/types.d.mts
CHANGED
package/esm/mail/config.d.mts
CHANGED
package/esm/mail/config.mjs
CHANGED
package/esm/mail/events.d.mts
CHANGED
package/esm/mail/events.mjs
CHANGED
package/esm/mail/mail.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MailAddress, MailAttachment, MailConfigurations, MailEvents, MailOptions, MailPriority, MailResult } from "./types.mjs";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/mail/mail.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Fluent Mail Builder
|
|
7
7
|
*
|
package/esm/mail/mail.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MailConfigurations } from "./types.mjs";
|
|
2
2
|
import { Transporter } from "nodemailer";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/mail/mailer-pool.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Get or create a mailer transporter from the pool
|
|
7
7
|
* Nodemailer is eagerly loaded at import time
|
package/esm/mail/mailer-pool.mjs
CHANGED
package/esm/mail/react-mail.mjs
CHANGED