@gregoriusrippenstein/node-red-contrib-introspection 0.5.4 → 0.5.6

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.
@@ -1,4 +1,225 @@
1
1
  [
2
+ {
3
+ "id": "7b2b4035188017d2",
4
+ "type": "group",
5
+ "z": "139a816449acd89f",
6
+ "name": "don't execute this flow it contains a loop",
7
+ "style": {
8
+ "label": true
9
+ },
10
+ "nodes": [
11
+ "7a12d1bd632f72da",
12
+ "489b7ede750a407d",
13
+ "a2e7e963d4fa1c2b",
14
+ "82bcb32e163a6456",
15
+ "37a6ae8572a3c549",
16
+ "f1e2d5fedcf8f5b2",
17
+ "a40bc0a91661f47a",
18
+ "6a085dbc390852c3",
19
+ "a8e0e319494b8ee3",
20
+ "6106ae78b76189cb"
21
+ ],
22
+ "x": 136,
23
+ "y": 673,
24
+ "w": 1186,
25
+ "h": 413
26
+ },
27
+ {
28
+ "id": "7a12d1bd632f72da",
29
+ "type": "Seeker",
30
+ "z": "139a816449acd89f",
31
+ "g": "7b2b4035188017d2",
32
+ "name": "",
33
+ "x": 212,
34
+ "y": 750,
35
+ "wires": [
36
+ [
37
+ "a2e7e963d4fa1c2b"
38
+ ]
39
+ ]
40
+ },
41
+ {
42
+ "id": "489b7ede750a407d",
43
+ "type": "Sink",
44
+ "z": "139a816449acd89f",
45
+ "g": "7b2b4035188017d2",
46
+ "name": "",
47
+ "x": 1246,
48
+ "y": 899,
49
+ "wires": []
50
+ },
51
+ {
52
+ "id": "a2e7e963d4fa1c2b",
53
+ "type": "split",
54
+ "z": "139a816449acd89f",
55
+ "g": "7b2b4035188017d2",
56
+ "name": "",
57
+ "splt": "\\n",
58
+ "spltType": "str",
59
+ "arraySplt": 1,
60
+ "arraySpltType": "len",
61
+ "stream": false,
62
+ "addname": "",
63
+ "x": 504,
64
+ "y": 746,
65
+ "wires": [
66
+ [
67
+ "f1e2d5fedcf8f5b2",
68
+ "6106ae78b76189cb"
69
+ ]
70
+ ]
71
+ },
72
+ {
73
+ "id": "82bcb32e163a6456",
74
+ "type": "join",
75
+ "z": "139a816449acd89f",
76
+ "g": "7b2b4035188017d2",
77
+ "name": "",
78
+ "mode": "auto",
79
+ "build": "object",
80
+ "property": "payload",
81
+ "propertyType": "msg",
82
+ "key": "topic",
83
+ "joiner": "\\n",
84
+ "joinerType": "str",
85
+ "accumulate": "false",
86
+ "timeout": "",
87
+ "count": "",
88
+ "reduceRight": false,
89
+ "x": 849,
90
+ "y": 919,
91
+ "wires": [
92
+ [
93
+ "489b7ede750a407d"
94
+ ]
95
+ ]
96
+ },
97
+ {
98
+ "id": "37a6ae8572a3c549",
99
+ "type": "sort",
100
+ "z": "139a816449acd89f",
101
+ "g": "7b2b4035188017d2",
102
+ "name": "",
103
+ "order": "ascending",
104
+ "as_num": false,
105
+ "target": "payload",
106
+ "targetType": "msg",
107
+ "msgKey": "payload",
108
+ "msgKeyType": "elem",
109
+ "seqKey": "payload",
110
+ "seqKeyType": "msg",
111
+ "x": 541,
112
+ "y": 836,
113
+ "wires": [
114
+ [
115
+ "f1e2d5fedcf8f5b2",
116
+ "a40bc0a91661f47a"
117
+ ]
118
+ ]
119
+ },
120
+ {
121
+ "id": "f1e2d5fedcf8f5b2",
122
+ "type": "batch",
123
+ "z": "139a816449acd89f",
124
+ "g": "7b2b4035188017d2",
125
+ "name": "",
126
+ "mode": "count",
127
+ "count": 10,
128
+ "overlap": 0,
129
+ "interval": 10,
130
+ "allowEmptySequence": false,
131
+ "topics": [
132
+ {
133
+ "topic": ""
134
+ }
135
+ ],
136
+ "x": 698,
137
+ "y": 800,
138
+ "wires": [
139
+ [
140
+ "37a6ae8572a3c549"
141
+ ]
142
+ ]
143
+ },
144
+ {
145
+ "id": "a40bc0a91661f47a",
146
+ "type": "csv",
147
+ "z": "139a816449acd89f",
148
+ "g": "7b2b4035188017d2",
149
+ "name": "",
150
+ "sep": ",",
151
+ "hdrin": "",
152
+ "hdrout": "none",
153
+ "multi": "one",
154
+ "ret": "\\n",
155
+ "temp": "",
156
+ "skip": "0",
157
+ "strings": true,
158
+ "include_empty_strings": "",
159
+ "include_null_values": "",
160
+ "x": 633,
161
+ "y": 912,
162
+ "wires": [
163
+ [
164
+ "82bcb32e163a6456"
165
+ ]
166
+ ]
167
+ },
168
+ {
169
+ "id": "6a085dbc390852c3",
170
+ "type": "csv",
171
+ "z": "139a816449acd89f",
172
+ "g": "7b2b4035188017d2",
173
+ "name": "",
174
+ "sep": ",",
175
+ "hdrin": "",
176
+ "hdrout": "none",
177
+ "multi": "one",
178
+ "ret": "\\n",
179
+ "temp": "",
180
+ "skip": "0",
181
+ "strings": true,
182
+ "include_empty_strings": "",
183
+ "include_null_values": "",
184
+ "x": 693,
185
+ "y": 1008,
186
+ "wires": [
187
+ [
188
+ "82bcb32e163a6456"
189
+ ]
190
+ ]
191
+ },
192
+ {
193
+ "id": "a8e0e319494b8ee3",
194
+ "type": "link in",
195
+ "z": "139a816449acd89f",
196
+ "g": "7b2b4035188017d2",
197
+ "name": "link in 1",
198
+ "links": [
199
+ "6106ae78b76189cb"
200
+ ],
201
+ "x": 487,
202
+ "y": 1045,
203
+ "wires": [
204
+ [
205
+ "6a085dbc390852c3"
206
+ ]
207
+ ]
208
+ },
209
+ {
210
+ "id": "6106ae78b76189cb",
211
+ "type": "link out",
212
+ "z": "139a816449acd89f",
213
+ "g": "7b2b4035188017d2",
214
+ "name": "link out 92",
215
+ "mode": "link",
216
+ "links": [
217
+ "a8e0e319494b8ee3"
218
+ ],
219
+ "x": 753,
220
+ "y": 714,
221
+ "wires": []
222
+ },
2
223
  {
3
224
  "id": "644d61288c671091",
4
225
  "type": "group",
@@ -20,8 +241,8 @@
20
241
  "afaa8ef8c8aa0746",
21
242
  "b2264dd04c98a2cc"
22
243
  ],
23
- "x": 126,
24
- "y": 93,
244
+ "x": 136,
245
+ "y": 91,
25
246
  "w": 1208,
26
247
  "h": 541
27
248
  },
