You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
When running anything that makes requests to the API a warning is emitted on newer versions of nodejs:
(node:41042) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Since nodejs 6 `new Buffer(…)` has been deprecated and shouldn’t be used, this switches to the newer method and this gets rid of the warning.
Fixesinstructure#46
Description
When running anything that makes requests to the API a warning is emitted on newer versions of nodejs:
This is because the code uses the
new Buffer(string)
method which is deprecated and since version 10 has emitted this warning: https://nodejs.org/api/buffer.html#new-bufferstring-encodingThe text was updated successfully, but these errors were encountered: