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

Adjust export for Common.js Node-like environments. #27

Merged
merged 1 commit into from
Jun 17, 2014

Conversation

djfarrelly
Copy link
Contributor

Currently, when you require DOMPurify in Node.js environments or similar (like Browserify) an object containing DOMPurify is being exported and not the DOMPurify object itself. This small change allows this cleaner require:

var DOMPurify = require('dompurify');

Instead of the current:

var DOMPurify = require('dompurify').DOMPurify;

Here's a working example on RequireBin: http://requirebin.com/?gist=a597860855d59cadfaeb

cure53 added a commit that referenced this pull request Jun 17, 2014
Adjust export for Common.js Node-like environments.
@cure53 cure53 merged commit b160a48 into cure53:master Jun 17, 2014
@cure53
Copy link
Owner

cure53 commented Jun 17, 2014

Thanks!

@fhemberger fhemberger mentioned this pull request Jul 6, 2014
5 tasks
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

2 participants