Fix yaml to json (#92)

* fix yaml to json

* Update @bastor as a contributor

* added to contributors
This commit is contained in:
Sebastian Maliszczak authored and Ritesh Kumar committed 2018-12-11 21:20:36 -08:00
1 parent e1de50811f
commit 0bacf5474c
3 files changed
+13 -4

No files matched your search

+10 -1
View File
@@ -170,7 +170,16 @@
"avatar_url": "https://avatars1.githubusercontent.com/u/7318?v=4",
"profile": "http://www.codegent.com",
"contributions": [
"KeshShan"
"code"
]
},
{
"login": "bastor",
"name": "Sebastian Maliszczak",
"avatar_url": "https://avatars3.githubusercontent.com/u/1881814?v=4",
"profile": "https://github.com/bastor",
"contributions": [
"code"
]
}
],
+2 -2
View File
@@ -5,7 +5,7 @@ import yaml from "yaml";
const defaultText = `---
foo: "bar"
baz:
baz:
- "qux"
- "quxx"
corge: null
@@ -18,7 +18,7 @@ const defaultText = `---
`;
export default class extends PureComponent {
getTransformedValue = code => JSON.stringify(yaml.eval(code));
getTransformedValue = code => JSON.stringify(yaml.parse(code));
render() {
return (
+1 -1
View File
@@ -28,7 +28,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
| [<img src="https://avatars3.githubusercontent.com/u/5389035?v=4" width="100px;"/><br /><sub><b>Ritesh Kumar</b></sub>](http://riteshkr.com)<br />[📖](https://github.com/ritz078/transform-www/commits?author=ritz078 "Documentation") [💻](https://github.com/ritz078/transform-www/commits?author=ritz078 "Code") [🤔](#ideas-ritz078 "Ideas, Planning, & Feedback") [👀](#review-ritz078 "Reviewed Pull Requests") | [<img src="https://avatars2.githubusercontent.com/u/47542?v=4" width="100px;"/><br /><sub><b>Florian Gilcher</b></sub>](http://asquera.de)<br />[💻](https://github.com/ritz078/transform-www/commits?author=skade "Code") | [<img src="https://avatars1.githubusercontent.com/u/20063?v=4" width="100px;"/><br /><sub><b>Pascal Hertleif</b></sub>](http://pascalhertleif.de/)<br />[💻](https://github.com/ritz078/transform-www/commits?author=killercup "Code") | [<img src="https://avatars3.githubusercontent.com/u/534610?v=4" width="100px;"/><br /><sub><b>Lado Lomidze</b></sub>](http://landish.github.io)<br />[💻](https://github.com/ritz078/transform-www/commits?author=Landish "Code") | [<img src="https://avatars1.githubusercontent.com/u/13787614?v=4" width="100px;"/><br /><sub><b>Mattia Manzati</b></sub>](https://github.com/mattiamanzati)<br />[💻](https://github.com/ritz078/transform-www/commits?author=mattiamanzati "Code") | [<img src="https://avatars3.githubusercontent.com/u/12202757?v=4" width="100px;"/><br /><sub><b>Mohammad Rajabifard</b></sub>](https://tarino.ir)<br />[🤔](#ideas-morajabi "Ideas, Planning, & Feedback") [💻](https://github.com/ritz078/transform-www/commits?author=morajabi "Code") | [<img src="https://avatars0.githubusercontent.com/u/3108160?v=4" width="100px;"/><br /><sub><b>Raathigeshan Kugarajan</b></sub>](http://raathigesh.com/)<br />[💻](https://github.com/ritz078/transform-www/commits?author=Raathigesh "Code") |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| [<img src="https://avatars2.githubusercontent.com/u/5554486?v=4" width="100px;"/><br /><sub><b>Gyandeep Singh</b></sub>](https://gyandeeps.com)<br />[💻](https://github.com/ritz078/transform-www/commits?author=gyandeeps "Code") | [<img src="https://avatars2.githubusercontent.com/u/1128849?v=4" width="100px;"/><br /><sub><b>Matt Holt</b></sub>](https://matt.life)<br />[💻](https://github.com/ritz078/transform-www/commits?author=mholt "Code") | [<img src="https://avatars0.githubusercontent.com/u/2767425?v=4" width="100px;"/><br /><sub><b>sreenivas alapati</b></sub>](https://medium.com/@sreenivas)<br />[💻](https://github.com/ritz078/transform-www/commits?author=cg-cnu "Code") | [<img src="https://avatars2.githubusercontent.com/u/1761758?v=4" width="100px;"/><br /><sub><b>Boris Cherny</b></sub>](https://performancejs.com)<br />[💻](https://github.com/ritz078/transform-www/commits?author=bcherny "Code") | [<img src="https://avatars0.githubusercontent.com/u/448?v=4" width="100px;"/><br /><sub><b>Mark Lussier</b></sub>](http://www.twitter.com/intabulas)<br />[💻](https://github.com/ritz078/transform-www/commits?author=intabulas "Code") | [<img src="https://avatars3.githubusercontent.com/u/383212?v=4" width="100px;"/><br /><sub><b>Brice BERNARD</b></sub>](https://github.com/brikou)<br />[💻](https://github.com/ritz078/transform-www/commits?author=brikou "Code") | [<img src="https://avatars2.githubusercontent.com/u/1174278?v=4" width="100px;"/><br /><sub><b>Satyajit Sahoo</b></sub>](https://twitter.com/@satya164)<br />[💻](https://github.com/ritz078/transform-www/commits?author=satya164 "Code") |
| [<img src="https://avatars3.githubusercontent.com/u/1643522?v=4" width="100px;"/><br /><sub><b>Shane Osbourne</b></sub>](https://medium.com/@shakyShane)<br />[💻](https://github.com/ritz078/transform-www/commits?author=shakyShane "Code") | [<img src="https://avatars0.githubusercontent.com/u/9524411?v=4" width="100px;"/><br /><sub><b>Rongjian Zhang</b></sub>](https://github.com/pd4d10)<br />[💻](https://github.com/ritz078/transform-www/commits?author=pd4d10 "Code") | [<img src="https://avatars3.githubusercontent.com/u/12506034?v=4" width="100px;"/><br /><sub><b>Keshan Nageswaran</b></sub>](http://keshShan.github.io)<br />[💻](https://github.com/ritz078/transform-www/commits?author=KeshShan "Code") |
| [<img src="https://avatars3.githubusercontent.com/u/1643522?v=4" width="100px;"/><br /><sub><b>Shane Osbourne</b></sub>](https://medium.com/@shakyShane)<br />[💻](https://github.com/ritz078/transform-www/commits?author=shakyShane "Code") | [<img src="https://avatars0.githubusercontent.com/u/9524411?v=4" width="100px;"/><br /><sub><b>Rongjian Zhang</b></sub>](https://github.com/pd4d10)<br />[💻](https://github.com/ritz078/transform-www/commits?author=pd4d10 "Code") | [<img src="https://avatars3.githubusercontent.com/u/12506034?v=4" width="100px;"/><br /><sub><b>Keshan Nageswaran</b></sub>](http://keshShan.github.io)<br />[💻](https://github.com/ritz078/transform-www/commits?author=KeshShan "Code") | [<img src="https://avatars1.githubusercontent.com/u/7318?v=4" width="100px;"/><br /><sub><b>codegent</b></sub>](http://www.codegent.com)<br />[💻](https://github.com/ritz078/transform-www/commits?author=code "Code") | [<img src="https://avatars3.githubusercontent.com/u/1881814?v=4" width="100px;"/><br /><sub><b>Sebastian Maliszczak</b></sub>](https://github.com/bastor)<br />[💻](https://github.com/ritz078/transform-www/commits?author=bastor "Code") |
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!