@nest-omni/core 3.1.2-0 → 3.1.2-2

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": "3.1.2-0",
3
+ "version": "3.1.2-2",
4
4
  "description": "A comprehensive NestJS framework for building enterprise-grade applications with best practices",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -10,6 +10,34 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.bootstrapSetup = bootstrapSetup;
13
+ const crud_1 = require("@dataui/crud");
14
+ crud_1.CrudConfigService.load({
15
+ auth: {
16
+ property: 'user',
17
+ },
18
+ params: {
19
+ id: {
20
+ field: 'id',
21
+ type: 'string',
22
+ primary: true,
23
+ },
24
+ },
25
+ query: {
26
+ limit: 10,
27
+ alwaysPaginate: true,
28
+ },
29
+ routes: {
30
+ updateOneBase: {
31
+ allowParamsOverride: false,
32
+ },
33
+ deleteOneBase: {
34
+ returnDeleted: false,
35
+ },
36
+ createOneBase: {
37
+ returnShallow: false,
38
+ },
39
+ },
40
+ });
13
41
  const Sentry = require("@sentry/nestjs");
14
42
  const profiling_node_1 = require("@sentry/profiling-node");
15
43
  const dotenv = require("dotenv");
@@ -78,34 +106,6 @@ Sentry.init({
78
106
  sendDefaultPii: true,
79
107
  integrations: [profiling_node_1.nodeProfilingIntegration],
80
108
  });
81
- const crud_1 = require("@dataui/crud");
82
- crud_1.CrudConfigService.load({
83
- auth: {
84
- property: 'user',
85
- },
86
- params: {
87
- id: {
88
- field: 'id',
89
- type: 'string',
90
- primary: true,
91
- },
92
- },
93
- query: {
94
- limit: 10,
95
- alwaysPaginate: true,
96
- },
97
- routes: {
98
- updateOneBase: {
99
- allowParamsOverride: false,
100
- },
101
- deleteOneBase: {
102
- returnDeleted: false,
103
- },
104
- createOneBase: {
105
- returnShallow: false,
106
- },
107
- },
108
- });
109
109
  const core_1 = require("@nestjs/core");
110
110
  const nestjs_pino_1 = require("nestjs-pino");
111
111
  const session = require("express-session");
@@ -119,6 +119,7 @@ const class_validator_1 = require("class-validator");
119
119
  const setup_1 = require("@sentry/nestjs/setup");
120
120
  const vault_1 = require("../vault");
121
121
  const dto_1 = require("../common/dto");
122
+ const express_1 = require("express");
122
123
  function bootstrapSetup(AppModule, SetupSwagger) {
123
124
  return __awaiter(this, void 0, void 0, function* () {
124
125
  yield vault_1.VaultConfigLoader.loadVaultConfig();
@@ -139,7 +140,10 @@ function bootstrapSetup(AppModule, SetupSwagger) {
139
140
  app.enableShutdownHooks();
140
141
  app.enableVersioning();
141
142
  app.enable('trust proxy');
142
- app.use(bodyParse.json({ limit: '50mb' }), new nestjs_cls_1.ClsMiddleware({
143
+ app.use((0, express_1.urlencoded)({
144
+ extended: true,
145
+ parameterLimit: 1000,
146
+ }), bodyParse.json({ limit: '50mb' }), new nestjs_cls_1.ClsMiddleware({
143
147
  saveReq: true,
144
148
  }).use, (0, __1.RequestIdMiddleware)(), (0, __1.PowerByMiddleware)(), (0, __1.OmniAuthMiddleware)(), compression());
145
149
  const reflector = app.get(core_1.Reflector);