Closed philschatz closed 7 years ago
Thanks for a great package to try out libraries
Hear hear.
Any way to add a test for this?
Oops, I missed functional_test.sh
. I added tests which verify a Promise was/wasn't detected and that the resolved/rejected value of the Promise was printed.
This. Change. Is. AWESOME! Thanks so much for this, such a useful feature but never crossed my mind! Thanks a lot for this and +++ for the added tests!
And thanks to both of you for the kind words and mentioning the module in various places, greatly appreciate it :)
Thanks for a great package to try out libraries (and the ipfs work)!
Several packages return
Promise
objects but when trying out libraries it would be nice to see what the Promise resolved to rather than just knowing that a Promise was returned. For example, if you runtrymodule octokat
and then enter(new octokat()).zen.read()
in the REPL (which executesGET
https://api.github.com/zen ) you get the following:With this code change you instead get the resolved Promise:
It seems libraries like es6-promise are still being actively downloaded (~250k/day) so I also included support for that
Btw, I stumbled upon this great package from http://www.thedotpost.com/2016/12/zeke-sikelianos-navigating-javascript-userland (thanks @zeke !)