@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
|
@@ -5,7 +5,7 @@ import { getCertainFilesFromDirectory, getFilesFromDirectory } from "../dev-serv
|
|
|
5
5
|
import { filesOrchestrator } from "../dev-server/files-orchestrator.mjs";
|
|
6
6
|
import { configManager } from "./config-manager.mjs";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../@warlock.js/core/src/config/load-config-files.ts
|
|
9
9
|
/**
|
|
10
10
|
* Load config files
|
|
11
11
|
* either config file names (without extensions) or true to load all config files
|
package/esm/config/types.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Connector, ConnectorLifecyclePhase, ConnectorName } from "./types.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/connectors/base-connector.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Base Connector Class
|
|
6
6
|
* Provides common functionality for all connectors
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Path } from "../dev-server/path.mjs";
|
|
2
2
|
import { ConnectorLifecyclePhase } from "./types.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/connectors/base-connector.ts
|
|
5
5
|
/**
|
|
6
6
|
* Base Connector Class
|
|
7
7
|
* Provides common functionality for all connectors
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConnectorLifecyclePhase, ConnectorPriority } from "./types.mjs";
|
|
2
2
|
import { BaseConnector } from "./base-connector.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/connectors/cache-connector.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Cache Connector
|
|
7
7
|
* Manages cache engine connection lifecycle
|
|
@@ -3,7 +3,7 @@ import { BaseConnector } from "./base-connector.mjs";
|
|
|
3
3
|
import baseConfig from "@mongez/config";
|
|
4
4
|
import { cache } from "@warlock.js/cache";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/connectors/cache-connector.ts
|
|
7
7
|
/**
|
|
8
8
|
* Cache Connector
|
|
9
9
|
* Manages cache engine connection lifecycle
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Connector, ConnectorLifecyclePhase, ConnectorName } from "./types.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/connectors/connectors-manager.d.ts
|
|
4
4
|
declare class ConnectorsManager {
|
|
5
5
|
/**
|
|
6
6
|
* Connectors list
|
|
@@ -9,7 +9,7 @@ import { SocketConnector } from "./socket-connector.mjs";
|
|
|
9
9
|
import { StorageConnector } from "./storage.connector.mjs";
|
|
10
10
|
import { colors } from "@mongez/copper";
|
|
11
11
|
|
|
12
|
-
//#region
|
|
12
|
+
//#region ../@warlock.js/core/src/connectors/connectors-manager.ts
|
|
13
13
|
var ConnectorsManager = class {
|
|
14
14
|
/**
|
|
15
15
|
* Constructor
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConnectorLifecyclePhase, ConnectorPriority } from "./types.mjs";
|
|
2
2
|
import { BaseConnector } from "./base-connector.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/connectors/database-connector.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Database Connector
|
|
7
7
|
* Manages database connection lifecycle using @warlock.js/cascade
|
|
@@ -4,7 +4,7 @@ import { BaseConnector } from "./base-connector.mjs";
|
|
|
4
4
|
import baseConfig from "@mongez/config";
|
|
5
5
|
import { connectToDatabase, dataSourceRegistry } from "@warlock.js/cascade";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/core/src/connectors/database-connector.ts
|
|
8
8
|
/**
|
|
9
9
|
* Database Connector
|
|
10
10
|
* Manages database connection lifecycle using @warlock.js/cascade
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConnectorLifecyclePhase, ConnectorPriority } from "./types.mjs";
|
|
2
2
|
import { BaseConnector } from "./base-connector.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/connectors/herald-connector.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Herald Connector
|
|
7
7
|
* Manages message broker connection lifecycle using @warlock.js/herald
|
|
@@ -3,7 +3,7 @@ import { BaseConnector } from "./base-connector.mjs";
|
|
|
3
3
|
import baseConfig from "@mongez/config";
|
|
4
4
|
import { log } from "@warlock.js/logger";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/connectors/herald-connector.ts
|
|
7
7
|
/**
|
|
8
8
|
* Herald Connector
|
|
9
9
|
* Manages message broker connection lifecycle using @warlock.js/herald
|
|
@@ -2,7 +2,7 @@ import { FastifyInstance } from "../http/server.mjs";
|
|
|
2
2
|
import { ConnectorLifecyclePhase, ConnectorPriority } from "./types.mjs";
|
|
3
3
|
import { BaseConnector } from "./base-connector.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/connectors/http-connector.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* HTTP Connector
|
|
8
8
|
* Manages HTTP server (Fastify) lifecycle
|
|
@@ -12,7 +12,7 @@ import baseConfig from "@mongez/config";
|
|
|
12
12
|
import { log } from "@warlock.js/logger";
|
|
13
13
|
import { colors } from "@mongez/copper";
|
|
14
14
|
|
|
15
|
-
//#region
|
|
15
|
+
//#region ../@warlock.js/core/src/connectors/http-connector.ts
|
|
16
16
|
function environmentColor(environment) {
|
|
17
17
|
switch (environment) {
|
|
18
18
|
case "development": return colors.magentaBright(environment);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConnectorLifecyclePhase, ConnectorPriority } from "./types.mjs";
|
|
2
2
|
import { BaseConnector } from "./base-connector.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/connectors/logger-connector.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Logger Connector
|
|
7
7
|
* Manages logger lifecycle and ensures synchronous flushing on termination
|
|
@@ -5,7 +5,7 @@ import "../logger/index.mjs";
|
|
|
5
5
|
import baseConfig from "@mongez/config";
|
|
6
6
|
import { log } from "@warlock.js/logger";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../@warlock.js/core/src/connectors/logger-connector.ts
|
|
9
9
|
/**
|
|
10
10
|
* Logger Connector
|
|
11
11
|
* Manages logger lifecycle and ensures synchronous flushing on termination
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConnectorLifecyclePhase, ConnectorPriority } from "./types.mjs";
|
|
2
2
|
import { BaseConnector } from "./base-connector.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/connectors/mail-connector.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Mailer Connector
|
|
7
7
|
* Manages mailer lifecycle and ensures graceful pool shutdown
|
|
@@ -5,7 +5,7 @@ import { closeAllMailers } from "../mail/mailer-pool.mjs";
|
|
|
5
5
|
import "../mail/index.mjs";
|
|
6
6
|
import baseConfig from "@mongez/config";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../@warlock.js/core/src/connectors/mail-connector.ts
|
|
9
9
|
/**
|
|
10
10
|
* Mailer Connector
|
|
11
11
|
* Manages mailer lifecycle and ensures graceful pool shutdown
|
|
@@ -2,7 +2,7 @@ import { ConnectorLifecyclePhase, ConnectorName, ConnectorPriority } from "./typ
|
|
|
2
2
|
import { BaseConnector } from "./base-connector.mjs";
|
|
3
3
|
import { Server } from "socket.io";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/connectors/socket-connector.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Socket Connector
|
|
8
8
|
* Manages Socket server (Socket.IO) lifecycle
|
|
@@ -6,7 +6,7 @@ import { log } from "@warlock.js/logger";
|
|
|
6
6
|
import { createServer } from "http";
|
|
7
7
|
import { createServer as createServer$1 } from "https";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../@warlock.js/core/src/connectors/socket-connector.ts
|
|
10
10
|
/**
|
|
11
11
|
* Shown when a project enables sockets (a `socket` config is present) but the
|
|
12
12
|
* optional `socket.io` peer is not installed.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConnectorLifecyclePhase, ConnectorPriority } from "./types.mjs";
|
|
2
2
|
import { BaseConnector } from "./base-connector.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/connectors/storage.connector.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Cache Connector
|
|
7
7
|
* Manages cache engine connection lifecycle
|
|
@@ -4,7 +4,7 @@ import "../storage/index.mjs";
|
|
|
4
4
|
import { ConnectorLifecyclePhase, ConnectorPriority } from "./types.mjs";
|
|
5
5
|
import { BaseConnector } from "./base-connector.mjs";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/core/src/connectors/storage.connector.ts
|
|
8
8
|
/**
|
|
9
9
|
* Cache Connector
|
|
10
10
|
* Manages cache engine connection lifecycle
|
package/esm/connectors/types.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { DataSource } from "@warlock.js/cascade";
|
|
|
3
3
|
import { FastifyInstance } from "fastify";
|
|
4
4
|
import { Server } from "socket.io";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/container/index.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Known container types for better IDE support
|
|
9
9
|
*/
|
package/esm/container/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { createDatabase } from "@warlock.js/cascade";
|
|
|
4
4
|
import { log } from "@warlock.js/logger";
|
|
5
5
|
import { colors } from "@mongez/copper";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/core/src/database/create-database-action.ts
|
|
8
8
|
async function createDatabaseAction(command) {
|
|
9
9
|
const name = command.args[0];
|
|
10
10
|
const { connection = "default" } = command.options;
|
|
@@ -3,7 +3,7 @@ import { dataSourceRegistry, dropAllTables } from "@warlock.js/cascade";
|
|
|
3
3
|
import { log } from "@warlock.js/logger";
|
|
4
4
|
import { colors } from "@mongez/copper";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/database/drop-tables-action.ts
|
|
7
7
|
async function dropTablesAction(command) {
|
|
8
8
|
const { force } = command.options;
|
|
9
9
|
if (force) {
|
|
@@ -9,7 +9,7 @@ import path from "path";
|
|
|
9
9
|
import { colors } from "@mongez/copper";
|
|
10
10
|
import dayjs from "dayjs";
|
|
11
11
|
|
|
12
|
-
//#region
|
|
12
|
+
//#region ../@warlock.js/core/src/database/migrate-action.ts
|
|
13
13
|
async function listMigrationsAction() {
|
|
14
14
|
const createdMigrations = await listExecutedMigrations();
|
|
15
15
|
console.log(`\nTotal Executed Migrations: ${colors.green(createdMigrations.length)}\n`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Infer } from "@warlock.js/seal";
|
|
2
2
|
import { Model } from "@warlock.js/cascade";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/database/models/database-log/database-log.d.ts
|
|
5
5
|
declare const schema: any;
|
|
6
6
|
type LogSchema = Infer.Output<typeof schema>;
|
|
7
7
|
declare class DatabaseLogModel extends Model<LogSchema> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v } from "@warlock.js/seal";
|
|
2
2
|
import { Model } from "@warlock.js/cascade";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/database/models/database-log/database-log.ts
|
|
5
5
|
const schema = v.object({
|
|
6
6
|
module: v.string(),
|
|
7
7
|
action: v.string(),
|
|
@@ -7,7 +7,7 @@ import { SeedersManager } from "./seeds/seeders.manager.mjs";
|
|
|
7
7
|
import { dataSourceRegistry } from "@warlock.js/cascade";
|
|
8
8
|
import { colors } from "@mongez/copper";
|
|
9
9
|
|
|
10
|
-
//#region
|
|
10
|
+
//#region ../@warlock.js/core/src/database/seed-command-action.ts
|
|
11
11
|
async function clearAllTables(datasource) {
|
|
12
12
|
const tables = await datasource.driver.blueprint.listTables();
|
|
13
13
|
for (const table of tables) await datasource.driver.truncateTable(table, { cascade: true });
|
|
@@ -3,7 +3,7 @@ import { SeedsTableMigration } from "./seeds-table-migration.mjs";
|
|
|
3
3
|
import { DatabaseWriterValidationError, dataSourceRegistry, migrationRunner, transaction } from "@warlock.js/cascade";
|
|
4
4
|
import { colors } from "@mongez/copper";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/database/seeds/seeders.manager.ts
|
|
7
7
|
var SeedersManager = class {
|
|
8
8
|
constructor(options) {
|
|
9
9
|
this.options = options;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { seedsTableName } from "./utils.mjs";
|
|
2
2
|
import { Migration } from "@warlock.js/cascade";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/database/seeds/seeds-table-migration.ts
|
|
5
5
|
var SeedsTableMigration = class extends Migration {
|
|
6
6
|
constructor(..._args) {
|
|
7
7
|
super(..._args);
|
package/esm/database/utils.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SchemaContext } from "@warlock.js/seal";
|
|
2
2
|
import { Model } from "@warlock.js/cascade";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/database/utils.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Hash password on saving if password changes
|
|
7
7
|
*/
|
package/esm/database/utils.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { slugify } from "@mongez/slug";
|
|
|
3
3
|
import { get } from "@mongez/reinforcements";
|
|
4
4
|
import { authService } from "@warlock.js/auth";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/database/utils.ts
|
|
7
7
|
/**
|
|
8
8
|
* Hash password on saving if password changes
|
|
9
9
|
*/
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import path from "node:path";
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import { Worker } from "worker_threads";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/dev-server/create-worker.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a worker that works in both dev (TypeScript) and production (JavaScript) environments.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* The worker shares the CALLING module's extension: `.ts` when core runs from
|
|
10
|
+
* source (loaded via tsx), `.mjs` when core is published. Source workers are
|
|
11
|
+
* run through the tsx loader; published `.mjs` workers run as-is.
|
|
11
12
|
*
|
|
12
13
|
* @param workerPath - Relative path to worker file WITHOUT extension (e.g., "./workers/ts-health.worker")
|
|
13
14
|
* @param baseUrl - The import.meta.url of the calling module (used to resolve relative paths)
|
|
@@ -25,10 +26,11 @@ import { Worker } from "worker_threads";
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
function createWorker(workerPath, baseUrl, options) {
|
|
28
|
-
const
|
|
29
|
-
const
|
|
29
|
+
const callerExtension = path.extname(fileURLToPath(baseUrl));
|
|
30
|
+
const isSource = callerExtension === ".ts" || callerExtension === ".tsx";
|
|
31
|
+
const workerFilePath = fileURLToPath(new URL(`${workerPath}${callerExtension}`, baseUrl));
|
|
30
32
|
const workerOptions = { ...options };
|
|
31
|
-
if (
|
|
33
|
+
if (isSource) workerOptions.execArgv = [
|
|
32
34
|
...options?.execArgv || [],
|
|
33
35
|
"--import",
|
|
34
36
|
"tsx/esm"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-worker.mjs","names":[],"sources":["../../../../../../@warlock.js/core/src/dev-server/create-worker.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"create-worker.mjs","names":[],"sources":["../../../../../../@warlock.js/core/src/dev-server/create-worker.ts"],"sourcesContent":["import path from \"node:path\";\nimport { fileURLToPath } from \"url\";\nimport { Worker, type WorkerOptions } from \"worker_threads\";\n\n/**\n * Options for creating a health check worker\n */\nexport type CreateWorkerOptions = WorkerOptions & {\n /**\n * Worker data to pass to the worker thread\n */\n workerData?: Record<string, unknown>;\n};\n\n/**\n * Create a worker that works in both dev (TypeScript) and production (JavaScript) environments.\n *\n * The worker shares the CALLING module's extension: `.ts` when core runs from\n * source (loaded via tsx), `.mjs` when core is published. Source workers are\n * run through the tsx loader; published `.mjs` workers run as-is.\n *\n * @param workerPath - Relative path to worker file WITHOUT extension (e.g., \"./workers/ts-health.worker\")\n * @param baseUrl - The import.meta.url of the calling module (used to resolve relative paths)\n * @param options - Additional worker options\n * @returns A new Worker instance\n *\n * @example\n * ```typescript\n * // In FilesHealthcareManager\n * const worker = createWorker(\n * \"./workers/ts-health.worker\",\n * import.meta.url,\n * { workerData: { cwd: process.cwd() } }\n * );\n * ```\n */\nexport function createWorker(\n workerPath: string,\n baseUrl: string,\n options?: CreateWorkerOptions,\n): Worker {\n // The worker shares the CALLING module's extension: `.ts` from source (needs the\n // tsx loader to execute), `.mjs` when core is published.\n const callerExtension = path.extname(fileURLToPath(baseUrl));\n const isSource = callerExtension === \".ts\" || callerExtension === \".tsx\";\n const workerUrl = new URL(`${workerPath}${callerExtension}`, baseUrl);\n const workerFilePath = fileURLToPath(workerUrl);\n\n const workerOptions: WorkerOptions = {\n ...options,\n };\n\n // Source workers are TypeScript — run them through the tsx loader.\n if (isSource) {\n workerOptions.execArgv = [...(options?.execArgv || []), \"--import\", \"tsx/esm\"];\n }\n\n return new Worker(workerFilePath, workerOptions);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAgB,aACd,YACA,SACA,SACQ;CAGR,MAAM,kBAAkB,KAAK,QAAQ,cAAc,OAAO,CAAC;CAC3D,MAAM,WAAW,oBAAoB,SAAS,oBAAoB;CAElE,MAAM,iBAAiB,cAAc,IADf,IAAI,GAAG,aAAa,mBAAmB,OAChB,CAAC;CAE9C,MAAM,gBAA+B,EACnC,GAAG,QACL;CAGA,IAAI,UACF,cAAc,WAAW;EAAC,GAAI,SAAS,YAAY,CAAC;EAAI;EAAY;CAAS;CAG/E,OAAO,IAAI,OAAO,gBAAgB,aAAa;AACjD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileManager } from "./file-manager.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/core/src/dev-server/dependency-graph.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Dependency Graph
|
|
6
6
|
* Tracks bidirectional relationships between files:
|
|
@@ -2,7 +2,7 @@ import { Path } from "./path.mjs";
|
|
|
2
2
|
import { colors } from "@mongez/copper";
|
|
3
3
|
import dayjs from "dayjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/core/src/dev-server/dev-logger.ts
|
|
6
6
|
/**
|
|
7
7
|
* Dev server logger — Vite-style formatting helpers.
|
|
8
8
|
*/
|
|
@@ -11,7 +11,7 @@ import { colors } from "@mongez/copper";
|
|
|
11
11
|
import events from "@mongez/events";
|
|
12
12
|
import { fileExistsAsync, getFileAsync, unlinkAsync } from "@warlock.js/fs";
|
|
13
13
|
|
|
14
|
-
//#region
|
|
14
|
+
//#region ../@warlock.js/core/src/dev-server/development-server.ts
|
|
15
15
|
/**
|
|
16
16
|
* Top-level coordinator for `warlock dev`. Wires the file orchestrator, the
|
|
17
17
|
* connectors, and the layer executor together, and listens for the watcher's
|
|
@@ -5,7 +5,7 @@ import { clearFileExistsCache } from "./parse-imports.mjs";
|
|
|
5
5
|
import { debounce } from "@mongez/reinforcements";
|
|
6
6
|
import events from "@mongez/events";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../@warlock.js/core/src/dev-server/file-event-handler.ts
|
|
9
9
|
/**
|
|
10
10
|
* Receives raw watcher events and processes them in a single debounced batch.
|
|
11
11
|
* Order within a batch: adds → changes → deletes, so changes can reference
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileManifest, FileState, FileType } from "./types.mjs";
|
|
2
2
|
import { FileOperations } from "./file-operations.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/dev-server/file-manager.d.ts
|
|
5
5
|
type CleanupFunction = () => void;
|
|
6
6
|
/**
|
|
7
7
|
* FileManager — per-file metadata for the dependency graph.
|
|
@@ -5,7 +5,7 @@ import events from "@mongez/events";
|
|
|
5
5
|
import { getFileAsync, lastModifiedAsync } from "@warlock.js/fs";
|
|
6
6
|
import crypto from "crypto";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../@warlock.js/core/src/dev-server/file-manager.ts
|
|
9
9
|
/**
|
|
10
10
|
* FileManager — per-file metadata for the dependency graph.
|
|
11
11
|
*
|
|
@@ -3,7 +3,7 @@ import { ManifestManager } from "./manifest-manager.mjs";
|
|
|
3
3
|
import { SpecialFilesCollector } from "./special-files-collector.mjs";
|
|
4
4
|
import { FileManager } from "./file-manager.mjs";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/core/src/dev-server/file-operations.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* FileOperations — add/update/delete lifecycle for a single file.
|
|
9
9
|
*
|
|
@@ -5,7 +5,7 @@ import { FileManager } from "./file-manager.mjs";
|
|
|
5
5
|
import { areSetsEqual } from "./utils.mjs";
|
|
6
6
|
import events from "@mongez/events";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../@warlock.js/core/src/dev-server/file-operations.ts
|
|
9
9
|
/**
|
|
10
10
|
* FileOperations — add/update/delete lifecycle for a single file.
|
|
11
11
|
*
|
|
@@ -7,7 +7,7 @@ import { FileHealthCheckerContract } from "./health-checker/file-health-checker.
|
|
|
7
7
|
import { FilesHealthcareManager } from "./health-checker/files-healthcare.manager.mjs";
|
|
8
8
|
import { ModuleLoader } from "./module-loader.mjs";
|
|
9
9
|
|
|
10
|
-
//#region
|
|
10
|
+
//#region ../@warlock.js/core/src/dev-server/files-orchestrator.d.ts
|
|
11
11
|
/**
|
|
12
12
|
* Register a cleanup callback that fires before the current module is
|
|
13
13
|
* unloaded by HMR. Stack-inspects the caller so user code doesn't need to
|
|
@@ -21,7 +21,7 @@ import { SpecialFilesCollector } from "./special-files-collector.mjs";
|
|
|
21
21
|
import { colors } from "@mongez/copper";
|
|
22
22
|
import { init } from "es-module-lexer";
|
|
23
23
|
|
|
24
|
-
//#region
|
|
24
|
+
//#region ../@warlock.js/core/src/dev-server/files-orchestrator.ts
|
|
25
25
|
/**
|
|
26
26
|
* Register a cleanup callback that fires before the current module is
|
|
27
27
|
* unloaded by HMR. Stack-inspects the caller so user code doesn't need to
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../@warlock.js/core/src/dev-server/files-watcher.d.ts
|
|
2
2
|
type FileWatcherEvent = "change" | "delete" | "add" | "error" | "addDir" | "unlinkDir";
|
|
3
3
|
type FileChangeCallback = (filePath: string) => void;
|
|
4
4
|
type FileDeleteCallback = (filePath: string) => void;
|
|
@@ -6,7 +6,7 @@ import { Random } from "@mongez/reinforcements";
|
|
|
6
6
|
import events from "@mongez/events";
|
|
7
7
|
import chokidar from "chokidar";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../@warlock.js/core/src/dev-server/files-watcher.ts
|
|
10
10
|
/**
|
|
11
11
|
* Default patterns to exclude from watching
|
|
12
12
|
*/
|
package/esm/dev-server/flags.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { warlockPath } from "../utils/paths.mjs";
|
|
2
2
|
import "../utils/index.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/core/src/dev-server/flags.ts
|
|
5
5
|
const MANIFEST_PATH = warlockPath("manifest.json");
|
|
6
6
|
|
|
7
7
|
//#endregion
|