Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa-bodyparser

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-bodyparser - npm Package Compare versions

Comparing version 1.6.0 to 2.0.0

5

History.md
2.0.0 / 2015-05-07
==================
* deps: co-body@2, default to strict mode
1.6.0 / 2015-05-01

@@ -3,0 +8,0 @@ ==================

12

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc