body-parser
Advanced tools
Comparing version 1.20.0 to 1.20.1
@@ -0,1 +1,7 @@ | ||
1.20.1 / 2022-10-06 | ||
=================== | ||
* deps: qs@6.11.0 | ||
* perf: remove unnecessary object clone | ||
1.20.0 / 2022-04-02 | ||
@@ -2,0 +8,0 @@ =================== |
17
index.js
@@ -94,12 +94,11 @@ /*! | ||
function bodyParser (options) { | ||
var opts = {} | ||
// exclude type option | ||
if (options) { | ||
for (var prop in options) { | ||
if (prop !== 'type') { | ||
opts[prop] = options[prop] | ||
} | ||
// use default type for parsers | ||
var opts = Object.create(options || null, { | ||
type: { | ||
configurable: true, | ||
enumerable: true, | ||
value: undefined, | ||
writable: true | ||
} | ||
} | ||
}) | ||
@@ -106,0 +105,0 @@ var _urlencoded = exports.urlencoded(opts) |
{ | ||
"name": "body-parser", | ||
"description": "Node.js body parsing middleware", | ||
"version": "1.20.0", | ||
"version": "1.20.1", | ||
"contributors": [ | ||
@@ -20,3 +20,3 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
"on-finished": "2.4.1", | ||
"qs": "6.10.3", | ||
"qs": "6.11.0", | ||
"raw-body": "2.5.1", | ||
@@ -27,14 +27,14 @@ "type-is": "~1.6.18", | ||
"devDependencies": { | ||
"eslint": "7.32.0", | ||
"eslint": "8.24.0", | ||
"eslint-config-standard": "14.1.1", | ||
"eslint-plugin-import": "2.25.4", | ||
"eslint-plugin-markdown": "2.2.1", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-markdown": "3.0.0", | ||
"eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-promise": "5.2.0", | ||
"eslint-plugin-promise": "6.0.1", | ||
"eslint-plugin-standard": "4.1.0", | ||
"methods": "1.1.2", | ||
"mocha": "9.2.2", | ||
"mocha": "10.0.0", | ||
"nyc": "15.1.0", | ||
"safe-buffer": "5.2.1", | ||
"supertest": "6.2.2" | ||
"supertest": "6.3.0" | ||
}, | ||
@@ -41,0 +41,0 @@ "files": [ |
@@ -349,3 +349,3 @@ # body-parser | ||
attempts to read it. This typically means something other than a middleware from | ||
this module read the reqest body already and the middleware was also configured to | ||
this module read the request body already and the middleware was also configured to | ||
read the same request. The `status` property is set to `500` and the `type` | ||
@@ -352,0 +352,0 @@ property is set to `'stream.not.readable'`. |
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
60314