amazon-archives / serverless-app-examples

Apache License 2.0
717 stars 402 forks source link

fix warning [DeprecationWarning: The Buffer() and new Buffer()] #8

Open snickerjp opened 4 years ago

snickerjp commented 4 years ago

Description of changes:

warning detected.

DeprecationWarning: The Buffer() and new Buffer() constructors are not recommended for use due to security and usability concerns. Please use the new Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() construction methods instead.

ref. https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

fix this PR.