Skip to content

Commit

Permalink
Change back deprecated new Buffer to Buffer.from (#52)
Browse files Browse the repository at this point in the history
It looks like the deprecated `new Buffer` accidentally got reintroduced here in v1.3.0

v1.2.3...v1.3.0#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R90
  • Loading branch information
Mark committed Feb 11, 2023
1 parent 4bfa56a commit 73d0c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -87,7 +87,7 @@ const handleEvent = (event, config) => {
FunctionName: target,
InvocationType: i === concurrency ? 'RequestResponse' : 'Event',
LogType: 'None',
Payload: new Buffer(
Payload: Buffer.from(
JSON.stringify({
[config.flag]: true, // send warmer flag
__WARMER_INVOCATION__: i, // send invocation number
Expand Down

0 comments on commit 73d0c10

Please sign in to comment.