UNPKG

overflow-scanner

Version:

Vulnerability scanning using graphs!

16 lines (15 loc) 433 B
import { LGraphNode, LiteGraph } from "litegraph.js"; export class FilterHasPort extends LGraphNode { constructor() { super(); this.addInput("Targets", LiteGraph.ACTION); this.addOutput("Targets", LiteGraph.EVENT); } title = "Has port"; serialize_widgets = true; onAction(action, data) { this.triggerSlot(0, data.filter(x => x.match(/:\d+(?=$|\/)/)) ); } }