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

refactor: use of 'Buffer.from' instead of a deprecated 'new Buffer()' #1134

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

asastre
Copy link
Contributor

@asastre asastre commented Jan 8, 2021

When setting a BasicAuthSecurity I was getting this warning:

DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Changing new Buffer() to Buffer.from in order to get rid of this warning.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 94.908% when pulling f420de7 on asastre:master into 9903060 on vpulim:master.

@jsdevel jsdevel merged commit dd30130 into vpulim:master Jan 12, 2021
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.

3 participants