@unito/integration-sdk 2.3.8 → 2.3.9
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/dist/src/index.cjs +1 -1
- package/dist/src/integration.js +1 -1
- package/package.json +1 -1
- package/src/integration.ts +2 -2
package/dist/src/index.cjs
CHANGED
|
@@ -1152,9 +1152,9 @@ class Integration {
|
|
|
1152
1152
|
const app = express();
|
|
1153
1153
|
// Parse query strings with https://github.com/ljharb/qs.
|
|
1154
1154
|
app.set('query parser', 'simple');
|
|
1155
|
-
app.use(express.json());
|
|
1156
1155
|
// Must be one of the first handlers (to catch all the errors).
|
|
1157
1156
|
app.use(onFinish);
|
|
1157
|
+
app.use(express.json({ limit: '1mb', type: 'application/json' }));
|
|
1158
1158
|
// Instantiate internal middlewares.
|
|
1159
1159
|
app.use(start);
|
|
1160
1160
|
app.use(extractCorrelationId);
|
package/dist/src/integration.js
CHANGED
|
@@ -114,9 +114,9 @@ export default class Integration {
|
|
|
114
114
|
const app = express();
|
|
115
115
|
// Parse query strings with https://github.com/ljharb/qs.
|
|
116
116
|
app.set('query parser', 'simple');
|
|
117
|
-
app.use(express.json());
|
|
118
117
|
// Must be one of the first handlers (to catch all the errors).
|
|
119
118
|
app.use(finishMiddleware);
|
|
119
|
+
app.use(express.json({ limit: '1mb', type: 'application/json' }));
|
|
120
120
|
// Instantiate internal middlewares.
|
|
121
121
|
app.use(startMiddleware);
|
|
122
122
|
app.use(correlationIdMiddleware);
|
package/package.json
CHANGED
package/src/integration.ts
CHANGED
|
@@ -128,11 +128,11 @@ export default class Integration {
|
|
|
128
128
|
// Parse query strings with https://github.com/ljharb/qs.
|
|
129
129
|
app.set('query parser', 'simple');
|
|
130
130
|
|
|
131
|
-
app.use(express.json());
|
|
132
|
-
|
|
133
131
|
// Must be one of the first handlers (to catch all the errors).
|
|
134
132
|
app.use(finishMiddleware);
|
|
135
133
|
|
|
134
|
+
app.use(express.json({ limit: '1mb', type: 'application/json' }));
|
|
135
|
+
|
|
136
136
|
// Instantiate internal middlewares.
|
|
137
137
|
app.use(startMiddleware);
|
|
138
138
|
app.use(correlationIdMiddleware);
|