Socket
Socket
Sign inDemoInstall

@dazn/lambda-powertools-middleware-correlation-ids

Package Overview
Dependencies
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dazn/lambda-powertools-middleware-correlation-ids - npm Package Compare versions

Comparing version 1.24.3 to 1.25.0

11

CHANGELOG.md

@@ -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 @@

2

event-sources/alb.js

@@ -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"
}
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