@warlock.js/core 4.1.6 → 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.d.mts.map +1 -1
- package/esm/dev-server/loader/resolve-hook.mjs +3 -3
- package/esm/dev-server/loader/resolve-hook.mjs.map +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
|
@@ -2,7 +2,7 @@ import { FileManager } from "../../file-manager.mjs";
|
|
|
2
2
|
import { FileHealthResult } from "../file-health-result.mjs";
|
|
3
3
|
import { FileHealthCheckerContract, HealthCheckerFilesStats } from "../file-health-checker.contract.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/checkers/base-health-checker.d.ts
|
|
6
6
|
type CheckerFile = {
|
|
7
7
|
file: FileManager;
|
|
8
8
|
healthResult: FileHealthResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileHealthResult } from "../file-health-result.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/checkers/base-health-checker.ts
|
|
4
4
|
var BaseHealthChecker = class {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.files = /* @__PURE__ */ new Map();
|
|
@@ -3,7 +3,7 @@ import { FileHealthResult } from "../file-health-result.mjs";
|
|
|
3
3
|
import { FileHealthCheckerContract } from "../file-health-checker.contract.mjs";
|
|
4
4
|
import { BaseHealthChecker } from "./base-health-checker.mjs";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/checkers/eslint-health-checker.d.ts
|
|
7
7
|
declare class EslintHealthChecker extends BaseHealthChecker implements FileHealthCheckerContract {
|
|
8
8
|
/**
|
|
9
9
|
* ESLint instance (using new ESLint v9 API with flat config)
|
|
@@ -4,7 +4,7 @@ import { colors } from "@mongez/copper";
|
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import { ESLint } from "eslint";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/checkers/eslint-health-checker.ts
|
|
8
8
|
var EslintHealthChecker = class extends BaseHealthChecker {
|
|
9
9
|
constructor(..._args) {
|
|
10
10
|
super(..._args);
|
|
@@ -3,7 +3,7 @@ import { FileHealthResult } from "../file-health-result.mjs";
|
|
|
3
3
|
import { FileHealthCheckerContract } from "../file-health-checker.contract.mjs";
|
|
4
4
|
import { BaseHealthChecker } from "./base-health-checker.mjs";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/checkers/typescript-health-checker.d.ts
|
|
7
7
|
declare class TypescriptHealthChecker extends BaseHealthChecker implements FileHealthCheckerContract {
|
|
8
8
|
/**
|
|
9
9
|
* Cached TypeScript program instance
|
|
@@ -3,7 +3,7 @@ import { BaseHealthChecker } from "./base-health-checker.mjs";
|
|
|
3
3
|
import { colors } from "@mongez/copper";
|
|
4
4
|
import ts from "typescript";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/checkers/typescript-health-checker.ts
|
|
7
7
|
var TypescriptHealthChecker = class extends BaseHealthChecker {
|
|
8
8
|
constructor(..._args) {
|
|
9
9
|
super(..._args);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileManager } from "../file-manager.mjs";
|
|
2
2
|
import { FileHealthResult } from "./file-health-result.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/file-health-checker.contract.d.ts
|
|
5
5
|
type HealthCheckerFilesStats = {
|
|
6
6
|
name: string;
|
|
7
7
|
files: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileManager } from "../file-manager.mjs";
|
|
2
2
|
import { FileHealthCheckerContract } from "./file-health-checker.contract.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/files-healthcare.manager.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Files Healthcare Manager
|
|
7
7
|
*
|
|
@@ -2,7 +2,7 @@ import { devLogInfo } from "../dev-logger.mjs";
|
|
|
2
2
|
import { createWorker } from "../create-worker.mjs";
|
|
3
3
|
import { colors } from "@mongez/copper";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/files-healthcare.manager.ts
|
|
6
6
|
/**
|
|
7
7
|
* Files Healthcare Manager
|
|
8
8
|
*
|
|
@@ -3,7 +3,7 @@ import fs from "fs";
|
|
|
3
3
|
import { ESLint } from "eslint";
|
|
4
4
|
import { parentPort, workerData } from "worker_threads";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/workers/eslint-health.worker.ts
|
|
7
7
|
/**
|
|
8
8
|
* ESLint Health Check Worker
|
|
9
9
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
2
|
import { parentPort, workerData } from "worker_threads";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/dev-server/health-checker/workers/ts-health.worker.ts
|
|
5
5
|
/**
|
|
6
6
|
* TypeScript Health Check Worker
|
|
7
7
|
*
|
|
@@ -3,7 +3,7 @@ import { connectorsManager } from "../connectors/connectors-manager.mjs";
|
|
|
3
3
|
import { configManager } from "../config/config-manager.mjs";
|
|
4
4
|
import { loadEnv } from "@mongez/dotenv";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/dev-server/layer-executor.ts
|
|
7
7
|
/**
|
|
8
8
|
* Decides what to reload when a batch of files changes.
|
|
9
9
|
*
|
|
@@ -3,7 +3,7 @@ import "../../utils/index.mjs";
|
|
|
3
3
|
import { computeFingerprint } from "./transpile-cache.mjs";
|
|
4
4
|
import { version } from "esbuild";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/dev-server/loader/build-transpile-init.ts
|
|
7
7
|
/**
|
|
8
8
|
* esbuild `target` for the dev transform. Pinned to the same value the
|
|
9
9
|
* production builder uses so dev and prod lower TC39 decorators (Cascade
|
|
@@ -2,7 +2,7 @@ import { TranspileInit, load } from "./load-hook.mjs";
|
|
|
2
2
|
import { resolve } from "./resolve-hook.mjs";
|
|
3
3
|
import { MessagePort } from "node:worker_threads";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/dev-server/loader/hook-thread.d.ts
|
|
6
6
|
type InitializeData = {
|
|
7
7
|
port: MessagePort;
|
|
8
8
|
srcRoot: string; /** Transpile config (always present — esbuild transpile is unconditional). */
|
|
@@ -2,7 +2,7 @@ import { configureTranspile, load } from "./load-hook.mjs";
|
|
|
2
2
|
import { bumpVersion } from "./version-registry.mjs";
|
|
3
3
|
import { resolve, setSrcRoot } from "./resolve-hook.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/dev-server/loader/hook-thread.ts
|
|
6
6
|
/**
|
|
7
7
|
* ESM loader hook entry-point.
|
|
8
8
|
*
|
|
@@ -4,7 +4,7 @@ import { transformSync } from "esbuild";
|
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/core/src/dev-server/loader/load-hook.ts
|
|
8
8
|
const VERSION_QUERY = /\?v=\d+$/;
|
|
9
9
|
const TS_FILE = /\.(ts|tsx|mts|cts)$/;
|
|
10
10
|
let transpile;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { URL, fileURLToPath, pathToFileURL } from "node:url";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/dev-server/loader/own-resolver.ts
|
|
4
4
|
/**
|
|
5
5
|
* Extension/`index` probing for one candidate base path, mirroring tsx's
|
|
6
6
|
* TypeScript-aware order:
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { register } from "node:module";
|
|
2
|
-
import { env } from "@mongez/dotenv";
|
|
3
2
|
import { putFileAsync } from "@warlock.js/fs";
|
|
4
3
|
import path from "node:path";
|
|
5
4
|
import { build } from "esbuild";
|
|
6
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
7
6
|
import { MessageChannel } from "node:worker_threads";
|
|
8
7
|
|
|
9
|
-
//#region
|
|
8
|
+
//#region ../@warlock.js/core/src/dev-server/loader/register-loader.ts
|
|
10
9
|
/**
|
|
11
10
|
* Bundle, write, and register the ESM loader hook.
|
|
12
11
|
*
|
|
@@ -41,9 +40,9 @@ import { MessageChannel } from "node:worker_threads";
|
|
|
41
40
|
*/
|
|
42
41
|
async function registerLoader(transpile) {
|
|
43
42
|
const { port1, port2 } = new MessageChannel();
|
|
44
|
-
const
|
|
43
|
+
const selfPath = fileURLToPath(import.meta.url);
|
|
45
44
|
const bundledCode = (await build({
|
|
46
|
-
entryPoints: [path.join(path.dirname(
|
|
45
|
+
entryPoints: [path.join(path.dirname(selfPath), `hook-thread${path.extname(selfPath)}`)],
|
|
47
46
|
bundle: true,
|
|
48
47
|
format: "esm",
|
|
49
48
|
write: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-loader.mjs","names":[],"sources":["../../../../../../../@warlock.js/core/src/dev-server/loader/register-loader.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"register-loader.mjs","names":[],"sources":["../../../../../../../@warlock.js/core/src/dev-server/loader/register-loader.ts"],"sourcesContent":["import { putFileAsync } from \"@warlock.js/fs\";\nimport { build } from \"esbuild\";\nimport { register } from \"node:module\";\nimport path from \"node:path\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\nimport { type MessagePort, MessageChannel } from \"node:worker_threads\";\nimport type { TranspileInit } from \"./load-hook.js\";\n\n/**\n * Bundle, write, and register the ESM loader hook.\n *\n * **Why bundle?**\n * `module.register()` runs the hook file in a fresh Node.js worker thread that\n * has no tsx hook of its own. The hook source is TypeScript, so we must produce\n * a plain ESM bundle before registering. esbuild inline-bundles all three hook\n * modules (`hook-thread`, `resolve-hook`, `load-hook`, `version-registry`)\n * into a single `.mjs` file written to `.warlock/`. External npm packages\n * (`esbuild`, `node:*`) are kept external — the hook thread can resolve those\n * from `node_modules` normally.\n *\n * **Why a file and not a `data:` URL?**\n * Some Node versions have issues resolving `import.meta.url` inside `data:`\n * modules. A real file under `.warlock/` is simpler and debuggable.\n *\n * **Timing**\n * Called from `FilesOrchestrator.init()` before any user `src/` module is\n * dynamically imported. `module.register()` takes effect for all subsequent\n * `import()` calls, which is exactly the window we need.\n *\n * @param transpile - Transpile-cache config to ship into the hook worker,\n * or `null` to keep the hook in tsx-passthrough mode.\n *\n * @returns The main-thread side of the MessageChannel. Callers post\n * `{ type: \"bump\", absolutePath }` messages on it to invalidate modules.\n *\n * @example\n * const port = await registerLoader(transpileInit);\n * // Later, when a file changes:\n * port.postMessage({ type: \"bump\", absolutePath: \"/abs/path/to/user.model.ts\" });\n */\nexport async function registerLoader(\n transpile: TranspileInit,\n): Promise<MessagePort> {\n const { port1, port2 } = new MessageChannel();\n\n // hook-thread is a sibling module, so it shares THIS file's extension:\n // `.ts` when core runs from source (tsx), `.mjs` when published.\n const selfPath = fileURLToPath(import.meta.url);\n const hookThreadPath = path.join(\n path.dirname(selfPath),\n `hook-thread${path.extname(selfPath)}`,\n );\n\n const bundleResult = await build({\n entryPoints: [hookThreadPath],\n bundle: true,\n format: \"esm\",\n write: false,\n platform: \"node\",\n target: \"node20\",\n // Keep npm packages and Node built-ins external — the hook thread resolves\n // them normally from node_modules at runtime.\n packages: \"external\",\n });\n\n const bundledCode = bundleResult.outputFiles[0].text;\n // Caller (filesOrchestrator.init) guarantees .warlock/ exists before this runs.\n const hookBundlePath = path.join(process.cwd(), \".warlock\", \"loader-hook.mjs\");\n await putFileAsync(hookBundlePath, bundledCode);\n\n const srcRoot = path.join(process.cwd(), \"src\");\n\n // No tsx registration: our hook owns resolution (own-resolver) and the\n // transpile of every `.ts`/`.tsx` (esbuild, in the load hook). The chain\n // is simply [our hook] → [Node default] for non-TS (npm/.js, node:).\n // In this monorepo tsx is still the *launcher* (`tsx start.ts`) so its\n // loader is present anyway, but it is never consulted for TypeScript —\n // our hook short-circuits first. A released `node bin/warlock.js` has no\n // tsx at all and relies entirely on this hook.\n\n register(pathToFileURL(hookBundlePath).href, import.meta.url, {\n data: { port: port2, srcRoot, transpile },\n transferList: [port2],\n });\n\n return port1;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,eAAsB,eACpB,WACsB;CACtB,MAAM,EAAE,OAAO,UAAU,IAAI,eAAe;CAI5C,MAAM,WAAW,cAAc,OAAO,KAAK,GAAG;CAkB9C,MAAM,eAAc,MAZO,MAAM;EAC/B,aAAa,CANQ,KAAK,KAC1B,KAAK,QAAQ,QAAQ,GACrB,cAAc,KAAK,QAAQ,QAAQ,GAIR,CAAC;EAC5B,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,UAAU;EACV,QAAQ;EAGR,UAAU;CACZ,CAAC,GAEgC,YAAY,GAAG;CAEhD,MAAM,iBAAiB,KAAK,KAAK,QAAQ,IAAI,GAAG,YAAY,iBAAiB;CAC7E,MAAM,aAAa,gBAAgB,WAAW;CAE9C,MAAM,UAAU,KAAK,KAAK,QAAQ,IAAI,GAAG,KAAK;CAU9C,SAAS,cAAc,cAAc,EAAE,MAAM,OAAO,KAAK,KAAK;EAC5D,MAAM;GAAE,MAAM;GAAO;GAAS;EAAU;EACxC,cAAc,CAAC,KAAK;CACtB,CAAC;CAED,OAAO;AACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-hook.d.mts","names":[],"sources":["../../../../../../../@warlock.js/core/src/dev-server/loader/resolve-hook.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"resolve-hook.d.mts","names":[],"sources":["../../../../../../../@warlock.js/core/src/dev-server/loader/resolve-hook.ts"],"mappings":";KAqCK,cAAA;EACH,SAAA;EACA,UAAA;EACA,gBAAA,GAAmB,MAAM;AAAA;AAAA,KAGtB,aAAA;EACH,GAAA;EACA,MAAA;EACA,YAAA;AAAA;AAAA,KAGG,WAAA,IAAe,SAAA,UAAmB,OAAA,GAAU,cAAA,KAAmB,OAAA,CAAQ,aAAA;;AAH9D;AAAA;;;;;;;;;;;;;;AAG2E;AA2BzF;;;;;;;;iBAAsB,OAAA,CACpB,SAAA,UACA,OAAA,EAAS,cAAA,EACT,WAAA,EAAa,WAAA,GACZ,OAAA,CAAQ,aAAA"}
|
|
@@ -3,9 +3,9 @@ import { captureResolution } from "./resolve-capture.mjs";
|
|
|
3
3
|
import { getVersion } from "./version-registry.mjs";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
6
|
-
import {
|
|
6
|
+
import { getTsconfig, resolvePathAlias } from "get-tsconfig";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../@warlock.js/core/src/dev-server/loader/resolve-hook.ts
|
|
9
9
|
/**
|
|
10
10
|
* The `file://` URL prefix for the project's `src/` root, set once during
|
|
11
11
|
* `initialize()`. Used to identify which resolved URLs belong to user code.
|
|
@@ -27,7 +27,7 @@ function getPathsMatcher() {
|
|
|
27
27
|
if (pathsMatcherBuilt) return pathsMatcher;
|
|
28
28
|
pathsMatcherBuilt = true;
|
|
29
29
|
const tsconfig = getTsconfig(process.cwd());
|
|
30
|
-
pathsMatcher = tsconfig ?
|
|
30
|
+
pathsMatcher = tsconfig ? (specifier) => resolvePathAlias(tsconfig, specifier) : null;
|
|
31
31
|
return pathsMatcher;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-hook.mjs","names":[],"sources":["../../../../../../../@warlock.js/core/src/dev-server/loader/resolve-hook.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"resolve-hook.mjs","names":[],"sources":["../../../../../../../@warlock.js/core/src/dev-server/loader/resolve-hook.ts"],"sourcesContent":["import { getTsconfig, resolvePathAlias } from \"get-tsconfig\";\nimport { existsSync } from \"node:fs\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\nimport { ownResolve, type PathsMatcher } from \"./own-resolver.js\";\nimport { captureResolution } from \"./resolve-capture.js\";\nimport { getVersion } from \"./version-registry.js\";\n\n/**\n * The `file://` URL prefix for the project's `src/` root, set once during\n * `initialize()`. Used to identify which resolved URLs belong to user code.\n */\nlet srcRootUrl = \"\";\n\n/**\n * Configure the source root used by the resolve hook.\n * Must be called from `initialize()` before any imports are resolved.\n *\n * @param srcRoot - Absolute filesystem path to the project `src/` directory.\n */\nexport function setSrcRoot(srcRoot: string): void {\n srcRootUrl = pathToFileURL(srcRoot).href + \"/\";\n}\n\n/** Lazily-built tsconfig `paths` matcher (worker has no startup hook). */\nlet pathsMatcher: PathsMatcher | null = null;\nlet pathsMatcherBuilt = false;\n\nfunction getPathsMatcher(): PathsMatcher | null {\n if (pathsMatcherBuilt) return pathsMatcher;\n pathsMatcherBuilt = true;\n const tsconfig = getTsconfig(process.cwd());\n // get-tsconfig v5 renamed the curried `createPathsMatcher(t)(spec)` to a direct\n // `resolvePathAlias(t, spec)`. Wrap it to keep the PathsMatcher closure shape.\n pathsMatcher = tsconfig ? (specifier: string) => resolvePathAlias(tsconfig, specifier) : null;\n return pathsMatcher;\n}\n\ntype ResolveContext = {\n parentURL?: string;\n conditions?: string[];\n importAttributes?: Record<string, string>;\n};\n\ntype ResolveResult = {\n url: string;\n format?: string;\n shortCircuit?: boolean;\n};\n\ntype NextResolve = (specifier: string, context?: ResolveContext) => Promise<ResolveResult>;\n\n/**\n * ESM loader `resolve()` hook.\n *\n * The framework's own resolver (`ownResolve`) handles tsconfig `paths`,\n * aliases, and TS extension/`index` probing. Specifiers it doesn't own\n * (bare npm, `node:`, `file:`) fall through to `nextResolve` (Node\n * default). After resolution, stamps a `?v=<N>` version token onto any\n * `.ts` / `.tsx` file that lives under the configured `src/` root.\n *\n * The version token is the cache-bust mechanism: when a file changes the main\n * thread bumps its counter, the next `import()` produces a new URL, Node sees\n * a cache miss, and loads fresh content — native ESM cycles are preserved\n * because static imports remain static throughout.\n *\n * **parentURL cleaning**: the resolved URL carries `?v=N` as a suffix. If a\n * module loaded this way statically imports a relative sibling, Node uses that\n * `?v=N` URL as the `parentURL` for the next `resolve()` call. Passing it\n * unmodified to `nextResolve()` causes tsx to produce paths like\n * `some-sibling.ts?v=0` (the query leaks into URL joining). We strip `?v=N`\n * from `parentURL` before forwarding to prevent this.\n *\n * @example\n * // First import of user.model.ts → ?v=0\n * // File watcher bumps → next import → ?v=1 → fresh module\n */\nexport async function resolve(\n specifier: string,\n context: ResolveContext,\n nextResolve: NextResolve,\n): Promise<ResolveResult> {\n const cleanContext =\n context.parentURL?.includes(\"?v=\")\n ? { ...context, parentURL: context.parentURL.replace(/\\?v=\\d+$/, \"\") }\n : context;\n\n // The framework's own resolver owns tsconfig `paths` + TS\n // extension/index probing. Anything it returns `null` for (bare npm,\n // `node:`, `file:`) falls through to Node default via `nextResolve`.\n const owned = ownResolve(\n specifier,\n cleanContext.parentURL,\n getPathsMatcher(),\n existsSync,\n );\n // When we produced the URL ourselves we did NOT call nextResolve, so the\n // result must short-circuit the loader chain or Node throws\n // ERR_LOADER_CHAIN_INCOMPLETE (e.g. for @warlock.js/* .ts that resolve\n // outside the project src root and hit the early return below).\n const result: ResolveResult = owned\n ? { url: owned, shortCircuit: true }\n : await nextResolve(specifier, cleanContext);\n\n const { url } = result;\n\n // Ground-truth recorder (no-op unless WARLOCK_RESOLVE_CAPTURE is set):\n // logs the answer for this (specifier, parentURL) so the Phase B\n // resolver can be proven to reproduce tsx exactly.\n captureResolution({\n specifier,\n parentURL: cleanContext.parentURL,\n url,\n format: result.format,\n });\n\n const cleanUrl = url.replace(/\\?v=\\d+$/, \"\");\n\n if (\n !cleanUrl.startsWith(srcRootUrl) ||\n (!cleanUrl.endsWith(\".ts\") && !cleanUrl.endsWith(\".tsx\"))\n ) {\n return result;\n }\n\n const absolutePath = fileURLToPath(cleanUrl);\n const version = getVersion(absolutePath);\n\n // Spread the full result from nextResolve (preserves `format` and any other\n // fields tsx sets) and only override `url`. Dropping `format` would cause\n // tsx's load hook to see an undefined format and fall through to Node's\n // default loader, which rejects unknown extensions like .tsx.\n return { ...result, url: `${cleanUrl}?v=${version}`, shortCircuit: true };\n}\n"],"mappings":";;;;;;;;;;;;AAWA,IAAI,aAAa;;;;;;;AAQjB,SAAgB,WAAW,SAAuB;CAChD,aAAa,cAAc,OAAO,EAAE,OAAO;AAC7C;;AAGA,IAAI,eAAoC;AACxC,IAAI,oBAAoB;AAExB,SAAS,kBAAuC;CAC9C,IAAI,mBAAmB,OAAO;CAC9B,oBAAoB;CACpB,MAAM,WAAW,YAAY,QAAQ,IAAI,CAAC;CAG1C,eAAe,YAAY,cAAsB,iBAAiB,UAAU,SAAS,IAAI;CACzF,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,eAAsB,QACpB,WACA,SACA,aACwB;CACxB,MAAM,eACJ,QAAQ,WAAW,SAAS,KAAK,IAC7B;EAAE,GAAG;EAAS,WAAW,QAAQ,UAAU,QAAQ,YAAY,EAAE;CAAE,IACnE;CAKN,MAAM,QAAQ,WACZ,WACA,aAAa,WACb,gBAAgB,GAChB,UACF;CAKA,MAAM,SAAwB,QAC1B;EAAE,KAAK;EAAO,cAAc;CAAK,IACjC,MAAM,YAAY,WAAW,YAAY;CAE7C,MAAM,EAAE,QAAQ;CAKhB,kBAAkB;EAChB;EACA,WAAW,aAAa;EACxB;EACA,QAAQ,OAAO;CACjB,CAAC;CAED,MAAM,WAAW,IAAI,QAAQ,YAAY,EAAE;CAE3C,IACE,CAAC,SAAS,WAAW,UAAU,KAC9B,CAAC,SAAS,SAAS,KAAK,KAAK,CAAC,SAAS,SAAS,MAAM,GAEvD,OAAO;CAIT,MAAM,UAAU,WADK,cAAc,QACG,CAAC;CAMvC,OAAO;EAAE,GAAG;EAAQ,KAAK,GAAG,SAAS,KAAK;EAAW,cAAc;CAAK;AAC1E"}
|
|
@@ -2,7 +2,7 @@ import { createHash } from "node:crypto";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/dev-server/loader/transpile-cache.ts
|
|
6
6
|
/**
|
|
7
7
|
* Persisted transpile cache.
|
|
8
8
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileManifest } from "./types.mjs";
|
|
2
2
|
import { FileManager } from "./file-manager.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/dev-server/manifest-manager.d.ts
|
|
5
5
|
declare class ManifestManager {
|
|
6
6
|
private readonly files;
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MANIFEST_PATH } from "./flags.mjs";
|
|
2
2
|
import { fileExistsAsync, getJsonFileAsync, putFileAsync } from "@warlock.js/fs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/dev-server/manifest-manager.ts
|
|
5
5
|
var ManifestManager = class {
|
|
6
6
|
/**
|
|
7
7
|
* Constructor
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SpecialFilesCollector } from "./special-files-collector.mjs";
|
|
2
2
|
import { FileManager } from "./file-manager.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/dev-server/module-loader.d.ts
|
|
5
5
|
declare global {
|
|
6
6
|
var __currentModuleFile: FileManager | undefined;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@ import { router } from "../router/router.mjs";
|
|
|
2
2
|
import { devLogError, formatModuleNotFoundError } from "./dev-logger.mjs";
|
|
3
3
|
import { pathToFileURL } from "node:url";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/dev-server/module-loader.ts
|
|
6
6
|
/**
|
|
7
7
|
* The four "special" file kinds that the dev server eagerly imports at boot.
|
|
8
8
|
* Order matters: locales first (used by everything), events before main so
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Path } from "./path.mjs";
|
|
2
2
|
import { getJsonFileAsync } from "@warlock.js/fs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/dev-server/package-json-manager.ts
|
|
5
5
|
var PackageJsonManager = class {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.packageJson = {};
|
|
@@ -4,7 +4,7 @@ import { directoryExistsAsync, fileExistsAsync } from "@warlock.js/fs";
|
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { parse } from "es-module-lexer";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/core/src/dev-server/parse-imports.ts
|
|
8
8
|
/**
|
|
9
9
|
* Detect if a file contains only type definitions (no runtime code)
|
|
10
10
|
*
|
package/esm/dev-server/path.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileManager } from "./file-manager.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/dev-server/special-files-collector.d.ts
|
|
4
4
|
type SpecialFileType = "config" | "main" | "route" | "event" | "locale";
|
|
5
5
|
/**
|
|
6
6
|
* Categorises files into the kinds the dev server treats specially
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../@warlock.js/core/src/dev-server/special-files-collector.ts
|
|
2
2
|
/**
|
|
3
3
|
* Categorises files into the kinds the dev server treats specially
|
|
4
4
|
* (config / main / route / event / locale) and exposes typed accessors.
|
|
@@ -2,7 +2,7 @@ import { devLogError, devServeLog } from "./dev-logger.mjs";
|
|
|
2
2
|
import { DevelopmentServer } from "./development-server.mjs";
|
|
3
3
|
import { colors } from "@mongez/copper";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/dev-server/start-development-server.ts
|
|
6
6
|
let handlersRegistered = false;
|
|
7
7
|
/**
|
|
8
8
|
* Start the development server.
|
|
@@ -2,7 +2,7 @@ import { Path } from "./path.mjs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/dev-server/tsconfig-manager.ts
|
|
6
6
|
var TSConfigManager = class {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.aliases = {};
|
|
@@ -11,7 +11,7 @@ import { access, readFile, writeFile } from "fs/promises";
|
|
|
11
11
|
import ts from "typescript";
|
|
12
12
|
import { spawn } from "child_process";
|
|
13
13
|
|
|
14
|
-
//#region
|
|
14
|
+
//#region ../@warlock.js/core/src/dev-server/type-generator.ts
|
|
15
15
|
/**
|
|
16
16
|
* TypeGenerator - Generates TypeScript type definitions from config files
|
|
17
17
|
*
|
package/esm/dev-server/utils.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { Path } from "./path.mjs";
|
|
|
4
4
|
import { ensureDirectoryAsync } from "@warlock.js/fs";
|
|
5
5
|
import glob from "fast-glob";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/core/src/dev-server/utils.ts
|
|
8
8
|
/**
|
|
9
9
|
* Ensure the .warlock/ directory exists. Used by the loader-hook
|
|
10
10
|
* registration which writes its bundled hook file into this directory.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../@warlock.js/core/src/encryption/encrypt.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Encrypts a plaintext string using AES-256-GCM (or the configured algorithm).
|
|
4
4
|
* Returns a combined string in the format `iv:ciphertext:authTag`.
|
|
@@ -2,7 +2,7 @@ import { config } from "../config/config-getter.mjs";
|
|
|
2
2
|
import "../config/index.mjs";
|
|
3
3
|
import crypto from "crypto";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/encryption/encrypt.ts
|
|
6
6
|
/**
|
|
7
7
|
* Default encryption algorithm.
|
|
8
8
|
*/
|
package/esm/encryption/hash.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { config } from "../config/config-getter.mjs";
|
|
|
2
2
|
import "../config/index.mjs";
|
|
3
3
|
import crypto from "crypto";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/encryption/hash.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates a deterministic HMAC-SHA256 hash of the given string.
|
|
8
8
|
*
|
|
@@ -6,7 +6,7 @@ import { colors } from "@mongez/copper";
|
|
|
6
6
|
import { ensureDirectoryAsync, fileExistsAsync, getJsonFileAsync, putFileAsync, putJsonFileAsync } from "@warlock.js/fs";
|
|
7
7
|
import { execSync } from "node:child_process";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../@warlock.js/core/src/generations/add-command.action.ts
|
|
10
10
|
async function completeTestInstallation(options) {
|
|
11
11
|
const testGlobalSetupPath = srcPath("test-global-setup.ts");
|
|
12
12
|
if (!await fileExistsAsync(testGlobalSetupPath)) {
|
package/esm/http/config.d.mts
CHANGED
package/esm/http/config.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Response } from "../response.mjs";
|
|
|
3
3
|
import { Model } from "@warlock.js/cascade";
|
|
4
4
|
import { Context } from "@warlock.js/context";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/http/context/request-context.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Request Context Store
|
|
9
9
|
*/
|