@@ -31,8 +252,8 @@
31
252
  "z": "139a816449acd89f",
32
253
  "g": "644d61288c671091",
33
254
  "name": "",
34
- "x": 202,
35
- "y": 253,
255
+ "x": 212,
256
+ "y": 251,
36
257
  "wires": [
37
258
  [
38
259
  "2330ef30ca42509f",
@@ -46,8 +267,8 @@
46
267
  "z": "139a816449acd89f",
47
268
  "g": "644d61288c671091",
48
269
  "name": "",
49
- "x": 1258,
50
- "y": 386,
270
+ "x": 1268,
271
+ "y": 384,
51
272
  "wires": []
52
273
  },
53
274
  {
@@ -68,8 +289,8 @@
68
289
  "checkall": "true",
69
290
  "repair": false,
70
291
  "outputs": 1,
71
- "x": 416,
72
- "y": 134,
292
+ "x": 426,
293
+ "y": 132,
73
294
  "wires": [
74
295
  [
75
296
  "73729a40176391b6",
@@ -97,8 +318,8 @@
97
318
  "from": "",
98
319
  "to": "",
99
320
  "reg": false,
100
- "x": 517,
101
- "y": 190,
321
+ "x": 527,
322
+ "y": 188,
102
323
  "wires": [
103
324
  [
104
325
  "2330ef30ca42509f",
@@ -118,8 +339,8 @@
118
339
  "syntax": "mustache",
119
340
  "template": "This is the payload: {{payload}} !",
120
341
  "output": "str",
121
- "x": 620,
122
- "y": 251,
342
+ "x": 630,
343
+ "y": 249,
123
344
  "wires": [
124
345
  [
125
346
  "b559bb547b6a7efc",
@@ -145,8 +366,8 @@
145
366
  "drop": false,
146
367
  "allowrate": false,
147
368
  "outputs": 1,
148
- "x": 724,
149
- "y": 303,
369
+ "x": 734,
370
+ "y": 301,
150
371
  "wires": [
151
372
  [
152
373
  "7ba5ec934b306519"
@@ -171,8 +392,8 @@
171
392
  "bytopic": "all",
172
393
  "topic": "topic",
173
394
  "outputs": 1,
174
- "x": 796,
175
- "y": 353,
395
+ "x": 806,
396
+ "y": 351,
176
397
  "wires": [
177
398
  [
178
399
  "e8adf1e30363b84c"
@@ -192,8 +413,8 @@
192
413
  "winHide": false,
193
414
  "oldrc": false,
194
415
  "name": "",
195
- "x": 545,
196
- "y": 420,
416
+ "x": 555,
417
+ "y": 418,
197
418
  "wires": [
198
419
  [
199
420
  "e8adf1e30363b84c",
@@ -220,8 +441,8 @@
220
441
  "septopics": true,
221
442
  "property": "payload",
222
443
  "topi": "topic",
223
- "x": 640,
224
- "y": 485,
444
+ "x": 650,
445
+ "y": 483,
225
446
  "wires": [
226
447
  [
227
448
  "b2264dd04c98a2cc"
@@ -230,16 +451,13 @@
230
451
  },
231
452
  {
232
453
  "id": "afaa8ef8c8aa0746",
233
- "type": "random",
454
+ "type": "function",
234
455
  "z": "139a816449acd89f",
235
456
  "g": "644d61288c671091",
236
457
  "name": "",
237
- "low": 1,
238
- "high": 10,
239
- "inte": "true",
240
- "property": "payload",
241
- "x": 748,
242
- "y": 551,
458
+ "outputs": 1,
459
+ "x": 754,
460
+ "y": 514,
243
461
  "wires": [
244
462
  [
245
463
  "49b6268a2ba413cf",
@@ -250,18 +468,13 @@
250
468
  },
251
469
  {
252
470
  "id": "b2264dd04c98a2cc",
253
- "type": "smooth",
471
+ "type": "function",
254
472
  "z": "139a816449acd89f",
255
473
  "g": "644d61288c671091",
256
474
  "name": "",
257
- "property": "payload",
258
- "action": "mean",
259
- "count": "10",
260
- "round": "",
261
- "mult": "single",
262
- "reduce": false,
263
- "x": 855,
264
- "y": 593,
475
+ "outputs": 1,
476
+ "x": 865,
477
+ "y": 591,
265
478
  "wires": [
266
479
  [
267
480
  "afaa8ef8c8aa0746",
@@ -270,224 +483,189 @@
270
483
  ]
271
484
  },
272
485
  {
273
- "id": "7b2b4035188017d2",
486
+ "id": "1f6f6592356849fd",
274
487
  "type": "group",
275
488
  "z": "139a816449acd89f",
276
- "name": "don't execute this flow it contains a loop",
489
+ "name": "the special case of the link-call node",
277
490
  "style": {
278
491
  "label": true
279
492
  },
280
493
  "nodes": [
281
- "7a12d1bd632f72da",
282
- "489b7ede750a407d",
283
- "a2e7e963d4fa1c2b",
284
- "82bcb32e163a6456",
285
- "37a6ae8572a3c549",
286
- "f1e2d5fedcf8f5b2",
287
- "a40bc0a91661f47a",
288
- "6a085dbc390852c3",
289
- "a8e0e319494b8ee3",
290
- "6106ae78b76189cb"
494
+ "c0cbed3bf1c2bb62",
495
+ "027ee35fdd4245eb",
496
+ "9797d34ff57eb027",
497
+ "7501d78d7b3ab70a",
498
+ "a9cd472850d17541",
499
+ "51175e409c29f55e",
500
+ "0c60e87d67835ccd",
501
+ "75e7a58fb39dc7d5",
502
+ "9327e0f2f332bbdb",
503
+ "f49f34f8c6c7aa42"
291
504
  ],
292
- "x": 136,
293
- "y": 673,
294
- "w": 1186,
295
- "h": 413
296
- },
297
- {
298
- "id": "7a12d1bd632f72da",
299
- "type": "Seeker",
300
- "z": "139a816449acd89f",
301
- "g": "7b2b4035188017d2",
302
- "name": "",
303
- "x": 212,
304
- "y": 750,
305
- "wires": [
306
- [
307
- "a2e7e963d4fa1c2b"
308
- ]
309
- ]
505
+ "x": 293,
506
+ "y": 1169,
507
+ "w": 1035,
508
+ "h": 372
310
509
  },
311
510
  {
312
- "id": "489b7ede750a407d",
313
- "type": "Sink",
511
+ "id": "c0cbed3bf1c2bb62",
512
+ "type": "link out",
314
513
  "z": "139a816449acd89f",
315
- "g": "7b2b4035188017d2",
316
- "name": "",
317
- "x": 1246,
318
- "y": 899,
514
+ "g": "1f6f6592356849fd",
515
+ "name": "link out 116",
516
+ "mode": "return",
517
+ "links": [],
518
+ "x": 1023,
519
+ "y": 1398,
319
520
  "wires": []
320
521
  },
321
522
  {
322
- "id": "a2e7e963d4fa1c2b",
323
- "type": "split",
523
+ "id": "027ee35fdd4245eb",
524
+ "type": "link in",
324
525
  "z": "139a816449acd89f",
325
- "g": "7b2b4035188017d2",
326
- "name": "",
327
- "splt": "\\n",
328
- "spltType": "str",
329
- "arraySplt": 1,
330
- "arraySpltType": "len",
331
- "stream": false,
332
- "addname": "",
333
- "x": 504,
334
- "y": 746,
526
+ "g": "1f6f6592356849fd",
527
+ "name": "call with return",
528
+ "links": [],
529
+ "x": 665,
530
+ "y": 1236,
335
531
  "wires": [
336
532
  [
337
- "f1e2d5fedcf8f5b2",
338
- "6106ae78b76189cb"
533
+ "7501d78d7b3ab70a"
339
534
  ]
340
535
  ]
341
536
  },
342
537
  {
343
- "id": "82bcb32e163a6456",
344
- "type": "join",
538
+ "id": "9797d34ff57eb027",
539
+ "type": "link call",
345
540
  "z": "139a816449acd89f",
346
- "g": "7b2b4035188017d2",
541
+ "g": "1f6f6592356849fd",
347
542
  "name": "",
348
- "mode": "auto",
349
- "build": "object",
350
- "property": "payload",
351
- "propertyType": "msg",
352
- "key": "topic",
353
- "joiner": "\\n",
354
- "joinerType": "str",
355
- "accumulate": "false",
356
- "timeout": "",
357
- "count": "",
358
- "reduceRight": false,
359
- "x": 849,
360
- "y": 919,
543
+ "links": [
544
+ "027ee35fdd4245eb"
545
+ ],
546
+ "linkType": "static",
547
+ "timeout": "30",
548
+ "x": 809,
549
+ "y": 1500,
361
550
  "wires": [
362
551
  [
363
- "489b7ede750a407d"
552
+ "0c60e87d67835ccd"
364
553
  ]
365
554
  ]
366
555
  },
367
556
  {
368
- "id": "37a6ae8572a3c549",
369
- "type": "sort",
557
+ "id": "7501d78d7b3ab70a",
558
+ "type": "function",
370
559
  "z": "139a816449acd89f",
371
- "g": "7b2b4035188017d2",
372
- "name": "",
373
- "order": "ascending",
374
- "as_num": false,
375
- "target": "payload",
376
- "targetType": "msg",
377
- "msgKey": "payload",
378
- "msgKeyType": "elem",
379
- "seqKey": "payload",
380
- "seqKeyType": "msg",
381
- "x": 541,
382
- "y": 836,
560
+ "g": "1f6f6592356849fd",
561
+ "name": "function 31",
562
+ "func": "\nreturn msg;",
563
+ "outputs": 1,
564
+ "noerr": 0,
565
+ "initialize": "",
566
+ "finalize": "",
567
+ "libs": [],
568
+ "x": 837,
569
+ "y": 1210,
383
570
  "wires": [
384
571
  [
385
- "f1e2d5fedcf8f5b2",
386
- "a40bc0a91661f47a"
572
+ "a9cd472850d17541"
387
573
  ]
388
574
  ]
389
575
  },
390
576
  {
391
- "id": "f1e2d5fedcf8f5b2",
392
- "type": "batch",
577
+ "id": "a9cd472850d17541",
578
+ "type": "function",
393
579
  "z": "139a816449acd89f",
394
- "g": "7b2b4035188017d2",
395
- "name": "",
396
- "mode": "count",
397
- "count": 10,
398
- "overlap": 0,
399
- "interval": 10,
400
- "allowEmptySequence": false,
401
- "topics": [
402
- {
403
- "topic": ""
404
- }
405
- ],
406
- "x": 698,
407
- "y": 800,
580
+ "g": "1f6f6592356849fd",
581
+ "name": "function 32",
582
+ "func": "\nreturn msg;",
583
+ "outputs": 1,
584
+ "noerr": 0,
585
+ "initialize": "",
586
+ "finalize": "",
587
+ "libs": [],
588
+ "x": 877,
589
+ "y": 1292,
408
590
  "wires": [
409
591
  [
410
- "37a6ae8572a3c549"
592
+ "c0cbed3bf1c2bb62",
593
+ "f49f34f8c6c7aa42"
411
594
  ]
412
595
  ]
413
596
  },
414
597
  {
415
- "id": "a40bc0a91661f47a",
416
- "type": "csv",
598
+ "id": "51175e409c29f55e",
599
+ "type": "function",
417
600
  "z": "139a816449acd89f",
418
- "g": "7b2b4035188017d2",
419
- "name": "",
420
- "sep": ",",
421
- "hdrin": "",
422
- "hdrout": "none",
423
- "multi": "one",
424
- "ret": "\\n",
425
- "temp": "",
426
- "skip": "0",
427
- "strings": true,
428
- "include_empty_strings": "",
429
- "include_null_values": "",
430
- "x": 633,
431
- "y": 912,
601
+ "g": "1f6f6592356849fd",
602
+ "name": "function 33",
603
+ "func": "\nreturn msg;",
604
+ "outputs": 1,
605
+ "noerr": 0,
606
+ "initialize": "",
607
+ "finalize": "",
608
+ "libs": [],
609
+ "x": 582,
610
+ "y": 1381,
432
611
  "wires": [
433
612
  [
434
- "82bcb32e163a6456"
613
+ "9797d34ff57eb027"
435
614
  ]
436
615
  ]
437
616
  },
438
617
  {
439
- "id": "6a085dbc390852c3",
440
- "type": "csv",
618
+ "id": "0c60e87d67835ccd",
619
+ "type": "function",
441
620
  "z": "139a816449acd89f",
442
- "g": "7b2b4035188017d2",
443
- "name": "",
444
- "sep": ",",
445
- "hdrin": "",
446
- "hdrout": "none",
447
- "multi": "one",
448
- "ret": "\\n",
449
- "temp": "",
450
- "skip": "0",
451
- "strings": true,
452
- "include_empty_strings": "",
453
- "include_null_values": "",
454
- "x": 693,
455
- "y": 1008,
621
+ "g": "1f6f6592356849fd",
622
+ "name": "function 34",
623
+ "func": "\nreturn msg;",
624
+ "outputs": 1,
625
+ "noerr": 0,
626
+ "initialize": "",
627
+ "finalize": "",
628
+ "libs": [],
629
+ "x": 1060,
630
+ "y": 1458,
456
631
  "wires": [
457
632
  [
458
- "82bcb32e163a6456"
633
+ "75e7a58fb39dc7d5"
459
634
  ]
460
635
  ]
461
636
  },
462
637
  {
463
- "id": "a8e0e319494b8ee3",
464
- "type": "link in",
638
+ "id": "75e7a58fb39dc7d5",
639
+ "type": "Sink",
465
640
  "z": "139a816449acd89f",
466
- "g": "7b2b4035188017d2",
467
- "name": "link in 1",
468
- "links": [
469
- "6106ae78b76189cb"
470
- ],
471
- "x": 487,
472
- "y": 1045,
641
+ "g": "1f6f6592356849fd",
642
+ "name": "",
643
+ "x": 1252,
644
+ "y": 1486,
645
+ "wires": []
646
+ },
647
+ {
648
+ "id": "9327e0f2f332bbdb",
649
+ "type": "Seeker",
650
+ "z": "139a816449acd89f",
651
+ "g": "1f6f6592356849fd",
652
+ "name": "",
653
+ "x": 369,
654
+ "y": 1313,
473
655
  "wires": [
474
656
  [
475
- "6a085dbc390852c3"
657
+ "51175e409c29f55e"
476
658
  ]
477
659
  ]
478
660
  },
479
661
  {
480
- "id": "6106ae78b76189cb",
481
- "type": "link out",
662
+ "id": "f49f34f8c6c7aa42",
663
+ "type": "Sink",
482
664
  "z": "139a816449acd89f",
483
- "g": "7b2b4035188017d2",
484
- "name": "link out 92",
485
- "mode": "link",
486
- "links": [
487
- "a8e0e319494b8ee3"
488
- ],
489
- "x": 753,
490
- "y": 714,
665
+ "g": "1f6f6592356849fd",
666
+ "name": "",
667
+ "x": 1182,
668
+ "y": 1283,
491
669
  "wires": []
492
670
  }
493
671
  ]
@@ -122,6 +122,20 @@
122
122
 
123
123
  switch( node.type ) {
124
124
 
125
+ case "link call":
126
+ RED.nodes.getNodeLinks(node).forEach( function(l) {
127
+ traverse( l.target, [...nodeIds, node.id] );
128
+ });
129
+
130
+ node.links.forEach( function(lnkNdeId) {
131
+ var dNode = RED.nodes.node(lnkNdeId);
132
+ if ( !dNode ) { return }
133
+
134
+ traverse( dNode, [...nodeIds, node.id] );
135
+ });
136
+
137
+ break;
138
+
125
139
  case "link out":
126
140
  node.links.forEach( function(lnkNdeId) {
127
141
  var dNode = RED.nodes.node(lnkNdeId);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@gregoriusrippenstein/node-red-contrib-introspection",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "dependencies": {
5
- "got": ">=13.0.0"
5
+ "got": "^13"
6
6
  },
7
7
 
8
8
  "keywords": [