Comparing version 1.0.9 to 1.0.10
@@ -26,2 +26,6 @@ 'use strict'; | ||
var getTopicName = function getTopicName(name) { | ||
return ((process.env.NODE_ENV || 'DEVELOPMENT') + '_' + name).toUpperCase(); | ||
}; | ||
var subscribe = function subscribe(payload) { | ||
@@ -32,3 +36,3 @@ return subscribeCallback(payload); | ||
var define = function define(topicName, callBack) { | ||
topic = topicName; | ||
topic = getTopicName(topicName); | ||
subscribeCallback = callBack; | ||
@@ -40,3 +44,3 @@ var task = { | ||
registry.addNewTask(task, producer); | ||
eventEmitter.emit('create', topicName); | ||
eventEmitter.emit('create', topic); | ||
producer.initialize(); | ||
@@ -43,0 +47,0 @@ }; |
{ | ||
"name": "steveo", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "A Task Manager Library", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
29381
379
2