@snyk/dep-graph
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -122,6 +122,6 @@ "use strict"; | ||
if (nodeIds.length === 1) { | ||
newNodeId = "" + nodeId.split('|')[0]; | ||
newNodeId = "" + trimAfterLastSep(nodeId, '|'); | ||
} | ||
else { | ||
newNodeId = nodeId.split('|')[0] + "|" + (i + 1); | ||
newNodeId = trimAfterLastSep(nodeId, '|') + "|" + (i + 1); | ||
} | ||
@@ -172,2 +172,5 @@ nodesMap[nodeId] = newNodeId; | ||
} | ||
function trimAfterLastSep(str, sep) { | ||
return str.slice(0, str.lastIndexOf(sep)); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -45,3 +45,3 @@ { | ||
}, | ||
"version": "1.1.1" | ||
"version": "1.1.2" | ||
} |
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
47105
662