@gregoriusrippenstein/node-red-contrib-nodedev 0.0.6 → 0.0.7

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
@@ -25,8 +25,8 @@ It also gets more confusing since these nodes will open the Node-RED import dial
25
25
 
26
26
  Examples are included:
27
27
 
28
- - Converting an existing tar-gzip package file into a collection of `PkgFile` nodes for testing and maintaince and development
29
- - `NodeFactory` example of creating a boilerplate node for inclusion in a node package that can be installed into Node-RED
28
+ - Converting an existing tar-gzip package file into a collection of `PkgFile` nodes for testing and maintaince and development --> [flow](https://flowhub.org/f/eef4037a6d25a1e0)
29
+ - `NodeFactory` example of creating a boilerplate node for inclusion in a node package that can be installed into Node-RED --> [flow](https://flowhub.org/f/7bece6814c033925)
30
30
 
31
31
  ### Tips
32
32
 
@@ -2,47 +2,29 @@
2
2
  {
3
3
  "id": "b84864b2ff870a45",
4
4
  "type": "group",
5
- "z": "b92be5062203ff69",
5
+ "z": "eef4037a6d25a1e0",
6
6
  "name": "automatically creating nodes that represent package files",
7
7
  "style": {
8
8
  "label": true
9
9
  },
10
10
  "nodes": [
11
- "7f69502a67b8c689",
12
11
  "ea7b1b985ba6ac70",
13
- "aeb3094ecf54b2b2",
14
12
  "24b26f5122abf1bb",
15
- "ab37a3f877541c5b"
13
+ "ab37a3f877541c5b",
14
+ "11289b70b58c767b",
15
+ "96278268709caba6",
16
+ "fc620efcbaf77846",
17
+ "d981181116ccfb16"
16
18
  ],
17
- "x": 2018.142822265625,
18
- "y": 735.7142333984375,
19
- "w": 865.857177734375,
20
- "h": 311.2857666015625
21
- },
22
- {
23
- "id": "7f69502a67b8c689",
24
- "type": "inject",
25
- "z": "b92be5062203ff69",
26
- "g": "b84864b2ff870a45",
27
- "name": "Trigger",
28
- "props": [],
29
- "repeat": "",
30
- "crontab": "",
31
- "once": false,
32
- "onceDelay": 0.1,
33
- "topic": "",
34
- "x": 2114.142822265625,
35
- "y": 776.7142333984375,
36
- "wires": [
37
- [
38
- "aeb3094ecf54b2b2"
39
- ]
40
- ]
19
+ "x": 504,
20
+ "y": 489.2857666015625,
21
+ "w": 1037.857177734375,
22
+ "h": 363.7142333984375
41
23
  },
42
24
  {
43
25
  "id": "ea7b1b985ba6ac70",
44
26
  "type": "NodeFactory",
45
- "z": "b92be5062203ff69",
27
+ "z": "eef4037a6d25a1e0",
46
28
  "g": "b84864b2ff870a45",
47
29
  "name": "",
48
30
  "nodename": "",
@@ -55,41 +37,16 @@
55
37
  "summary": "",
56
38
  "description": "",
57
39
  "icon": "font-awesome/fa-industry",
58
- "x": 2788,
59
- "y": 948,
40
+ "x": 1445.857177734375,
41
+ "y": 532.2857666015625,
60
42
  "wires": [
61
43
  []
62
44
  ]
63
45
  },
64
- {
65
- "id": "aeb3094ecf54b2b2",
66
- "type": "http request",
67
- "z": "b92be5062203ff69",
68
- "g": "b84864b2ff870a45",
69
- "name": "http request to npmjs",
70
- "method": "GET",
71
- "ret": "bin",
72
- "paytoqs": "ignore",
73
- "url": "https://registry.npmjs.org/@gregoriusrippenstein/node-red-contrib-introspection/-/node-red-contrib-introspection-0.4.3.tgz",
74
- "tls": "",
75
- "persist": false,
76
- "proxy": "",
77
- "insecureHTTPParser": false,
78
- "authType": "",
79
- "senderr": false,
80
- "headers": [],
81
- "x": 2394,
82
- "y": 865,
83
- "wires": [
84
- [
85
- "ea7b1b985ba6ac70"
86
- ]
87
- ]
88
- },
89
46
  {
90
47
  "id": "24b26f5122abf1bb",
91
48
  "type": "file in",
92
- "z": "b92be5062203ff69",
49
+ "z": "eef4037a6d25a1e0",
93
50
  "g": "b84864b2ff870a45",
94
51
  "name": "",
95
52
  "filename": "/some/path/to/local/package.tgz",
@@ -99,8 +56,8 @@
99
56
  "sendError": false,
100
57
  "encoding": "none",
101
58
  "allProps": false,
102
- "x": 2443,
103
- "y": 1006,
59
+ "x": 1100.857177734375,
60
+ "y": 590.2857666015625,
104
61
  "wires": [
105
62
  [
106
63
  "ea7b1b985ba6ac70"
@@ -110,7 +67,7 @@
110
67
  {
111
68
  "id": "ab37a3f877541c5b",
112
69
  "type": "inject",
113
- "z": "b92be5062203ff69",
70
+ "z": "eef4037a6d25a1e0",
114
71
  "g": "b84864b2ff870a45",
115
72
  "name": "Trigger",
116
73
  "props": [],
@@ -119,12 +76,122 @@
119
76
  "once": false,
120
77
  "onceDelay": 0.1,
121
78
  "topic": "",
122
- "x": 2123,
123
- "y": 946,
79
+ "x": 780.857177734375,
80
+ "y": 530.2857666015625,
124
81
  "wires": [
125
82
  [
126
83
  "24b26f5122abf1bb"
127
84
  ]
128
85
  ]
86
+ },
87
+ {
88
+ "id": "11289b70b58c767b",
89
+ "type": "inject",
90
+ "z": "eef4037a6d25a1e0",
91
+ "g": "b84864b2ff870a45",
92
+ "name": "inject package details",
93
+ "props": [
94
+ {
95
+ "p": "packagename",
96
+ "v": "@gregoriusrippenstein/node-red-contrib-introspection",
97
+ "vt": "str"
98
+ },
99
+ {
100
+ "p": "packageversion",
101
+ "v": "0.4.3",
102
+ "vt": "str"
103
+ }
104
+ ],
105
+ "repeat": "",
106
+ "crontab": "",
107
+ "once": false,
108
+ "onceDelay": 0.1,
109
+ "topic": "",
110
+ "x": 650,
111
+ "y": 647,
112
+ "wires": [
113
+ [
114
+ "96278268709caba6"
115
+ ]
116
+ ]
117
+ },
118
+ {
119
+ "id": "96278268709caba6",
120
+ "type": "function",
121
+ "z": "eef4037a6d25a1e0",
122
+ "g": "b84864b2ff870a45",
123
+ "name": "retrieve tgz URL for package",
124
+ "func": "pacote.manifest(\n msg.packagename + \"@\" + msg.packageversion\n).then(manifest => {\n msg.payload = manifest._resolved\n node.send(msg)\n}).catch( err => {\n msg.error = err\n node.error(\"failed to get url\", msg)\n})\n\n\n",
125
+ "outputs": 1,
126
+ "timeout": 0,
127
+ "noerr": 0,
128
+ "initialize": "",
129
+ "finalize": "",
130
+ "libs": [
131
+ {
132
+ "var": "pacote",
133
+ "module": "pacote"
134
+ }
135
+ ],
136
+ "x": 822,
137
+ "y": 812,
138
+ "wires": [
139
+ [
140
+ "fc620efcbaf77846"
141
+ ]
142
+ ]
143
+ },
144
+ {
145
+ "id": "fc620efcbaf77846",
146
+ "type": "change",
147
+ "z": "eef4037a6d25a1e0",
148
+ "g": "b84864b2ff870a45",
149
+ "name": "",
150
+ "rules": [
151
+ {
152
+ "t": "set",
153
+ "p": "url",
154
+ "pt": "msg",
155
+ "to": "payload",
156
+ "tot": "msg"
157
+ }
158
+ ],
159
+ "action": "",
160
+ "property": "",
161
+ "from": "",
162
+ "to": "",
163
+ "reg": false,
164
+ "x": 1128,
165
+ "y": 770,
166
+ "wires": [
167
+ [
168
+ "d981181116ccfb16"
169
+ ]
170
+ ]
171
+ },
172
+ {
173
+ "id": "d981181116ccfb16",
174
+ "type": "http request",
175
+ "z": "eef4037a6d25a1e0",
176
+ "g": "b84864b2ff870a45",
177
+ "name": "",
178
+ "method": "GET",
179
+ "ret": "bin",
180
+ "paytoqs": "ignore",
181
+ "url": "",
182
+ "tls": "",
183
+ "persist": false,
184
+ "proxy": "",
185
+ "insecureHTTPParser": false,
186
+ "authType": "",
187
+ "senderr": false,
188
+ "headers": [],
189
+ "x": 1316,
190
+ "y": 689,
191
+ "wires": [
192
+ [
193
+ "ea7b1b985ba6ac70"
194
+ ]
195
+ ]
129
196
  }
130
197
  ]
@@ -267,6 +267,7 @@ module.exports = function (RED) {
267
267
  "jpeg": "base64",
268
268
  "bin": "base64",
269
269
  "bmp": "base64",
270
+ "gif": "base64",
270
271
  }[ext.toLowerCase()] || "text";
271
272
  };
272
273
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" : "@gregoriusrippenstein/node-red-contrib-nodedev",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "dependencies": {
5
5
  "pako": "latest",
6
6
  "tar-stream": "latest",