mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Migrate to nyc instead of istanbul for code coverage
This commit is contained in:
@@ -103,7 +103,7 @@ function installModule(module,version,url) {
|
||||
installName = url;
|
||||
} else {
|
||||
log.warn(log._("server.install.install-failed-url",{name:module,url:url}));
|
||||
e = new Error("Invalid url");
|
||||
const e = new Error("Invalid url");
|
||||
e.code = "invalid_module_url";
|
||||
reject(e);
|
||||
return;
|
||||
@@ -120,7 +120,7 @@ function installModule(module,version,url) {
|
||||
module = info.name;
|
||||
} else {
|
||||
log.warn(log._("server.install.install-failed-name",{name:module}));
|
||||
e = new Error("Invalid module name");
|
||||
const e = new Error("Invalid module name");
|
||||
e.code = "invalid_module_name";
|
||||
reject(e);
|
||||
return;
|
||||
|
@@ -456,9 +456,9 @@ function remapSubflowNodes(nodes,nodeMap) {
|
||||
var node = nodes[id];
|
||||
if (node.wires) {
|
||||
var outputs = node.wires;
|
||||
for (j=0;j<outputs.length;j++) {
|
||||
wires = outputs[j];
|
||||
for (k=0;k<wires.length;k++) {
|
||||
for (var j=0;j<outputs.length;j++) {
|
||||
var wires = outputs[j];
|
||||
for (var k=0;k<wires.length;k++) {
|
||||
if (nodeMap[outputs[j][k]]) {
|
||||
outputs[j][k] = nodeMap[outputs[j][k]].id
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user