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 2.2.0 to 2.3.0

1

dist/core/dep-graph.d.ts

@@ -42,2 +42,3 @@ import * as graphlib from '../graphlib';

countPathsToRoot(pkg: types.Pkg): number;
isTransitive(pkg: types.Pkg): boolean;
equals(other: types.DepGraph, { compareRoot }?: {

@@ -44,0 +45,0 @@ compareRoot?: boolean;

@@ -113,2 +113,10 @@ "use strict";

}
isTransitive(pkg) {
const checking = new Set(this.getPkgNodeIds(pkg));
for (const directDep of this.getNodeDepsNodeIds(this.rootNodeId)) {
if (checking.has(directDep))
return false;
}
return true;
}
equals(other, { compareRoot = true } = {}) {

@@ -115,0 +123,0 @@ let otherDepGraph;

@@ -64,2 +64,3 @@ export interface Pkg {

}): PkgInfo[][];
isTransitive(pkg: Pkg): boolean;
directDepsLeadingTo(pkg: Pkg): PkgInfo[];

@@ -66,0 +67,0 @@ countPathsToRoot(pkg: Pkg): number;

2

package.json

@@ -70,3 +70,3 @@ {

},
"version": "2.2.0"
"version": "2.3.0"
}

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