@receptron/graphai_vue_cytoscape 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. package/lib/cytoscape.js +10 -8
  2. package/package.json +1 -1
package/lib/cytoscape.js CHANGED
@@ -158,14 +158,16 @@ var cytoscapeFromGraph = function (graph_data) {
158
158
  if ("inputs" in node) {
159
159
  // computed node
160
160
  (0, exports.inputs2dataSources)(node.inputs).forEach(function (input) {
161
- var _a = parseInput(input), source = _a.source, label = _a.label;
162
- tmp.edges.push({
163
- data: {
164
- source: source,
165
- target: nodeId,
166
- label: label,
167
- },
168
- });
161
+ if (input[0] === ":") {
162
+ var _a = parseInput(input), source = _a.source, label = _a.label;
163
+ tmp.edges.push({
164
+ data: {
165
+ source: source,
166
+ target: nodeId,
167
+ label: label,
168
+ },
169
+ });
170
+ }
169
171
  });
170
172
  }
171
173
  if ("update" in node && node.update) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@receptron/graphai_vue_cytoscape",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "main": "lib/cytoscape.js",
5
5
  "files": [
6
6
  "./lib"