@dazn/lambda-powertools-middleware-correlation-ids
Advanced tools
Comparing version 1.24.3 to 1.25.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.25.0](https://github.com/getndazn/dazn-lambda-powertools/compare/v1.24.3...v1.25.0) (2020-07-30) | ||
### Features | ||
* **middleware-correlation-ids:** fixing error thrown by isMatch ([6f35266](https://github.com/getndazn/dazn-lambda-powertools/commit/6f352662aec3f9f2a0d718a91fc015b861efbc0d)) | ||
## [1.24.3](https://github.com/getndazn/dazn-lambda-powertools/compare/v1.24.2...v1.24.3) (2020-07-24) | ||
@@ -8,0 +19,0 @@ |
@@ -6,3 +6,3 @@ const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids') | ||
function isMatch (event) { | ||
return event.hasOwnProperty('httpMethod') && event.requestContext.hasOwnProperty('elb') | ||
return event.hasOwnProperty('httpMethod') && event.requestContext && event.requestContext.hasOwnProperty('elb') | ||
} | ||
@@ -9,0 +9,0 @@ |
@@ -6,3 +6,3 @@ const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids') | ||
function isMatch (event) { | ||
return event.hasOwnProperty('httpMethod') && !event.requestContext.hasOwnProperty('elb') | ||
return event.hasOwnProperty('httpMethod') && event.requestContext && !event.requestContext.hasOwnProperty('elb') | ||
} | ||
@@ -9,0 +9,0 @@ |
{ | ||
"name": "@dazn/lambda-powertools-middleware-correlation-ids", | ||
"version": "1.24.3", | ||
"version": "1.25.0", | ||
"description": "Middy middleware for capturing correlation IDs from inbound event", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "b31d311c5e1090c0957bd1a9b118adaf234bc9fb" | ||
"gitHead": "17674c288d1d5add548a2aa2b14b97a676e40194" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
395491