-
Notifications
You must be signed in to change notification settings - Fork 78
Aff doesn't fail when running on Node #44
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
Comments
Have run into this issue too, and it's caused by the underlying I went looking for a possible replacement and |
Perhaps |
@paf31 Thanks for that; I'd also been looking for a PS library for a lightweight http server. Though for an http client, I like the Aff-style API that Affjax supplies, as well as being able to use the same API in both Node and the web browser. |
PRs welcome! 😀 External dependencies should add minimal overhead to the library and be reflected in bower dependencies. |
@jdegoes Thanks will submit a PR soon :) Am just checking everything works my end |
Perhaps it would make sense to break a Node backend out into its own library, if dependencies are a concern. Creating an abstract backend should be straightforward enough, right? Something like |
I'm definitely open to feedback. I think a lot of people may run both node and browser tests in the same code base and want an |
Personally one of the biggest attractions I have to Javascript and PureScript is that DSLs / libraries / patterns can be shared between backend services and clients. I'd prefer to address this inside of Affjax rather than having different modules for dealing with HTTP requests depending on the environment. |
But its the 'DSL' of Affjax that I think that would be valuable to share between the two rather than necessarily the implementation of it. |
The following program outputs
[Log] onerror@file:///Users/beckyconning/Documents/purescript-sketchpad/index.js:9693:24 (index.js, line 1302)
in a browser but is silent in Node.It appears print is never called.
The text was updated successfully, but these errors were encountered: