@node-red/runtime 4.0.0-beta.3-1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,7 +104,7 @@ var api = module.exports = {
104
104
  }
105
105
  }
106
106
  safeSettings.libraries = runtime.library.getLibraries();
107
- if (util.isArray(runtime.settings.paletteCategories)) {
107
+ if (Array.isArray(runtime.settings.paletteCategories)) {
108
108
  safeSettings.paletteCategories = runtime.settings.paletteCategories;
109
109
  }
110
110
 
@@ -1,5 +1,6 @@
1
1
  const flowUtil = require("./util");
2
2
  const credentials = require("../nodes/credentials");
3
+ const clone = require("clone");
3
4
 
4
5
  /**
5
6
  * This class represents a group within the runtime.
@@ -462,9 +462,8 @@ function stop(type,diff,muteLog,isDeploy) {
462
462
  if (type === 'nodes') {
463
463
  stopList = diff.changed.concat(diff.removed);
464
464
  } else if (type === 'flows') {
465
- stopList = diff.changed.concat(diff.removed).concat(diff.linked);
465
+ stopList = diff.changed.concat(diff.removed).concat(diff.linked).concat(diff.rewired);
466
466
  }
467
-
468
467
  events.emit("flows:stopping",{config: activeConfig, type: type, diff: diff})
469
468
 
470
469
  // Stop the global flow object last
package/lib/nodes/Node.js CHANGED
@@ -377,7 +377,7 @@ Node.prototype.send = function(msg) {
377
377
 
378
378
  if (msg === null || typeof msg === "undefined") {
379
379
  return;
380
- } else if (!util.isArray(msg)) {
380
+ } else if (!Array.isArray(msg)) {
381
381
  // A single message has been passed in
382
382
  if (typeof msg !== 'object') {
383
383
  this.error(Log._("nodes.flow.non-message-returned", { type: typeof msg }));
@@ -425,7 +425,7 @@ Node.prototype.send = function(msg) {
425
425
  if (i < msg.length) {
426
426
  var msgs = msg[i]; // msgs going to output i
427
427
  if (msgs !== null && typeof msgs !== "undefined") {
428
- if (!util.isArray(msgs)) {
428
+ if (!Array.isArray(msgs)) {
429
429
  msgs = [msgs];
430
430
  }
431
431
  var k = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-red/runtime",
3
- "version": "4.0.0-beta.3-1",
3
+ "version": "4.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./lib/index.js",
6
6
  "repository": {
@@ -16,12 +16,12 @@
16
16
  }
17
17
  ],
18
18
  "dependencies": {
19
- "@node-red/registry": "4.0.0-beta.3-1",
20
- "@node-red/util": "4.0.0-beta.3-1",
21
- "async-mutex": "0.4.0",
19
+ "@node-red/registry": "4.0.0",
20
+ "@node-red/util": "4.0.0",
21
+ "async-mutex": "0.5.0",
22
22
  "clone": "2.1.2",
23
23
  "express": "4.19.2",
24
- "fs-extra": "11.1.1",
24
+ "fs-extra": "11.2.0",
25
25
  "json-stringify-safe": "5.0.1",
26
26
  "rfdc": "^1.3.1"
27
27
  }