Huge News!Announcing our $40M Series B led by Abstract Ventures.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.1.0 to 1.2.0

12

index.js

@@ -78,3 +78,3 @@ /**

return function(done) {
var form = new forms.IncomingForm(opts)
var form = new forms.IncomingForm(opts);
var fields = {};

@@ -90,3 +90,11 @@ var files = {};

.on('field', function(field, value) {
fields[field] = value;
if (fields[field]) {
if (Array.isArray(fields[field])) {
fields[field].push(value);
} else {
fields[field] = [fields[field], value];
}
} else {
fields[field] = value;
}
})

@@ -93,0 +101,0 @@ .on('file', function(field, file) {

2

package.json
{
"name": "koa-body",
"version": "1.1.0",
"version": "1.2.0",
"description": "A koa body parser middleware. Support multipart, urlencoded and json request bodies.",

@@ -5,0 +5,0 @@ "main": "index.js",

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