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

Stringified object does not get masked #8

Closed
matthiasheyman opened this issue Apr 25, 2024 · 2 comments
Closed

Stringified object does not get masked #8

matthiasheyman opened this issue Apr 25, 2024 · 2 comments

Comments

@matthiasheyman
Copy link

matthiasheyman commented Apr 25, 2024

First of all, thanks for the nice library.
I just have this remark:

When I first stringify an object, and then execute maskString, I still get the password as readable text.
const data = '{"username":"myuser","password":"something"}'; const result = maskString(data);
result will still contain the exact same content as data.

@slippyex
Copy link
Owner

Hey @matthiasheyman ... I just looked into your reported issue and found that I can fix it quite easily. I just published version 1.1.3 which should handle your case as expected.

@matthiasheyman
Copy link
Author

Thanks!

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

No branches or pull requests

2 participants