snyk 1.1059.0 → 1.1061.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/263.index.js
CHANGED
|
@@ -142729,9 +142729,8 @@ class GoBinary {
|
|
|
142729
142729
|
if (event_loop_spinner_1.eventLoopSpinner.isStarving()) {
|
|
142730
142730
|
await event_loop_spinner_1.eventLoopSpinner.spin();
|
|
142731
142731
|
}
|
|
142732
|
-
const
|
|
142733
|
-
|
|
142734
|
-
goModulesDepGraph.addPkgNode({ name: pkg, version }, nodeId);
|
|
142732
|
+
const nodeId = `${pkg}@${module.version}`;
|
|
142733
|
+
goModulesDepGraph.addPkgNode({ name: pkg, version: module.version }, nodeId);
|
|
142735
142734
|
goModulesDepGraph.connectDep(goModulesDepGraph.rootNodeId, nodeId);
|
|
142736
142735
|
}
|
|
142737
142736
|
}
|
|
@@ -143081,16 +143080,6 @@ class GoModule {
|
|
|
143081
143080
|
fullName() {
|
|
143082
143081
|
return this.name + "@" + this.version;
|
|
143083
143082
|
}
|
|
143084
|
-
snykNormalisedVersion() {
|
|
143085
|
-
// Versions in Go have leading 'v'
|
|
143086
|
-
let version = this.version.substring(1);
|
|
143087
|
-
// In versions with hash, we only care about hash
|
|
143088
|
-
// v0.0.0-20200905004654-be1d3432aa8f => #be1d3432aa8f
|
|
143089
|
-
version = version.includes("-")
|
|
143090
|
-
? `#${version.substring(version.lastIndexOf("-") + 1)}`
|
|
143091
|
-
: version;
|
|
143092
|
-
return version;
|
|
143093
|
-
}
|
|
143094
143083
|
}
|
|
143095
143084
|
exports.GoModule = GoModule;
|
|
143096
143085
|
//# sourceMappingURL=go-module.js.map
|