@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.
- package/lib/util.js +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 =
|
|
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 (
|
|
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
|
|
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.
|
|
18
|
+
"fs-extra": "11.2.0",
|
|
19
19
|
"i18next": "21.10.0",
|
|
20
20
|
"json-stringify-safe": "5.0.1",
|
|
21
|
-
"jsonata": "2.0.
|
|
21
|
+
"jsonata": "2.0.5",
|
|
22
22
|
"lodash.clonedeep": "^4.5.0",
|
|
23
|
-
"moment": "2.
|
|
24
|
-
"moment-timezone": "0.5.
|
|
23
|
+
"moment": "2.30.1",
|
|
24
|
+
"moment-timezone": "0.5.45"
|
|
25
25
|
}
|
|
26
26
|
}
|