@centeredgesoft/runtime-mock-routes 2.8.0 → 2.8.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.
@@ -95,7 +95,8 @@ const appFactory = (runtimeCollection) => {
95
95
  const app = express_1.default();
96
96
  app.use(cors_1.default());
97
97
  app.use(express_1.default.json({
98
- strict: false
98
+ strict: false,
99
+ type: ['application/json', 'application/*+json', 'text/json']
99
100
  }));
100
101
  app.get('/', (_req, res) => res.send(sort_keys_1.default(runtimeRequestCollection, { deep: true })));
101
102
  app.post('/', (req, res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centeredgesoft/runtime-mock-routes",
3
- "version": "2.8.0",
3
+ "version": "2.8.2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
package/src/appV2.ts CHANGED
@@ -110,7 +110,8 @@ export const appFactory = (runtimeCollection?: RuntimeRequestCollection) => {
110
110
 
111
111
  app.use(cors());
112
112
  app.use(express.json({
113
- strict: false
113
+ strict: false,
114
+ type: ['application/json', 'application/*+json', 'text/json']
114
115
  }));
115
116
 
116
117
  app.get('/', (_req, res) => res.send(sortKeys(runtimeRequestCollection, { deep: true })));