Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lambda-request-handler

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-request-handler - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

LICENSE

8

dist/compile/eventToRequestOptions.js

@@ -11,7 +11,7 @@ "use strict";

const url = __importStar(require("url"));
const getValuesFromStringAndMultiString = (stringMap, multiStringMap) => {
const getValuesFromStringAndMultiString = (stringMap, multiStringMap, lcKeys = true) => {
const retVal = {};
const singleMap = stringMap || {};
Object.keys(singleMap).forEach(k => {
retVal[k.toLowerCase()] = singleMap[k];
retVal[lcKeys ? k.toLowerCase() : k] = singleMap[k];
});

@@ -21,3 +21,3 @@ const multiMap = multiStringMap || {};

// get the last value
retVal[k.toLowerCase()] = multiMap[k][multiMap[k].length - 1];
retVal[lcKeys ? k.toLowerCase() : k] = multiMap[k][multiMap[k].length - 1];
});

@@ -29,3 +29,3 @@ return retVal;

let ssl = false;
const queryStringParams = getValuesFromStringAndMultiString(event.queryStringParameters, event.multiValueQueryStringParameters);
const queryStringParams = getValuesFromStringAndMultiString(event.queryStringParameters, event.multiValueQueryStringParameters, false);
const headers = getValuesFromStringAndMultiString(event.headers, event.multiValueHeaders);

@@ -32,0 +32,0 @@ if (ctx) {

{
"name": "lambda-request-handler",
"version": "0.3.1",
"version": "0.3.2",
"license": "(MIT OR Apache-2.0)",

@@ -40,16 +40,16 @@ "scripts": {

"devDependencies": {
"@types/compression": "^1.0.1",
"@types/compression": "^1.7.0",
"@types/cookie-parser": "^1.4.2",
"@types/express": "^4.17.2",
"@types/jest": "^24.0.23",
"@types/node": "^12.12.14",
"@types/express": "^4.17.6",
"@types/jest": "^25.2.1",
"@types/node": "^13.13.4",
"compression": "^1.7.4",
"cookie-parser": "^1.4.4",
"ejs": "^3.0.1",
"cookie-parser": "^1.4.5",
"ejs": "^3.1.2",
"express": "^4.17.1",
"jest": "^24.9.0",
"ts-jest": "^24.2.0",
"ts-node": "^8.5.4",
"typescript": "^3.7.3"
"jest": "^25.4.0",
"ts-jest": "^25.4.0",
"ts-node": "^8.9.1",
"typescript": "^3.8.3"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc