Skip to content

Changed Buffer() to Buffer.from() because Buffer() constructor is deprecated.#20

Open
ahmedkhan1039 wants to merge 1 commit into
arian:masterfrom
ahmedkhan1039:Buffer-Deprecation-Fix
Open

Changed Buffer() to Buffer.from() because Buffer() constructor is deprecated.#20
ahmedkhan1039 wants to merge 1 commit into
arian:masterfrom
ahmedkhan1039:Buffer-Deprecation-Fix

Conversation

@ahmedkhan1039
Copy link
Copy Markdown

Referring to this warning:

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

I have changed the Buffer() to Buffer.from(). Also, i have checked it and library is working fine as before.

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.

1 participant