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 Apr 25, 2024. It is now read-only.
Making a request shows console error (node:2036) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Buffer() is being used on shippo\lib\Resource.js:183 - var requestData = new Buffer(JSON.stringify(data || {})); Changing the line to var requestData = Buffer.alloc(JSON.stringify(data || {})); makes the error go away.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Making a request shows console error
(node:2036) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Buffer() is being used on
shippo\lib\Resource.js:183
-var requestData = new Buffer(JSON.stringify(data || {}));
Changing the line tovar requestData = Buffer.alloc(JSON.stringify(data || {}));
makes the error go away.The text was updated successfully, but these errors were encountered: