Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Auto set json flag on config.set #219

Closed
fbaiodias opened this issue Feb 24, 2016 · 1 comment
Closed

Auto set json flag on config.set #219

fbaiodias opened this issue Feb 24, 2016 · 1 comment

Comments

@fbaiodias
Copy link
Contributor

Currently you can't call config.set with an object as the value. You need to JSON.stringify it and pass { json: true } on the opts.

I suggest that we check the type of the value, JSON.stringify it if it's an object set the opts automatically if none were provided.

Let me know what you think, I would be happy to PR this :)

@dignifiedquire
Copy link
Contributor

Yes please!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants