0
const dummy = require('mongoose-dummy');

I want replace this package to its similar one in my code, its dependent module mpath and uuid creating issue. Is there any alternative package.

Trang D
  • 333
  • 5
  • 16
  • what issues would `mpath` and `uuid` probably create? They are both used in millions of projects as direct or indirect dependency. So if they are causing issues for you, the problem is probably on your site. – derpirscher Jul 20 '22 at 08:52
  • Its is creating Prisma vulnerabilities – Trang D Jul 20 '22 at 09:33
  • 1
    @TrangD What? Explain please... – Carlo Corradini Jul 20 '22 at 11:11
  • Could you please elaborate on which prisma vulnerabilities you are talking about? You could create a Bug Report to submit the vulnerabilities if needed: https://github.com/prisma/prisma/issues/new?assignees=&labels=kind%2Fbug&template=bug_report.yml – Nurul Sundarani Jul 26 '22 at 12:10

1 Answers1

0

You could use the mongoose-data-faker package to generate random data based on your Mongoose schema.

Another alternative is to use the faker package to generate data.

Nurul Sundarani
  • 5,550
  • 3
  • 23
  • 52