@labdigital/commercetools-mock 2.50.0-beta.0 → 2.50.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@labdigital/commercetools-mock",
3
- "version": "2.50.0-beta.0",
3
+ "version": "2.50.1",
4
4
  "license": "MIT",
5
5
  "author": "Michael van Tellingen",
6
6
  "type": "module",
package/src/ctMock.ts CHANGED
@@ -138,7 +138,8 @@ export class CommercetoolsMock {
138
138
  this._oauth2.setCustomerRepository(this._repositories.customer);
139
139
 
140
140
  const app = express();
141
- app.use(express.json());
141
+ // Set limit to 16mb, this is the maximum size allowed by the commercetools API: https://docs.commercetools.com/api/limits
142
+ app.use(express.json({ limit: "16mb" }));
142
143
 
143
144
  const projectRouter = express.Router({ mergeParams: true });
144
145