iyzico/iyzipay-node

Use Buffer.from() instead of new Buffer()

onury opened this issue · 0 comments

onury commented

new Buffer() usage causes the warning below:

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