@machhub-dev/node-red-nodes 1.0.7 → 1.0.8

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.
@@ -5,7 +5,13 @@
5
5
  defaults: {
6
6
  name: { value: "" },
7
7
  useConfigNode: { value: false }, // Toggle between JSON file and config node
8
- machhub: { value: "", type: "machhub-config" }
8
+ machhub: {
9
+ value: "",
10
+ type: "machhub-config",
11
+ validate: function(v) {
12
+ return !this.useConfigNode || (this.useConfigNode && v !== "");
13
+ }
14
+ }
9
15
  },
10
16
  paletteLabel: "Bulk Tag Write",
11
17
  inputs: 1,
@@ -5,7 +5,13 @@
5
5
  defaults: {
6
6
  name: { value: "" },
7
7
  useConfigNode: { value: false },
8
- machhub: { value: "", type: "machhub-config" },
8
+ machhub: {
9
+ value: "",
10
+ type: "machhub-config",
11
+ validate: function(v) {
12
+ return !this.useConfigNode || (this.useConfigNode && v !== "");
13
+ }
14
+ },
9
15
  collectionID: { value: "" },
10
16
  action: { value: "select" },
11
17
  selectFields: { value: [] },
@@ -5,7 +5,13 @@
5
5
  defaults: {
6
6
  name: { value: "" },
7
7
  useConfigNode: { value: false },
8
- machhub: { value: "", type: "machhub-config" },
8
+ machhub: {
9
+ value: "",
10
+ type: "machhub-config",
11
+ validate: function(v) {
12
+ return !this.useConfigNode || (this.useConfigNode && v !== "");
13
+ }
14
+ },
9
15
  query: { value: "" }
10
16
  },
11
17
  paletteLabel: "DB Query",
@@ -6,7 +6,13 @@
6
6
  name: { value: "" },
7
7
  selectedTag: { value: "", required: true },
8
8
  useConfigNode: { value: false }, // Toggle between JSON file and config node
9
- machhub: { value: "", type: "machhub-config" } // Will fill in below if empty
9
+ machhub: {
10
+ value: "",
11
+ type: "machhub-config",
12
+ validate: function(v) {
13
+ return !this.useConfigNode || (this.useConfigNode && v !== "");
14
+ }
15
+ } // Will fill in below if empty
10
16
  },
11
17
  paletteLabel: "Tag Read",
12
18
  outputs: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@machhub-dev/node-red-nodes",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Node-RED API for MACHHUB EDGE",
5
5
  "scripts": {
6
6
  "build": "yarn clean && npx tsc && yarn copy-files",