lambda-proxy-utils
Advanced tools
Comparing version 2.0.2 to 2.1.0
{ | ||
"name": "lambda-proxy-utils", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "Lambda Proxy event helpers", | ||
@@ -5,0 +5,0 @@ "author": "Geoff Dutton <g.dutton@gmail.com>", |
@@ -119,4 +119,7 @@ # lambda-proxy-utils | ||
// Get an AWS API Gateay requestContext property | ||
// Get an AWS API Gateway requestContext property | ||
req.context('requestId') // '08e3e2d0-daca-11e6-8d84-394b4374a71a' | ||
// Get the unmodified Lambda Proxy event | ||
req.getLambdaEvent() | ||
} | ||
@@ -123,0 +126,0 @@ ``` |
@@ -175,2 +175,11 @@ 'use strict' | ||
/** | ||
* Returns the unmodified Lambda Proxy Event | ||
* | ||
* @returns {object} - Lambda event | ||
*/ | ||
getLambdaEvent () { | ||
return this.rawLambdaEvent | ||
} | ||
/** | ||
* Returns true if the incoming request’s “Content-Type” HTTP header field matches the MIME type | ||
@@ -177,0 +186,0 @@ * specified by the type parameter. Returns false otherwise. |
25728
609
197