graphology-gexf
Advanced tools
Comparing version 0.7.4 to 0.7.5
@@ -48,3 +48,3 @@ /** | ||
exports.sanitizeTagName = function sanitizeTagName(tagName) { | ||
return tagName.replace(SANITIZE_PATTERN, ''); | ||
return tagName.replace(SANITIZE_PATTERN, '').trim(); | ||
}; |
@@ -9,2 +9,3 @@ /* eslint no-self-compare: 0 */ | ||
var isGraph = require('graphology-utils/is-graph'), | ||
inferType = require('graphology-utils/infer-type'), | ||
XMLWriter = require('xml-writer'), | ||
@@ -484,5 +485,8 @@ sanitizeTagName = require('./helpers.js').sanitizeTagName; | ||
writer.startElement('graph'); | ||
writer.defaultEdgeType = graph.type === 'mixed' ? | ||
var type = inferType(graph); | ||
writer.defaultEdgeType = type === 'mixed' ? | ||
'directed' : | ||
graph.type; | ||
type; | ||
@@ -489,0 +493,0 @@ writer.writeAttribute( |
{ | ||
"name": "graphology-gexf", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"description": "GEXF parser & writer for graphology.", | ||
@@ -40,6 +40,6 @@ "main": "index.js", | ||
"@yomguithereal/eslint-config": "^4.0.0", | ||
"eslint": "^7.18.0", | ||
"eslint": "^7.21.0", | ||
"graphology": "^0.19.3", | ||
"graphology-types": "^0.19.2", | ||
"mocha": "^8.2.1" | ||
"mocha": "^8.3.1" | ||
}, | ||
@@ -57,5 +57,5 @@ "eslintConfig": { | ||
"graphology-utils": "^2.0.0", | ||
"xmldom": "^0.4.0", | ||
"xmldom": "^0.5.0", | ||
"xml-writer": "^1.7.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
31915
867
+ Addedxmldom@0.5.0(transitive)
- Removedxmldom@0.4.0(transitive)
Updatedxmldom@^0.5.0