Skip to content
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

Update the exports line to work in node.js, browser and browserify #56

Merged
merged 2 commits into from Apr 18, 2014
Merged

Update the exports line to work in node.js, browser and browserify #56

merged 2 commits into from Apr 18, 2014

Conversation

facundoolano
Copy link
Contributor

Currently revalidtor can't be ported to the browser through browserify, because it checks for the existence of window.
For context on this change see: browserify/browserify#293

Also makes the validate function available in window instead of window.json (inline with the documentation). See: #30

To allow the module to be browserified.
Also make the validate function available in window instead of window.json (inline with revalidator documentation)
@dmmalam
Copy link

dmmalam commented Feb 11, 2014

+1
This seems like a no brainer merge?

@zeke
Copy link
Contributor

zeke commented Apr 4, 2014

👍

@zeke
Copy link
Contributor

zeke commented Apr 18, 2014

I've been using @facundoolano's branch in node and browserify. It works. :shipit:

jcrugzz added a commit that referenced this pull request Apr 18, 2014
Update the exports line to work in node.js, browser and browserify
@jcrugzz jcrugzz merged commit 41e08c4 into flatiron:master Apr 18, 2014
@zeke
Copy link
Contributor

zeke commented May 14, 2014

Can someone npm publish this change now that it's in master?

@indexzero @julianduque @jcrugzz

@julianduque
Copy link
Contributor

Done! v0.1.8 has been published

@zeke
Copy link
Contributor

zeke commented May 14, 2014

💖

@pluma
Copy link

pluma commented Jun 27, 2014

Thanks, awesome!

This was referenced Jun 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants