node-red-viseo-helper
Advanced tools
Comparing version 0.2.0-alpha.6 to 0.2.0-alpha.7
@@ -0,0 +0,0 @@ # Contributor Covenant Code of Conduct |
@@ -0,0 +0,0 @@ # Contributing to the Project |
@@ -208,3 +208,4 @@ 'use strict'; | ||
data._tmp = data._tmp || {} | ||
data._tmp['event_emitter'] = { callback: callback, config: config }; // Only one in a flow otherwise might loose it | ||
data._tmp['event_emitter'] = data._tmp['event_emitter'] || [] | ||
data._tmp['event_emitter'].push({ callback: callback, config: config }); | ||
emitter.emit(type, node, data, config); | ||
@@ -225,6 +226,6 @@ } | ||
let callback = data._tmp.event_emitter.callback; | ||
let emitterData = data._tmp.event_emitter.pop(); | ||
let callback = emitterData.callback; | ||
if (!callback) return; | ||
delete data._tmp.event_emitter; | ||
callback(data); | ||
@@ -231,0 +232,0 @@ } |
@@ -0,0 +0,0 @@ const extend = require('extend'); |
{ | ||
"name" : "node-red-viseo-helper", | ||
"version" : "0.2.0-alpha.6", | ||
"version" : "0.2.0-alpha.7", | ||
"description" : "Utility libarary for Node-RED", | ||
@@ -5,0 +5,0 @@ "dependencies" : { |
@@ -0,0 +0,0 @@ # Node-RED |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
285
26216