Socket
Socket
Sign inDemoInstall

@node-red/runtime

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-red/runtime - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

locales/ru/runtime.json

20

lib/api/comms.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc