Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faker library incident #204

Closed
bartosjiri opened this issue Jan 5, 2022 · 2 comments
Closed

Faker library incident #204

bartosjiri opened this issue Jan 5, 2022 · 2 comments
Labels

Comments

@bartosjiri
Copy link

Looks like the Faker.js library has been either compromised or discontinued in a strange manner.

I believe it would be the best to replace this library, since it is provided as a parameter into entity factories. What are some suitable alternatives?

@jorgebodega
Copy link
Collaborator

Yes, I saw the incident. Quite strange.

In this library, there is no solution, since it cannot be deployed. The only workaround is to use faker on version 5.5.3, the last stable one, as an independent module:

import * as faker from 'faker' // USE THIS
...
define(Pet, (faker: typeof Faker) => { // DO NOT USE THIS
  ...
})

faker could be installed with npm i [email protected] since is still available on NPM registries

@bartosjiri
Copy link
Author

Closing in favor of #201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants