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 3.0.0 to 3.1.0

9

History.md
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

16

package.json
{
"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 {}

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