Closed dbani-dev closed 11 months ago
Hi @davidbani , for the first issue, currently it supports only 1 . So 1 iteration is needed. Iterate through data and for each data, you can mask items[].id
Currently 2nd feature is not supported. But both features seems really cool and good to have. I will work on it and push these changes in the next version. I will keep you updated. Thanks for raising the issue.
Hi @davidbani , please check this: https://www.npmjs.com/package/maskdata?activeTab=readme#mask-multiple-fields and let me know if there are any issues
@davidbani , use version 1.2.6 to have the mentioned feature.
I have been unable to mask nested arrays.
For example
Data[*].items[*].id
does not maskid
in everyitems
array:Items array is completely masked. Unless there is a workaround?
Also is there a way for apply a mask to ALL related fields without having to traverse? E.g.
fields: ['name']
Will update ALL name fields: