node-red-contrib-boolean-logic-ultimate 1.2.2 → 1.2.3
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
# CHANGELOG
|
|
5
5
|
|
|
6
|
+
<p>
|
|
7
|
+
<b>Version 1.2.3</b> November 2025<br/>
|
|
8
|
+
- Impulse node allows now to send JSON as payload. Grazie Waldmensch1 !!</br>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
6
11
|
<p>
|
|
7
12
|
<b>Version 1.2.2</b> September 2025<br/>
|
|
8
13
|
- KalmanFilterUltimate: renamed configuration fields for R/Q parameters to measurement/process noise to avoid reserved-property conflicts.</br>
|
|
@@ -45,7 +45,21 @@ module.exports = function (RED) {
|
|
|
45
45
|
var sCommand = element.split(":")[0].toString().toLowerCase().trim();
|
|
46
46
|
if (sCommand !== "restart") {
|
|
47
47
|
// Get the value of the command
|
|
48
|
-
var sVal = element.split(":")[1].toString().toLowerCase().trim();
|
|
48
|
+
//var sVal = element.split(":")[1].toString().toLowerCase().trim();
|
|
49
|
+
const idx = element.indexOf(":");
|
|
50
|
+
var sVal = (idx !== -1 ? element.substring(idx + 1) : "")
|
|
51
|
+
.toString()
|
|
52
|
+
.trim(); // toLowerCase() would destroy JSON keys
|
|
53
|
+
|
|
54
|
+
try {
|
|
55
|
+
const parsed = JSON.parse(sVal);
|
|
56
|
+
if (parsed && typeof parsed === "object") {
|
|
57
|
+
sVal = parsed; // sVal is real object now
|
|
58
|
+
}
|
|
59
|
+
} catch (e) {
|
|
60
|
+
// no valid JSON - sVal stays String. toLowerCase() could be done here if really needed,
|
|
61
|
+
// but it could surprise the enduser that the foreseen value is manipulated
|
|
62
|
+
}
|
|
49
63
|
} else { var sVal = ""; }
|
|
50
64
|
|
|
51
65
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-boolean-logic-ultimate",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "A set of Node-RED enhanced boolean logic and utility nodes, flow interruption, blinker, invert, filter, toggle etc.., with persistent values after reboot. Compatible also with Homeassistant values.",
|
|
5
5
|
"author": "Supergiovane (https://github.com/Supergiovane)",
|
|
6
6
|
"dependencies": {
|