node-hocus-pocus / legerdemain

Run your Node.js web apps from AWS API Gateway.
83 stars 4 forks source link

Updated to support Node.js runtime v4.3 #6

Open lukehesluke opened 8 years ago

lukehesluke commented 8 years ago

legerdemain uses 'callback' rather than 'context.succeed' or 'context.fail', when available, to return to AWS Lambda.

For Node.js runtime v4.3, this is the supported method of returning to Lambda (http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-using-old-runtime.html). For older runtime versions, 'context.succeed' or 'context.fail' will still be used