Comparing version 1.6.0 to 1.7.0
@@ -44,2 +44,3 @@ /** | ||
opts.formLimit = 'formLimit' in opts ? opts.formLimit : '56kb'; | ||
opts.queryString = 'queryString' in opts ? opts.queryString : null; | ||
opts.formidable = 'formidable' in opts ? opts.formidable : {}; | ||
@@ -58,3 +59,3 @@ opts.textLimit = 'textLimit' in opts ? opts.textLimit : '56kb'; | ||
else if (opts.urlencoded && this.is('urlencoded')) { | ||
body = yield buddy.form(this, {encoding: opts.encoding, limit: opts.formLimit}); | ||
body = yield buddy.form(this, {encoding: opts.encoding, limit: opts.formLimit, queryString: opts.queryString}); | ||
} | ||
@@ -61,0 +62,0 @@ else if (opts.text && this.is('text')) { |
{ | ||
"name": "koa-body", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "A koa body parser middleware. Support multipart, urlencoded and json request bodies.", | ||
@@ -41,3 +41,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"co-body": "*", | ||
"co-body": "^5.1.1", | ||
"extend": "1.3.0", | ||
@@ -47,9 +47,9 @@ "formidable": "1.0.17" | ||
"devDependencies": { | ||
"koa": "*", | ||
"koa-resource-router": "*", | ||
"koa-router": "*", | ||
"koa": "^1.6.0", | ||
"koa-resource-router": "^0.4.0", | ||
"koa-router": "^5.4.2", | ||
"lodash": "^3.3.1", | ||
"mocha": "*", | ||
"multiline": "*", | ||
"should": "*", | ||
"mocha": "^5.2.0", | ||
"multiline": "^1.0.2", | ||
"should": "^13.2.1", | ||
"supertest": "2.0.0" | ||
@@ -56,0 +56,0 @@ }, |
@@ -17,2 +17,7 @@ koa-body [](https://travis-ci.org/dlau/koa-body) [](https://david-dm.org/dlau/koa-body) | ||
## Koa2 support | ||
``` | ||
$ npm install koa-body@2 | ||
``` | ||
## Features | ||
@@ -19,0 +24,0 @@ - 15 tests |
Sorry, the diff of this file is not supported yet
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
12037
7
123
0
124
+ Addedco-body@5.2.0(transitive)
- Removed@hapi/bourne@3.0.0(transitive)
- Removedco-body@6.2.0(transitive)
Updatedco-body@^5.1.1