@resourcefulhumans/rheactor-aws-lambda
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -25,3 +25,3 @@ 'use strict'; | ||
* @param {Array.<Function>} operations | ||
* @param {{headers: object, path: string, httpMethod: string, body: string, queryStringParameters: object}} event | ||
* @param {{headers: object, path: string, httpMethod: string, body: string, queryStringParameters: object, requestContext: object}} event | ||
* @param {object} context | ||
@@ -65,3 +65,3 @@ * @param {function} callback | ||
return (0, _api.getOptionalToken)(event, tokenSecretOrPrivateKey).then(function (token) { | ||
return operations[operation][method](body, parts, token, event.queryStringParameters); | ||
return operations[operation][method](body, parts, token, event.queryStringParameters, event.requestContext); | ||
}); | ||
@@ -68,0 +68,0 @@ }).then(function (res) { |
{ | ||
"name": "@resourcefulhumans/rheactor-aws-lambda", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Core components for RESTful AWS lambda endpoints", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -11,3 +11,3 @@ import Promise from 'bluebird' | ||
* @param {Array.<Function>} operations | ||
* @param {{headers: object, path: string, httpMethod: string, body: string, queryStringParameters: object}} event | ||
* @param {{headers: object, path: string, httpMethod: string, body: string, queryStringParameters: object, requestContext: object}} event | ||
* @param {object} context | ||
@@ -52,3 +52,3 @@ * @param {function} callback | ||
return getOptionalToken(event, tokenSecretOrPrivateKey) | ||
.then(token => operations[operation][method](body, parts, token, event.queryStringParameters)) | ||
.then(token => operations[operation][method](body, parts, token, event.queryStringParameters, event.requestContext)) | ||
}) | ||
@@ -55,0 +55,0 @@ .then(res => done(null, res)) |
29236