@snyk/dep-graph
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -13,3 +13,2 @@ import * as types from '../core/types'; | ||
}; | ||
pruned?: boolean; | ||
} | ||
@@ -16,0 +15,0 @@ interface DepTree extends DepTreeDep { |
@@ -9,2 +9,8 @@ "use strict"; | ||
var objectHash = require("object-hash"); | ||
function addLabel(dep, key, value) { | ||
if (!dep.labels) { | ||
dep.labels = {}; | ||
} | ||
dep.labels[key] = value; | ||
} | ||
function depTreeToGraph(depTree, pkgManagerName) { | ||
@@ -266,3 +272,3 @@ return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
if (depInstanceIds.length > 0) { | ||
depTree.pruned = true; | ||
addLabel(depTree, 'pruned', 'true'); | ||
} | ||
@@ -269,0 +275,0 @@ return [2 /*return*/, depTree]; |
@@ -50,3 +50,3 @@ { | ||
}, | ||
"version": "1.8.0" | ||
"version": "1.8.1" | ||
} |
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
69912
980