node-red-viseo-helper
Advanced tools
Comparing version 0.1.18 to 0.1.19
@@ -0,0 +0,0 @@ # Contributor Covenant Code of Conduct |
@@ -0,0 +0,0 @@ # Contributing to the Project |
11
index.js
@@ -135,4 +135,3 @@ 'use strict'; | ||
let listeners = emitter.listeners(type) | ||
if (!listeners || listeners.length == 0){ | ||
if (countListeners(type) === 0){ | ||
return callback(data); | ||
@@ -146,2 +145,10 @@ } | ||
const countListeners = exports.countListeners = (type) => { | ||
let listeners = emitter.listeners(type) | ||
if (!listeners){ | ||
return 0; | ||
} | ||
return listeners.length; | ||
} | ||
const fireAsyncCallback = exports.fireAsyncCallback = (data) => { | ||
@@ -148,0 +155,0 @@ if (!data._tmp) return; |
@@ -0,0 +0,0 @@ const extend = require('extend'); |
{ | ||
"name" : "node-red-viseo-helper", | ||
"version" : "0.1.18", | ||
"version" : "0.1.19", | ||
"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
135
21658
8