chargebee / chargebee-node

Node.js library for the Chargebee API.
https://apidocs.chargebee.com/docs/api?lang=node
MIT License
46 stars 30 forks source link

fix(lib): change deprecated Buffer allocation #21

Closed Oupsla closed 3 years ago

Oupsla commented 3 years ago

Hello folks,

Little PR to fix a deprecated use of the buffer constructor, should use Buffer.from 😄

Here is the node message for info :

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

Ping @cb-navaneedhan @cb-gaurav @cb-rohitp for review

If you can do a new version after merge, it would be greatly appreciated 🙏

cb-goutham commented 3 years ago

This has been addressed in v2.6.6