Skip to content
This repository was archived by the owner on Nov 27, 2019. It is now read-only.

Commit aa3a545

Browse files
committed
Added authorizer information to data
1 parent b5cb831 commit aa3a545

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ function R(...params) {
5252
.then(usedSettings.validate)
5353
.then((transformedData) => {
5454
transformed = transformedData;
55-
return handler(transformedData);
55+
return handler(Object.assign({}, transformedData, {
56+
authorizer: event.requestContext && event.requestContext.authorizer,
57+
}));
5658
})
5759
.then((response) => {
5860
callback(null, {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-response",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Aws response handler",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)