@fastify/aws-lambda
Advanced tools
Comparing version
@@ -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": { |
22552
0.24%