New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koa-body

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-body - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

.gitignore

3

index.js

@@ -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 [![Build Status](https://travis-ci.org/dlau/koa-body.png)](https://travis-ci.org/dlau/koa-body) [![Dependencies Status](https://david-dm.org/dlau/koa-body/status.svg)](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

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