@node-red/util 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.
Files changed (2) hide show
  1. package/lib/util.js +2 -2
  2. package/package.json +5 -5
package/lib/util.js CHANGED
@@ -862,7 +862,7 @@ function encodeObject(msg,opts) {
862
862
  message: msg.msg.message
863
863
  });
864
864
  } else {
865
- var isArray = util.isArray(msg.msg);
865
+ var isArray = Array.isArray(msg.msg);
866
866
  var needsStringify = isArray;
867
867
  if (isArray) {
868
868
  msg.format = "array["+msg.msg.length+"]";
@@ -906,7 +906,7 @@ function encodeObject(msg,opts) {
906
906
  }
907
907
  } else if (value instanceof Error) {
908
908
  value = value.toString()
909
- } else if (util.isArray(value) && value.length > debuglength) {
909
+ } else if (Array.isArray(value) && value.length > debuglength) {
910
910
  value = {
911
911
  __enc__: true,
912
912
  type: "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-red/util",
3
- "version": "4.0.0-beta.3-1",
3
+ "version": "4.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,12 +15,12 @@
15
15
  }
16
16
  ],
17
17
  "dependencies": {
18
- "fs-extra": "11.1.1",
18
+ "fs-extra": "11.2.0",
19
19
  "i18next": "21.10.0",
20
20
  "json-stringify-safe": "5.0.1",
21
- "jsonata": "2.0.4",
21
+ "jsonata": "2.0.5",
22
22
  "lodash.clonedeep": "^4.5.0",
23
- "moment": "2.29.4",
24
- "moment-timezone": "0.5.43"
23
+ "moment": "2.30.1",
24
+ "moment-timezone": "0.5.45"
25
25
  }
26
26
  }