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

JSON Formatting for objects in text mode #4

Closed
wants to merge 3 commits into from

Conversation

brendanmanning
Copy link

No description provided.

text: transformer(message.message)
text:
typeof message.message === "object"
? transformer(JSON.stringify(message.message))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might cause problems with circular references. Mind changing this to use safe-json-stringify instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - I've been pretty busy recently, but I'll get to that ASAP

@WoLfulus WoLfulus closed this Aug 16, 2020
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.

2 participants