Socket
Socket
Sign inDemoInstall

@resourcefulhumans/rheactor-aws-lambda

Package Overview
Dependencies
20
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.1.0

4

dist/handler.js

@@ -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))

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc