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

Node build without crypto and buffertools #340

Closed
wants to merge 2 commits into from
Closed

Conversation

SimonWoolf
Copy link
Member

That was a lot easier than I was expecting. Turns out node wasn't actually using either buffertools or crypto-js at all at runtime. So could basically just move them both from dependencies to devDependencies

var nodeBufferCompare = function(buf1, buf2) {
if(!buf1) return -1;
if(!buf2) return 1;
return require('buffertools').compare(buf1, buf2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonWoolf
Copy link
Member Author

even easier then. We can even keep the min required node version at 0.10.x, since bufferCompare is only called by tests.

SimonWoolf added a commit that referenced this pull request Oct 12, 2016
@SimonWoolf
Copy link
Member Author

Merged as 2ec5f45

@mattheworiordan
Copy link
Member

Nice 👍

@mattheworiordan mattheworiordan deleted the node-slim branch October 13, 2016 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants