Comparing version 4.0.6 to 4.0.7
@@ -104,5 +104,5 @@ /** | ||
} else if (opts.includeUnparsed) { | ||
ctx.req.body = body.parsed; | ||
ctx.req.body = body.parsed || {}; | ||
if (! ctx.is('text')) { | ||
ctx.request.body[symbolUnparsed] = body.raw; | ||
ctx.req.body[symbolUnparsed] = body.raw; | ||
} | ||
@@ -118,3 +118,3 @@ } else { | ||
} else if (opts.includeUnparsed) { | ||
ctx.request.body = body.parsed; | ||
ctx.request.body = body.parsed || {}; | ||
if (! ctx.is('text')) { | ||
@@ -121,0 +121,0 @@ ctx.request.body[symbolUnparsed] = body.raw; |
{ | ||
"name": "koa-body", | ||
"version": "4.0.6", | ||
"version": "4.0.7", | ||
"description": "A Koa body parser middleware. Supports multipart, urlencoded and JSON request bodies.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20026