Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphology-gexf

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-gexf - npm Package Compare versions

Comparing version 0.7.5 to 0.8.0

21

common/parser.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc