-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
use Buffer.isBuffer instead of instanceof #58
Conversation
@@ -2,6 +2,4 @@ var buf = require('buffer'); | |||
var Buffer = buf.Buffer; | |||
|
|||
// could use Buffer.isBuffer but this is the same exact thing... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could remove that comment too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah... good point. pushed changes
|
@contra that looks good to me, pushed that up. |
use Buffer.isBuffer instead of instanceof
@contra when do you think you could publish a patch version to npm? I understand if you dont want to version bump for such a small change, but it would make my life a little easier as i'm working with browserified vinyl code :) |
0.5.1 |
use Buffer.isBuffer instead of instanceof
instanceof
doesnt work for browserified codeSo I changed this to just use Buffer.isBuffer.
probably could just remove the entire 'isBuffer' module, but I left it to be consistent with the other packages.