node-red-contrib-looptimer-advanced 0.0.10 → 0.0.11

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/README.md CHANGED
@@ -49,7 +49,8 @@ You can define maximum number of loops with `msg.loop.maxloops`
49
49
 
50
50
 
51
51
  Setting the Max Loops and Max Timeout settings to high values can, for all intents, ensure that the loop can only be stopped by an incoming `stop` payload, however, the stability of the loop has not been tested over an extended number of hours.
52
-
52
+ **0.0.11** - Add Type Check for Stop condition to avoid type error on non string payload converting to LowerCase
53
+ **0.0.10** - Update README.md
53
54
  **0.0.9** - Bugfix for Minutes, and minor improvements to code quality
54
55
  **0.0.8** - Fix Until Node-Red Does Not Get Fixed on issue #3867
55
56
  **0.0.7** - Update Loop Dependency version as older version is not compatible with higher version Node.JS
@@ -114,7 +114,7 @@ module.exports = function (RED) {
114
114
  stopped = false;
115
115
  clearTimeout(timeout);
116
116
  timeout = null;
117
- if (msg.payload.toLowerCase() === "stop") {
117
+ if (typeof msg.payload === "string" && msg.payload.toLowerCase() === "stop") {
118
118
  node.status({
119
119
  fill: "red",
120
120
  shape: "ring",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-looptimer-advanced",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Sends the msg through the first output, then continues to do so in a loop, once per the duration specified, until a payload of 'stop' or 'STOP' is received. Supports override with messages!",
5
5
  "main": "looptimer_advanced.js",
6
6
  "scripts": {},