graphology-gexf
Advanced tools
Comparing version 0.7.5 to 0.8.0
@@ -9,2 +9,3 @@ /* eslint no-self-compare: 0 */ | ||
var isGraphConstructor = require('graphology-utils/is-graph-constructor'), | ||
mergeEdge = require('graphology-utils/add-edge').mergeEdge, | ||
helpers = require('../common/helpers.js'); | ||
@@ -348,14 +349,10 @@ | ||
if (id) { | ||
if (type === 'directed') | ||
graph.addDirectedEdgeWithKey(id, s, t, attributes); | ||
else | ||
graph.addUndirectedEdgeWithKey(id, s, t, attributes); | ||
} | ||
else { | ||
if (type === 'directed') | ||
graph.addDirectedEdge(s, t, attributes); | ||
else | ||
graph.addUndirectedEdge(s, t, attributes); | ||
} | ||
mergeEdge( | ||
graph, | ||
type !== 'directed', | ||
id || null, | ||
s, | ||
t, | ||
attributes | ||
); | ||
} | ||
@@ -362,0 +359,0 @@ |
{ | ||
"name": "graphology-gexf", | ||
"version": "0.7.5", | ||
"version": "0.8.0", | ||
"description": "GEXF parser & writer for graphology.", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"lint": "eslint ./**/*.js", | ||
"prepublish": "npm run lint && npm test", | ||
"prepublishOnly": "npm run lint && npm test", | ||
"test:browser": "mocha ./test/browser/endpoint.js", | ||
@@ -41,6 +41,6 @@ "test": "npm run test:browser" | ||
"@yomguithereal/eslint-config": "^4.0.0", | ||
"eslint": "^7.21.0", | ||
"eslint": "^7.29.0", | ||
"graphology": "^0.19.3", | ||
"graphology-types": "^0.19.2", | ||
"mocha": "^8.3.1" | ||
"mocha": "^9.0.1" | ||
}, | ||
@@ -57,6 +57,6 @@ "eslintConfig": { | ||
"dependencies": { | ||
"graphology-utils": "^2.0.0", | ||
"xmldom": "^0.5.0", | ||
"xml-writer": "^1.7.0" | ||
"graphology-utils": "^2.1.0", | ||
"xml-writer": "^1.7.0", | ||
"xmldom": "^0.6.0" | ||
} | ||
} |
@@ -1,3 +0,4 @@ | ||
[![Build Status](https://travis-ci.org/graphology/graphology-gexf.svg)](https://travis-ci.org/graphology/graphology-gexf) | ||
[![Build Status](https://github.com/graphology/graphology-gexf/workflows/Tests/badge.svg)](https://github.com/graphology/graphology-gexf/actions) | ||
# Graphology GEXF Utilities | ||
@@ -4,0 +5,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103
31772
864
+ Addedxmldom@0.6.0(transitive)
- Removedxmldom@0.5.0(transitive)
Updatedgraphology-utils@^2.1.0
Updatedxmldom@^0.6.0