Skip to content

Fix deprecated Buffer() usage#79

Open
tensleep wants to merge 1 commit into
nothingisdead:masterfrom
TensleepTrading:fix_buffer
Open

Fix deprecated Buffer() usage#79
tensleep wants to merge 1 commit into
nothingisdead:masterfrom
TensleepTrading:fix_buffer

Conversation

@tensleep

Copy link
Copy Markdown

This usage of Buffer is deprecated in Node 10; see here for more details. It causes the following warning:

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

This change fixes the warning.

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