Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snyk-go-plugin

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-go-plugin - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

12

lib/index.js

@@ -93,3 +93,3 @@ var fs = require('fs');

function isRootSubpkg(pkgPath, projectRootPath) {
function isProjSubpackage(pkgPath, projectRootPath) {
if (pkgPath == projectRootPath) {

@@ -124,2 +124,3 @@ return true;

var isRoot = (fromPath.length == 0);
var isProjSubpkg = isProjSubpackage(goDepsTree.Dir, projectRootPath);

@@ -130,4 +131,7 @@ var pkg = {

}
if (!isRoot && isProjSubpkg) {
pkg._isProjSubpkg = true;
}
if (isRoot || isRootSubpkg(goDepsTree.Dir, projectRootPath)) {
if (isRoot || isProjSubpkg) {
pkg.version = '0.0.0';

@@ -142,3 +146,3 @@ } else if (!lockedVersions[pkg.name]) {

pkg.from = fromPath;
if (!isInternalPackage(pkg.name)) {
if (isRoot || (!isInternalPackage(pkg.name) && !isProjSubpkg)) {
pkg.from = pkg.from.concat(pkg.name + '@' + pkg.version)

@@ -151,3 +155,3 @@ }

if (isInternalPackage(child.name)) {
if (isInternalPackage(child.name) || child._isProjSubpkg) {
Object.keys(child.dependencies).forEach(function (grandChildName) {

@@ -154,0 +158,0 @@ pkg.dependencies[grandChildName] = child.dependencies[grandChildName];

@@ -27,3 +27,3 @@ {

},
"version": "1.3.0"
"version": "1.3.1"
}
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