@nest-omni/core 1.0.56-3 → 1.0.56-4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nest-omni/core",
3
- "version": "1.0.56-3",
3
+ "version": "1.0.56-4",
4
4
  "description": "framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -24,6 +24,7 @@ const nestjs_i18n_1 = require("nestjs-i18n");
24
24
  const crud_1 = require("@dataui/crud");
25
25
  const nestjs_cls_1 = require("nestjs-cls");
26
26
  const compression = require("compression");
27
+ const class_validator_1 = require("class-validator");
27
28
  crud_1.CrudConfigService.load({
28
29
  auth: {
29
30
  property: 'user',
@@ -118,6 +119,7 @@ function bootstrapSetup(AppModule, SetupSwagger) {
118
119
  const app = yield core_1.NestFactory.create(AppModule, {
119
120
  bufferLogs: true,
120
121
  });
122
+ (0, class_validator_1.useContainer)(app.select(AppModule), { fallbackOnErrors: true });
121
123
  const configService = app.select(__1.ServiceRegistryModule).get(__1.ApiConfigService);
122
124
  const logger = app.get(nestjs_pino_1.Logger);
123
125
  setupProcessHandlers(app);