koa-bodyparser
Advanced tools
Comparing version 3.0.0 to 3.1.0
3.0.0 / 2015-11-18 | ||
3.1.0 / 2016-05-10 | ||
================== | ||
* deps: ^ | ||
* no need for parenthesis around single param declaration | ||
* capitalize koa constructor | ||
3.0.0 / 2015-11-18 | ||
================== | ||
* refactor: more es6 | ||
@@ -6,0 +13,0 @@ * Use promises rather than generators |
{ | ||
"name": "koa-bodyparser", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "a body parser for koa", | ||
@@ -28,14 +28,16 @@ "main": "index.js", | ||
}, | ||
"publishConfig": { | ||
"tag": "next" | ||
}, | ||
"homepage": "https://github.com/koajs/body-parser", | ||
"devDependencies": { | ||
"autod": "1", | ||
"istanbul": "^0.4.0", | ||
"istanbul-harmony": "~0.3.16", | ||
"koa": "~2.0.0-alpha.3", | ||
"mocha": "~2.3.4", | ||
"should": "~7.1.1", | ||
"istanbul": "^0.4.3", | ||
"koa": "^2.0.0", | ||
"mocha": "^2.4.5", | ||
"should": "^8.3.1", | ||
"supertest": "~0.9.0" | ||
}, | ||
"dependencies": { | ||
"co-body": "~4.0.0" | ||
"co-body": "^4.2.0" | ||
}, | ||
@@ -42,0 +44,0 @@ "engines": { |
@@ -37,8 +37,8 @@ koa-bodyparser | ||
var bodyParser = require('koa-bodyparser'); | ||
var koa = require('koa'); | ||
var Koa = require('koa'); | ||
var app = new koa(); | ||
var app = new Koa(); | ||
app.use(bodyParser()); | ||
app.use(function(ctx, next) { | ||
app.use(ctx => { | ||
// the parsed body will store in this.request.body | ||
@@ -45,0 +45,0 @@ // if nothing was parsed, body will be an empty object {} |
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
8824
6
+ Addedco-body@4.2.0(transitive)
+ Addedinflation@2.0.0(transitive)
- Removedco-body@4.0.0(transitive)
Updatedco-body@^4.2.0