@warlock.js/core 4.0.30 → 4.0.39
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/cli/index.js +2 -1
- package/esm/cli/index.js.map +1 -1
- package/esm/cli/start.js +132 -2
- package/esm/cli/start.js.map +1 -1
- package/esm/index.js +72 -1
- package/esm/index.js.map +1 -1
- package/package.json +71 -65
- package/esm/application.d.ts +0 -27
- package/esm/application.d.ts.map +0 -1
- package/esm/bootstrap/setup.d.ts +0 -7
- package/esm/bootstrap/setup.d.ts.map +0 -1
- package/esm/bootstrap/setup.js +0 -38
- 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 -96
- 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 -224
- 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 -345
- package/esm/cli/cli-commands.manager.js.map +0 -1
- package/esm/cli/cli-commands.utils.d.ts +0 -68
- package/esm/cli/cli-commands.utils.d.ts.map +0 -1
- package/esm/cli/cli-commands.utils.js +0 -182
- package/esm/cli/cli-commands.utils.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/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 -16
- package/esm/cli/commands/dev-server.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/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 -40
- 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 -6
- 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/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/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 -201
- 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 -83
- 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/database/decorators/index.d.ts +0 -2
- package/esm/database/decorators/index.d.ts.map +0 -1
- package/esm/database/decorators/sluggable.d.ts +0 -2
- package/esm/database/decorators/sluggable.d.ts.map +0 -1
- package/esm/database/decorators/sluggable.js +0 -8
- package/esm/database/decorators/sluggable.js.map +0 -1
- package/esm/database/index.d.ts +0 -3
- package/esm/database/index.d.ts.map +0 -1
- package/esm/database/models/database-log/database-log.d.ts +0 -13
- package/esm/database/models/database-log/database-log.d.ts.map +0 -1
- package/esm/database/models/database-log/database-log.js +0 -16
- 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/dev2-server/config-handlers.d.ts +0 -8
- package/esm/dev2-server/config-handlers.d.ts.map +0 -1
- package/esm/dev2-server/config-loader.d.ts +0 -61
- package/esm/dev2-server/config-loader.d.ts.map +0 -1
- package/esm/dev2-server/connectors/base-connector.d.ts +0 -49
- package/esm/dev2-server/connectors/base-connector.d.ts.map +0 -1
- package/esm/dev2-server/connectors/base-connector.js +0 -48
- package/esm/dev2-server/connectors/base-connector.js.map +0 -1
- package/esm/dev2-server/connectors/cache-connector.d.ts +0 -23
- package/esm/dev2-server/connectors/cache-connector.d.ts.map +0 -1
- package/esm/dev2-server/connectors/cache-connector.js +0 -35
- package/esm/dev2-server/connectors/cache-connector.js.map +0 -1
- package/esm/dev2-server/connectors/connectors-manager.d.ts +0 -38
- package/esm/dev2-server/connectors/connectors-manager.d.ts.map +0 -1
- package/esm/dev2-server/connectors/connectors-manager.js +0 -80
- package/esm/dev2-server/connectors/connectors-manager.js.map +0 -1
- package/esm/dev2-server/connectors/database-connector.d.ts +0 -23
- package/esm/dev2-server/connectors/database-connector.d.ts.map +0 -1
- package/esm/dev2-server/connectors/database-connector.js +0 -42
- package/esm/dev2-server/connectors/database-connector.js.map +0 -1
- package/esm/dev2-server/connectors/http-connector.d.ts +0 -29
- package/esm/dev2-server/connectors/http-connector.d.ts.map +0 -1
- package/esm/dev2-server/connectors/http-connector.js +0 -69
- package/esm/dev2-server/connectors/http-connector.js.map +0 -1
- package/esm/dev2-server/connectors/index.d.ts +0 -11
- package/esm/dev2-server/connectors/index.d.ts.map +0 -1
- package/esm/dev2-server/connectors/types.d.ts +0 -49
- package/esm/dev2-server/connectors/types.d.ts.map +0 -1
- package/esm/dev2-server/connectors/types.js +0 -9
- package/esm/dev2-server/connectors/types.js.map +0 -1
- package/esm/dev2-server/create-worker.d.ts +0 -34
- package/esm/dev2-server/create-worker.d.ts.map +0 -1
- package/esm/dev2-server/create-worker.js +0 -37
- package/esm/dev2-server/create-worker.js.map +0 -1
- package/esm/dev2-server/dependency-graph.d.ts +0 -93
- package/esm/dev2-server/dependency-graph.d.ts.map +0 -1
- package/esm/dev2-server/dependency-graph.js +0 -266
- package/esm/dev2-server/dependency-graph.js.map +0 -1
- package/esm/dev2-server/dev-logger.d.ts +0 -14
- package/esm/dev2-server/dev-logger.d.ts.map +0 -1
- package/esm/dev2-server/dev-logger.js +0 -130
- package/esm/dev2-server/dev-logger.js.map +0 -1
- package/esm/dev2-server/development-server.d.ts +0 -47
- package/esm/dev2-server/development-server.d.ts.map +0 -1
- package/esm/dev2-server/development-server.js +0 -135
- package/esm/dev2-server/development-server.js.map +0 -1
- package/esm/dev2-server/events.d.ts +0 -5
- package/esm/dev2-server/events.d.ts.map +0 -1
- package/esm/dev2-server/events.js +0 -4
- package/esm/dev2-server/events.js.map +0 -1
- package/esm/dev2-server/file-event-handler.d.ts +0 -156
- package/esm/dev2-server/file-event-handler.d.ts.map +0 -1
- package/esm/dev2-server/file-event-handler.js +0 -300
- package/esm/dev2-server/file-event-handler.js.map +0 -1
- package/esm/dev2-server/file-manager.d.ts +0 -385
- package/esm/dev2-server/file-manager.d.ts.map +0 -1
- package/esm/dev2-server/file-manager.js +0 -580
- package/esm/dev2-server/file-manager.js.map +0 -1
- package/esm/dev2-server/file-operations.d.ts +0 -203
- package/esm/dev2-server/file-operations.d.ts.map +0 -1
- package/esm/dev2-server/file-operations.js +0 -365
- package/esm/dev2-server/file-operations.js.map +0 -1
- package/esm/dev2-server/files-orchestrator.d.ts +0 -146
- package/esm/dev2-server/files-orchestrator.d.ts.map +0 -1
- package/esm/dev2-server/files-orchestrator.js +0 -314
- package/esm/dev2-server/files-orchestrator.js.map +0 -1
- package/esm/dev2-server/files-watcher.d.ts +0 -67
- package/esm/dev2-server/files-watcher.d.ts.map +0 -1
- package/esm/dev2-server/files-watcher.js +0 -95
- package/esm/dev2-server/files-watcher.js.map +0 -1
- package/esm/dev2-server/flags.d.ts +0 -10
- package/esm/dev2-server/flags.d.ts.map +0 -1
- package/esm/dev2-server/flags.js +0 -9
- package/esm/dev2-server/flags.js.map +0 -1
- package/esm/dev2-server/health-checker/checkers/base-health-checker.d.ts +0 -52
- package/esm/dev2-server/health-checker/checkers/base-health-checker.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/checkers/base-health-checker.js +0 -71
- package/esm/dev2-server/health-checker/checkers/base-health-checker.js.map +0 -1
- package/esm/dev2-server/health-checker/checkers/eslint-health-checker.d.ts +0 -40
- package/esm/dev2-server/health-checker/checkers/eslint-health-checker.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/checkers/eslint-health-checker.js +0 -217
- package/esm/dev2-server/health-checker/checkers/eslint-health-checker.js.map +0 -1
- package/esm/dev2-server/health-checker/checkers/typescript-health-checker.d.ts +0 -56
- package/esm/dev2-server/health-checker/checkers/typescript-health-checker.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/checkers/typescript-health-checker.js +0 -279
- package/esm/dev2-server/health-checker/checkers/typescript-health-checker.js.map +0 -1
- package/esm/dev2-server/health-checker/file-health-checker.contract.d.ts +0 -59
- package/esm/dev2-server/health-checker/file-health-checker.contract.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/file-health-result.d.ts +0 -68
- package/esm/dev2-server/health-checker/file-health-result.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/file-health-result.js +0 -40
- package/esm/dev2-server/health-checker/file-health-result.js.map +0 -1
- package/esm/dev2-server/health-checker/files-healthcare.manager.d.ts +0 -115
- package/esm/dev2-server/health-checker/files-healthcare.manager.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/files-healthcare.manager.js +0 -422
- package/esm/dev2-server/health-checker/files-healthcare.manager.js.map +0 -1
- package/esm/dev2-server/health-checker/index.d.ts +0 -6
- package/esm/dev2-server/health-checker/index.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/workers/eslint-health.worker.d.ts +0 -2
- package/esm/dev2-server/health-checker/workers/eslint-health.worker.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/workers/eslint-health.worker.js +0 -214
- package/esm/dev2-server/health-checker/workers/eslint-health.worker.js.map +0 -1
- package/esm/dev2-server/health-checker/workers/ts-health.worker.d.ts +0 -2
- package/esm/dev2-server/health-checker/workers/ts-health.worker.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/workers/ts-health.worker.js +0 -261
- package/esm/dev2-server/health-checker/workers/ts-health.worker.js.map +0 -1
- package/esm/dev2-server/import-transformer.d.ts +0 -17
- package/esm/dev2-server/import-transformer.d.ts.map +0 -1
- package/esm/dev2-server/import-transformer.js +0 -236
- package/esm/dev2-server/import-transformer.js.map +0 -1
- package/esm/dev2-server/index.d.ts +0 -1
- package/esm/dev2-server/index.d.ts.map +0 -1
- package/esm/dev2-server/layer-executor.d.ts +0 -60
- package/esm/dev2-server/layer-executor.d.ts.map +0 -1
- package/esm/dev2-server/layer-executor.js +0 -309
- package/esm/dev2-server/layer-executor.js.map +0 -1
- package/esm/dev2-server/manifest-manager.d.ts +0 -80
- package/esm/dev2-server/manifest-manager.d.ts.map +0 -1
- package/esm/dev2-server/manifest-manager.js +0 -107
- package/esm/dev2-server/manifest-manager.js.map +0 -1
- package/esm/dev2-server/module-loader.d.ts +0 -104
- package/esm/dev2-server/module-loader.d.ts.map +0 -1
- package/esm/dev2-server/module-loader.js +0 -251
- package/esm/dev2-server/module-loader.js.map +0 -1
- package/esm/dev2-server/package-json-manager.d.ts +0 -16
- package/esm/dev2-server/package-json-manager.d.ts.map +0 -1
- package/esm/dev2-server/package-json-manager.js +0 -20
- package/esm/dev2-server/package-json-manager.js.map +0 -1
- package/esm/dev2-server/parse-imports.d.ts +0 -13
- package/esm/dev2-server/parse-imports.d.ts.map +0 -1
- package/esm/dev2-server/parse-imports.js +0 -329
- package/esm/dev2-server/parse-imports.js.map +0 -1
- package/esm/dev2-server/path.d.ts +0 -39
- package/esm/dev2-server/path.d.ts.map +0 -1
- package/esm/dev2-server/path.js +0 -56
- package/esm/dev2-server/path.js.map +0 -1
- package/esm/dev2-server/runtime-import-helper.d.ts +0 -9
- package/esm/dev2-server/runtime-import-helper.d.ts.map +0 -1
- package/esm/dev2-server/runtime-import-helper.js +0 -150
- package/esm/dev2-server/runtime-import-helper.js.map +0 -1
- package/esm/dev2-server/special-files-collector.d.ts +0 -114
- package/esm/dev2-server/special-files-collector.d.ts.map +0 -1
- package/esm/dev2-server/special-files-collector.js +0 -212
- package/esm/dev2-server/special-files-collector.js.map +0 -1
- package/esm/dev2-server/start-development-server.d.ts +0 -7
- package/esm/dev2-server/start-development-server.d.ts.map +0 -1
- package/esm/dev2-server/start-development-server.js +0 -21
- package/esm/dev2-server/start-development-server.js.map +0 -1
- package/esm/dev2-server/transpile-file.d.ts +0 -11
- package/esm/dev2-server/transpile-file.d.ts.map +0 -1
- package/esm/dev2-server/transpile-file.js +0 -21
- package/esm/dev2-server/transpile-file.js.map +0 -1
- package/esm/dev2-server/tsconfig-manager.d.ts +0 -45
- package/esm/dev2-server/tsconfig-manager.d.ts.map +0 -1
- package/esm/dev2-server/tsconfig-manager.js +0 -107
- package/esm/dev2-server/tsconfig-manager.js.map +0 -1
- package/esm/dev2-server/type-generator.d.ts +0 -115
- package/esm/dev2-server/type-generator.d.ts.map +0 -1
- package/esm/dev2-server/type-generator.js +0 -566
- package/esm/dev2-server/type-generator.js.map +0 -1
- package/esm/dev2-server/types.d.ts +0 -30
- package/esm/dev2-server/types.d.ts.map +0 -1
- package/esm/dev2-server/utils.d.ts +0 -15
- package/esm/dev2-server/utils.d.ts.map +0 -1
- package/esm/dev2-server/utils.js +0 -40
- package/esm/dev2-server/utils.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/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 -13
- package/esm/http/database/RequestLog.d.ts.map +0 -1
- package/esm/http/database/RequestLog.js +0 -25
- package/esm/http/database/RequestLog.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/errors/resource-not-found.error.d.ts +0 -21
- package/esm/http/errors/resource-not-found.error.d.ts.map +0 -1
- package/esm/http/errors/resource-not-found.error.js +0 -40
- package/esm/http/errors/resource-not-found.error.js.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 -16
- 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 -35
- package/esm/http/middleware/inject-request-context.d.ts.map +0 -1
- package/esm/http/middleware/inject-request-context.js +0 -110
- package/esm/http/middleware/inject-request-context.js.map +0 -1
- package/esm/http/plugins/index.d.ts +0 -3
- package/esm/http/plugins/index.d.ts.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 -39
- 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 -376
- package/esm/http/request.d.ts.map +0 -1
- package/esm/http/request.js +0 -729
- package/esm/http/request.js.map +0 -1
- package/esm/http/response.d.ts +0 -271
- package/esm/http/response.d.ts.map +0 -1
- package/esm/http/response.js +0 -574
- 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 -174
- package/esm/http/types.d.ts.map +0 -1
- package/esm/http/uploaded-file.d.ts +0 -445
- package/esm/http/uploaded-file.d.ts.map +0 -1
- package/esm/http/uploaded-file.js +0 -694
- 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 -382
- package/esm/image/image.d.ts.map +0 -1
- package/esm/image/image.js +0 -552
- 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 -29
- package/esm/index.d.ts.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 -83
- package/esm/mail/config.d.ts.map +0 -1
- package/esm/mail/config.js +0 -152
- 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 -26
- package/esm/mail/mailer-pool.d.ts.map +0 -1
- package/esm/mail/mailer-pool.js +0 -95
- package/esm/mail/mailer-pool.js.map +0 -1
- package/esm/mail/react-mail.d.ts +0 -6
- package/esm/mail/react-mail.d.ts.map +0 -1
- package/esm/mail/react-mail.js +0 -25
- 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 -309
- 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 -245
- 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/output/index.d.ts +0 -3
- package/esm/output/index.d.ts.map +0 -1
- package/esm/output/output.d.ts +0 -193
- package/esm/output/output.d.ts.map +0 -1
- package/esm/output/output.js +0 -599
- package/esm/output/output.js.map +0 -1
- package/esm/output/types.d.ts +0 -23
- package/esm/output/types.d.ts.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 -245
- package/esm/production/production-builder.js.map +0 -1
- package/esm/react/index.d.ts +0 -3
- package/esm/react/index.d.ts.map +0 -1
- package/esm/react/index.js +0 -7
- package/esm/react/index.js.map +0 -1
- package/esm/repositories/base-repository-manager.d.ts +0 -47
- package/esm/repositories/base-repository-manager.d.ts.map +0 -1
- package/esm/repositories/base-repository-manager.js +0 -63
- package/esm/repositories/base-repository-manager.js.map +0 -1
- package/esm/repositories/index.d.ts +0 -8
- package/esm/repositories/index.d.ts.map +0 -1
- package/esm/repositories/repository-destroyer-manager.d.ts +0 -21
- package/esm/repositories/repository-destroyer-manager.d.ts.map +0 -1
- package/esm/repositories/repository-destroyer-manager.js +0 -38
- package/esm/repositories/repository-destroyer-manager.js.map +0 -1
- package/esm/repositories/repository-filler-manager.d.ts +0 -60
- package/esm/repositories/repository-filler-manager.d.ts.map +0 -1
- package/esm/repositories/repository-filler-manager.js +0 -102
- package/esm/repositories/repository-filler-manager.js.map +0 -1
- package/esm/repositories/repository-filler.d.ts +0 -26
- package/esm/repositories/repository-filler.d.ts.map +0 -1
- package/esm/repositories/repository-filler.js +0 -63
- package/esm/repositories/repository-filler.js.map +0 -1
- package/esm/repositories/repository-list-manager.d.ts +0 -385
- package/esm/repositories/repository-list-manager.d.ts.map +0 -1
- package/esm/repositories/repository-list-manager.js +0 -812
- package/esm/repositories/repository-list-manager.js.map +0 -1
- package/esm/repositories/repository-listing.d.ts +0 -82
- package/esm/repositories/repository-listing.d.ts.map +0 -1
- package/esm/repositories/repository-listing.js +0 -177
- package/esm/repositories/repository-listing.js.map +0 -1
- package/esm/repositories/repository-manager.d.ts +0 -5
- package/esm/repositories/repository-manager.d.ts.map +0 -1
- package/esm/repositories/repository-manager.js +0 -2
- package/esm/repositories/repository-manager.js.map +0 -1
- package/esm/repositories/types.d.ts +0 -114
- package/esm/repositories/types.d.ts.map +0 -1
- package/esm/repositories/utils.d.ts +0 -3
- package/esm/repositories/utils.d.ts.map +0 -1
- package/esm/repositories/utils.js +0 -7
- package/esm/repositories/utils.js.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/router/index.d.ts +0 -4
- package/esm/router/index.d.ts.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 -169
- package/esm/router/router.d.ts.map +0 -1
- package/esm/router/router.js +0 -564
- package/esm/router/router.js.map +0 -1
- package/esm/router/types.d.ts +0 -258
- package/esm/router/types.d.ts.map +0 -1
- package/esm/router/utils.d.ts +0 -5
- package/esm/router/utils.d.ts.map +0 -1
- package/esm/router/utils.js +0 -6
- package/esm/router/utils.js.map +0 -1
- package/esm/storage/config.d.ts +0 -8
- package/esm/storage/config.d.ts.map +0 -1
- package/esm/storage/config.js +0 -6
- package/esm/storage/config.js.map +0 -1
- package/esm/storage/drivers/cloud-driver.d.ts +0 -127
- package/esm/storage/drivers/cloud-driver.d.ts.map +0 -1
- package/esm/storage/drivers/cloud-driver.js +0 -406
- package/esm/storage/drivers/cloud-driver.js.map +0 -1
- package/esm/storage/drivers/do-spaces-driver.d.ts +0 -47
- package/esm/storage/drivers/do-spaces-driver.d.ts.map +0 -1
- package/esm/storage/drivers/do-spaces-driver.js +0 -52
- package/esm/storage/drivers/do-spaces-driver.js.map +0 -1
- package/esm/storage/drivers/local-driver.d.ts +0 -136
- package/esm/storage/drivers/local-driver.d.ts.map +0 -1
- package/esm/storage/drivers/local-driver.js +0 -409
- package/esm/storage/drivers/local-driver.js.map +0 -1
- package/esm/storage/drivers/r2-driver.d.ts +0 -50
- package/esm/storage/drivers/r2-driver.d.ts.map +0 -1
- package/esm/storage/drivers/r2-driver.js +0 -59
- 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 -34
- package/esm/storage/drivers/s3-driver.js.map +0 -1
- package/esm/storage/index.d.ts +0 -12
- package/esm/storage/index.d.ts.map +0 -1
- package/esm/storage/scoped-storage.d.ts +0 -402
- package/esm/storage/scoped-storage.d.ts.map +0 -1
- package/esm/storage/scoped-storage.js +0 -488
- package/esm/storage/scoped-storage.js.map +0 -1
- package/esm/storage/storage-file.d.ts +0 -216
- package/esm/storage/storage-file.d.ts.map +0 -1
- package/esm/storage/storage-file.js +0 -358
- package/esm/storage/storage-file.js.map +0 -1
- package/esm/storage/storage.d.ts +0 -582
- package/esm/storage/storage.d.ts.map +0 -1
- package/esm/storage/storage.js +0 -941
- package/esm/storage/storage.js.map +0 -1
- package/esm/storage/types.d.ts +0 -728
- 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/store/index.d.ts +0 -25
- package/esm/store/index.d.ts.map +0 -1
- package/esm/store/index.js +0 -52
- package/esm/store/index.js.map +0 -1
- package/esm/tests/boot-testing.d.ts +0 -7
- package/esm/tests/boot-testing.d.ts.map +0 -1
- package/esm/tests/boot-testing.js +0 -23
- package/esm/tests/boot-testing.js.map +0 -1
- package/esm/tests/create-http-test-application.d.ts +0 -25
- package/esm/tests/create-http-test-application.d.ts.map +0 -1
- package/esm/tests/create-http-test-application.js +0 -76
- package/esm/tests/create-http-test-application.js.map +0 -1
- package/esm/tests/http-response-output-test.d.ts +0 -42
- package/esm/tests/http-response-output-test.d.ts.map +0 -1
- package/esm/tests/http-response-output-test.js +0 -53
- package/esm/tests/http-response-output-test.js.map +0 -1
- package/esm/tests/http-test-response.d.ts +0 -75
- package/esm/tests/http-test-response.d.ts.map +0 -1
- package/esm/tests/index.d.ts +0 -4
- package/esm/tests/index.d.ts.map +0 -1
- package/esm/tests/init-testing.d.ts +0 -7
- package/esm/tests/init-testing.d.ts.map +0 -1
- package/esm/tests/types.d.ts +0 -10
- package/esm/tests/types.d.ts.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 -44
- package/esm/utils/database-log.js.map +0 -1
- package/esm/utils/date-output.d.ts +0 -69
- package/esm/utils/date-output.d.ts.map +0 -1
- package/esm/utils/date-output.js +0 -62
- package/esm/utils/date-output.js.map +0 -1
- package/esm/utils/date-output.test.d.ts +0 -2
- package/esm/utils/date-output.test.d.ts.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/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/get-localized.test.d.ts +0 -2
- package/esm/utils/get-localized.test.d.ts.map +0 -1
- package/esm/utils/index.d.ts +0 -13
- 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/sluggable.test.d.ts +0 -2
- package/esm/utils/sluggable.test.d.ts.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 -23
- 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 -25
- 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 -21
- 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 -23
- 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 -25
- 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 -30
- 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 -34
- 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 -95
- 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 -39
- package/esm/validation/validateAll.js.map +0 -1
- package/esm/validation/validators/file-validator.d.ts +0 -40
- package/esm/validation/validators/file-validator.d.ts.map +0 -1
- package/esm/validation/validators/file-validator.js +0 -94
- 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 -79
- 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
package/esm/dev2-server/flags.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import'@warlock.js/logger';import'@warlock.js/cascade';import'../utils/date-output.js';import'../http/middleware/inject-request-context.js';import {warlockPath}from'../utils/paths.js';import'@mongez/slug';import'@mongez/supportive-is';import'@mongez/reinforcements';const MANIFEST_PATH = warlockPath("manifest.json");
|
|
2
|
-
/**
|
|
3
|
-
* Number of files to process in parallel per batch
|
|
4
|
-
* Adjust this value to optimize performance vs memory usage
|
|
5
|
-
* - Lower values (10-20): More stable, less memory, slower
|
|
6
|
-
* - Higher values (100-200): Faster, more memory, potential instability
|
|
7
|
-
* - Recommended: 50 for most projects
|
|
8
|
-
*/
|
|
9
|
-
const FILE_PROCESSING_BATCH_SIZE = 500;export{FILE_PROCESSING_BATCH_SIZE,MANIFEST_PATH};//# sourceMappingURL=flags.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flags.js","sources":["../../src/dev2-server/flags.ts"],"sourcesContent":[null],"names":[],"mappings":"gRAEa,aAAa,GAAG,WAAW,CAAC,eAAe,EAAE;AAE1D;;;;;;AAMG;AACI,MAAM,0BAA0B,GAAG"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { FileManager } from "../../file-manager";
|
|
2
|
-
import type { FileHealthCheckerContract, HealthCheckerFilesStats } from "../file-health-checker.contract";
|
|
3
|
-
import { FileHealthResult } from "../file-health-result";
|
|
4
|
-
type CheckerFile = {
|
|
5
|
-
file: FileManager;
|
|
6
|
-
healthResult: FileHealthResult;
|
|
7
|
-
};
|
|
8
|
-
export declare abstract class BaseHealthChecker implements FileHealthCheckerContract {
|
|
9
|
-
/**
|
|
10
|
-
* List of checked files
|
|
11
|
-
*/
|
|
12
|
-
protected files: Map<string, CheckerFile>;
|
|
13
|
-
/**
|
|
14
|
-
* Health checker name (unique identifier)
|
|
15
|
-
*/
|
|
16
|
-
abstract name: string;
|
|
17
|
-
/**
|
|
18
|
-
* Path to worker file (without extension)
|
|
19
|
-
*
|
|
20
|
-
* If provided, the checker runs in a dedicated worker thread.
|
|
21
|
-
* If undefined, the checker runs in the main thread.
|
|
22
|
-
*
|
|
23
|
-
* @see FileHealthCheckerContract.workerPath
|
|
24
|
-
*/
|
|
25
|
-
workerPath?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Initialize the health checker
|
|
28
|
-
*/
|
|
29
|
-
abstract initialize(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Detect when files are changed
|
|
32
|
-
*/
|
|
33
|
-
onFileChanges(files: FileManager[]): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Remove the given file from the checker
|
|
36
|
-
*/
|
|
37
|
-
removeFile(file: FileManager): BaseHealthChecker;
|
|
38
|
-
/**
|
|
39
|
-
* Validate the health of the file
|
|
40
|
-
*/
|
|
41
|
-
check(file: FileManager): Promise<FileHealthResult>;
|
|
42
|
-
/**
|
|
43
|
-
* Validate the health of the file
|
|
44
|
-
*/
|
|
45
|
-
abstract validate(file: FileManager, result: FileHealthResult): Promise<FileHealthResult>;
|
|
46
|
-
/**
|
|
47
|
-
* Get the stats of the health checker
|
|
48
|
-
*/
|
|
49
|
-
stats(): Promise<HealthCheckerFilesStats>;
|
|
50
|
-
}
|
|
51
|
-
export {};
|
|
52
|
-
//# sourceMappingURL=base-health-checker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-health-checker.d.ts","sourceRoot":"","sources":["../../../../src/dev2-server/health-checker/checkers/base-health-checker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,WAAW,CAAC;IAClB,YAAY,EAAE,gBAAgB,CAAC;CAChC,CAAC;AAEF,8BAAsB,iBAAkB,YAAW,yBAAyB;IAC1E;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAa;IAEtD;;OAEG;IACH,SAAgB,IAAI,EAAE,MAAM,CAAC;IAE7B;;;;;;;OAOG;IACI,UAAU,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;aACa,UAAU,IAAI,IAAI;IAElC;;OAEG;IACU,aAAa,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/D;;OAEG;IACI,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,iBAAiB;IAKvD;;OAEG;IACU,KAAK,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAWhE;;OAEG;aACa,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAEhG;;OAEG;IACU,KAAK,IAAI,OAAO,CAAC,uBAAuB,CAAC;CA+BvD"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import {FileHealthResult}from'../file-health-result.js';class BaseHealthChecker {
|
|
2
|
-
/**
|
|
3
|
-
* List of checked files
|
|
4
|
-
*/
|
|
5
|
-
files = new Map();
|
|
6
|
-
/**
|
|
7
|
-
* Path to worker file (without extension)
|
|
8
|
-
*
|
|
9
|
-
* If provided, the checker runs in a dedicated worker thread.
|
|
10
|
-
* If undefined, the checker runs in the main thread.
|
|
11
|
-
*
|
|
12
|
-
* @see FileHealthCheckerContract.workerPath
|
|
13
|
-
*/
|
|
14
|
-
workerPath;
|
|
15
|
-
/**
|
|
16
|
-
* Detect when files are changed
|
|
17
|
-
*/
|
|
18
|
-
async onFileChanges(files) {
|
|
19
|
-
//
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Remove the given file from the checker
|
|
23
|
-
*/
|
|
24
|
-
removeFile(file) {
|
|
25
|
-
this.files.delete(file.relativePath);
|
|
26
|
-
return this;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Validate the health of the file
|
|
30
|
-
*/
|
|
31
|
-
async check(file) {
|
|
32
|
-
const result = new FileHealthResult();
|
|
33
|
-
this.files.set(file.relativePath, {
|
|
34
|
-
file,
|
|
35
|
-
healthResult: result,
|
|
36
|
-
});
|
|
37
|
-
return await this.validate(file, result);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Get the stats of the health checker
|
|
41
|
-
*/
|
|
42
|
-
async stats() {
|
|
43
|
-
const result = {
|
|
44
|
-
name: this.name,
|
|
45
|
-
files: {
|
|
46
|
-
healthy: 0,
|
|
47
|
-
defective: 0,
|
|
48
|
-
},
|
|
49
|
-
warnings: {
|
|
50
|
-
total: 0,
|
|
51
|
-
totalFiles: 0,
|
|
52
|
-
},
|
|
53
|
-
errors: {
|
|
54
|
-
total: 0,
|
|
55
|
-
totalFiles: 0,
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
for (const file of this.files.values()) {
|
|
59
|
-
const healthResult = file.healthResult;
|
|
60
|
-
const stats = healthResult.getStats();
|
|
61
|
-
const isHealthy = stats.state === "healthy";
|
|
62
|
-
result.files.healthy += isHealthy ? 1 : 0;
|
|
63
|
-
result.files.defective += !isHealthy ? 1 : 0;
|
|
64
|
-
result.warnings.total += stats.warnings;
|
|
65
|
-
result.warnings.totalFiles += stats.warnings > 0 ? 1 : 0;
|
|
66
|
-
result.errors.total += stats.errors;
|
|
67
|
-
result.errors.totalFiles += stats.errors > 0 ? 1 : 0;
|
|
68
|
-
}
|
|
69
|
-
return result;
|
|
70
|
-
}
|
|
71
|
-
}export{BaseHealthChecker};//# sourceMappingURL=base-health-checker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-health-checker.js","sources":["../../../../src/dev2-server/health-checker/checkers/base-health-checker.ts"],"sourcesContent":[null],"names":[],"mappings":"8DAYsB,iBAAiB,CAAA;AACrC;;AAEG;AACO,IAAA,KAAK,GAA6B,IAAI,GAAG,EAAE,CAAC;AAOtD;;;;;;;AAOG;AACI,IAAA,UAAU,CAAU;AAO3B;;AAEG;IACI,MAAM,aAAa,CAAC,KAAoB,EAAA;;KAE9C;AAED;;AAEG;AACI,IAAA,UAAU,CAAC,IAAiB,EAAA;QACjC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACrC,QAAA,OAAO,IAAI,CAAC;KACb;AAED;;AAEG;IACI,MAAM,KAAK,CAAC,IAAiB,EAAA;AAClC,QAAA,MAAM,MAAM,GAAG,IAAI,gBAAgB,EAAE,CAAC;QAEtC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE;YAChC,IAAI;AACJ,YAAA,YAAY,EAAE,MAAM;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,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACtD,SAAA;AAED,QAAA,OAAO,MAAM,CAAC;KACf;AACF"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { FileManager } from "../../file-manager";
|
|
2
|
-
import { FileHealthCheckerContract } from "../file-health-checker.contract";
|
|
3
|
-
import { FileHealthResult } from "../file-health-result";
|
|
4
|
-
import { BaseHealthChecker } from "./base-health-checker";
|
|
5
|
-
export declare class EslintHealthChecker extends BaseHealthChecker implements FileHealthCheckerContract {
|
|
6
|
-
/**
|
|
7
|
-
* ESLint instance (using new ESLint v9 API with flat config)
|
|
8
|
-
*/
|
|
9
|
-
private eslint;
|
|
10
|
-
/**
|
|
11
|
-
* Health checker name
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* Path to dedicated worker file for ESLint checking
|
|
16
|
-
* Runs in a separate thread to avoid blocking the main dev server
|
|
17
|
-
*/
|
|
18
|
-
workerPath: string;
|
|
19
|
-
/**
|
|
20
|
-
* Whether checker is initialized
|
|
21
|
-
*/
|
|
22
|
-
private initialized;
|
|
23
|
-
/**
|
|
24
|
-
* Check if file is a lintable file
|
|
25
|
-
*/
|
|
26
|
-
private isLintableFile;
|
|
27
|
-
/**
|
|
28
|
-
* Initialize the health checker
|
|
29
|
-
*/
|
|
30
|
-
initialize(): EslintHealthChecker;
|
|
31
|
-
/**
|
|
32
|
-
* Display health check results in a pretty format
|
|
33
|
-
*/
|
|
34
|
-
private displayResults;
|
|
35
|
-
/**
|
|
36
|
-
* Validate the health of the file
|
|
37
|
-
*/
|
|
38
|
-
validate(file: FileManager, result: FileHealthResult): Promise<FileHealthResult>;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=eslint-health-checker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-health-checker.d.ts","sourceRoot":"","sources":["../../../../src/dev2-server/health-checker/checkers/eslint-health-checker.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAAa,mBAAoB,SAAQ,iBAAkB,YAAW,yBAAyB;IAC7F;;OAEG;IACH,OAAO,CAAC,MAAM,CAAuB;IAErC;;OAEG;IACI,IAAI,EAAE,MAAM,CAAY;IAE/B;;;OAGG;IACI,UAAU,EAAE,MAAM,CAAoC;IAE7D;;OAEG;IACH,OAAO,CAAC,WAAW,CAAkB;IAErC;;OAEG;IACH,OAAO,CAAC,cAAc;IAOtB;;OAEG;IACI,UAAU,IAAI,mBAAmB;IAkCxC;;OAEG;IACH,OAAO,CAAC,cAAc;IAyGtB;;OAEG;IACU,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CA+F9F"}
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import {colors}from'@mongez/copper';import {ESLint}from'eslint';import fs from'fs';import path from'path';import {BaseHealthChecker}from'./base-health-checker.js';class EslintHealthChecker extends BaseHealthChecker {
|
|
2
|
-
/**
|
|
3
|
-
* ESLint instance (using new ESLint v9 API with flat config)
|
|
4
|
-
*/
|
|
5
|
-
eslint = null;
|
|
6
|
-
/**
|
|
7
|
-
* Health checker name
|
|
8
|
-
*/
|
|
9
|
-
name = "ESLint";
|
|
10
|
-
/**
|
|
11
|
-
* Path to dedicated worker file for ESLint checking
|
|
12
|
-
* Runs in a separate thread to avoid blocking the main dev server
|
|
13
|
-
*/
|
|
14
|
-
workerPath = "./workers/eslint-health.worker";
|
|
15
|
-
/**
|
|
16
|
-
* Whether checker is initialized
|
|
17
|
-
*/
|
|
18
|
-
initialized = false;
|
|
19
|
-
/**
|
|
20
|
-
* Check if file is a lintable file
|
|
21
|
-
*/
|
|
22
|
-
isLintableFile(filePath) {
|
|
23
|
-
const ext = filePath.toLowerCase();
|
|
24
|
-
return (ext.endsWith(".ts") || ext.endsWith(".tsx") || ext.endsWith(".js") || ext.endsWith(".jsx"));
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Initialize the health checker
|
|
28
|
-
*/
|
|
29
|
-
initialize() {
|
|
30
|
-
try {
|
|
31
|
-
// Check if eslint.config.js exists (new flat config format)
|
|
32
|
-
const flatConfigPath = path.join(process.cwd(), "eslint.config.js");
|
|
33
|
-
const flatConfigMjsPath = path.join(process.cwd(), "eslint.config.mjs");
|
|
34
|
-
const flatConfigCjsPath = path.join(process.cwd(), "eslint.config.cjs");
|
|
35
|
-
const hasFlatConfig = fs.existsSync(flatConfigPath) ||
|
|
36
|
-
fs.existsSync(flatConfigMjsPath) ||
|
|
37
|
-
fs.existsSync(flatConfigCjsPath);
|
|
38
|
-
if (!hasFlatConfig) {
|
|
39
|
-
// No flat config found, skip initialization
|
|
40
|
-
this.initialized = true;
|
|
41
|
-
return this;
|
|
42
|
-
}
|
|
43
|
-
// Use new ESLint v9 API with flat config
|
|
44
|
-
// ESLint will automatically find eslint.config.js in the project root
|
|
45
|
-
this.eslint = new ESLint({
|
|
46
|
-
cwd: process.cwd(),
|
|
47
|
-
});
|
|
48
|
-
this.initialized = true;
|
|
49
|
-
}
|
|
50
|
-
catch (error) {
|
|
51
|
-
// Handle any errors during initialization gracefully
|
|
52
|
-
console.warn("ESLint Health Checker: Failed to initialize:", error);
|
|
53
|
-
this.initialized = true; // Mark as initialized to prevent retries
|
|
54
|
-
}
|
|
55
|
-
return this;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Display health check results in a pretty format
|
|
59
|
-
*/
|
|
60
|
-
displayResults(file, result) {
|
|
61
|
-
const stats = result.getStats();
|
|
62
|
-
// Only display if there are errors or warnings
|
|
63
|
-
if (stats.errors === 0 && stats.warnings === 0) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
const fileName = file.relativePath.replace(/\\/g, "/");
|
|
67
|
-
const errorCount = stats.errors;
|
|
68
|
-
const warningCount = stats.warnings;
|
|
69
|
-
const sourceLines = file.source ? file.source.split("\n") : [];
|
|
70
|
-
// Display errors
|
|
71
|
-
if (errorCount > 0) {
|
|
72
|
-
const errorMessages = result.messages.filter((m) => m.type === "error");
|
|
73
|
-
for (const error of errorMessages) {
|
|
74
|
-
const icon = colors.redBright("✖");
|
|
75
|
-
const level = colors.redBright(colors.bold("ERROR"));
|
|
76
|
-
console.log(`\n${icon} ${level} ${colors.dim("in")} ${colors.cyanBright(fileName)}${colors.dim(`(${error.lineNumber},${error.columnNumber})`)}`);
|
|
77
|
-
// Get rule ID from the error if available
|
|
78
|
-
const ruleId = error.ruleId || "eslint";
|
|
79
|
-
console.log(` ${colors.magentaBright(ruleId)} ${colors.dim("→")} ${colors.red(error.message)}`);
|
|
80
|
-
// Display code line with underline indicator
|
|
81
|
-
if (sourceLines.length > 0 &&
|
|
82
|
-
error.lineNumber > 0 &&
|
|
83
|
-
error.lineNumber <= sourceLines.length) {
|
|
84
|
-
const lineIndex = error.lineNumber - 1; // Convert to 0-based index
|
|
85
|
-
const lineContent = sourceLines[lineIndex];
|
|
86
|
-
const lineNum = error.lineNumber.toString().padStart(4, " ");
|
|
87
|
-
const errorLength = error.length || 1;
|
|
88
|
-
const columnIndex = error.columnNumber - 1; // Convert to 0-based index
|
|
89
|
-
// Display the line with normal color (not all red)
|
|
90
|
-
console.log(` ${colors.dim(lineNum)} ${colors.dim("│")} ${lineContent || ""}`);
|
|
91
|
-
// Display underline indicator
|
|
92
|
-
// Padding accounts for: lineNum.length + 1 space + 1 (│) + 1 space = lineNum.length + 3
|
|
93
|
-
// (The initial 2 spaces indent is already in the console.log)
|
|
94
|
-
const prefixPadding = lineNum.length + 3;
|
|
95
|
-
const columnPadding = " ".repeat(columnIndex);
|
|
96
|
-
const underline = colors.redBright("~".repeat(Math.max(1, errorLength)));
|
|
97
|
-
console.log(` ${colors.dim(" ".repeat(prefixPadding))}${columnPadding}${underline}`);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
// Display warnings
|
|
102
|
-
if (warningCount > 0) {
|
|
103
|
-
const warningMessages = result.messages.filter((m) => m.type === "warning");
|
|
104
|
-
for (const warning of warningMessages) {
|
|
105
|
-
const icon = colors.yellowBright("⚠");
|
|
106
|
-
const level = colors.yellowBright(colors.bold("WARNING"));
|
|
107
|
-
console.log(`\n${icon} ${level} ${colors.dim("in")} ${colors.cyanBright(fileName)}${colors.dim(`(${warning.lineNumber},${warning.columnNumber})`)}`);
|
|
108
|
-
// Get rule ID from the warning if available
|
|
109
|
-
const ruleId = warning.ruleId || "eslint";
|
|
110
|
-
console.log(` ${colors.magentaBright(ruleId)} ${colors.dim("→")} ${colors.yellow(warning.message)}`);
|
|
111
|
-
// Display code line with underline indicator
|
|
112
|
-
if (sourceLines.length > 0 &&
|
|
113
|
-
warning.lineNumber > 0 &&
|
|
114
|
-
warning.lineNumber <= sourceLines.length) {
|
|
115
|
-
const lineIndex = warning.lineNumber - 1; // Convert to 0-based index
|
|
116
|
-
const lineContent = sourceLines[lineIndex];
|
|
117
|
-
const lineNum = warning.lineNumber.toString().padStart(4, " ");
|
|
118
|
-
const warningLength = warning.length || 1;
|
|
119
|
-
const columnIndex = warning.columnNumber - 1; // Convert to 0-based index
|
|
120
|
-
// Display the line with normal color (not all yellow)
|
|
121
|
-
console.log(` ${colors.dim(lineNum)} ${colors.dim("│")} ${lineContent || ""}`);
|
|
122
|
-
// Display underline indicator
|
|
123
|
-
// Padding accounts for: lineNum.length + 1 space + 1 (│) + 1 space = lineNum.length + 3
|
|
124
|
-
// (The initial 2 spaces indent is already in the console.log)
|
|
125
|
-
const prefixPadding = lineNum.length + 3;
|
|
126
|
-
const columnPadding = " ".repeat(columnIndex);
|
|
127
|
-
const underline = colors.yellowBright("~".repeat(Math.max(1, warningLength)));
|
|
128
|
-
console.log(` ${colors.dim(" ".repeat(prefixPadding))}${columnPadding}${underline}`);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
// Display summary
|
|
133
|
-
const summary = [];
|
|
134
|
-
if (errorCount > 0) {
|
|
135
|
-
summary.push(colors.red(`${errorCount} error${errorCount > 1 ? "s" : ""}`));
|
|
136
|
-
}
|
|
137
|
-
if (warningCount > 0) {
|
|
138
|
-
summary.push(colors.yellow(`${warningCount} warning${warningCount > 1 ? "s" : ""}`));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Validate the health of the file
|
|
143
|
-
*/
|
|
144
|
-
async validate(file, result) {
|
|
145
|
-
// Early exit: skip non-lintable files
|
|
146
|
-
if (!this.isLintableFile(file.absolutePath)) {
|
|
147
|
-
result.markAsHealthy();
|
|
148
|
-
return result;
|
|
149
|
-
}
|
|
150
|
-
// Early exit: check if ESLint is available
|
|
151
|
-
if (!this.eslint) {
|
|
152
|
-
result.markAsHealthy();
|
|
153
|
-
return result;
|
|
154
|
-
}
|
|
155
|
-
try {
|
|
156
|
-
// Use lintText to lint the source code directly from FileManager
|
|
157
|
-
// This ensures we always use the latest content
|
|
158
|
-
const lintResults = await this.eslint.lintText(file.source, {
|
|
159
|
-
filePath: file.absolutePath,
|
|
160
|
-
});
|
|
161
|
-
if (lintResults.length === 0) {
|
|
162
|
-
console.log("No lint results", file.relativePath);
|
|
163
|
-
result.markAsHealthy();
|
|
164
|
-
return result;
|
|
165
|
-
}
|
|
166
|
-
const lintResult = lintResults[0];
|
|
167
|
-
// Convert ESLint messages to FileHealthResult format
|
|
168
|
-
const errors = [];
|
|
169
|
-
const warnings = [];
|
|
170
|
-
for (const message of lintResult.messages) {
|
|
171
|
-
const isError = message.severity === 2;
|
|
172
|
-
const isWarning = message.severity === 1;
|
|
173
|
-
if (isError) {
|
|
174
|
-
errors.push({
|
|
175
|
-
message: message.message,
|
|
176
|
-
type: "error",
|
|
177
|
-
lineNumber: message.line || 1,
|
|
178
|
-
columnNumber: message.column || 1,
|
|
179
|
-
length: message.endColumn && message.column ? message.endColumn - message.column : 1,
|
|
180
|
-
ruleId: message.ruleId || undefined,
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
else if (isWarning) {
|
|
184
|
-
warnings.push({
|
|
185
|
-
message: message.message,
|
|
186
|
-
type: "warning",
|
|
187
|
-
lineNumber: message.line || 1,
|
|
188
|
-
columnNumber: message.column || 1,
|
|
189
|
-
length: message.endColumn && message.column ? message.endColumn - message.column : 1,
|
|
190
|
-
ruleId: message.ruleId || undefined,
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
// Add errors and warnings to result
|
|
195
|
-
if (errors.length > 0) {
|
|
196
|
-
result.addErrors(errors);
|
|
197
|
-
}
|
|
198
|
-
if (warnings.length > 0) {
|
|
199
|
-
result.addWarnings(warnings);
|
|
200
|
-
}
|
|
201
|
-
// If no errors or warnings, mark as healthy
|
|
202
|
-
if (errors.length === 0 && warnings.length === 0) {
|
|
203
|
-
result.markAsHealthy();
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
// Display results if there are errors or warnings
|
|
207
|
-
this.displayResults(file, result);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
catch (error) {
|
|
211
|
-
// Handle any errors during validation gracefully
|
|
212
|
-
console.log("ESlint Error:", error);
|
|
213
|
-
result.markAsHealthy(); // Return healthy on error to avoid blocking
|
|
214
|
-
}
|
|
215
|
-
return result;
|
|
216
|
-
}
|
|
217
|
-
}export{EslintHealthChecker};//# sourceMappingURL=eslint-health-checker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-health-checker.js","sources":["../../../../src/dev2-server/health-checker/checkers/eslint-health-checker.ts"],"sourcesContent":[null],"names":[],"mappings":"mKASM,M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wBAAA,IAAI,EAAE,SAAS;AACf,wBAAA,UAAU,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC;AAC7B,wBAAA,YAAY,EAAE,OAAO,CAAC,MAAM,IAAI,CAAC;wBACjC,MAAM,EAAE,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC;AACpF,wBAAA,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,SAAS;AACpC,qBAAA,CAAC,CAAC;AACJ,iBAAA;AACF,aAAA;;AAGD,YAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACrB,gBAAA,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;AAC1B,aAAA;AAED,YAAA,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;AACvB,gBAAA,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;AAC9B,aAAA;;YAGD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;gBAChD,MAAM,CAAC,aAAa,EAAE,CAAC;AACxB,aAAA;AAAM,iBAAA;;AAEL,gBAAA,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACnC,aAAA;AACF,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;;AAEd,YAAA,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;AACpC,YAAA,MAAM,CAAC,aAAa,EAAE,CAAC;AACxB,SAAA;AAED,QAAA,OAAO,MAAM,CAAC;KACf;AACF"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { FileManager } from "../../file-manager";
|
|
2
|
-
import { FileHealthCheckerContract } from "../file-health-checker.contract";
|
|
3
|
-
import { FileHealthResult } from "../file-health-result";
|
|
4
|
-
import { BaseHealthChecker } from "./base-health-checker";
|
|
5
|
-
export declare class TypescriptHealthChecker extends BaseHealthChecker implements FileHealthCheckerContract {
|
|
6
|
-
/**
|
|
7
|
-
* Cached TypeScript program instance
|
|
8
|
-
*/
|
|
9
|
-
private program;
|
|
10
|
-
/**
|
|
11
|
-
* Cached parsed TypeScript configuration
|
|
12
|
-
*/
|
|
13
|
-
private parsedConfig;
|
|
14
|
-
/**
|
|
15
|
-
* Health checker name
|
|
16
|
-
*/
|
|
17
|
-
name: string;
|
|
18
|
-
/**
|
|
19
|
-
* Path to dedicated worker file for TypeScript checking
|
|
20
|
-
* Runs in a separate thread to avoid blocking the main dev server
|
|
21
|
-
*/
|
|
22
|
-
workerPath: string;
|
|
23
|
-
/**
|
|
24
|
-
* Whether checker is initialized
|
|
25
|
-
*/
|
|
26
|
-
private initialized;
|
|
27
|
-
/**
|
|
28
|
-
* Check if file is a TypeScript file
|
|
29
|
-
*/
|
|
30
|
-
private isTypeScriptFile;
|
|
31
|
-
/**
|
|
32
|
-
* Extract line and column from diagnostic location
|
|
33
|
-
*/
|
|
34
|
-
private getDiagnosticLocation;
|
|
35
|
-
/**
|
|
36
|
-
* Format diagnostic message
|
|
37
|
-
*/
|
|
38
|
-
private formatDiagnosticMessage;
|
|
39
|
-
/**
|
|
40
|
-
* Display health check results in a pretty format
|
|
41
|
-
*/
|
|
42
|
-
private displayResults;
|
|
43
|
-
/**
|
|
44
|
-
* Detect when files are changed
|
|
45
|
-
*/
|
|
46
|
-
onFileChanges(files: FileManager[]): Promise<void>;
|
|
47
|
-
/**
|
|
48
|
-
* Initialize the health checker
|
|
49
|
-
*/
|
|
50
|
-
initialize(): TypescriptHealthChecker;
|
|
51
|
-
/**
|
|
52
|
-
* Validate the health of the file
|
|
53
|
-
*/
|
|
54
|
-
validate(file: FileManager, result: FileHealthResult): Promise<FileHealthResult>;
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=typescript-health-checker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-health-checker.d.ts","sourceRoot":"","sources":["../../../../src/dev2-server/health-checker/checkers/typescript-health-checker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAAa,uBACX,SAAQ,iBACR,YAAW,yBAAyB;IAEpC;;OAEG;IACH,OAAO,CAAC,OAAO,CAA2B;IAE1C;;OAEG;IACH,OAAO,CAAC,YAAY,CAAqC;IAEzD;;OAEG;IACI,IAAI,EAAE,MAAM,CAAgB;IAEnC;;;OAGG;IACI,UAAU,EAAE,MAAM,CAAgC;IAEzD;;OAEG;IACH,OAAO,CAAC,WAAW,CAAkB;IAErC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAKxB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAiB7B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;OAEG;IACH,OAAO,CAAC,cAAc;IAsHtB;;OAEG;IACU,aAAa,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB/D;;OAEG;IACI,UAAU,IAAI,uBAAuB;IAoC5C;;OAEG;IACU,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAmG9F"}
|