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

@snyk/dep-graph

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snyk/dep-graph - npm Package Compare versions

Comparing version 1.31.0 to 2.0.0

4

dist/core/create-from-json.js

@@ -24,3 +24,3 @@ "use strict";

for (const { id, info } of depGraphData.pkgs) {
pkgs[id] = info.version ? info : Object.assign(Object.assign({}, info), { version: undefined });
pkgs[id] = info.version ? info : { ...info, version: undefined };
}

@@ -40,3 +40,3 @@ for (const node of depGraphData.graph.nodes) {

}
validate_graph_1.validateGraph(graph, depGraphData.graph.rootNodeId, pkgs, pkgNodes);
(0, validate_graph_1.validateGraph)(graph, depGraphData.graph.rootNodeId, pkgs, pkgNodes);
return new dep_graph_1.DepGraphImpl(graph, depGraphData.graph.rootNodeId, pkgs, pkgNodes, depGraphData.pkgManager);

@@ -43,0 +43,0 @@ }

@@ -122,3 +122,3 @@ "use strict";

// safer to rebuild it from JSON.
otherDepGraph = create_from_json_1.createFromJSON(other.toJSON());
otherDepGraph = (0, create_from_json_1.createFromJSON)(other.toJSON());
}

@@ -125,0 +125,0 @@ // In theory, for the graphs created by standard means, `_.isEquals(this._data, otherDepGraph._data)`

@@ -7,3 +7,3 @@ "use strict";

try {
topsort_1.topsort(g);
(0, topsort_1.topsort)(g);
}

@@ -10,0 +10,0 @@ catch (e) {

@@ -6,5 +6,5 @@ "use strict";

function postorder(g, vs) {
return dfs_1.dfs(g, vs, 'post');
return (0, dfs_1.dfs)(g, vs, 'post');
}
exports.postorder = postorder;
//# sourceMappingURL=postorder.js.map

@@ -190,3 +190,3 @@ "use strict";

if (!maybeDeduplicationSet) {
const memoizedDepTree = memiozation_1.getMemoizedDepTree(nodeId, ancestors, memoizationMap);
const memoizedDepTree = (0, memiozation_1.getMemoizedDepTree)(nodeId, ancestors, memoizationMap);
if (memoizedDepTree) {

@@ -206,3 +206,3 @@ return [memoizedDepTree, undefined];

if (nodeInfo.labels) {
depTree.labels = Object.assign({}, nodeInfo.labels);
depTree.labels = { ...nodeInfo.labels };
}

@@ -214,3 +214,3 @@ const depInstanceIds = depGraph.getNodeDepsNodeIds(nodeId);

}
const cycle = cycles_1.getCycle(ancestors, nodeId);
const cycle = (0, cycles_1.getCycle)(ancestors, nodeId);
if (cycle) {

@@ -254,4 +254,4 @@ // This node starts a cycle and now it's the second visit.

}
const partitionedCycles = cycles_1.partitionCycles(nodeId, cycles);
memiozation_1.memoize(nodeId, memoizationMap, depTree, partitionedCycles);
const partitionedCycles = (0, cycles_1.partitionCycles)(nodeId, cycles);
(0, memiozation_1.memoize)(nodeId, memoizationMap, depTree, partitionedCycles);
return [depTree, partitionedCycles.cyclesWithThisNode];

@@ -258,0 +258,0 @@ }

@@ -24,3 +24,3 @@ {

"engines": {
"node": ">=8"
"node": ">=10"
},

@@ -37,3 +37,3 @@ "repository": {

"@types/jest": "^27",
"@types/node": "^8",
"@types/node": "^10",
"@types/object-hash": "^2.1.0",

@@ -50,3 +50,3 @@ "@types/semver": "^7.3.6",

"ts-node": "^10.0.0",
"typescript": "~4.3.4"
"typescript": "~4.6.3"
},

@@ -70,7 +70,7 @@ "dependencies": {

"lodash.values": "^4.3.0",
"object-hash": "^2.0.3",
"object-hash": "^3.0.0",
"semver": "^7.0.0",
"tslib": "^1.13.0"
"tslib": "^2"
},
"version": "1.31.0"
"version": "2.0.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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