unitaryfund/metriq-api

Remove deprecated `body-parser` dependency in `package.json`

Closed this issue · 1 comments

It seems as though the body-parser package is included in ^4.16.0 for express:
https://stackoverflow.com/questions/38306569/what-does-body-parser-do-with-express

As we are using ^4.17.1, we can probably remove the dependency

"body-parser": "^1.19.0",

in package.json.

Good catch! I tested removing the package and running several requests against the POST /api/register, and they're all good. I'll open a PR right now.