New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@buggyorg/graphtools

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@buggyorg/graphtools - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

@@ -306,2 +306,3 @@ 'use strict';

}
var origSubset = _lodash2.default.clone(subset);
if (_api.utils.isNG(g)) {

@@ -311,3 +312,3 @@ subset = completeSubset(g, subset);

if (!isCompoundable(g, subset)) {
throw new Error('This subset cannot be compoundified given this particular subset.');
throw new Error('This subset cannot be compoundified given this particular subset.' + JSON.stringify(origSubset));
}

@@ -314,0 +315,0 @@ var graph = _api.graph.clone(g);

{
"name": "@buggyorg/graphtools",
"version": "0.3.0",
"version": "0.3.1",
"description": "Tools for processing buggy graphs.",

@@ -5,0 +5,0 @@ "main": "lib/api.js",

@@ -112,4 +112,7 @@ import graphlib from 'graphlib'

if (subset.length < 1) { return g }
var origSubset = _.clone(subset)
if (utils.isNG(g)) { subset = completeSubset(g, subset) }
if (!isCompoundable(g, subset)) { throw new Error('This subset cannot be compoundified given this particular subset.') }
if (!isCompoundable(g, subset)) {
throw new Error('This subset cannot be compoundified given this particular subset.' + JSON.stringify(origSubset))
}
var graph = graphAPI.clone(g)

@@ -116,0 +119,0 @@ if (!name) {