body-parser
Advanced tools
Comparing version 1.18.3 to 1.19.0
@@ -0,1 +1,22 @@ | ||
1.19.0 / 2019-04-25 | ||
=================== | ||
* deps: bytes@3.1.0 | ||
- Add petabyte (`pb`) support | ||
* deps: http-errors@1.7.2 | ||
- Set constructor name when possible | ||
- deps: setprototypeof@1.1.1 | ||
- deps: statuses@'>= 1.5.0 < 2' | ||
* deps: iconv-lite@0.4.24 | ||
- Added encoding MIK | ||
* deps: qs@6.7.0 | ||
- Fix parsing array brackets after index | ||
* deps: raw-body@2.4.0 | ||
- deps: bytes@3.1.0 | ||
- deps: http-errors@1.7.2 | ||
- deps: iconv-lite@0.4.24 | ||
* deps: type-is@~1.6.17 | ||
- deps: mime-types@~2.1.24 | ||
- perf: prevent internal `throw` on invalid type | ||
1.18.3 / 2018-05-14 | ||
@@ -2,0 +23,0 @@ =================== |
@@ -269,3 +269,3 @@ /*! | ||
debug('parse urlencoding') | ||
return parse(body, undefined, undefined, {maxKeys: parameterLimit}) | ||
return parse(body, undefined, undefined, { maxKeys: parameterLimit }) | ||
} | ||
@@ -272,0 +272,0 @@ } |
{ | ||
"name": "body-parser", | ||
"description": "Node.js body parsing middleware", | ||
"version": "1.18.3", | ||
"version": "1.19.0", | ||
"contributors": [ | ||
@@ -12,26 +12,26 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
"dependencies": { | ||
"bytes": "3.0.0", | ||
"bytes": "3.1.0", | ||
"content-type": "~1.0.4", | ||
"debug": "2.6.9", | ||
"depd": "~1.1.2", | ||
"http-errors": "~1.6.3", | ||
"iconv-lite": "0.4.23", | ||
"http-errors": "1.7.2", | ||
"iconv-lite": "0.4.24", | ||
"on-finished": "~2.3.0", | ||
"qs": "6.5.2", | ||
"raw-body": "2.3.3", | ||
"type-is": "~1.6.16" | ||
"qs": "6.7.0", | ||
"raw-body": "2.4.0", | ||
"type-is": "~1.6.17" | ||
}, | ||
"devDependencies": { | ||
"eslint": "4.19.1", | ||
"eslint-config-standard": "11.0.0", | ||
"eslint-plugin-import": "2.11.0", | ||
"eslint-plugin-markdown": "1.0.0-beta.6", | ||
"eslint-plugin-node": "6.0.1", | ||
"eslint-plugin-promise": "3.7.0", | ||
"eslint-plugin-standard": "3.1.0", | ||
"eslint": "5.16.0", | ||
"eslint-config-standard": "12.0.0", | ||
"eslint-plugin-import": "2.17.2", | ||
"eslint-plugin-markdown": "1.0.0", | ||
"eslint-plugin-node": "8.0.1", | ||
"eslint-plugin-promise": "4.1.1", | ||
"eslint-plugin-standard": "4.0.0", | ||
"istanbul": "0.4.5", | ||
"methods": "1.1.2", | ||
"mocha": "2.5.3", | ||
"mocha": "6.1.4", | ||
"safe-buffer": "5.1.2", | ||
"supertest": "1.1.0" | ||
"supertest": "4.0.2" | ||
}, | ||
@@ -38,0 +38,0 @@ "files": [ |
@@ -402,3 +402,2 @@ # body-parser | ||
app.post('/login', urlencodedParser, function (req, res) { | ||
if (!req.body) return res.sendStatus(400) | ||
res.send('welcome, ' + req.body.username) | ||
@@ -409,3 +408,2 @@ }) | ||
app.post('/api/users', jsonParser, function (req, res) { | ||
if (!req.body) return res.sendStatus(400) | ||
// create user in req.body | ||
@@ -412,0 +410,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56375
444
+ Addedbytes@3.1.0(transitive)
+ Addedhttp-errors@1.7.2(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedqs@6.7.0(transitive)
+ Addedraw-body@2.4.0(transitive)
+ Addedsetprototypeof@1.1.1(transitive)
+ Addedtoidentifier@1.0.0(transitive)
- Removedbytes@3.0.0(transitive)
- Removedhttp-errors@1.6.3(transitive)
- Removediconv-lite@0.4.23(transitive)
- Removedqs@6.5.2(transitive)
- Removedraw-body@2.3.3(transitive)
- Removedsetprototypeof@1.1.0(transitive)
Updatedbytes@3.1.0
Updatedhttp-errors@1.7.2
Updatediconv-lite@0.4.24
Updatedqs@6.7.0
Updatedraw-body@2.4.0
Updatedtype-is@~1.6.17