@gregoriusrippenstein/node-red-contrib-introspection 0.12.7 → 0.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gregoriusrippenstein/node-red-contrib-introspection",
3
- "version": "0.12.7",
3
+ "version": "0.12.8",
4
4
  "dependencies": {
5
5
  "got": "^13",
6
6
  "uglify-js": "^3.17.4",
@@ -65,6 +65,11 @@
65
65
  label: 'Obfuscation'
66
66
  });
67
67
 
68
+ // used to feature deactivate stuff
69
+ let isNodeRedFive = () => {
70
+ return RED.settings.version.split(".")[0] == "5"
71
+ }
72
+
68
73
  let callObfuscatieCurrentFlow = (copy_or_import) => {
69
74
  obfuscatieCurrentFlow({
70
75
  name: $('#node-input-obfuscate-name').is(":checked"),
@@ -286,6 +291,14 @@
286
291
  msgTracerDebugOff()
287
292
  })
288
293
 
294
+ // NR 5.x has a debug pausing feature that others don't. If so, then the convenience
295
+ // button in the tracer is activated else hidden.
296
+ if (isNodeRedFive()) {
297
+ $('#node-input-msgtrace-pause-debug-btn').on('click', RED.debug.toggleDebugMessages)
298
+ } else {
299
+ $('#node-input-msgtrace-pause-debug-btn').hide()
300
+ }
301
+
289
302
  RED.actions.add( "introspection:show-link-call-links", highlightAllLinkCalls)
290
303
 
291
304
  // event is triggered by the unittesting node package, has no affect otherwise.
@@ -537,6 +550,8 @@
537
550
 
538
551
  <button id="node-input-msgtrace-clear-debug-btn" style="margin-left: 10px;"
539
552
  class="red-ui-button">Clear Debug</button>
553
+ <button id="node-input-msgtrace-pause-debug-btn" style="margin-left: 10px;"
554
+ class="red-ui-button">Pause Debug</button>
540
555
  </div>
541
556
  </div>
542
557
  </div>