chargebee / chargebee-typescript

Typescript library for the Chargebee API.
https://apidocs.chargebee.com/docs/api?lang=typescript
MIT License
23 stars 16 forks source link

fix(lib): change deprecated Buffer allocation #15

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 fixed in v2.1.0. @Oupsla Thanks for your contribution .