node-red-contrib-boolean-logic-ultimate 1.1.12 → 1.1.14
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,9 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
# CHANGELOG
|
|
5
5
|
|
|
6
|
+
<p>
|
|
7
|
+
<b>Version 1.1.14</b> Mai 2024<br/>
|
|
8
|
+
- FIX: inject node: fixed an error in JSON.parse.</br>
|
|
9
|
+
</p>
|
|
6
10
|
<p>
|
|
7
11
|
<b>Version 1.1.12</b> Mai 2024<br/>
|
|
8
|
-
- FIX: fixed the empty JSON for old injectUltimate nodes.</br>
|
|
12
|
+
- FIX: inject node: fixed the empty JSON for old injectUltimate nodes.</br>
|
|
9
13
|
</p>
|
|
10
14
|
<p>
|
|
11
15
|
<b>Version 1.1.11</b> Mai 2024<br/>
|
|
@@ -33,14 +33,15 @@ module.exports = function (RED) {
|
|
|
33
33
|
let msgFalse = { payload: false, topic: node.topic };
|
|
34
34
|
let msgToggled = { payload: node.curVal, topic: node.topic };
|
|
35
35
|
node.curVal = !node.curVal;
|
|
36
|
+
let jRet;
|
|
36
37
|
try {
|
|
37
|
-
|
|
38
|
+
jRet = JSON.parse(node.outputJSON);
|
|
38
39
|
if (node.outputJSON.topic === undefined) node.outputJSON.topic = node.topic; // Add topic if not present
|
|
39
40
|
} catch (error) {
|
|
40
41
|
setNodeStatus({ fill: "red", shape: "dot", text: "JSON error " + error.trace });
|
|
41
42
|
RED.log.error("injectUltimate: node.outputJSON = JSON.parse(node.outputJSON) error:" + error.trace);
|
|
42
43
|
}
|
|
43
|
-
node.send([msgTrue, msgFalse, msgToggled,
|
|
44
|
+
node.send([msgTrue, msgFalse, msgToggled, jRet]);
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
function setNodeStatus({ fill, shape, text }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-boolean-logic-ultimate",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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": {
|