mythix 2.2.1 → 2.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mythix",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Mythix is a NodeJS web-app framework",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "chokidar": "^3.5.3",
30
30
  "express": "^4.17.3",
31
- "express-busboy": "^8.0.2",
31
+ "express-busboy": "github:th317erd/express-busboy#0754a570d7979097b31e48655b80d3fcd628d4e4",
32
32
  "form-data": "^4.0.0",
33
33
  "mythix-orm": "^1.3.0",
34
34
  "nife": "^1.11.3",
@@ -105,8 +105,10 @@ function conditional(middleware, conditions) {
105
105
 
106
106
  function jsonParser() {
107
107
  return function(request, response, next) {
108
- if (('' + request.headers['content-type']).match(/application\/json/i) && typeof request.body === 'string')
108
+ if (('' + request.headers['content-type']).match(/application\/json/i) && typeof request.body === 'string') {
109
+ request.rawBody = request.body;
109
110
  request.body = JSON.parse(request.body);
111
+ }
110
112
 
111
113
  return next();
112
114
  };