c0c79fd608
Given that we have reified the type `PluginFilter` as a consistent way to filter nodes and edges by plugin and type, we should also have re-usable logic for that end. This commit adds `addressFilterer`, which takes a `PluginFilter` and returns a function that checks whether a given address matches the filter. Right now, only the `nodes` function uses it. For added safety, `addressFilterer` does runtime validation that the required `plugin` property was set. Test plan: See included unit tests. |
||
---|---|---|
.. | ||
app | ||
cli | ||
core | ||
core2 | ||
graphql | ||
plugins | ||
tools | ||
util |