Socket
Socket
Sign inDemoInstall

@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.5.0 to 1.5.1

1

dist/core/dep-graph.d.ts

@@ -15,2 +15,3 @@ import * as graphlib from 'graphlib';

private _countNodePathsToRootCache;
private _hasCycles;
constructor(graph: graphlib.Graph, rootNodeId: string, pkgs: {

@@ -17,0 +18,0 @@ [pkgId: string]: types.PkgInfo;

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

DepGraphImpl.prototype.hasCycles = function () {
return !graphlib.alg.isAcyclic(this._graph);
// `isAcyclic` is expensive, so memoize
if (this._hasCycles === undefined) {
this._hasCycles = !graphlib.alg.isAcyclic(this._graph);
}
return this._hasCycles;
};

@@ -74,0 +78,0 @@ DepGraphImpl.prototype.pkgPathsToRoot = function (pkg) {

2

package.json

@@ -49,3 +49,3 @@ {

},
"version": "1.5.0"
"version": "1.5.1"
}

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