New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fastify/aws-lambda

Package Overview
Dependencies
Maintainers
19
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastify/aws-lambda - npm Package Compare versions

Comparing version

to
3.1.3

4

index.js

@@ -55,3 +55,3 @@ const isCompressedDefault = (res) => {

query[decodeURIComponent(q)] = decodeURIComponent(event.queryStringParameters[q])
if (typeof query[decodeURIComponent(q)] === 'string' && query[decodeURIComponent(q)].indexOf(',') > 0) {
if (event.version === '2.0' && typeof query[decodeURIComponent(q)] === 'string' && query[decodeURIComponent(q)].indexOf(',') > 0) {
query[decodeURIComponent(q)] = query[decodeURIComponent(q)].split(',')

@@ -62,3 +62,3 @@ }

} else {
if (event.queryStringParameters) {
if (event.queryStringParameters && event.version === '2.0') {
Object.keys(event.queryStringParameters).forEach((k) => {

@@ -65,0 +65,0 @@ if (typeof event.queryStringParameters[k] === 'string' && event.queryStringParameters[k].indexOf(',') > 0) {

@@ -29,3 +29,3 @@ {

"license": "MIT",
"version": "3.1.2",
"version": "3.1.3",
"main": "index.js",

@@ -32,0 +32,0 @@ "scripts": {