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

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
 
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-beta.4",
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-beta.4",
20
+ "@node-red/util": "4.0.0-beta.4",
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
  }