@dasmeta/event-manager-platform-helper
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@dasmeta/event-manager-platform-helper", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Event platform helper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,3 +22,5 @@ /** | ||
const getFunctionName = (allContext) => { | ||
return allContext[0].request.get('x-fission-function-name'); | ||
const deployedName = allContext[0].request.get('x-fission-function-name'); | ||
// 0-is separator | ||
return deployedName.replace('0', '_') | ||
} | ||
@@ -25,0 +27,0 @@ |
@@ -14,3 +14,2 @@ const { recordStart, recordSuccess, recordFailure, recordPreconditionFailure, hasReachedMaxAttempts } = require("../event-logger"); | ||
// @todo check eventId, traceId | ||
const { eventId, traceId, data, dataSource, subscription = "" } = event; | ||
@@ -26,3 +25,2 @@ | ||
// @todo check abbreviating | ||
if (subscription && subscription !== functionName) { | ||
@@ -29,0 +27,0 @@ console.log("Skip event because the handler is another", eventInfo); |
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
24506