Socket
Socket
Sign inDemoInstall

co-body

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

co-body - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

6

History.md
3.0.0 / 2015-07-25
==================
* Updated dependencies. Added qs options support via queryString option key. (@yanickrochon)
* upgrade qs@4.0.0, raw-body@2.1.2
2.0.0 / 2015-05-04

@@ -3,0 +9,0 @@ ==================

2

lib/form.js

@@ -36,3 +36,3 @@

try {
done(null, qs.parse(str));
done(null, qs.parse(str, opts.queryString));
} catch (err) {

@@ -39,0 +39,0 @@ err.status = 400;

{
"name": "co-body",
"version": "2.0.0",
"version": "3.0.0",
"repository": "cojs/co-body",

@@ -16,11 +16,11 @@ "description": "request body parsing for co",

"dependencies": {
"qs": "~2.4.1",
"raw-body": "~1.3.4"
"qs": "~4.0.0",
"raw-body": "~2.1.2"
},
"devDependencies": {
"istanbul-harmony": "~0.3.12",
"koa": "~0.20.0",
"istanbul-harmony": "~0.3.16",
"koa": "~0.21.0",
"mocha": "*",
"should": "*",
"supertest": "~0.8.2"
"supertest": "~1.0.1"
},

@@ -27,0 +27,0 @@ "license": "MIT",

@@ -33,2 +33,3 @@

- `strict` when set to `true`, JSON parser will only accept arrays and objects; when `false` will accept anything `JSON.parse` accepts. Defaults to `true`. (also `strict` mode will always return object).
- `queryString` an object of options when parsing query strings and form data. See [qs](https://github.com/hapijs/qs) for more information.

@@ -35,0 +36,0 @@ more options available via [raw-body](https://github.com/stream-utils/raw-body#getrawbodystream-options-callback):

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