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.3 to 1.6.0

2

dist/core/dep-graph.js

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

};
DepGraphImpl.SCHEMA_VERSION = '1.1.0';
DepGraphImpl.SCHEMA_VERSION = '1.2.0';
return DepGraphImpl;

@@ -177,0 +177,0 @@ }());

@@ -18,2 +18,5 @@ export interface Pkg {

versionProvenance?: VersionProvenance;
labels?: {
[key: string]: string;
};
}

@@ -20,0 +23,0 @@ export interface GraphNode {

@@ -10,2 +10,5 @@ import * as types from '../core/types';

};
labels?: {
[key: string]: string;
};
}

@@ -12,0 +15,0 @@ interface DepTree extends DepTreeDep {

@@ -59,2 +59,5 @@ "use strict";

}
if (depTree.labels) {
hash.update(objectHash(depTree.labels));
}
deps = depTree.dependencies || {};

@@ -81,2 +84,5 @@ depNames = _.keys(deps).filter(function (d) { return !!deps[d]; });

}
if (dep.labels) {
nodeInfo.labels = dep.labels;
}
builder.addPkgNode(depPkg, depNodeId, nodeInfo);

@@ -103,2 +109,5 @@ hash.update(depNodeId);

}
if (depTree.labels) {
nodeInfo.labels = depTree.labels;
}
builder.addPkgNode(pkg, pkgNodeId, nodeInfo);

@@ -246,2 +255,5 @@ }

}
if (nodeInfo.labels) {
depTree.labels = nodeInfo.labels;
}
depInstanceIds = depGraph.getNodeDepsNodeIds(nodeId);

@@ -248,0 +260,0 @@ if (!depInstanceIds || depInstanceIds.length === 0) {

@@ -50,3 +50,3 @@ {

},
"version": "1.5.3"
"version": "1.6.0"
}

@@ -99,2 +99,5 @@ ![Snyk logo](https://snyk.io/style/asset/logo/snyk-print.svg)

};
},
labels?: {
[key: string]: string;
};

@@ -101,0 +104,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