Right now, you have to specify the depth of the config to print. It can be pretty difficult to read, and it's impossible to know what depth to print the config at.
{
key: {
value: 1
key: {
value: 1
key: {
value: 1
key: {}
}
}
}
}
Instead, would it be possible to store the visited objects, and if a circular reference is found, do something like this? This way the full config could be printed and you wouldn't need to specify depth.
{
key: {
value: 1,
key: "<<circular reference to 'key'>>"
}
}
I know this is a pretty big change to the plugin. I am willing to make a pull request for this, but I am unfamiliar with typescript so I wanted to get a feel for how you like the change first. I also wouldn't complain if you wanted to make this change yourself given my inexperience.