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.5.1 to 0.6.0

4

common/parser.js

@@ -243,3 +243,3 @@ /* eslint no-self-compare: 0 */

if (!isGraphConstructor(Graph))
throw new Error('graphology-gexf/browser/parser: invalid Graph constructor.');
throw new Error('graphology-gexf/parser: invalid Graph constructor.');

@@ -251,3 +251,3 @@ // If source is a string, we are going to parse it

if (!(xmlDoc instanceof Document))
throw new Error('graphology-gexf/browser/parser: source should either be a XML document or a string.');
throw new Error('graphology-gexf/parser: source should either be a XML document or a string.');

@@ -254,0 +254,0 @@ // Finding useful elements

@@ -225,3 +225,3 @@ /* eslint no-self-compare: 0 */

data.target = graph.target(edge);
data.undirected = graph.undirected(edge);
data.undirected = graph.isUndirected(edge);
edges[i] = data;

@@ -228,0 +228,0 @@ }

{
"name": "graphology-gexf",
"version": "0.5.1",
"version": "0.6.0",
"description": "GEXF parser & writer for graphology.",

@@ -20,3 +20,3 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/graphology/graphology-utils.git"
"url": "git+https://github.com/graphology/graphology-gexf.git"
},

@@ -34,10 +34,10 @@ "keywords": [

"bugs": {
"url": "https://github.com/graphology/graphology-utils/issues"
"url": "https://github.com/graphology/graphology-gexf/issues"
},
"homepage": "https://github.com/graphology/graphology-utils#readme",
"homepage": "https://github.com/graphology/graphology-gexf#readme",
"devDependencies": {
"@yomguithereal/eslint-config": "^4.0.0",
"eslint": "^6.8.0",
"graphology": "^0.15.1",
"mocha": "^7.0.1"
"eslint": "^7.12.1",
"graphology": "^0.18.0",
"mocha": "^8.2.0"
},

@@ -44,0 +44,0 @@ "eslintConfig": {

@@ -17,6 +17,6 @@ [![Build Status](https://travis-ci.org/graphology/graphology-gexf.svg)](https://travis-ci.org/graphology/graphology-gexf)

* [Browser parser](#browser-parser)
* [Browser writer](#browser-writer)
* [Parser](#parser)
* [Writer](#writer)
### Browser parser
### Parser

@@ -27,2 +27,6 @@ The parser must be passed a `graphology` constructor and is able to read either a string, or an `XMLDocument` instance.

var Graph = require('graphology');
// Node
var gexf = require('graphology-gexf');
// Browser
var gexf = require('graphology-gexf/browser');

@@ -42,3 +46,3 @@

### Browser writer
### Writer

@@ -48,2 +52,5 @@ The writer must be passed a `graphology` instance and will output a GEXF string.

```js
// Node
var gexf = require('graphology-gexf');
// Browser
var gexf = require('graphology-gexf/browser');

@@ -50,0 +57,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