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

Allow replacement to be a function #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sseide
Copy link

@sseide sseide commented Apr 15, 2021

Current implementation allows setting on specific value one for value redaction.
This PR allows setting a function too, to allow replacing fields based on their value.

This is helpful for replacing some personal data not completely private like phone numbers, email addresses or credit card numbers where a partial value is helpful to check everything was correctly set in the original object.

As a second thing the minimum lodash version required was updated to the current one to help improve security as older version contained multiple severe security vulnerabilities. Due to this other projects not actively maintained will get this security updates too. This update is done by many of other projects too to improve overall security of nodejs eco system.
(https://nvd.nist.gov/vuln/search/results?form_type=Basic&results_type=overview&query=lodash&queryType=phrase&search_type=all)

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

Successfully merging this pull request may close these issues.

1 participant