smart-nodes 0.4.2 → 0.4.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.
@@ -124,6 +124,18 @@
124
124
  this.out_lower_type = "NOTHING";
125
125
  $("#node-input-out_lower_type").val("NOTHING");
126
126
  }
127
+
128
+ if (this.out_higher_type == "original")
129
+ {
130
+ this.out_higher_type = "ORIGINAL";
131
+ $("#node-input-out_higher_type").val("ORIGINAL");
132
+ }
133
+
134
+ if (this.out_lower_type == "original")
135
+ {
136
+ this.out_lower_type = "ORIGINAL";
137
+ $("#node-input-out_lower_type").val("ORIGINAL");
138
+ }
127
139
  },
128
140
  oneditsave: function ()
129
141
  {
@@ -180,7 +180,7 @@ module.exports = function (RED)
180
180
 
181
181
  let createMessage = (out_msg, out_type, msg, value) =>
182
182
  {
183
- return helper.cloneObject(out_type == "NOTHING" ? msg : out_msg, {
183
+ return helper.cloneObject(out_type == "ORIGINAL" ? msg : out_msg, {
184
184
  smart_info: {
185
185
  last_result: node_settings.last_result,
186
186
  hysteresis: node_settings.hysteresis,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-nodes",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Smart Nodes",
5
5
  "keywords": [
6
6
  "node-red",