ismx-nexo-node-app 0.4.39 → 0.4.40
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.
|
@@ -49,7 +49,7 @@ class BusinessServer extends Business_1.default {
|
|
|
49
49
|
yield Promise.resolve().then(() => __importStar(require("cors"))).then((_a) => __awaiter(this, [_a], void 0, function* ({ default: cors }) {
|
|
50
50
|
this.express = express;
|
|
51
51
|
this.app = express();
|
|
52
|
-
this.app.use(express.urlencoded({ extended: false }));
|
|
52
|
+
//this.app.use(express.urlencoded({ extended: false }));
|
|
53
53
|
this.app.use(cors());
|
|
54
54
|
}));
|
|
55
55
|
}));
|
|
@@ -118,7 +118,6 @@ class BusinessServer extends Business_1.default {
|
|
|
118
118
|
let indexParams = request.url.indexOf('?');
|
|
119
119
|
let endpoint = indexParams > 0 ? request.url.substring(0, indexParams) : request.url;
|
|
120
120
|
request.endpoint = !!endpoint ? endpoint : "/";
|
|
121
|
-
console.log(request.body.length);
|
|
122
121
|
try {
|
|
123
122
|
try {
|
|
124
123
|
(_a = this.onRequest) === null || _a === void 0 ? void 0 : _a.call(this, request);
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export default class BusinessServer extends Business
|
|
|
19
19
|
await import("cors").then(async ({ default: cors }) => {
|
|
20
20
|
this.express = express;
|
|
21
21
|
this.app = express();
|
|
22
|
-
this.app.use(express.urlencoded({ extended: false }));
|
|
22
|
+
//this.app.use(express.urlencoded({ extended: false }));
|
|
23
23
|
this.app.use(cors());
|
|
24
24
|
})
|
|
25
25
|
});
|
|
@@ -91,8 +91,6 @@ export default class BusinessServer extends Business
|
|
|
91
91
|
let endpoint = indexParams > 0 ? request.url.substring(0,indexParams) : request.url
|
|
92
92
|
request.endpoint = !!endpoint ? endpoint : "/";
|
|
93
93
|
|
|
94
|
-
console.log(request.body.length);
|
|
95
|
-
|
|
96
94
|
try {
|
|
97
95
|
try { this.onRequest?.(request); } catch(e) { }
|
|
98
96
|
response = await service.serve?.(request);
|