This commit is contained in:
Jonasz Bigda
2023-03-25 21:51:42 +01:00
parent 0db1d5117e
commit b332e9ceb0
1044 changed files with 37502 additions and 63938 deletions

17
node_modules/body-parser/index.js generated vendored
View File

@@ -91,16 +91,15 @@ Object.defineProperty(exports, 'urlencoded', {
*/
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
}
}
})
var _urlencoded = exports.urlencoded(opts)
var _json = exports.json(opts)