co-body
Advanced tools
Comparing version 4.0.0 to 4.1.0
4.1.0 / 2016-05-05 | ||
================== | ||
* feat: form parse support custom qs module | ||
4.0.0 / 2015-08-15 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -30,2 +30,3 @@ | ||
opts.limit = opts.limit || '56kb'; | ||
opts.qs = opts.qs || qs; | ||
@@ -36,3 +37,3 @@ // raw-body returns a Promise when no callback is specified | ||
try { | ||
return qs.parse(str, opts.queryString); | ||
return opts.qs.parse(str, opts.queryString); | ||
} catch (err) { | ||
@@ -44,2 +45,2 @@ err.status = 400; | ||
}); | ||
}; | ||
}; |
{ | ||
"name": "co-body", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"repository": "cojs/co-body", | ||
@@ -24,2 +24,3 @@ "description": "request body parsing for co", | ||
"mocha": "*", | ||
"safe-qs": "^6.0.1", | ||
"should": "*", | ||
@@ -26,0 +27,0 @@ "supertest": "~1.0.1" |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8690
156
0
6