aws-lambda-ws-server
Advanced tools
Comparing version 0.1.4 to 0.1.7
{ | ||
"name": "aws-lambda-ws-server", | ||
"version": "0.1.4", | ||
"version": "0.1.7", | ||
"description": "websocket server for aws lambda and local development", | ||
@@ -27,3 +27,3 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"aws-post-to-connection": "0.1.4", | ||
"aws-post-to-connection": "0.1.7", | ||
"is-lambda": "1.0.1" | ||
@@ -30,0 +30,0 @@ }, |
@@ -18,3 +18,6 @@ const isLambda = require('is-lambda') | ||
const body = JSON.parse( | ||
Buffer.from(event.body, event.isBase64Encoded ? 'base64' : undefined) | ||
Buffer.from( | ||
event.body || '{}', | ||
event.isBase64Encoded ? 'base64' : undefined | ||
) | ||
) | ||
@@ -21,0 +24,0 @@ const messageArgs = { ...connectionArgs, message: body } |
29555
162
+ Addedaws-post-to-connection@0.1.7(transitive)
- Removedaws-post-to-connection@0.1.4(transitive)
Updatedaws-post-to-connection@0.1.7