koa-bodyparser
Advanced tools
Comparing version 1.6.0 to 2.0.0
2.0.0 / 2015-05-07 | ||
================== | ||
* deps: co-body@2, default to strict mode | ||
1.6.0 / 2015-05-01 | ||
@@ -3,0 +8,0 @@ ================== |
{ | ||
"name": "koa-bodyparser", | ||
"version": "1.6.0", | ||
"version": "2.0.0", | ||
"description": "a body parser for koa", | ||
@@ -31,12 +31,12 @@ "main": "index.js", | ||
"autod": "1", | ||
"istanbul-harmony": "~0.3.1", | ||
"koa": "~0.18.1", | ||
"mocha": "~2.2.1", | ||
"should": "~5.1.0", | ||
"istanbul-harmony": "~0.3.12", | ||
"koa": "~0.20.0", | ||
"mocha": "~2.2.4", | ||
"should": "~6.0.1", | ||
"supertest": "~0.9.0" | ||
}, | ||
"dependencies": { | ||
"co-body": "~1.1.0", | ||
"co-body": "~2.0.0", | ||
"copy-to": "~2.0.1" | ||
} | ||
} |
@@ -52,3 +52,5 @@ koa-bodyparser | ||
* **jsonLimit**: limit of the `json` body. Default is `1mb` | ||
* **strict**: when set to true, JSON parser will only accept arrays and objects. Default is `true`. See [strict mode](https://github.com/cojs/co-body#options) in `co-body` | ||
* **detectJSON**: custom json request detect function. Default is `null` | ||
```js | ||
@@ -61,3 +63,5 @@ app.use(bodyparser({ | ||
``` | ||
* **extendTypes**: support extend types: | ||
```js | ||
@@ -70,3 +74,5 @@ app.use(bodyparser({ | ||
``` | ||
* **onerror**: support custom error handle, if `koa-bodyparser` throw an error, you can customize the response like: | ||
```js | ||
@@ -79,4 +85,5 @@ app.use(bodyparser({ | ||
``` | ||
## Licences | ||
[MIT](LICENSE) |
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
8380
86
+ Addedco-body@2.0.0(transitive)
+ Addedqs@2.4.2(transitive)
- Removedco-body@1.1.0(transitive)
- Removedqs@2.3.3(transitive)
Updatedco-body@~2.0.0