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

Configurable defaults #116

Open
wants to merge 2 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@pupeno
Contributor

pupeno commented Sep 20, 2015

I'm working on universal JavaScript, that is, running the same JavaScript on the browser and the server for pre-rendering server side applications and on client applications it's normal to do xmlhttprequests with just a path. In this case this library assumes you'll be talking to http://localhost:80/, but that's not always the case, so I made it possible to set a default, to bootstrap an environment where the application can run unchanged.

I'll be publishing blog posts and libraries I developed around this idea at https://CarouselApps.com in case you are curious.

@atroche

This comment has been minimized.

atroche commented Oct 21, 2015

any word on this? seems really useful.

@pupeno

This comment has been minimized.

Contributor

pupeno commented Oct 21, 2015

@atroche if you need it right now, I released a fork with that and a small bug fix:

https://www.npmjs.com/package/@pupeno/xmlhttprequest

@pupeno

This comment has been minimized.

Contributor

pupeno commented Dec 11, 2015

I updated the branch to 1.8.0, it merged without any issues.

@pupeno

This comment has been minimized.

Contributor

pupeno commented Dec 11, 2015

Well, at least no conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment