@nest-omni/core 1.0.56-0 → 1.0.56-1
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 +1 -1
- package/setup/bootstrap.setup.js +2 -1
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
package/setup/bootstrap.setup.js
CHANGED
|
@@ -23,6 +23,7 @@ const nestjs_sentry_1 = require("@ntegral/nestjs-sentry");
|
|
|
23
23
|
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
|
+
const compression = require("compression");
|
|
26
27
|
crud_1.CrudConfigService.load({
|
|
27
28
|
auth: {
|
|
28
29
|
property: 'user',
|
|
@@ -124,7 +125,7 @@ function bootstrapSetup(AppModule, SetupSwagger) {
|
|
|
124
125
|
setupGracefulShutdown(app);
|
|
125
126
|
app.enableVersioning();
|
|
126
127
|
app.enable('trust proxy');
|
|
127
|
-
app.use(bodyParse.json({ limit: '50mb' }), new nestjs_cls_1.ClsMiddleware({}).use, (0, __1.RequestIdMiddleware)(), (0, __1.PowerByMiddleware)(), (0, __1.OmniAuthMiddleware)());
|
|
128
|
+
app.use(bodyParse.json({ limit: '50mb' }), new nestjs_cls_1.ClsMiddleware({}).use, (0, __1.RequestIdMiddleware)(), (0, __1.PowerByMiddleware)(), (0, __1.OmniAuthMiddleware)(), compression());
|
|
128
129
|
const reflector = app.get(core_1.Reflector);
|
|
129
130
|
app.useGlobalFilters(new __1.HttpExceptionFilter(), new __1.QueryFailedFilter(reflector));
|
|
130
131
|
app.useGlobalInterceptors(new __1.LanguageInterceptor(), new __1.TranslationInterceptor(), new nestjs_pino_1.LoggerErrorInterceptor(), new nestjs_sentry_1.SentryInterceptor({
|