@node-red/runtime
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -41,8 +41,16 @@ /** | ||
function handleStatusEvent(event) { | ||
var status = { | ||
text: event.status.text, | ||
fill: event.status.fill, | ||
shape: event.status.shape | ||
}; | ||
publish("status/"+event.id,status,true); | ||
if (!event.status) { | ||
delete retained["status/"+event.id] | ||
} else if (!event.status.text && !event.status.fill && !event.status.shape) { | ||
if (retained["status/"+event.id]) { | ||
publish("status/"+event.id,{},false); | ||
} | ||
} else { | ||
var status = { | ||
text: event.status.text, | ||
fill: event.status.fill, | ||
shape: event.status.shape | ||
}; | ||
publish("status/"+event.id,status,true); | ||
} | ||
} | ||
@@ -49,0 +57,0 @@ function handleRuntimeEvent(event) { |
@@ -322,2 +322,7 @@ /** | ||
} | ||
if (removedMap[stopList[i]]) { | ||
events.emit("node-status",{ | ||
id: node.id | ||
}); | ||
} | ||
} | ||
@@ -324,0 +329,0 @@ } |
@@ -21,2 +21,3 @@ /** | ||
const util = require("util"); | ||
const events = require("../events"); | ||
@@ -312,3 +313,22 @@ const redUtil = require("@node-red/util").util; | ||
/** | ||
* Stop this subflow. | ||
* The `stopList` argument helps define what needs to be stopped in the case | ||
* of a modified-nodes/flows type deploy. | ||
* @param {[type]} stopList [description] | ||
* @param {[type]} removedList [description] | ||
* @return {[type]} [description] | ||
*/ | ||
stop(stopList, removedList) { | ||
const nodes = Object.keys(this.activeNodes); | ||
return super.stop(stopList, removedList).then(res => { | ||
nodes.forEach(id => { | ||
events.emit("node-status",{ | ||
id: id | ||
}); | ||
}) | ||
return res; | ||
}) | ||
} | ||
/** | ||
@@ -315,0 +335,0 @@ * Get environment variable of subflow |
{ | ||
"name": "@node-red/runtime", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"license": "Apache-2.0", | ||
@@ -19,4 +19,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@node-red/registry": "1.2.3", | ||
"@node-red/util": "1.2.3", | ||
"@node-red/registry": "1.2.4", | ||
"@node-red/util": "1.2.4", | ||
"async-mutex": "0.2.4", | ||
@@ -23,0 +23,0 @@ "clone": "2.1.2", |
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
520659
53
12271
+ Added@node-red/registry@1.2.4(transitive)
+ Added@node-red/util@1.2.4(transitive)
+ Addedmoment-timezone@0.5.32(transitive)
+ Addeduglify-js@3.11.6(transitive)
- Removed@node-red/registry@1.2.3(transitive)
- Removed@node-red/util@1.2.3(transitive)
- Removedmoment-timezone@0.5.45(transitive)
- Removeduglify-js@3.11.4(transitive)
Updated@node-red/registry@1.2.4
Updated@node-red/util@1.2.4