@snyk/dep-graph
Advanced tools
Comparing version 1.5.3 to 1.6.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62505
886
137