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

graphology-gexf

Package Overview
Dependencies
Maintainers
0
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.13.1 to 0.13.2

14

common/writer.js

@@ -191,2 +191,9 @@ /* eslint no-self-compare: 0 */

function inferValueType(value) {
// NOTE: at some point we might need a frame-independent test for this...
// NOTE: it would be nice not to have to reallocate the Set as an Array
// but good enough for the time being.
if (value instanceof Set) {
value = Array.from(value);
}
if (Array.isArray(value)) {

@@ -232,3 +239,4 @@ var type = inferListValueType(value);

if (type.startsWith('list')) {
value = Array.isArray(value) ? value : [value];
if (value instanceof Set) value = Array.from(value);
var arrayValue = Array.isArray(value) ? value : [value];

@@ -239,3 +247,3 @@ var subtype = type.slice(4);

'[' +
value
arrayValue
.map(function (v) {

@@ -248,3 +256,3 @@ return serializeValue(subtype, v);

} else {
return value.join('|');
return arrayValue.join('|');
}

@@ -251,0 +259,0 @@ }

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

@@ -5,0 +5,0 @@ "main": "index.js",

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