@warlock.js/core 4.0.157 → 4.0.159
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/package.json +7 -7
- package/esm/application/application-config-types.d.ts +0 -27
- package/esm/application/application-config-types.d.ts.map +0 -1
- package/esm/application/application.d.ts +0 -68
- package/esm/application/application.d.ts.map +0 -1
- package/esm/application/application.js +0 -94
- package/esm/application/application.js.map +0 -1
- package/esm/application/index.d.ts +0 -3
- package/esm/application/index.d.ts.map +0 -1
- package/esm/benchmark/benchmark-snapshots.d.ts +0 -47
- package/esm/benchmark/benchmark-snapshots.d.ts.map +0 -1
- package/esm/benchmark/benchmark-snapshots.js +0 -77
- package/esm/benchmark/benchmark-snapshots.js.map +0 -1
- package/esm/benchmark/benchmark.d.ts +0 -25
- package/esm/benchmark/benchmark.d.ts.map +0 -1
- package/esm/benchmark/benchmark.example.d.ts +0 -2
- package/esm/benchmark/benchmark.example.d.ts.map +0 -1
- package/esm/benchmark/benchmark.js +0 -120
- package/esm/benchmark/benchmark.js.map +0 -1
- package/esm/benchmark/channels/console.channel.d.ts +0 -14
- package/esm/benchmark/channels/console.channel.d.ts.map +0 -1
- package/esm/benchmark/channels/console.channel.js +0 -29
- package/esm/benchmark/channels/console.channel.js.map +0 -1
- package/esm/benchmark/channels/index.d.ts +0 -3
- package/esm/benchmark/channels/index.d.ts.map +0 -1
- package/esm/benchmark/channels/noop.channel.d.ts +0 -5
- package/esm/benchmark/channels/noop.channel.d.ts.map +0 -1
- package/esm/benchmark/channels/noop.channel.js +0 -3
- package/esm/benchmark/channels/noop.channel.js.map +0 -1
- package/esm/benchmark/index.d.ts +0 -7
- package/esm/benchmark/index.d.ts.map +0 -1
- package/esm/benchmark/profiler.d.ts +0 -63
- package/esm/benchmark/profiler.d.ts.map +0 -1
- package/esm/benchmark/profiler.js +0 -155
- package/esm/benchmark/profiler.js.map +0 -1
- package/esm/benchmark/types.d.ts +0 -167
- package/esm/benchmark/types.d.ts.map +0 -1
- package/esm/bootstrap/setup.d.ts +0 -2
- package/esm/bootstrap/setup.d.ts.map +0 -1
- package/esm/bootstrap/setup.js +0 -14
- package/esm/bootstrap/setup.js.map +0 -1
- package/esm/bootstrap.d.ts +0 -2
- package/esm/bootstrap.d.ts.map +0 -1
- package/esm/bootstrap.js +0 -5
- package/esm/bootstrap.js.map +0 -1
- package/esm/cache/database-cache-driver.d.ts +0 -56
- package/esm/cache/database-cache-driver.d.ts.map +0 -1
- package/esm/cache/database-cache-driver.js +0 -112
- package/esm/cache/database-cache-driver.js.map +0 -1
- package/esm/cache/index.d.ts +0 -3
- package/esm/cache/index.d.ts.map +0 -1
- package/esm/cache/index.js +0 -1
- package/esm/cache/index.js.map +0 -1
- package/esm/cli/cli-command.d.ts +0 -115
- package/esm/cli/cli-command.d.ts.map +0 -1
- package/esm/cli/cli-command.js +0 -227
- package/esm/cli/cli-command.js.map +0 -1
- package/esm/cli/cli-commands.manager.d.ts +0 -71
- package/esm/cli/cli-commands.manager.d.ts.map +0 -1
- package/esm/cli/cli-commands.manager.js +0 -362
- package/esm/cli/cli-commands.manager.js.map +0 -1
- package/esm/cli/cli-commands.utils.d.ts +0 -69
- package/esm/cli/cli-commands.utils.d.ts.map +0 -1
- package/esm/cli/cli-commands.utils.js +0 -180
- package/esm/cli/cli-commands.utils.js.map +0 -1
- package/esm/cli/commands/add.command.d.ts +0 -2
- package/esm/cli/commands/add.command.d.ts.map +0 -1
- package/esm/cli/commands/add.command.js +0 -15
- package/esm/cli/commands/add.command.js.map +0 -1
- package/esm/cli/commands/build.command.d.ts +0 -2
- package/esm/cli/commands/build.command.d.ts.map +0 -1
- package/esm/cli/commands/build.command.js +0 -8
- package/esm/cli/commands/build.command.js.map +0 -1
- package/esm/cli/commands/create-database.command.d.ts +0 -2
- package/esm/cli/commands/create-database.command.d.ts.map +0 -1
- package/esm/cli/commands/create-database.command.js +0 -18
- package/esm/cli/commands/create-database.command.js.map +0 -1
- package/esm/cli/commands/dev-server.command.d.ts +0 -2
- package/esm/cli/commands/dev-server.command.d.ts.map +0 -1
- package/esm/cli/commands/dev-server.command.js +0 -18
- package/esm/cli/commands/dev-server.command.js.map +0 -1
- package/esm/cli/commands/drop-tables.command.d.ts +0 -2
- package/esm/cli/commands/drop-tables.command.d.ts.map +0 -1
- package/esm/cli/commands/drop-tables.command.js +0 -17
- package/esm/cli/commands/drop-tables.command.js.map +0 -1
- package/esm/cli/commands/generate/generate.command.d.ts +0 -10
- package/esm/cli/commands/generate/generate.command.d.ts.map +0 -1
- package/esm/cli/commands/generate/generate.command.js +0 -188
- package/esm/cli/commands/generate/generate.command.js.map +0 -1
- package/esm/cli/commands/generate/generators/column-dsl-parser.d.ts +0 -11
- package/esm/cli/commands/generate/generators/column-dsl-parser.d.ts.map +0 -1
- package/esm/cli/commands/generate/generators/column-dsl-parser.js +0 -47
- package/esm/cli/commands/generate/generators/column-dsl-parser.js.map +0 -1
- package/esm/cli/commands/generate/generators/controller.generator.d.ts +0 -3
- package/esm/cli/commands/generate/generators/controller.generator.d.ts.map +0 -1
- package/esm/cli/commands/generate/generators/controller.generator.js +0 -51
- package/esm/cli/commands/generate/generators/controller.generator.js.map +0 -1
- package/esm/cli/commands/generate/generators/migration.generator.d.ts +0 -13
- package/esm/cli/commands/generate/generators/migration.generator.d.ts.map +0 -1
- package/esm/cli/commands/generate/generators/migration.generator.js +0 -82
- package/esm/cli/commands/generate/generators/migration.generator.js.map +0 -1
- package/esm/cli/commands/generate/generators/model.generator.d.ts +0 -3
- package/esm/cli/commands/generate/generators/model.generator.d.ts.map +0 -1
- package/esm/cli/commands/generate/generators/model.generator.js +0 -58
- package/esm/cli/commands/generate/generators/model.generator.js.map +0 -1
- package/esm/cli/commands/generate/generators/module.generator.d.ts +0 -3
- package/esm/cli/commands/generate/generators/module.generator.d.ts.map +0 -1
- package/esm/cli/commands/generate/generators/module.generator.js +0 -149
- package/esm/cli/commands/generate/generators/module.generator.js.map +0 -1
- package/esm/cli/commands/generate/generators/repository.generator.d.ts +0 -3
- package/esm/cli/commands/generate/generators/repository.generator.d.ts.map +0 -1
- package/esm/cli/commands/generate/generators/repository.generator.js +0 -37
- package/esm/cli/commands/generate/generators/repository.generator.js.map +0 -1
- package/esm/cli/commands/generate/generators/resource.generator.d.ts +0 -3
- package/esm/cli/commands/generate/generators/resource.generator.d.ts.map +0 -1
- package/esm/cli/commands/generate/generators/resource.generator.js +0 -37
- package/esm/cli/commands/generate/generators/resource.generator.js.map +0 -1
- package/esm/cli/commands/generate/generators/service.generator.d.ts +0 -3
- package/esm/cli/commands/generate/generators/service.generator.d.ts.map +0 -1
- package/esm/cli/commands/generate/generators/service.generator.js +0 -37
- package/esm/cli/commands/generate/generators/service.generator.js.map +0 -1
- package/esm/cli/commands/generate/generators/validation.generator.d.ts +0 -3
- package/esm/cli/commands/generate/generators/validation.generator.d.ts.map +0 -1
- package/esm/cli/commands/generate/generators/validation.generator.js +0 -46
- package/esm/cli/commands/generate/generators/validation.generator.js.map +0 -1
- package/esm/cli/commands/generate/templates/stubs.d.ts +0 -129
- package/esm/cli/commands/generate/templates/stubs.d.ts.map +0 -1
- package/esm/cli/commands/generate/templates/stubs.js +0 -528
- package/esm/cli/commands/generate/templates/stubs.js.map +0 -1
- package/esm/cli/commands/generate/types.d.ts +0 -53
- package/esm/cli/commands/generate/types.d.ts.map +0 -1
- package/esm/cli/commands/generate/utils/name-parser.d.ts +0 -40
- package/esm/cli/commands/generate/utils/name-parser.d.ts.map +0 -1
- package/esm/cli/commands/generate/utils/name-parser.js +0 -65
- package/esm/cli/commands/generate/utils/name-parser.js.map +0 -1
- package/esm/cli/commands/generate/utils/path-resolver.d.ts +0 -30
- package/esm/cli/commands/generate/utils/path-resolver.d.ts.map +0 -1
- package/esm/cli/commands/generate/utils/path-resolver.js +0 -42
- package/esm/cli/commands/generate/utils/path-resolver.js.map +0 -1
- package/esm/cli/commands/generate/utils/prompt.d.ts +0 -13
- package/esm/cli/commands/generate/utils/prompt.d.ts.map +0 -1
- package/esm/cli/commands/generate/utils/prompt.js +0 -21
- package/esm/cli/commands/generate/utils/prompt.js.map +0 -1
- package/esm/cli/commands/migrate.command.d.ts +0 -2
- package/esm/cli/commands/migrate.command.d.ts.map +0 -1
- package/esm/cli/commands/migrate.command.js +0 -52
- package/esm/cli/commands/migrate.command.js.map +0 -1
- package/esm/cli/commands/seed.command.d.ts +0 -2
- package/esm/cli/commands/seed.command.d.ts.map +0 -1
- package/esm/cli/commands/seed.command.js +0 -24
- package/esm/cli/commands/seed.command.js.map +0 -1
- package/esm/cli/commands/start-production.command.d.ts +0 -2
- package/esm/cli/commands/start-production.command.d.ts.map +0 -1
- package/esm/cli/commands/start-production.command.js +0 -65
- package/esm/cli/commands/start-production.command.js.map +0 -1
- package/esm/cli/commands/storage-put.action.d.ts +0 -22
- package/esm/cli/commands/storage-put.action.d.ts.map +0 -1
- package/esm/cli/commands/storage-put.action.js +0 -75
- package/esm/cli/commands/storage-put.action.js.map +0 -1
- package/esm/cli/commands/storage-put.command.d.ts +0 -20
- package/esm/cli/commands/storage-put.command.d.ts.map +0 -1
- package/esm/cli/commands/storage-put.command.js +0 -41
- package/esm/cli/commands/storage-put.command.js.map +0 -1
- package/esm/cli/commands/typings-generator.command.d.ts +0 -2
- package/esm/cli/commands/typings-generator.command.d.ts.map +0 -1
- package/esm/cli/commands/typings-generator.command.js +0 -37
- package/esm/cli/commands/typings-generator.command.js.map +0 -1
- package/esm/cli/commands-loader.d.ts +0 -18
- package/esm/cli/commands-loader.d.ts.map +0 -1
- package/esm/cli/commands-loader.js +0 -45
- package/esm/cli/commands-loader.js.map +0 -1
- package/esm/cli/framework-cli-commands.d.ts +0 -2
- package/esm/cli/framework-cli-commands.d.ts.map +0 -1
- package/esm/cli/framework-cli-commands.js +0 -27
- package/esm/cli/framework-cli-commands.js.map +0 -1
- package/esm/cli/index.d.ts +0 -3
- package/esm/cli/index.d.ts.map +0 -1
- package/esm/cli/index.js +0 -1
- package/esm/cli/index.js.map +0 -1
- package/esm/cli/parse-cli-args.d.ts +0 -18
- package/esm/cli/parse-cli-args.d.ts.map +0 -1
- package/esm/cli/parse-cli-args.js +0 -82
- package/esm/cli/parse-cli-args.js.map +0 -1
- package/esm/cli/start.d.ts +0 -2
- package/esm/cli/start.d.ts.map +0 -1
- package/esm/cli/start.js +0 -2
- package/esm/cli/start.js.map +0 -1
- package/esm/cli/string-similarity.d.ts +0 -44
- package/esm/cli/string-similarity.d.ts.map +0 -1
- package/esm/cli/string-similarity.js +0 -57
- package/esm/cli/string-similarity.js.map +0 -1
- package/esm/cli/types.d.ts +0 -218
- package/esm/cli/types.d.ts.map +0 -1
- package/esm/config/config-getter.d.ts +0 -35
- package/esm/config/config-getter.d.ts.map +0 -1
- package/esm/config/config-getter.js +0 -21
- package/esm/config/config-getter.js.map +0 -1
- package/esm/config/config-handlers.d.ts +0 -19
- package/esm/config/config-handlers.d.ts.map +0 -1
- package/esm/config/config-handlers.js +0 -47
- package/esm/config/config-handlers.js.map +0 -1
- package/esm/config/config-loader.d.ts +0 -37
- package/esm/config/config-loader.d.ts.map +0 -1
- package/esm/config/config-loader.js +0 -85
- package/esm/config/config-loader.js.map +0 -1
- package/esm/config/config-manager.d.ts +0 -22
- package/esm/config/config-manager.d.ts.map +0 -1
- package/esm/config/config-manager.js +0 -25
- package/esm/config/config-manager.js.map +0 -1
- package/esm/config/config-special-handlers.d.ts +0 -17
- package/esm/config/config-special-handlers.d.ts.map +0 -1
- package/esm/config/config-special-handlers.js +0 -23
- package/esm/config/config-special-handlers.js.map +0 -1
- package/esm/config/index.d.ts +0 -5
- package/esm/config/index.d.ts.map +0 -1
- package/esm/config/load-config-files.d.ts +0 -6
- package/esm/config/load-config-files.d.ts.map +0 -1
- package/esm/config/load-config-files.js +0 -19
- package/esm/config/load-config-files.js.map +0 -1
- package/esm/config/types.d.ts +0 -52
- package/esm/config/types.d.ts.map +0 -1
- package/esm/connectors/base-connector.d.ts +0 -49
- package/esm/connectors/base-connector.d.ts.map +0 -1
- package/esm/connectors/base-connector.js +0 -48
- package/esm/connectors/base-connector.js.map +0 -1
- package/esm/connectors/cache-connector.d.ts +0 -23
- package/esm/connectors/cache-connector.d.ts.map +0 -1
- package/esm/connectors/cache-connector.js +0 -35
- package/esm/connectors/cache-connector.js.map +0 -1
- package/esm/connectors/communicator-connector.d.ts +0 -23
- package/esm/connectors/communicator-connector.d.ts.map +0 -1
- package/esm/connectors/communicator-connector.js +0 -62
- package/esm/connectors/communicator-connector.js.map +0 -1
- package/esm/connectors/connectors-manager.d.ts +0 -42
- package/esm/connectors/connectors-manager.d.ts.map +0 -1
- package/esm/connectors/connectors-manager.js +0 -91
- package/esm/connectors/connectors-manager.js.map +0 -1
- package/esm/connectors/database-connector.d.ts +0 -23
- package/esm/connectors/database-connector.d.ts.map +0 -1
- package/esm/connectors/database-connector.js +0 -51
- package/esm/connectors/database-connector.js.map +0 -1
- package/esm/connectors/http-connector.d.ts +0 -31
- package/esm/connectors/http-connector.d.ts.map +0 -1
- package/esm/connectors/http-connector.js +0 -83
- package/esm/connectors/http-connector.js.map +0 -1
- package/esm/connectors/index.d.ts +0 -13
- package/esm/connectors/index.d.ts.map +0 -1
- package/esm/connectors/storage.connector.d.ts +0 -23
- package/esm/connectors/storage.connector.d.ts.map +0 -1
- package/esm/connectors/storage.connector.js +0 -32
- package/esm/connectors/storage.connector.js.map +0 -1
- package/esm/connectors/types.d.ts +0 -52
- package/esm/connectors/types.d.ts.map +0 -1
- package/esm/connectors/types.js +0 -11
- package/esm/connectors/types.js.map +0 -1
- package/esm/database/create-database-action.d.ts +0 -3
- package/esm/database/create-database-action.d.ts.map +0 -1
- package/esm/database/create-database-action.js +0 -28
- package/esm/database/create-database-action.js.map +0 -1
- package/esm/database/drop-tables-action.d.ts +0 -3
- package/esm/database/drop-tables-action.d.ts.map +0 -1
- package/esm/database/drop-tables-action.js +0 -29
- package/esm/database/drop-tables-action.js.map +0 -1
- package/esm/database/index.d.ts +0 -4
- package/esm/database/index.d.ts.map +0 -1
- package/esm/database/migrate-action.d.ts +0 -8
- package/esm/database/migrate-action.d.ts.map +0 -1
- package/esm/database/migrate-action.js +0 -118
- package/esm/database/migrate-action.js.map +0 -1
- package/esm/database/models/database-log/database-log.d.ts +0 -16
- package/esm/database/models/database-log/database-log.d.ts.map +0 -1
- package/esm/database/models/database-log/database-log.js +0 -17
- package/esm/database/models/database-log/database-log.js.map +0 -1
- package/esm/database/models/database-log/index.d.ts +0 -2
- package/esm/database/models/database-log/index.d.ts.map +0 -1
- package/esm/database/seed-command-action.d.ts +0 -3
- package/esm/database/seed-command-action.d.ts.map +0 -1
- package/esm/database/seed-command-action.js +0 -36
- package/esm/database/seed-command-action.js.map +0 -1
- package/esm/database/seeds/index.d.ts +0 -3
- package/esm/database/seeds/index.d.ts.map +0 -1
- package/esm/database/seeds/seeder.d.ts +0 -40
- package/esm/database/seeds/seeder.d.ts.map +0 -1
- package/esm/database/seeds/seeder.js +0 -6
- package/esm/database/seeds/seeder.js.map +0 -1
- package/esm/database/seeds/seeders.manager.d.ts +0 -47
- package/esm/database/seeds/seeders.manager.d.ts.map +0 -1
- package/esm/database/seeds/seeders.manager.js +0 -144
- package/esm/database/seeds/seeders.manager.js.map +0 -1
- package/esm/database/seeds/seeds-table-migration.d.ts +0 -8
- package/esm/database/seeds/seeds-table-migration.d.ts.map +0 -1
- package/esm/database/seeds/seeds-table-migration.js +0 -18
- package/esm/database/seeds/seeds-table-migration.js.map +0 -1
- package/esm/database/seeds/types.d.ts +0 -13
- package/esm/database/seeds/types.d.ts.map +0 -1
- package/esm/database/seeds/utils.d.ts +0 -2
- package/esm/database/seeds/utils.d.ts.map +0 -1
- package/esm/database/seeds/utils.js +0 -1
- package/esm/database/seeds/utils.js.map +0 -1
- package/esm/database/utils.d.ts +0 -17
- package/esm/database/utils.d.ts.map +0 -1
- package/esm/database/utils.js +0 -30
- package/esm/database/utils.js.map +0 -1
- package/esm/dev-server/create-worker.d.ts +0 -34
- package/esm/dev-server/create-worker.d.ts.map +0 -1
- package/esm/dev-server/create-worker.js +0 -37
- package/esm/dev-server/create-worker.js.map +0 -1
- package/esm/dev-server/dependency-graph.d.ts +0 -102
- package/esm/dev-server/dependency-graph.d.ts.map +0 -1
- package/esm/dev-server/dependency-graph.js +0 -310
- package/esm/dev-server/dependency-graph.js.map +0 -1
- package/esm/dev-server/dev-logger.d.ts +0 -14
- package/esm/dev-server/dev-logger.d.ts.map +0 -1
- package/esm/dev-server/dev-logger.js +0 -130
- package/esm/dev-server/dev-logger.js.map +0 -1
- package/esm/dev-server/development-server.d.ts +0 -55
- package/esm/dev-server/development-server.d.ts.map +0 -1
- package/esm/dev-server/development-server.js +0 -199
- package/esm/dev-server/development-server.js.map +0 -1
- package/esm/dev-server/events.d.ts +0 -5
- package/esm/dev-server/events.d.ts.map +0 -1
- package/esm/dev-server/events.js +0 -4
- package/esm/dev-server/events.js.map +0 -1
- package/esm/dev-server/export-analyzer.d.ts +0 -84
- package/esm/dev-server/export-analyzer.d.ts.map +0 -1
- package/esm/dev-server/export-analyzer.js +0 -206
- package/esm/dev-server/export-analyzer.js.map +0 -1
- package/esm/dev-server/file-event-handler.d.ts +0 -156
- package/esm/dev-server/file-event-handler.d.ts.map +0 -1
- package/esm/dev-server/file-event-handler.js +0 -309
- package/esm/dev-server/file-event-handler.js.map +0 -1
- package/esm/dev-server/file-manager.d.ts +0 -394
- package/esm/dev-server/file-manager.d.ts.map +0 -1
- package/esm/dev-server/file-manager.js +0 -603
- package/esm/dev-server/file-manager.js.map +0 -1
- package/esm/dev-server/file-operations.d.ts +0 -203
- package/esm/dev-server/file-operations.d.ts.map +0 -1
- package/esm/dev-server/file-operations.js +0 -365
- package/esm/dev-server/file-operations.js.map +0 -1
- package/esm/dev-server/files-orchestrator.d.ts +0 -153
- package/esm/dev-server/files-orchestrator.d.ts.map +0 -1
- package/esm/dev-server/files-orchestrator.js +0 -349
- package/esm/dev-server/files-orchestrator.js.map +0 -1
- package/esm/dev-server/files-watcher.d.ts +0 -67
- package/esm/dev-server/files-watcher.d.ts.map +0 -1
- package/esm/dev-server/files-watcher.js +0 -121
- package/esm/dev-server/files-watcher.js.map +0 -1
- package/esm/dev-server/flags.d.ts +0 -10
- package/esm/dev-server/flags.d.ts.map +0 -1
- package/esm/dev-server/flags.js +0 -9
- package/esm/dev-server/flags.js.map +0 -1
- package/esm/dev-server/health-checker/checkers/base-health-checker.d.ts +0 -52
- package/esm/dev-server/health-checker/checkers/base-health-checker.d.ts.map +0 -1
- package/esm/dev-server/health-checker/checkers/base-health-checker.js +0 -71
- package/esm/dev-server/health-checker/checkers/base-health-checker.js.map +0 -1
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.d.ts +0 -40
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.d.ts.map +0 -1
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.js +0 -217
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.js.map +0 -1
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.d.ts +0 -56
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.d.ts.map +0 -1
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.js +0 -279
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.js.map +0 -1
- package/esm/dev-server/health-checker/file-health-checker.contract.d.ts +0 -59
- package/esm/dev-server/health-checker/file-health-checker.contract.d.ts.map +0 -1
- package/esm/dev-server/health-checker/file-health-result.d.ts +0 -68
- package/esm/dev-server/health-checker/file-health-result.d.ts.map +0 -1
- package/esm/dev-server/health-checker/file-health-result.js +0 -40
- package/esm/dev-server/health-checker/file-health-result.js.map +0 -1
- package/esm/dev-server/health-checker/files-healthcare.manager.d.ts +0 -115
- package/esm/dev-server/health-checker/files-healthcare.manager.d.ts.map +0 -1
- package/esm/dev-server/health-checker/files-healthcare.manager.js +0 -422
- package/esm/dev-server/health-checker/files-healthcare.manager.js.map +0 -1
- package/esm/dev-server/health-checker/index.d.ts +0 -6
- package/esm/dev-server/health-checker/index.d.ts.map +0 -1
- package/esm/dev-server/health-checker/workers/eslint-health.worker.d.ts +0 -2
- package/esm/dev-server/health-checker/workers/eslint-health.worker.d.ts.map +0 -1
- package/esm/dev-server/health-checker/workers/eslint-health.worker.js +0 -214
- package/esm/dev-server/health-checker/workers/eslint-health.worker.js.map +0 -1
- package/esm/dev-server/health-checker/workers/ts-health.worker.d.ts +0 -2
- package/esm/dev-server/health-checker/workers/ts-health.worker.d.ts.map +0 -1
- package/esm/dev-server/health-checker/workers/ts-health.worker.js +0 -261
- package/esm/dev-server/health-checker/workers/ts-health.worker.js.map +0 -1
- package/esm/dev-server/import-deduplicator.d.ts +0 -75
- package/esm/dev-server/import-deduplicator.d.ts.map +0 -1
- package/esm/dev-server/import-deduplicator.js +0 -288
- package/esm/dev-server/import-deduplicator.js.map +0 -1
- package/esm/dev-server/import-deduplicator.test.d.ts +0 -7
- package/esm/dev-server/import-deduplicator.test.d.ts.map +0 -1
- package/esm/dev-server/import-transformer.d.ts +0 -17
- package/esm/dev-server/import-transformer.d.ts.map +0 -1
- package/esm/dev-server/import-transformer.js +0 -221
- package/esm/dev-server/import-transformer.js.map +0 -1
- package/esm/dev-server/index.d.ts +0 -1
- package/esm/dev-server/index.d.ts.map +0 -1
- package/esm/dev-server/layer-executor.d.ts +0 -64
- package/esm/dev-server/layer-executor.d.ts.map +0 -1
- package/esm/dev-server/layer-executor.js +0 -338
- package/esm/dev-server/layer-executor.js.map +0 -1
- package/esm/dev-server/manifest-manager.d.ts +0 -80
- package/esm/dev-server/manifest-manager.d.ts.map +0 -1
- package/esm/dev-server/manifest-manager.js +0 -107
- package/esm/dev-server/manifest-manager.js.map +0 -1
- package/esm/dev-server/module-loader.d.ts +0 -111
- package/esm/dev-server/module-loader.d.ts.map +0 -1
- package/esm/dev-server/module-loader.js +0 -276
- package/esm/dev-server/module-loader.js.map +0 -1
- package/esm/dev-server/package-json-manager.d.ts +0 -16
- package/esm/dev-server/package-json-manager.d.ts.map +0 -1
- package/esm/dev-server/package-json-manager.js +0 -20
- package/esm/dev-server/package-json-manager.js.map +0 -1
- package/esm/dev-server/parse-imports.d.ts +0 -34
- package/esm/dev-server/parse-imports.d.ts.map +0 -1
- package/esm/dev-server/parse-imports.js +0 -426
- package/esm/dev-server/parse-imports.js.map +0 -1
- package/esm/dev-server/path.d.ts +0 -39
- package/esm/dev-server/path.d.ts.map +0 -1
- package/esm/dev-server/path.js +0 -56
- package/esm/dev-server/path.js.map +0 -1
- package/esm/dev-server/runtime-import-helper.d.ts +0 -8
- package/esm/dev-server/runtime-import-helper.d.ts.map +0 -1
- package/esm/dev-server/runtime-import-helper.js +0 -158
- package/esm/dev-server/runtime-import-helper.js.map +0 -1
- package/esm/dev-server/special-files-collector.d.ts +0 -114
- package/esm/dev-server/special-files-collector.d.ts.map +0 -1
- package/esm/dev-server/special-files-collector.js +0 -212
- package/esm/dev-server/special-files-collector.js.map +0 -1
- package/esm/dev-server/start-development-server.d.ts +0 -7
- package/esm/dev-server/start-development-server.d.ts.map +0 -1
- package/esm/dev-server/start-development-server.js +0 -21
- package/esm/dev-server/start-development-server.js.map +0 -1
- package/esm/dev-server/transpile-file.d.ts +0 -11
- package/esm/dev-server/transpile-file.d.ts.map +0 -1
- package/esm/dev-server/transpile-file.js +0 -30
- package/esm/dev-server/transpile-file.js.map +0 -1
- package/esm/dev-server/tsconfig-manager.d.ts +0 -45
- package/esm/dev-server/tsconfig-manager.d.ts.map +0 -1
- package/esm/dev-server/tsconfig-manager.js +0 -107
- package/esm/dev-server/tsconfig-manager.js.map +0 -1
- package/esm/dev-server/type-generator.d.ts +0 -115
- package/esm/dev-server/type-generator.d.ts.map +0 -1
- package/esm/dev-server/type-generator.js +0 -566
- package/esm/dev-server/type-generator.js.map +0 -1
- package/esm/dev-server/types.d.ts +0 -30
- package/esm/dev-server/types.d.ts.map +0 -1
- package/esm/dev-server/utils.d.ts +0 -15
- package/esm/dev-server/utils.d.ts.map +0 -1
- package/esm/dev-server/utils.js +0 -41
- package/esm/dev-server/utils.js.map +0 -1
- package/esm/encryption/encrypt.d.ts +0 -23
- package/esm/encryption/encrypt.d.ts.map +0 -1
- package/esm/encryption/encrypt.js +0 -85
- package/esm/encryption/encrypt.js.map +0 -1
- package/esm/encryption/hash.d.ts +0 -17
- package/esm/encryption/hash.d.ts.map +0 -1
- package/esm/encryption/hash.js +0 -26
- package/esm/encryption/hash.js.map +0 -1
- package/esm/encryption/index.d.ts +0 -5
- package/esm/encryption/index.d.ts.map +0 -1
- package/esm/encryption/password.d.ts +0 -23
- package/esm/encryption/password.d.ts.map +0 -1
- package/esm/encryption/password.js +0 -72
- package/esm/encryption/password.js.map +0 -1
- package/esm/encryption/types.d.ts +0 -51
- package/esm/encryption/types.d.ts.map +0 -1
- package/esm/generations/add-command.action.d.ts +0 -3
- package/esm/generations/add-command.action.d.ts.map +0 -1
- package/esm/generations/add-command.action.js +0 -382
- package/esm/generations/add-command.action.js.map +0 -1
- package/esm/generations/stubs.d.ts +0 -2
- package/esm/generations/stubs.d.ts.map +0 -1
- package/esm/generations/stubs.js +0 -81
- package/esm/generations/stubs.js.map +0 -1
- package/esm/http/config.d.ts +0 -10
- package/esm/http/config.d.ts.map +0 -1
- package/esm/http/config.js +0 -22
- package/esm/http/config.js.map +0 -1
- package/esm/http/context/request-context.d.ts +0 -47
- package/esm/http/context/request-context.d.ts.map +0 -1
- package/esm/http/context/request-context.js +0 -52
- package/esm/http/context/request-context.js.map +0 -1
- package/esm/http/createHttpApplication.d.ts +0 -3
- package/esm/http/createHttpApplication.d.ts.map +0 -1
- package/esm/http/createHttpApplication.js +0 -28
- package/esm/http/createHttpApplication.js.map +0 -1
- package/esm/http/database/RequestLog.d.ts +0 -16
- package/esm/http/database/RequestLog.d.ts.map +0 -1
- package/esm/http/database/RequestLog.js +0 -26
- package/esm/http/database/RequestLog.js.map +0 -1
- package/esm/http/errors/errors.d.ts +0 -39
- package/esm/http/errors/errors.d.ts.map +0 -1
- package/esm/http/errors/errors.js +0 -76
- package/esm/http/errors/errors.js.map +0 -1
- package/esm/http/errors/index.d.ts +0 -2
- package/esm/http/errors/index.d.ts.map +0 -1
- package/esm/http/events.d.ts +0 -4
- package/esm/http/events.d.ts.map +0 -1
- package/esm/http/events.js +0 -26
- package/esm/http/events.js.map +0 -1
- package/esm/http/index.d.ts +0 -17
- package/esm/http/index.d.ts.map +0 -1
- package/esm/http/middleware/cache-response-middleware.d.ts +0 -34
- package/esm/http/middleware/cache-response-middleware.d.ts.map +0 -1
- package/esm/http/middleware/cache-response-middleware.js +0 -45
- package/esm/http/middleware/cache-response-middleware.js.map +0 -1
- package/esm/http/middleware/index.d.ts +0 -3
- package/esm/http/middleware/index.d.ts.map +0 -1
- package/esm/http/middleware/inject-request-context.d.ts +0 -21
- package/esm/http/middleware/inject-request-context.d.ts.map +0 -1
- package/esm/http/middleware/inject-request-context.js +0 -119
- package/esm/http/middleware/inject-request-context.js.map +0 -1
- package/esm/http/plugins.d.ts +0 -3
- package/esm/http/plugins.d.ts.map +0 -1
- package/esm/http/plugins.js +0 -36
- package/esm/http/plugins.js.map +0 -1
- package/esm/http/request-controller.d.ts +0 -11
- package/esm/http/request-controller.d.ts.map +0 -1
- package/esm/http/request-controller.js +0 -9
- package/esm/http/request-controller.js.map +0 -1
- package/esm/http/request.d.ts +0 -396
- package/esm/http/request.d.ts.map +0 -1
- package/esm/http/request.js +0 -759
- package/esm/http/request.js.map +0 -1
- package/esm/http/response.d.ts +0 -374
- package/esm/http/response.d.ts.map +0 -1
- package/esm/http/response.js +0 -974
- package/esm/http/response.js.map +0 -1
- package/esm/http/server.d.ts +0 -8
- package/esm/http/server.d.ts.map +0 -1
- package/esm/http/server.js +0 -15
- package/esm/http/server.js.map +0 -1
- package/esm/http/types.d.ts +0 -230
- package/esm/http/types.d.ts.map +0 -1
- package/esm/http/uploaded-file.d.ts +0 -459
- package/esm/http/uploaded-file.d.ts.map +0 -1
- package/esm/http/uploaded-file.js +0 -709
- package/esm/http/uploaded-file.js.map +0 -1
- package/esm/http/uploads-config.d.ts +0 -26
- package/esm/http/uploads-config.d.ts.map +0 -1
- package/esm/http/uploads-config.js +0 -35
- package/esm/http/uploads-config.js.map +0 -1
- package/esm/http/uploads-types.d.ts +0 -236
- package/esm/http/uploads-types.d.ts.map +0 -1
- package/esm/image/image.d.ts +0 -388
- package/esm/image/image.d.ts.map +0 -1
- package/esm/image/image.js +0 -602
- package/esm/image/image.js.map +0 -1
- package/esm/image/index.d.ts +0 -2
- package/esm/image/index.d.ts.map +0 -1
- package/esm/index.d.ts +0 -34
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js +0 -1
- package/esm/index.js.map +0 -1
- package/esm/logger/index.d.ts +0 -3
- package/esm/logger/index.d.ts.map +0 -1
- package/esm/logger/logger.d.ts +0 -3
- package/esm/logger/logger.d.ts.map +0 -1
- package/esm/logger/logger.js +0 -16
- package/esm/logger/logger.js.map +0 -1
- package/esm/logger/types.d.ts +0 -39
- package/esm/logger/types.d.ts.map +0 -1
- package/esm/mail/config.d.ts +0 -80
- package/esm/mail/config.d.ts.map +0 -1
- package/esm/mail/config.js +0 -158
- package/esm/mail/config.js.map +0 -1
- package/esm/mail/events.d.ts +0 -96
- package/esm/mail/events.d.ts.map +0 -1
- package/esm/mail/events.js +0 -123
- package/esm/mail/events.js.map +0 -1
- package/esm/mail/index.d.ts +0 -10
- package/esm/mail/index.d.ts.map +0 -1
- package/esm/mail/mail.d.ts +0 -175
- package/esm/mail/mail.d.ts.map +0 -1
- package/esm/mail/mail.js +0 -286
- package/esm/mail/mail.js.map +0 -1
- package/esm/mail/mailer-pool.d.ts +0 -27
- package/esm/mail/mailer-pool.d.ts.map +0 -1
- package/esm/mail/mailer-pool.js +0 -215
- package/esm/mail/mailer-pool.js.map +0 -1
- package/esm/mail/react-mail.d.ts +0 -12
- package/esm/mail/react-mail.d.ts.map +0 -1
- package/esm/mail/react-mail.js +0 -40
- package/esm/mail/react-mail.js.map +0 -1
- package/esm/mail/send-mail.d.ts +0 -33
- package/esm/mail/send-mail.d.ts.map +0 -1
- package/esm/mail/send-mail.js +0 -313
- package/esm/mail/send-mail.js.map +0 -1
- package/esm/mail/test-mailbox.d.ts +0 -110
- package/esm/mail/test-mailbox.d.ts.map +0 -1
- package/esm/mail/test-mailbox.js +0 -143
- package/esm/mail/test-mailbox.js.map +0 -1
- package/esm/mail/types.d.ts +0 -264
- package/esm/mail/types.d.ts.map +0 -1
- package/esm/mail/types.js +0 -13
- package/esm/mail/types.js.map +0 -1
- package/esm/manifest/manifest-manager.d.ts +0 -74
- package/esm/manifest/manifest-manager.d.ts.map +0 -1
- package/esm/manifest/manifest-manager.js +0 -88
- package/esm/manifest/manifest-manager.js.map +0 -1
- package/esm/production/build-app-production.d.ts +0 -6
- package/esm/production/build-app-production.d.ts.map +0 -1
- package/esm/production/build-app-production.js +0 -8
- package/esm/production/build-app-production.js.map +0 -1
- package/esm/production/esbuild-plugins.d.ts +0 -5
- package/esm/production/esbuild-plugins.d.ts.map +0 -1
- package/esm/production/esbuild-plugins.js +0 -23
- package/esm/production/esbuild-plugins.js.map +0 -1
- package/esm/production/production-builder.d.ts +0 -76
- package/esm/production/production-builder.d.ts.map +0 -1
- package/esm/production/production-builder.js +0 -254
- package/esm/production/production-builder.js.map +0 -1
- package/esm/react/index.d.ts +0 -14
- package/esm/react/index.d.ts.map +0 -1
- package/esm/react/index.js +0 -65
- package/esm/react/index.js.map +0 -1
- package/esm/repositories/adapters/cascade/cascade-adapter.d.ts +0 -85
- package/esm/repositories/adapters/cascade/cascade-adapter.d.ts.map +0 -1
- package/esm/repositories/adapters/cascade/cascade-adapter.js +0 -179
- package/esm/repositories/adapters/cascade/cascade-adapter.js.map +0 -1
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.ts +0 -141
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.ts.map +0 -1
- package/esm/repositories/adapters/cascade/cascade-query-builder.js +0 -281
- package/esm/repositories/adapters/cascade/cascade-query-builder.js.map +0 -1
- package/esm/repositories/adapters/cascade/filter-applicator.d.ts +0 -126
- package/esm/repositories/adapters/cascade/filter-applicator.d.ts.map +0 -1
- package/esm/repositories/adapters/cascade/filter-applicator.js +0 -549
- package/esm/repositories/adapters/cascade/filter-applicator.js.map +0 -1
- package/esm/repositories/adapters/cascade/index.d.ts +0 -7
- package/esm/repositories/adapters/cascade/index.d.ts.map +0 -1
- package/esm/repositories/contracts/index.d.ts +0 -8
- package/esm/repositories/contracts/index.d.ts.map +0 -1
- package/esm/repositories/contracts/query-builder.contract.d.ts +0 -320
- package/esm/repositories/contracts/query-builder.contract.d.ts.map +0 -1
- package/esm/repositories/contracts/repository-adapter.contract.d.ts +0 -183
- package/esm/repositories/contracts/repository-adapter.contract.d.ts.map +0 -1
- package/esm/repositories/contracts/types.d.ts +0 -328
- package/esm/repositories/contracts/types.d.ts.map +0 -1
- package/esm/repositories/index.d.ts +0 -8
- package/esm/repositories/index.d.ts.map +0 -1
- package/esm/repositories/repository.manager.d.ts +0 -694
- package/esm/repositories/repository.manager.d.ts.map +0 -1
- package/esm/repositories/repository.manager.js +0 -1123
- package/esm/repositories/repository.manager.js.map +0 -1
- package/esm/resource/define-resource.d.ts +0 -65
- package/esm/resource/define-resource.d.ts.map +0 -1
- package/esm/resource/define-resource.js +0 -62
- package/esm/resource/define-resource.js.map +0 -1
- package/esm/resource/index.d.ts +0 -6
- package/esm/resource/index.d.ts.map +0 -1
- package/esm/resource/register-resource.d.ts +0 -21
- package/esm/resource/register-resource.d.ts.map +0 -1
- package/esm/resource/register-resource.js +0 -23
- package/esm/resource/register-resource.js.map +0 -1
- package/esm/resource/resource-field-builder.d.ts +0 -104
- package/esm/resource/resource-field-builder.d.ts.map +0 -1
- package/esm/resource/resource-field-builder.js +0 -260
- package/esm/resource/resource-field-builder.js.map +0 -1
- package/esm/resource/resource.d.ts +0 -217
- package/esm/resource/resource.d.ts.map +0 -1
- package/esm/resource/resource.js +0 -303
- package/esm/resource/resource.js.map +0 -1
- package/esm/resource/types.d.ts +0 -74
- package/esm/resource/types.d.ts.map +0 -1
- package/esm/restful/index.d.ts +0 -2
- package/esm/restful/index.d.ts.map +0 -1
- package/esm/restful/restful.d.ts +0 -110
- package/esm/restful/restful.d.ts.map +0 -1
- package/esm/restful/restful.js +0 -317
- package/esm/restful/restful.js.map +0 -1
- package/esm/retry/index.d.ts +0 -3
- package/esm/retry/index.d.ts.map +0 -1
- package/esm/retry/retry.d.ts +0 -21
- package/esm/retry/retry.d.ts.map +0 -1
- package/esm/retry/retry.js +0 -39
- package/esm/retry/retry.js.map +0 -1
- package/esm/retry/types.d.ts +0 -27
- package/esm/retry/types.d.ts.map +0 -1
- package/esm/router/index.d.ts +0 -3
- package/esm/router/index.d.ts.map +0 -1
- package/esm/router/route-builder.d.ts +0 -120
- package/esm/router/route-builder.d.ts.map +0 -1
- package/esm/router/route-builder.js +0 -201
- package/esm/router/route-builder.js.map +0 -1
- package/esm/router/route-registry.d.ts +0 -30
- package/esm/router/route-registry.d.ts.map +0 -1
- package/esm/router/route-registry.js +0 -67
- package/esm/router/route-registry.js.map +0 -1
- package/esm/router/route.d.ts +0 -34
- package/esm/router/route.d.ts.map +0 -1
- package/esm/router/router.d.ts +0 -188
- package/esm/router/router.d.ts.map +0 -1
- package/esm/router/router.js +0 -605
- package/esm/router/router.js.map +0 -1
- package/esm/router/types.d.ts +0 -254
- package/esm/router/types.d.ts.map +0 -1
- package/esm/storage/config.d.ts +0 -15
- package/esm/storage/config.d.ts.map +0 -1
- package/esm/storage/config.js +0 -32
- package/esm/storage/config.js.map +0 -1
- package/esm/storage/context/storage-driver-context.d.ts +0 -69
- package/esm/storage/context/storage-driver-context.d.ts.map +0 -1
- package/esm/storage/context/storage-driver-context.js +0 -80
- package/esm/storage/context/storage-driver-context.js.map +0 -1
- package/esm/storage/drivers/cloud-driver.d.ts +0 -206
- package/esm/storage/drivers/cloud-driver.d.ts.map +0 -1
- package/esm/storage/drivers/cloud-driver.js +0 -721
- package/esm/storage/drivers/cloud-driver.js.map +0 -1
- package/esm/storage/drivers/do-spaces-driver.d.ts +0 -43
- package/esm/storage/drivers/do-spaces-driver.d.ts.map +0 -1
- package/esm/storage/drivers/do-spaces-driver.js +0 -50
- package/esm/storage/drivers/do-spaces-driver.js.map +0 -1
- package/esm/storage/drivers/local-driver.d.ts +0 -151
- package/esm/storage/drivers/local-driver.d.ts.map +0 -1
- package/esm/storage/drivers/local-driver.js +0 -448
- package/esm/storage/drivers/local-driver.js.map +0 -1
- package/esm/storage/drivers/r2-driver.d.ts +0 -47
- package/esm/storage/drivers/r2-driver.d.ts.map +0 -1
- package/esm/storage/drivers/r2-driver.js +0 -60
- package/esm/storage/drivers/r2-driver.js.map +0 -1
- package/esm/storage/drivers/s3-driver.d.ts +0 -32
- package/esm/storage/drivers/s3-driver.d.ts.map +0 -1
- package/esm/storage/drivers/s3-driver.js +0 -37
- package/esm/storage/drivers/s3-driver.js.map +0 -1
- package/esm/storage/index.d.ts +0 -13
- package/esm/storage/index.d.ts.map +0 -1
- package/esm/storage/scoped-storage.d.ts +0 -547
- package/esm/storage/scoped-storage.d.ts.map +0 -1
- package/esm/storage/scoped-storage.js +0 -739
- package/esm/storage/scoped-storage.js.map +0 -1
- package/esm/storage/storage-file.d.ts +0 -222
- package/esm/storage/storage-file.d.ts.map +0 -1
- package/esm/storage/storage-file.js +0 -376
- package/esm/storage/storage-file.js.map +0 -1
- package/esm/storage/storage.d.ts +0 -583
- package/esm/storage/storage.d.ts.map +0 -1
- package/esm/storage/storage.js +0 -948
- package/esm/storage/storage.js.map +0 -1
- package/esm/storage/types.d.ts +0 -966
- package/esm/storage/types.d.ts.map +0 -1
- package/esm/storage/utils/mime.d.ts +0 -33
- package/esm/storage/utils/mime.d.ts.map +0 -1
- package/esm/storage/utils/mime.js +0 -45
- package/esm/storage/utils/mime.js.map +0 -1
- package/esm/tests/index.d.ts +0 -9
- package/esm/tests/index.d.ts.map +0 -1
- package/esm/tests/start-http-development-server.d.ts +0 -15
- package/esm/tests/start-http-development-server.d.ts.map +0 -1
- package/esm/tests/start-http-development-server.js +0 -69
- package/esm/tests/start-http-development-server.js.map +0 -1
- package/esm/tests/test-helpers.d.ts +0 -43
- package/esm/tests/test-helpers.d.ts.map +0 -1
- package/esm/tests/test-helpers.js +0 -86
- package/esm/tests/test-helpers.js.map +0 -1
- package/esm/tests/vitest-setup.d.ts +0 -10
- package/esm/tests/vitest-setup.d.ts.map +0 -1
- package/esm/tests/vitest-setup.js +0 -36
- package/esm/tests/vitest-setup.js.map +0 -1
- package/esm/use-cases/index.d.ts +0 -7
- package/esm/use-cases/index.d.ts.map +0 -1
- package/esm/use-cases/types.d.ts +0 -267
- package/esm/use-cases/types.d.ts.map +0 -1
- package/esm/use-cases/use-case-events.d.ts +0 -33
- package/esm/use-cases/use-case-events.d.ts.map +0 -1
- package/esm/use-cases/use-case-events.js +0 -65
- package/esm/use-cases/use-case-events.js.map +0 -1
- package/esm/use-cases/use-case-pipeline.d.ts +0 -29
- package/esm/use-cases/use-case-pipeline.d.ts.map +0 -1
- package/esm/use-cases/use-case-pipeline.js +0 -45
- package/esm/use-cases/use-case-pipeline.js.map +0 -1
- package/esm/use-cases/use-case.d.ts +0 -27
- package/esm/use-cases/use-case.d.ts.map +0 -1
- package/esm/use-cases/use-case.errors.d.ts +0 -6
- package/esm/use-cases/use-case.errors.d.ts.map +0 -1
- package/esm/use-cases/use-case.errors.js +0 -8
- package/esm/use-cases/use-case.errors.js.map +0 -1
- package/esm/use-cases/use-case.js +0 -138
- package/esm/use-cases/use-case.js.map +0 -1
- package/esm/use-cases/use-cases-registry.d.ts +0 -38
- package/esm/use-cases/use-cases-registry.d.ts.map +0 -1
- package/esm/use-cases/use-cases-registry.js +0 -92
- package/esm/use-cases/use-cases-registry.js.map +0 -1
- package/esm/utils/app-log.d.ts +0 -8
- package/esm/utils/app-log.d.ts.map +0 -1
- package/esm/utils/app-log.js +0 -7
- package/esm/utils/app-log.js.map +0 -1
- package/esm/utils/cleanup-temp-files.d.ts +0 -5
- package/esm/utils/cleanup-temp-files.d.ts.map +0 -1
- package/esm/utils/database-log.d.ts +0 -25
- package/esm/utils/database-log.d.ts.map +0 -1
- package/esm/utils/database-log.js +0 -43
- package/esm/utils/database-log.js.map +0 -1
- package/esm/utils/download-file.d.ts +0 -3
- package/esm/utils/download-file.d.ts.map +0 -1
- package/esm/utils/environment.d.ts +0 -4
- package/esm/utils/environment.d.ts.map +0 -1
- package/esm/utils/environment.js +0 -6
- package/esm/utils/environment.js.map +0 -1
- package/esm/utils/framework-vesion.d.ts +0 -6
- package/esm/utils/framework-vesion.d.ts.map +0 -1
- package/esm/utils/framework-vesion.js +0 -18
- package/esm/utils/framework-vesion.js.map +0 -1
- package/esm/utils/get-localized.d.ts +0 -10
- package/esm/utils/get-localized.d.ts.map +0 -1
- package/esm/utils/get-localized.js +0 -15
- package/esm/utils/get-localized.js.map +0 -1
- package/esm/utils/index.d.ts +0 -12
- package/esm/utils/index.d.ts.map +0 -1
- package/esm/utils/internal.d.ts +0 -4
- package/esm/utils/internal.d.ts.map +0 -1
- package/esm/utils/paths.d.ts +0 -55
- package/esm/utils/paths.d.ts.map +0 -1
- package/esm/utils/paths.js +0 -89
- package/esm/utils/paths.js.map +0 -1
- package/esm/utils/promise-all-object.d.ts +0 -8
- package/esm/utils/promise-all-object.d.ts.map +0 -1
- package/esm/utils/promise-all-object.js +0 -12
- package/esm/utils/promise-all-object.js.map +0 -1
- package/esm/utils/queue.d.ts +0 -49
- package/esm/utils/queue.d.ts.map +0 -1
- package/esm/utils/queue.js +0 -89
- package/esm/utils/queue.js.map +0 -1
- package/esm/utils/sleep.d.ts +0 -2
- package/esm/utils/sleep.d.ts.map +0 -1
- package/esm/utils/sleep.js +0 -3
- package/esm/utils/sleep.js.map +0 -1
- package/esm/utils/sluggable.d.ts +0 -5
- package/esm/utils/sluggable.d.ts.map +0 -1
- package/esm/utils/sluggable.js +0 -15
- package/esm/utils/sluggable.js.map +0 -1
- package/esm/utils/to-json.d.ts +0 -2
- package/esm/utils/to-json.d.ts.map +0 -1
- package/esm/utils/to-json.js +0 -26
- package/esm/utils/to-json.js.map +0 -1
- package/esm/utils/types.d.ts +0 -22
- package/esm/utils/types.d.ts.map +0 -1
- package/esm/utils/urls.d.ts +0 -21
- package/esm/utils/urls.d.ts.map +0 -1
- package/esm/utils/urls.js +0 -31
- package/esm/utils/urls.js.map +0 -1
- package/esm/validation/database/exists-except-current-id.d.ts +0 -7
- package/esm/validation/database/exists-except-current-id.d.ts.map +0 -1
- package/esm/validation/database/exists-except-current-id.js +0 -24
- package/esm/validation/database/exists-except-current-id.js.map +0 -1
- package/esm/validation/database/exists-except-current-user.d.ts +0 -7
- package/esm/validation/database/exists-except-current-user.d.ts.map +0 -1
- package/esm/validation/database/exists-except-current-user.js +0 -26
- package/esm/validation/database/exists-except-current-user.js.map +0 -1
- package/esm/validation/database/exists.d.ts +0 -7
- package/esm/validation/database/exists.d.ts.map +0 -1
- package/esm/validation/database/exists.js +0 -22
- package/esm/validation/database/exists.js.map +0 -1
- package/esm/validation/database/index.d.ts +0 -12
- package/esm/validation/database/index.d.ts.map +0 -1
- package/esm/validation/database/types.d.ts +0 -68
- package/esm/validation/database/types.d.ts.map +0 -1
- package/esm/validation/database/unique-except-current-id.d.ts +0 -7
- package/esm/validation/database/unique-except-current-id.d.ts.map +0 -1
- package/esm/validation/database/unique-except-current-id.js +0 -24
- package/esm/validation/database/unique-except-current-id.js.map +0 -1
- package/esm/validation/database/unique-except-current-user.d.ts +0 -7
- package/esm/validation/database/unique-except-current-user.d.ts.map +0 -1
- package/esm/validation/database/unique-except-current-user.js +0 -29
- package/esm/validation/database/unique-except-current-user.js.map +0 -1
- package/esm/validation/database/unique.d.ts +0 -7
- package/esm/validation/database/unique.d.ts.map +0 -1
- package/esm/validation/database/unique.js +0 -31
- package/esm/validation/database/unique.js.map +0 -1
- package/esm/validation/file/file.d.ts +0 -22
- package/esm/validation/file/file.d.ts.map +0 -1
- package/esm/validation/file/file.js +0 -60
- package/esm/validation/file/file.js.map +0 -1
- package/esm/validation/file/index.d.ts +0 -6
- package/esm/validation/file/index.d.ts.map +0 -1
- package/esm/validation/index.d.ts +0 -16
- package/esm/validation/index.d.ts.map +0 -1
- package/esm/validation/init.d.ts +0 -7
- package/esm/validation/init.d.ts.map +0 -1
- package/esm/validation/init.js +0 -36
- package/esm/validation/init.js.map +0 -1
- package/esm/validation/plugins/database-plugin.d.ts +0 -14
- package/esm/validation/plugins/database-plugin.d.ts.map +0 -1
- package/esm/validation/plugins/database-plugin.js +0 -83
- package/esm/validation/plugins/database-plugin.js.map +0 -1
- package/esm/validation/plugins/file-plugin.d.ts +0 -11
- package/esm/validation/plugins/file-plugin.d.ts.map +0 -1
- package/esm/validation/plugins/file-plugin.js +0 -17
- package/esm/validation/plugins/file-plugin.js.map +0 -1
- package/esm/validation/plugins/index.d.ts +0 -9
- package/esm/validation/plugins/index.d.ts.map +0 -1
- package/esm/validation/plugins/localized-plugin.d.ts +0 -11
- package/esm/validation/plugins/localized-plugin.d.ts.map +0 -1
- package/esm/validation/plugins/localized-plugin.js +0 -19
- package/esm/validation/plugins/localized-plugin.js.map +0 -1
- package/esm/validation/types.d.ts +0 -87
- package/esm/validation/types.d.ts.map +0 -1
- package/esm/validation/validateAll.d.ts +0 -7
- package/esm/validation/validateAll.d.ts.map +0 -1
- package/esm/validation/validateAll.js +0 -60
- package/esm/validation/validateAll.js.map +0 -1
- package/esm/validation/validators/file-validator.d.ts +0 -62
- package/esm/validation/validators/file-validator.d.ts.map +0 -1
- package/esm/validation/validators/file-validator.js +0 -136
- package/esm/validation/validators/file-validator.js.map +0 -1
- package/esm/validation/validators/index.d.ts +0 -7
- package/esm/validation/validators/index.d.ts.map +0 -1
- package/esm/warlock-config/default-configurations.d.ts +0 -3
- package/esm/warlock-config/default-configurations.d.ts.map +0 -1
- package/esm/warlock-config/default-configurations.js +0 -8
- package/esm/warlock-config/default-configurations.js.map +0 -1
- package/esm/warlock-config/define-config.d.ts +0 -3
- package/esm/warlock-config/define-config.d.ts.map +0 -1
- package/esm/warlock-config/define-config.js +0 -3
- package/esm/warlock-config/define-config.js.map +0 -1
- package/esm/warlock-config/index.d.ts +0 -4
- package/esm/warlock-config/index.d.ts.map +0 -1
- package/esm/warlock-config/types.d.ts +0 -129
- package/esm/warlock-config/types.d.ts.map +0 -1
- package/esm/warlock-config/warlock-config.manager.d.ts +0 -83
- package/esm/warlock-config/warlock-config.manager.d.ts.map +0 -1
- package/esm/warlock-config/warlock-config.manager.js +0 -141
- package/esm/warlock-config/warlock-config.manager.js.map +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LogConfigurations } from "../logger";
|
|
2
|
-
import { MailConfigurations } from "../mail";
|
|
3
|
-
import { AppConfigurations } from "../utils/types";
|
|
4
|
-
/**
|
|
5
|
-
* App Config Handler
|
|
6
|
-
* Handles locale loading for dayjs
|
|
7
|
-
*/
|
|
8
|
-
export declare const registerAppConfig: (config: AppConfigurations) => Promise<void>;
|
|
9
|
-
/**
|
|
10
|
-
* Log Config Handler
|
|
11
|
-
* Sets log configurations in @warlock.js/core
|
|
12
|
-
*/
|
|
13
|
-
export declare const registerLogConfig: (logConfig: LogConfigurations) => Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Mail Config Handler
|
|
16
|
-
* Sets mail configurations in @warlock.js/core
|
|
17
|
-
*/
|
|
18
|
-
export declare const registerMailConfig: (mailConfig: MailConfigurations) => Promise<void>;
|
|
19
|
-
//# sourceMappingURL=config-handlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-handlers.d.ts","sourceRoot":"","sources":["../../src/config/config-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAwB,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAyB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGnD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAAkB,iBAAiB,kBAahE,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,cAAqB,iBAAiB,kBAOnE,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,eAAsB,kBAAkB,kBAOtE,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import {setLogConfigurations}from'../logger/logger.js';import {setMailConfigurations}from'../mail/config.js';import'@mongez/events';import'@mongez/reinforcements';import'../mail/mailer-pool.js';import'../react/index.js';import'@warlock.js/logger';import'node:fs/promises';import {configSpecialHandlers}from'./config-special-handlers.js';/**
|
|
2
|
-
* App Config Handler
|
|
3
|
-
* Handles locale loading for dayjs
|
|
4
|
-
*/
|
|
5
|
-
const registerAppConfig = async (config) => {
|
|
6
|
-
// Load dayjs locales based on app.localeCodes
|
|
7
|
-
const locales = config.locales || ["en"];
|
|
8
|
-
for (const locale of locales) {
|
|
9
|
-
if (locale === "en")
|
|
10
|
-
continue; // English is default
|
|
11
|
-
try {
|
|
12
|
-
await import(`dayjs/locale/${locale}.js`);
|
|
13
|
-
}
|
|
14
|
-
catch (error) {
|
|
15
|
-
console.warn(` ⚠️ Failed to load dayjs locale: ${locale}`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
configSpecialHandlers.register("app", registerAppConfig);
|
|
20
|
-
/**
|
|
21
|
-
* Log Config Handler
|
|
22
|
-
* Sets log configurations in @warlock.js/core
|
|
23
|
-
*/
|
|
24
|
-
const registerLogConfig = async (logConfig) => {
|
|
25
|
-
try {
|
|
26
|
-
setLogConfigurations(logConfig);
|
|
27
|
-
}
|
|
28
|
-
catch (error) {
|
|
29
|
-
// @warlock.js/core might not be available in all projects
|
|
30
|
-
console.warn(" ⚠️ Could not set log configurations");
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
configSpecialHandlers.register("log", registerLogConfig);
|
|
34
|
-
/**
|
|
35
|
-
* Mail Config Handler
|
|
36
|
-
* Sets mail configurations in @warlock.js/core
|
|
37
|
-
*/
|
|
38
|
-
const registerMailConfig = async (mailConfig) => {
|
|
39
|
-
try {
|
|
40
|
-
setMailConfigurations(mailConfig);
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
// @warlock.js/core might not be available in all projects
|
|
44
|
-
console.warn(" ⚠️ Could not set mail configurations");
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
configSpecialHandlers.register("mail", registerMailConfig);export{registerAppConfig,registerLogConfig,registerMailConfig};//# sourceMappingURL=config-handlers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-handlers.js","sources":["../../src/config/config-handlers.ts"],"sourcesContent":[null],"names":[],"mappings":"iVAKA;;;AAGG;MACU,iBAAiB,GAAG,OAAO,MAAyB,KAAI;;IAEnE,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;AAEzC,IAAA,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;QAC5B,IAAI,MAAM,KAAK,IAAI;AAAE,YAAA,SAAS;QAE9B,IAAI;AACF,YAAA,MAAM,OAAO,CAAA,aAAA,EAAgB,MAAM,CAAA,GAAA,CAAK,CAAC,CAAC;AAC3C,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,CAAC,IAAI,CAAC,uCAAuC,MAAM,CAAA,CAAE,CAAC,CAAC;AAC/D,SAAA;AACF,KAAA;AACH,EAAE;AAEF,qBAAqB,CAAC,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;AAEzD;;;AAGG;MACU,iBAAiB,GAAG,OAAO,SAA4B,KAAI;IACtE,IAAI;QACF,oBAAoB,CAAC,SAAS,CAAC,CAAC;AACjC,KAAA;AAAC,IAAA,OAAO,KAAK,EAAE;;AAEd,QAAA,OAAO,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;AACzD,KAAA;AACH,EAAE;AAEF,qBAAqB,CAAC,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;AAEzD;;;AAGG;MACU,kBAAkB,GAAG,OAAO,UAA8B,KAAI;IACzE,IAAI;QACF,qBAAqB,CAAC,UAAU,CAAC,CAAC;AACnC,KAAA;AAAC,IAAA,OAAO,KAAK,EAAE;;AAEd,QAAA,OAAO,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;AAC1D,KAAA;AACH,EAAE;AAEF,qBAAqB,CAAC,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { FileManager } from "../dev-server/file-manager";
|
|
2
|
-
/**
|
|
3
|
-
* Special Config Handler
|
|
4
|
-
* A function that handles special configuration loading
|
|
5
|
-
*/
|
|
6
|
-
export type SpecialConfigHandler = (configValue: any) => void | Promise<void>;
|
|
7
|
-
/**
|
|
8
|
-
* Config Loader
|
|
9
|
-
* Dynamically loads all configuration files and registers them with @mongez/config
|
|
10
|
-
* Supports special handlers for configs that require additional processing
|
|
11
|
-
*/
|
|
12
|
-
export declare class ConfigLoader {
|
|
13
|
-
/**
|
|
14
|
-
* Load all configuration files
|
|
15
|
-
* @param configFiles Array of config FileManager instances
|
|
16
|
-
*/
|
|
17
|
-
loadAll(configFiles: FileManager[]): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Load a single configuration file
|
|
20
|
-
* @param file FileManager instance for the config file
|
|
21
|
-
* @param bustCache Whether to bust the cache (add timestamp to URL)
|
|
22
|
-
*/
|
|
23
|
-
loadConfig(file: FileManager, bustCache?: boolean): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Reload a configuration file (for HMR)
|
|
26
|
-
* @param file FileManager instance for the config file
|
|
27
|
-
*/
|
|
28
|
-
reloadConfig(file: FileManager): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Extract config name from file path
|
|
31
|
-
* Examples:
|
|
32
|
-
* src/config/database.ts → "database"
|
|
33
|
-
* src/config/payment/stripe.ts → "payment.stripe"
|
|
34
|
-
*/
|
|
35
|
-
private getConfigName;
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=config-loader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../../src/config/config-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAI9D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,WAAW,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE9E;;;;GAIG;AACH,qBAAa,YAAY;IACvB;;;OAGG;IACU,OAAO,CAAC,WAAW,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB/D;;;;OAIG;IACU,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IA+CrF;;;OAGG;IACU,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAK3D;;;;;OAKG;IACH,OAAO,CAAC,aAAa;CAUtB"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import config from'@mongez/config';import {colors}from'@mongez/copper';import {pathToFileURL}from'node:url';import {warlockCachePath}from'../dev-server/utils.js';import {configSpecialHandlers}from'./config-special-handlers.js';/**
|
|
2
|
-
* Config Loader
|
|
3
|
-
* Dynamically loads all configuration files and registers them with @mongez/config
|
|
4
|
-
* Supports special handlers for configs that require additional processing
|
|
5
|
-
*/
|
|
6
|
-
class ConfigLoader {
|
|
7
|
-
/**
|
|
8
|
-
* Load all configuration files
|
|
9
|
-
* @param configFiles Array of config FileManager instances
|
|
10
|
-
*/
|
|
11
|
-
async loadAll(configFiles) {
|
|
12
|
-
if (configFiles.length === 0) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
// Load all configs in parallel
|
|
16
|
-
// await Promise.all(
|
|
17
|
-
// configFiles.map(async file => {
|
|
18
|
-
// await this.loadConfig(file);
|
|
19
|
-
// }),
|
|
20
|
-
// );
|
|
21
|
-
for (const file of configFiles) {
|
|
22
|
-
await this.loadConfig(file);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Load a single configuration file
|
|
27
|
-
* @param file FileManager instance for the config file
|
|
28
|
-
* @param bustCache Whether to bust the cache (add timestamp to URL)
|
|
29
|
-
*/
|
|
30
|
-
async loadConfig(file, bustCache = false) {
|
|
31
|
-
const configName = this.getConfigName(file.relativePath);
|
|
32
|
-
// devLogInfo(`Loading configuration file: ${configName}`);
|
|
33
|
-
try {
|
|
34
|
-
// Convert absolute path to file:// URL for cross-platform compatibility
|
|
35
|
-
let fileUrl = typeof __import !== "undefined"
|
|
36
|
-
? file.cachePath
|
|
37
|
-
: pathToFileURL(warlockCachePath(file.cachePath)).href;
|
|
38
|
-
// Add timestamp for cache busting (forces re-import for HMR)
|
|
39
|
-
if (bustCache && typeof __import === "undefined") {
|
|
40
|
-
const timestamp = Date.now();
|
|
41
|
-
fileUrl += `?t=${timestamp}`;
|
|
42
|
-
}
|
|
43
|
-
// Dynamic import the config file
|
|
44
|
-
const configModule = typeof __import !== "undefined" ? await __import(fileUrl) : await import(fileUrl);
|
|
45
|
-
// Get the default export (the config value)
|
|
46
|
-
const configValue = configModule.default;
|
|
47
|
-
if (configValue === undefined) {
|
|
48
|
-
console.log(colors.red(`config error: `), `Config file ${colors.yellow(file.relativePath)} does not have a default export`);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
// Store in @mongez/config
|
|
52
|
-
// @mongez/config automatically handles nested access (e.g., config.get("database.host"))
|
|
53
|
-
config.set(configName, configValue);
|
|
54
|
-
// devLogInfo(`Configuration file loaded: ${file.relativePath}`);
|
|
55
|
-
// Handle special configs if handler is registered
|
|
56
|
-
await configSpecialHandlers.execute(configName, configValue);
|
|
57
|
-
// devLogInfo(`Special configuration handled: ${configName}`);
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
throw error; // Abort on config errors
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Reload a configuration file (for HMR)
|
|
65
|
-
* @param file FileManager instance for the config file
|
|
66
|
-
*/
|
|
67
|
-
async reloadConfig(file) {
|
|
68
|
-
// Reload the config with cache busting (adds timestamp to URL)
|
|
69
|
-
await this.loadConfig(file, true);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Extract config name from file path
|
|
73
|
-
* Examples:
|
|
74
|
-
* src/config/database.ts → "database"
|
|
75
|
-
* src/config/payment/stripe.ts → "payment.stripe"
|
|
76
|
-
*/
|
|
77
|
-
getConfigName(relativePath) {
|
|
78
|
-
// Extract the part after "src/config/"
|
|
79
|
-
const match = relativePath.match(/^src\/config\/(.+)\.(ts|tsx)$/);
|
|
80
|
-
if (!match) {
|
|
81
|
-
throw new Error(`Invalid config file path: ${relativePath}`);
|
|
82
|
-
}
|
|
83
|
-
return match[1];
|
|
84
|
-
}
|
|
85
|
-
}export{ConfigLoader};//# sourceMappingURL=config-loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-loader.js","sources":["../../src/config/config-loader.ts"],"sourcesContent":[null],"names":[],"mappings":"mOAaA;;;;AAIG;MACU,YAAY,CAAA;AACvB;;;AAGG;IACI,MAAM,OAAO,CAAC,WAA0B,EAAA;AAC7C,QAAA,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,OAAO;AACR,SAAA;;;;;;;AAQD,QAAA,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE;AAC9B,YAAA,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAC7B,SAAA;KACF;AAED;;;;AAIG;AACI,IAAA,MAAM,UAAU,CAAC,IAAiB,EAAE,YAAqB,KAAK,EAAA;QACnE,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;;QAGzD,IAAI;;AAEF,YAAA,IAAI,OAAO,GACT,OAAO,QAAQ,KAAK,WAAW;kBAC3B,IAAI,CAAC,SAAS;AAChB,kBAAE,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;;AAG3D,YAAA,IAAI,SAAS,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;AAChD,gBAAA,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AAC7B,gBAAA,OAAO,IAAI,CAAA,GAAA,EAAM,SAAS,CAAA,CAAE,CAAC;AAC9B,aAAA;;YAID,MAAM,YAAY,GAChB,OAAO,QAAQ,KAAK,WAAW,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,GAAG,MAAM,OAAO,OAAO,CAAC,CAAC;;AAGpF,YAAA,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,CAAC;YAEzC,IAAI,WAAW,KAAK,SAAS,EAAE;gBAC7B,OAAO,CAAC,GAAG,CACT,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAC5B,eAAe,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAiC,+BAAA,CAAA,CACjF,CAAC;gBACF,OAAO;AACR,aAAA;;;AAID,YAAA,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;;;YAKpC,MAAM,qBAAqB,CAAC,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;;AAE9D,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAC;AACb,SAAA;KACF;AAED;;;AAGG;IACI,MAAM,YAAY,CAAC,IAAiB,EAAA;;QAEzC,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KACnC;AAED;;;;;AAKG;AACK,IAAA,aAAa,CAAC,YAAoB,EAAA;;QAExC,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAElE,IAAI,CAAC,KAAK,EAAE;AACV,YAAA,MAAM,IAAI,KAAK,CAAC,6BAA6B,YAAY,CAAA,CAAE,CAAC,CAAC;AAC9D,SAAA;AAED,QAAA,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;KACjB;AACF"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FileManager } from "../dev-server/file-manager";
|
|
2
|
-
import { ConfigLoader } from "./config-loader";
|
|
3
|
-
export declare class ConfigManager {
|
|
4
|
-
/**
|
|
5
|
-
* Config loader instance
|
|
6
|
-
*/
|
|
7
|
-
loader: ConfigLoader;
|
|
8
|
-
/**
|
|
9
|
-
* Constructor
|
|
10
|
-
*/
|
|
11
|
-
constructor();
|
|
12
|
-
/**
|
|
13
|
-
* Load all config files
|
|
14
|
-
*/
|
|
15
|
-
loadAll(files: FileManager[]): Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* Reload a config file
|
|
18
|
-
*/
|
|
19
|
-
reload(file: FileManager): Promise<void>;
|
|
20
|
-
}
|
|
21
|
-
export declare const configManager: ConfigManager;
|
|
22
|
-
//# sourceMappingURL=config-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-manager.d.ts","sourceRoot":"","sources":["../../src/config/config-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,aAAa;IACxB;;OAEG;IACI,MAAM,eAAsB;IAEnC;;OAEG;;IAKH;;OAEG;IACU,OAAO,CAAC,KAAK,EAAE,WAAW,EAAE;IAIzC;;OAEG;IACU,MAAM,CAAC,IAAI,EAAE,WAAW;CAGtC;AAED,eAAO,MAAM,aAAa,eAAsB,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {ConfigLoader}from'./config-loader.js';class ConfigManager {
|
|
2
|
-
/**
|
|
3
|
-
* Config loader instance
|
|
4
|
-
*/
|
|
5
|
-
loader = new ConfigLoader();
|
|
6
|
-
/**
|
|
7
|
-
* Constructor
|
|
8
|
-
*/
|
|
9
|
-
constructor() {
|
|
10
|
-
//
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Load all config files
|
|
14
|
-
*/
|
|
15
|
-
async loadAll(files) {
|
|
16
|
-
return this.loader.loadAll(files);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Reload a config file
|
|
20
|
-
*/
|
|
21
|
-
async reload(file) {
|
|
22
|
-
return this.loader.reloadConfig(file);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const configManager = new ConfigManager();export{ConfigManager,configManager};//# sourceMappingURL=config-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-manager.js","sources":["../../src/config/config-manager.ts"],"sourcesContent":[null],"names":[],"mappings":"oDAGa,aAAa,CAAA;AACxB;;AAEG;AACI,IAAA,MAAM,GAAG,IAAI,YAAY,EAAE,CAAC;AAEnC;;AAEG;AACH,IAAA,WAAA,GAAA;;KAEC;AAED;;AAEG;IACI,MAAM,OAAO,CAAC,KAAoB,EAAA;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KACnC;AAED;;AAEG;IACI,MAAM,MAAM,CAAC,IAAiB,EAAA;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;KACvC;AACF,CAAA;AAEY,MAAA,aAAa,GAAG,IAAI,aAAa"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SpecialConfigHandler } from "./config-loader";
|
|
2
|
-
export declare class ConfigSpecialHandlers {
|
|
3
|
-
/**
|
|
4
|
-
* Handlers
|
|
5
|
-
*/
|
|
6
|
-
protected handlers: Map<string, SpecialConfigHandler>;
|
|
7
|
-
/**
|
|
8
|
-
* Register a new handler
|
|
9
|
-
*/
|
|
10
|
-
register(configName: string, handler: SpecialConfigHandler): void;
|
|
11
|
-
/**
|
|
12
|
-
* Execute handler for the given config name
|
|
13
|
-
*/
|
|
14
|
-
execute(configName: string, config: any): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
export declare const configSpecialHandlers: ConfigSpecialHandlers;
|
|
17
|
-
//# sourceMappingURL=config-special-handlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-special-handlers.d.ts","sourceRoot":"","sources":["../../src/config/config-special-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,qBAAa,qBAAqB;IAChC;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAa;IAElE;;OAEG;IACI,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB;IAIjE;;OAEG;IACU,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG;CAQrD;AAED,eAAO,MAAM,qBAAqB,uBAA8B,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
class ConfigSpecialHandlers {
|
|
2
|
-
/**
|
|
3
|
-
* Handlers
|
|
4
|
-
*/
|
|
5
|
-
handlers = new Map();
|
|
6
|
-
/**
|
|
7
|
-
* Register a new handler
|
|
8
|
-
*/
|
|
9
|
-
register(configName, handler) {
|
|
10
|
-
this.handlers.set(configName, handler);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Execute handler for the given config name
|
|
14
|
-
*/
|
|
15
|
-
async execute(configName, config) {
|
|
16
|
-
const handler = this.handlers.get(configName);
|
|
17
|
-
if (!handler) {
|
|
18
|
-
return; // do nothing
|
|
19
|
-
}
|
|
20
|
-
return handler(config);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
const configSpecialHandlers = new ConfigSpecialHandlers();export{ConfigSpecialHandlers,configSpecialHandlers};//# sourceMappingURL=config-special-handlers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-special-handlers.js","sources":["../../src/config/config-special-handlers.ts"],"sourcesContent":[null],"names":[],"mappings":"MAEa,qBAAqB,CAAA;AAChC;;AAEG;AACO,IAAA,QAAQ,GAAsC,IAAI,GAAG,EAAE,CAAC;AAElE;;AAEG;IACI,QAAQ,CAAC,UAAkB,EAAE,OAA6B,EAAA;QAC/D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;KACxC;AAED;;AAEG;AACI,IAAA,MAAM,OAAO,CAAC,UAAkB,EAAE,MAAW,EAAA;QAClD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,EAAE;AACZ,YAAA,OAAO;AACR,SAAA;AAED,QAAA,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;KACxB;AACF,CAAA;AAEY,MAAA,qBAAqB,GAAG,IAAI,qBAAqB"}
|
package/esm/config/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"load-config-files.d.ts","sourceRoot":"","sources":["../../src/config/load-config-files.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,iBAoB5D"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {filesOrchestrator}from'../dev-server/files-orchestrator.js';import {Path}from'../dev-server/path.js';import {getFilesFromDirectory,getCertainFilesFromDirectory}from'../dev-server/utils.js';import'@warlock.js/logger';import'../database/models/database-log/database-log.js';import'../http/context/request-context.js';import {srcPath}from'../utils/paths.js';import'@mongez/slug';import'@mongez/supportive-is';import'@mongez/reinforcements';import {configManager}from'./config-manager.js';/**
|
|
2
|
-
* Load config files
|
|
3
|
-
* either config file names (without extensions) or true to load all config files
|
|
4
|
-
*/
|
|
5
|
-
async function loadConfigFiles(config) {
|
|
6
|
-
let relativePaths = [];
|
|
7
|
-
if (config === true) {
|
|
8
|
-
const configFilesAbsulatePaths = await getFilesFromDirectory(srcPath("config"));
|
|
9
|
-
relativePaths = configFilesAbsulatePaths.map((path) => Path.toRelative(path));
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
// define only the given config files
|
|
13
|
-
const configFilesAbsulatePaths = await getCertainFilesFromDirectory(srcPath("config"), config);
|
|
14
|
-
relativePaths = configFilesAbsulatePaths.map((path) => Path.toRelative(path));
|
|
15
|
-
}
|
|
16
|
-
const configFiles = await Promise.all(relativePaths.map((relativePath) => filesOrchestrator.add(relativePath)));
|
|
17
|
-
filesOrchestrator.specialFilesCollector.collect(filesOrchestrator.files);
|
|
18
|
-
await configManager.loadAll(configFiles);
|
|
19
|
-
}export{loadConfigFiles};//# sourceMappingURL=load-config-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"load-config-files.js","sources":["../../src/config/load-config-files.ts"],"sourcesContent":[null],"names":[],"mappings":"6eAMA;;;AAGG;AACI,eAAe,eAAe,CAAC,MAAuB,EAAA;IAC3D,IAAI,aAAa,GAAa,EAAE,CAAC;IACjC,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,MAAM,wBAAwB,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAChF,QAAA,aAAa,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/E,KAAA;AAAM,SAAA;;AAGL,QAAA,MAAM,wBAAwB,GAAG,MAAM,4BAA4B,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;AAE/F,QAAA,aAAa,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/E,KAAA;IAED,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,GAAG,CACnC,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,KAAK,iBAAiB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CACzE,CAAC;IAEF,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAEzE,IAAA,MAAM,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AAC3C"}
|
package/esm/config/types.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Config registry interface.
|
|
3
|
-
*
|
|
4
|
-
* Extended via module augmentation by generated typings.
|
|
5
|
-
* Each key represents a config file name (e.g., "database", "app").
|
|
6
|
-
*
|
|
7
|
-
* @example Generated augmentation:
|
|
8
|
-
* ```typescript
|
|
9
|
-
* declare module "@warlock.js/core" {
|
|
10
|
-
* interface ConfigRegistry {
|
|
11
|
-
* app: true;
|
|
12
|
-
* database: true;
|
|
13
|
-
* storage: true;
|
|
14
|
-
* }
|
|
15
|
-
* }
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export interface ConfigRegistry {
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Config name type.
|
|
22
|
-
*
|
|
23
|
-
* Extracts config names from the registry interface.
|
|
24
|
-
* Falls back to `string` if no configs are registered.
|
|
25
|
-
*/
|
|
26
|
-
export type ConfigName = keyof ConfigRegistry extends never ? string : keyof ConfigRegistry;
|
|
27
|
-
/**
|
|
28
|
-
* Config key registry interface.
|
|
29
|
-
*
|
|
30
|
-
* Extended via module augmentation by generated typings.
|
|
31
|
-
* Each key is a dot-notation path (e.g., "database.host").
|
|
32
|
-
*
|
|
33
|
-
* @example Generated augmentation:
|
|
34
|
-
* ```typescript
|
|
35
|
-
* declare module "@warlock.js/core" {
|
|
36
|
-
* interface ConfigKeyRegistry {
|
|
37
|
-
* "app.appName": true;
|
|
38
|
-
* "database.host": true;
|
|
39
|
-
* }
|
|
40
|
-
* }
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
export interface ConfigKeyRegistry {
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Config key type.
|
|
47
|
-
*
|
|
48
|
-
* Extracts config key paths from the registry interface.
|
|
49
|
-
* Falls back to `string` if no keys are registered.
|
|
50
|
-
*/
|
|
51
|
-
export type ConfigKey = keyof ConfigKeyRegistry extends never ? string : keyof ConfigKeyRegistry;
|
|
52
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,cAAc;CAAG;AAElC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,cAAc,SAAS,KAAK,GAAG,MAAM,GAAG,MAAM,cAAc,CAAC;AAE5F;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,iBAAiB;CAAG;AAErC;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,iBAAiB,SAAS,KAAK,GAAG,MAAM,GAAG,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { Connector, ConnectorName } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Base Connector Class
|
|
4
|
-
* Provides common functionality for all connectors
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class BaseConnector implements Connector {
|
|
7
|
-
/**
|
|
8
|
-
* Connector name
|
|
9
|
-
*/
|
|
10
|
-
abstract readonly name: ConnectorName;
|
|
11
|
-
/**
|
|
12
|
-
* Initialization priority
|
|
13
|
-
*/
|
|
14
|
-
abstract readonly priority: number;
|
|
15
|
-
/**
|
|
16
|
-
* Files that trigger restart when changed
|
|
17
|
-
* Use relative paths
|
|
18
|
-
*/
|
|
19
|
-
protected abstract readonly watchedFiles: string[];
|
|
20
|
-
/**
|
|
21
|
-
* Whether the connector is currently active
|
|
22
|
-
*/
|
|
23
|
-
protected active: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Check if connector is active
|
|
26
|
-
*/
|
|
27
|
-
isActive(): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Initialize the connector
|
|
30
|
-
*/
|
|
31
|
-
abstract start(): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Restart the connector
|
|
34
|
-
*/
|
|
35
|
-
restart(): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Shutdown the connector
|
|
38
|
-
*/
|
|
39
|
-
abstract shutdown(): Promise<void>;
|
|
40
|
-
/**
|
|
41
|
-
* Determine if connector should restart based on changed files
|
|
42
|
-
*/
|
|
43
|
-
shouldRestart(changedFiles: string[]): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Check if a file is watched by this connector
|
|
46
|
-
*/
|
|
47
|
-
protected isWatchedFile(file: string): boolean;
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=base-connector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/base-connector.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExD;;;GAGG;AACH,8BAAsB,aAAc,YAAW,SAAS;IACtD;;OAEG;IACH,kBAAyB,IAAI,EAAE,aAAa,CAAC;IAE7C;;OAEG;IACH,kBAAyB,QAAQ,EAAE,MAAM,CAAC;IAE1C;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAEnD;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,CAAS;IAElC;;OAEG;IACI,QAAQ,IAAI,OAAO;IAI1B;;OAEG;aACa,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAEtC;;OAEG;IACU,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAKrC;;OAEG;aACa,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzC;;OAEG;IACI,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO;IAKrD;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAkB/C"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {Path}from'../dev-server/path.js';/**
|
|
2
|
-
* Base Connector Class
|
|
3
|
-
* Provides common functionality for all connectors
|
|
4
|
-
*/
|
|
5
|
-
class BaseConnector {
|
|
6
|
-
/**
|
|
7
|
-
* Whether the connector is currently active
|
|
8
|
-
*/
|
|
9
|
-
active = false;
|
|
10
|
-
/**
|
|
11
|
-
* Check if connector is active
|
|
12
|
-
*/
|
|
13
|
-
isActive() {
|
|
14
|
-
return this.active;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Restart the connector
|
|
18
|
-
*/
|
|
19
|
-
async restart() {
|
|
20
|
-
await this.shutdown();
|
|
21
|
-
await this.start();
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Determine if connector should restart based on changed files
|
|
25
|
-
*/
|
|
26
|
-
shouldRestart(changedFiles) {
|
|
27
|
-
// Check if any changed file matches watched files
|
|
28
|
-
return changedFiles.some((file) => this.isWatchedFile(file));
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Check if a file is watched by this connector
|
|
32
|
-
*/
|
|
33
|
-
isWatchedFile(file) {
|
|
34
|
-
const relativePath = Path.toRelative(file);
|
|
35
|
-
return this.watchedFiles.some((watchedFile) => {
|
|
36
|
-
// Exact match
|
|
37
|
-
if (watchedFile === relativePath) {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
// Pattern match (e.g., "config/*.ts")
|
|
41
|
-
if (watchedFile.includes("*")) {
|
|
42
|
-
const pattern = new RegExp("^" + watchedFile.replace(/\*/g, ".*") + "$");
|
|
43
|
-
return pattern.test(relativePath);
|
|
44
|
-
}
|
|
45
|
-
return false;
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}export{BaseConnector};//# sourceMappingURL=base-connector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-connector.js","sources":["../../src/connectors/base-connector.ts"],"sourcesContent":[null],"names":[],"mappings":"yCAGA;;;AAGG;MACmB,aAAa,CAAA;AAiBjC;;AAEG;IACO,MAAM,GAAY,KAAK,CAAC;AAElC;;AAEG;IACI,QAAQ,GAAA;QACb,OAAO,IAAI,CAAC,MAAM,CAAC;KACpB;AAOD;;AAEG;AACI,IAAA,MAAM,OAAO,GAAA;AAClB,QAAA,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;AACtB,QAAA,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;KACpB;AAOD;;AAEG;AACI,IAAA,aAAa,CAAC,YAAsB,EAAA;;AAEzC,QAAA,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;KAC9D;AAED;;AAEG;AACO,IAAA,aAAa,CAAC,IAAY,EAAA;QAClC,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,WAAW,KAAI;;YAE5C,IAAI,WAAW,KAAK,YAAY,EAAE;AAChC,gBAAA,OAAO,IAAI,CAAC;AACb,aAAA;;AAGD,YAAA,IAAI,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC7B,gBAAA,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;AACzE,gBAAA,OAAO,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACnC,aAAA;AAED,YAAA,OAAO,KAAK,CAAC;AACf,SAAC,CAAC,CAAC;KACJ;AACF"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BaseConnector } from "./base-connector";
|
|
2
|
-
import { ConnectorPriority } from "./types";
|
|
3
|
-
/**
|
|
4
|
-
* Cache Connector
|
|
5
|
-
* Manages cache engine connection lifecycle
|
|
6
|
-
*/
|
|
7
|
-
export declare class CacheConnector extends BaseConnector {
|
|
8
|
-
readonly name = "cache";
|
|
9
|
-
readonly priority = ConnectorPriority.CACHE;
|
|
10
|
-
/**
|
|
11
|
-
* Files that trigger cache restart
|
|
12
|
-
*/
|
|
13
|
-
protected readonly watchedFiles: string[];
|
|
14
|
-
/**
|
|
15
|
-
* Initialize cache connection
|
|
16
|
-
*/
|
|
17
|
-
start(): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Shutdown cache connection
|
|
20
|
-
*/
|
|
21
|
-
shutdown(): Promise<void>;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=cache-connector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cache-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/cache-connector.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;;GAGG;AACH,qBAAa,cAAe,SAAQ,aAAa;IAC/C,SAAgB,IAAI,WAAW;IAC/B,SAAgB,QAAQ,2BAA2B;IAEnD;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,WAA2D;IAE1F;;OAEG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAYnC;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAWvC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import config from'@mongez/config';import {cache}from'@warlock.js/cache';import {BaseConnector}from'./base-connector.js';import {ConnectorPriority}from'./types.js';/**
|
|
2
|
-
* Cache Connector
|
|
3
|
-
* Manages cache engine connection lifecycle
|
|
4
|
-
*/
|
|
5
|
-
class CacheConnector extends BaseConnector {
|
|
6
|
-
name = "cache";
|
|
7
|
-
priority = ConnectorPriority.CACHE;
|
|
8
|
-
/**
|
|
9
|
-
* Files that trigger cache restart
|
|
10
|
-
*/
|
|
11
|
-
watchedFiles = [".env", "src/config/cache.ts", "src/config/cache.tsx"];
|
|
12
|
-
/**
|
|
13
|
-
* Initialize cache connection
|
|
14
|
-
*/
|
|
15
|
-
async start() {
|
|
16
|
-
const cacheConfig = config.get("cache");
|
|
17
|
-
if (!cacheConfig)
|
|
18
|
-
return;
|
|
19
|
-
cache.setCacheConfigurations(cacheConfig);
|
|
20
|
-
await cache.init();
|
|
21
|
-
this.active = true;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Shutdown cache connection
|
|
25
|
-
*/
|
|
26
|
-
async shutdown() {
|
|
27
|
-
if (!this.active) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
// TODO: Implement actual cache disconnection
|
|
31
|
-
// - Close all active connections
|
|
32
|
-
// - Clean up resources
|
|
33
|
-
this.active = false;
|
|
34
|
-
}
|
|
35
|
-
}export{CacheConnector};//# sourceMappingURL=cache-connector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cache-connector.js","sources":["../../src/connectors/cache-connector.ts"],"sourcesContent":[null],"names":[],"mappings":"oKAKA;;;AAGG;AACG,MAAO,cAAe,SAAQ,aAAa,CAAA;IAC/B,IAAI,GAAG,OAAO,CAAC;AACf,IAAA,QAAQ,GAAG,iBAAiB,CAAC,KAAK,CAAC;AAEnD;;AAEG;IACgB,YAAY,GAAG,CAAC,MAAM,EAAE,qBAAqB,EAAE,sBAAsB,CAAC,CAAC;AAE1F;;AAEG;AACI,IAAA,MAAM,KAAK,GAAA;QAChB,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAExC,QAAA,IAAI,CAAC,WAAW;YAAE,OAAO;AAEzB,QAAA,KAAK,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;AAE1C,QAAA,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;AAEnB,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;KACpB;AAED;;AAEG;AACI,IAAA,MAAM,QAAQ,GAAA;AACnB,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,OAAO;AACR,SAAA;;;;AAMD,QAAA,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;KACrB;AACF"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BaseConnector } from "./base-connector";
|
|
2
|
-
import { ConnectorPriority } from "./types";
|
|
3
|
-
/**
|
|
4
|
-
* Communicator Connector
|
|
5
|
-
* Manages message broker connection lifecycle using @warlock.js/herald
|
|
6
|
-
*/
|
|
7
|
-
export declare class CommunicatorConnector extends BaseConnector {
|
|
8
|
-
readonly name = "communicator";
|
|
9
|
-
readonly priority = ConnectorPriority.COMMUNICATOR;
|
|
10
|
-
/**
|
|
11
|
-
* Files that trigger communicator restart
|
|
12
|
-
*/
|
|
13
|
-
protected readonly watchedFiles: string[];
|
|
14
|
-
/**
|
|
15
|
-
* Initialize communicator connection
|
|
16
|
-
*/
|
|
17
|
-
start(): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Shutdown communicator connection
|
|
20
|
-
*/
|
|
21
|
-
shutdown(): Promise<void>;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=communicator-connector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"communicator-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/communicator-connector.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,aAAa;IACtD,SAAgB,IAAI,kBAAkB;IACtC,SAAgB,QAAQ,kCAAkC;IAE1D;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,WAI7B;IAEF;;OAEG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAiCnC;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CA0BvC"}
|