lambda-toolkit 0.0.9-beta → 0.0.10-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1554,7 +1554,7 @@ module.exports = class Event {
1554
1554
  }
1555
1555
 
1556
1556
  parseFromAwsEvent( awsEvent ) {
1557
- this[`parseFromAwsEventV${awsEvent.version !== '1.0' ? 2 : 1}`]( awsEvent );
1557
+ this[`parseFromAwsEventV${awsEvent.version === '2.0' ? 2 : 1}`]( awsEvent );
1558
1558
  }
1559
1559
 
1560
1560
  parseFromAwsEventV1( awsEvent ) {
@@ -1572,12 +1572,12 @@ module.exports = class Event {
1572
1572
  } = awsEvent;
1573
1573
 
1574
1574
  const unifiedHeaders = {
1575
- headers,
1575
+ ...headers,
1576
1576
  ...Object.fromEntries( Object.entries( multiValueHeaders ?? {} ).map( ( [ k, v ] ) => [ k, Array.isArray( v ) ? v.join( ',' ) : k ] ) )
1577
1577
  };
1578
1578
 
1579
1579
  const unifiedQueryString = {
1580
- queryStringParameters,
1580
+ ...queryStringParameters,
1581
1581
  ...Object.fromEntries( Object.entries( multiValueQueryString ?? {} ).map( ( [ k, v ] ) => [ k, Array.isArray( v ) ? v.join( ',' ) : k ] ) )
1582
1582
  };
1583
1583
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambda-toolkit",
3
- "version": "0.0.9-beta",
3
+ "version": "0.0.10-beta",
4
4
  "description": "A set of tools to help and simplify Node Js code development for AWS Lambdas",
5
5
  "files": [
6
6
  "./license",