@mschaeffler/node-red-logic 3.10.0 → 3.10.1

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/math_mean.js +4 -4
  2. package/package.json +1 -1
package/math_mean.js CHANGED
@@ -91,14 +91,14 @@ module.exports = function(RED) {
91
91
 
92
92
  function sendValue(value,count)
93
93
  {
94
- if( node.topic )
95
- {
96
- msg.topic = node.topic;
97
- }
98
94
  msg.payload = value;
99
95
  msg.count = count;
100
96
  last[msg.topic] = {value:value,time:now};
101
97
  context.set( "last", last );
98
+ if( node.topic )
99
+ {
100
+ msg.topic = node.topic;
101
+ }
102
102
  node.status({fill:"green",shape:"dot",text:`${item.length} / ${tools.formatNumber(value)}`});
103
103
  send( msg );
104
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mschaeffler/node-red-logic",
3
- "version": "3.10.0",
3
+ "version": "3.10.1",
4
4
  "description": "nodes for simple operations.",
5
5
  "license": "LGPL-2.1",
6
6
  "homepage": "https://github.com/m-schaeffler/node-red-my-nodes/tree/main/node-red-logic",