@buggyorg/graphtools
Advanced tools
Comparing version 0.2.15 to 0.2.16
@@ -142,4 +142,4 @@ 'use strict'; | ||
return _lodash2.default.filter(graph.nodes(), function (n) { | ||
return graph.node(n).id === id; | ||
return graph.node(n).id === id || graph.node(n).meta === id; | ||
}); | ||
} |
{ | ||
"name": "@buggyorg/graphtools", | ||
"version": "0.2.15", | ||
"version": "0.2.16", | ||
"description": "Tools for processing buggy graphs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/api.js", |
@@ -99,3 +99,3 @@ | ||
export function getAll (graph, id) { | ||
return _.filter(graph.nodes(), (n) => graph.node(n).id === id) | ||
return _.filter(graph.nodes(), (n) => graph.node(n).id === id || graph.node(n).meta === id) | ||
} |
@@ -54,2 +54,4 @@ /* global describe, it */ | ||
}) | ||
// TODO: Test for utils.getAll | ||
}) |
335342
10830