@node-red/nodes 3.1.1 → 3.1.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.
@@ -176,14 +176,16 @@
176
176
  for (var i=0;i<rules.length;i++) {
177
177
  const opt = { label: RED._('node-red:switch.label.rule')+' '+(i+1) }
178
178
  const r = rules[i];
179
- if (r.hasOwnProperty('v')) {
180
- if ((msg = RED.utils.validateTypedProperty(r.v,r.vt,opt)) !== true) {
181
- errors.push(msg)
179
+ if (r.t !== 'istype') {
180
+ if (r.hasOwnProperty('v')) {
181
+ if ((msg = RED.utils.validateTypedProperty(r.v,r.vt,opt)) !== true) {
182
+ errors.push(msg)
183
+ }
182
184
  }
183
- }
184
- if (r.hasOwnProperty('v2')) {
185
- if ((msg = RED.utils.validateTypedProperty(r.v2,r.v2t,opt)) !== true) {
186
- errors.push(msg)
185
+ if (r.hasOwnProperty('v2')) {
186
+ if ((msg = RED.utils.validateTypedProperty(r.v2,r.v2t,opt)) !== true) {
187
+ errors.push(msg)
188
+ }
187
189
  }
188
190
  }
189
191
  }
@@ -58,11 +58,8 @@
58
58
  round: {value:false},
59
59
  property: {value:"payload",required:true,
60
60
  label:RED._("node-red:common.label.property"),
61
- validate: RED.validators.typedInput({ type: 'msg' })
61
+ validate: RED.validators.typedInput({ type: 'msg', allowBlank: true })
62
62
  },
63
-
64
-
65
- // RED.validators.typedInput("propertyType", false)},
66
63
  name: {value:""}
67
64
  },
68
65
  inputs: 1,
@@ -57,10 +57,10 @@
57
57
  septopics: {value:true},
58
58
  property: {value:"payload", required:true,
59
59
  label:RED._("node-red:rbe.label.property"),
60
- validate: RED.validators.typedInput({ type: 'msg' })},
60
+ validate: RED.validators.typedInput({ type: 'msg', allowUndefined: true })},
61
61
  topi: {value:"topic", required:true,
62
62
  label:RED._("node-red:rbe.label.topic"),
63
- validate: RED.validators.typedInput({ type: 'msg' })}
63
+ validate: RED.validators.typedInput({ type: 'msg', allowUndefined: true })}
64
64
  },
65
65
  inputs:1,
66
66
  outputs:1,
@@ -41,8 +41,8 @@
41
41
  color:"#DEBD5C",
42
42
  defaults: {
43
43
  name: {value:""},
44
- property: {value:"payload", validate: RED.validators.typedInput({ type: 'msg' }) },
45
- outproperty: {value:"payload", validate: RED.validators.typedInput({ type: 'msg' }) },
44
+ property: {value:"payload", validate: RED.validators.typedInput({ type: 'msg', allowUndefined: true }) },
45
+ outproperty: {value:"payload", validate: RED.validators.typedInput({ type: 'msg', allowUndefined: true }) },
46
46
  tag: {value:""},
47
47
  ret: {value:"html"},
48
48
  as: {value:"single"}
@@ -32,7 +32,7 @@
32
32
  defaults: {
33
33
  name: {value:""},
34
34
  property: {value:"payload",required:true,
35
- validate: RED.validators.typedInput({ type: 'msg' }),
35
+ validate: RED.validators.typedInput({ type: 'msg', allowUndefined: true}),
36
36
  label:RED._("node-red:json.label.property")},
37
37
  action: {value:""},
38
38
  pretty: {value:false}
@@ -28,7 +28,7 @@
28
28
  name: {value:""},
29
29
  property: {value:"payload",required:true,
30
30
  label:RED._("node-red:common.label.property"),
31
- validate: RED.validators.typedInput({ type: 'msg' })},
31
+ validate: RED.validators.typedInput({ type: 'msg', allowUndefined: true })},
32
32
  attr: {value:""},
33
33
  chr: {value:""}
34
34
  },
@@ -16,7 +16,7 @@
16
16
  color:"#DEBD5C",
17
17
  defaults: {
18
18
  property: {value:"payload",required:true,
19
- validate: RED.validators.typedInput({ type: 'msg' }),
19
+ validate: RED.validators.typedInput({ type: 'msg', allowUndefined: true }),
20
20
  label:RED._("node-red:common.label.property")},
21
21
  name: {value:""}
22
22
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-red/nodes",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",