-
Notifications
You must be signed in to change notification settings - Fork 194
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
Warning on connect() method - Buffer() is deprecated due to security and usability issues #231
Comments
Start by upgrading to the current version. Then if you still see this
issue, let me know.
|
Sorry I misspelled the version, I'm using 5.1.2 version and error remains because it comes from this package concat-stream. They are using Buffer() constructor instead of Buffer.from(). There's even a PR to fix this for more that a year PR. |
OK, I will look at the status of that dependency and see what the best
action is. Might try and get rid of the dependency altogether.
|
That would be awesome, let me know if you fix it and create a new version so that I can use this package in a project because this package is really good, congrats. |
What version of node are you using?
I've not been able to reproduce that warning. Can you provide a basic
script which produces the warning so that I can try and reproduce it?
|
I'm using v12 but now I don't get the error anymore (testing on personal computer). On Monday I will try again with everything set up and I let you know if the error still exists. Thanks |
I can't replicate the problem again, don't know what happened but in the next days I will use others methods from this package and I let you know if I get it again. You can close the issue and sorry for the time lost |
Hi,
I'm using the version 4.1.3 from ssh2-sftp-client and when I call the connect() method I get the following warning:
I check your code and I couldn't find any statement with Buffer() so I found it was this package concat-stream. Can you help?
Pedro
The text was updated successfully, but these errors were encountered: