I have a Nuxt module that looks like so:
import { createHash } from 'crypto'
import bodyParser from 'body-parser'
export default function () {
  const config = this.options.privateRuntimeConfig.cloudinary
  this.nuxt.hook('render:setupMiddleware', (app) => {
    app.use(bodyParser.json())
    app.use('/api/cloudinary/signature', setSignature)
  })
  function setSignature(req, res) {
    try {
      const sha1 = createHash('sha1')
....etc...
In VSCODE, I am getting the following error that bodyparser is deprecated:
However, the app works fine. But if I remove it, it doesn't. So, is it safe to keep it or should I replace body-parser with something else?

 
    