Open random42 opened 11 months ago
When objects have a toJSON function redacting is not working:
const fastRedact = require('fast-redact'); const data = { a: 'asd', toJSON: () => ({ a: 'well', }), }; const s = fastRedact({ paths: ['a'], }); console.log(s(data));
Prints:
{"a":"well"}
When objects have a toJSON function redacting is not working:
Prints: