@pxp-nd/core 1.2.70 → 1.2.73

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.
Files changed (2) hide show
  1. package/dist/PxpApp.js +2 -24
  2. package/package.json +1 -1
package/dist/PxpApp.js CHANGED
@@ -12,25 +12,6 @@
12
12
  * Created at : 2020-06-13 18:09:48
13
13
  * Last modified : 2020-09-20 18:24:45
14
14
  */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
18
- }) : (function(o, m, k, k2) {
19
- if (k2 === undefined) k2 = k;
20
- o[k2] = m[k];
21
- }));
22
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
23
- Object.defineProperty(o, "default", { enumerable: true, value: v });
24
- }) : function(o, v) {
25
- o["default"] = v;
26
- });
27
- var __importStar = (this && this.__importStar) || function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
15
  var __importDefault = (this && this.__importDefault) || function (mod) {
35
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
36
17
  };
@@ -38,7 +19,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
38
19
  exports.PxpApp = void 0;
39
20
  require("reflect-metadata");
40
21
  const typeorm_1 = require("typeorm");
41
- const bodyParser = __importStar(require("body-parser"));
42
22
  const express_fileupload_1 = __importDefault(require("express-fileupload"));
43
23
  const express_1 = __importDefault(require("express"));
44
24
  const passport_1 = __importDefault(require("passport"));
@@ -145,10 +125,8 @@ class PxpApp {
145
125
  }
146
126
  next();
147
127
  });
148
- this.app.use(express_1.default.json({ limit: '50mb' }));
149
- this.app.use(express_1.default.urlencoded({ limit: '50mb' }));
150
- this.app.use(bodyParser.json({ limit: '50mb' }));
151
- this.app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
128
+ this.app.use(express_1.default.json({ limit: '2mb' }));
129
+ this.app.use(express_1.default.urlencoded({ limit: '2mb' }));
152
130
  this.app.use(express_fileupload_1.default({
153
131
  limits: { fileSize: 5 * 1024 * 1024 },
154
132
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/core",
3
- "version": "1.2.70",
3
+ "version": "1.2.73",
4
4
  "description": "Contains main files for pxp-nd",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",