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

snyk-go-parser

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-go-parser - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

8

dist/parsers/gomod-graph-parser.js

@@ -6,2 +6,4 @@ "use strict";

const types_1 = require("../types");
// Modules can be of shape `modules/snyk/inner/v2` or `modules/snyk/v2/inner`
const GO_SEMVER_PREFIXED_MODULES_REGEX = /(.*)\/v[0-9]+(.*)/;
const GO_MODULES = 'gomodules';

@@ -12,3 +14,7 @@ function parseGoModGraphLine(line) {

.split(/\s/)
.map((item) => item.split('@'));
.map((item) => item.split('@'))
.map(([name, v]) => {
// Handle cases for prefixed-semver, see https://golang.org/ref/mod#major-version-suffixes
return [name.replace(GO_SEMVER_PREFIXED_MODULES_REGEX, '$1$2'), v];
});
}

@@ -15,0 +21,0 @@ function parseGoModGraph(goModGraphOutput, projectName, projectVersion = types_1.DEFAULT_INITIAL_VERSION) {

2

package.json

@@ -50,3 +50,3 @@ {

},
"version": "1.6.0"
"version": "1.7.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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