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.1.0 to 1.2.0

1

dist/gomod-parser.d.ts
import { GoMod, ModuleVersion } from './types';
export declare function parseVersion(versionString: string): ModuleVersion;
export declare function parseGoMod(goModStr: string): GoMod;
export declare function toSnykVersion(v: ModuleVersion): string;

@@ -40,2 +40,3 @@ "use strict";

}
exports.parseVersion = parseVersion;
// Takes the current parser state and an input line;

@@ -42,0 +43,0 @@ // returns the new parser state and the line remainder to be processed

5

dist/index.d.ts
import { parseGoPkgConfig, parseGoVendorConfig } from './parser';
import { DepTree, GoPackageManagerType, GoProjectConfig } from './types';
import { toSnykVersion, parseVersion } from './gomod-parser';
import { DepTree, GoPackageManagerType, GoProjectConfig, ModuleVersion } from './types';
interface DepDict {

@@ -12,5 +13,5 @@ [dep: string]: DepTree;

export { GoPackageManagerType };
export { parseGoPkgConfig, parseGoVendorConfig, GoProjectConfig };
export { parseGoPkgConfig, parseGoVendorConfig, GoProjectConfig, ModuleVersion, toSnykVersion, parseVersion };
export declare function buildGoPkgDepTree(manifestFileContents: string, lockFileContents: string, options?: unknown): Promise<DepTree>;
export declare function buildGoVendorDepTree(manifestFileContents: string, options?: unknown): Promise<DepTree>;
export declare function buildGoModDepTree(manifestFileContents: string, options?: unknown): DepTree;

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

var gomod_parser_1 = require("./gomod-parser");
exports.toSnykVersion = gomod_parser_1.toSnykVersion;
exports.parseVersion = gomod_parser_1.parseVersion;
// TODO(kyegupov): make all build* functions sync

@@ -10,0 +12,0 @@ // TODO(kyegupov): pin down the types for "options"

@@ -40,3 +40,3 @@ {

},
"version": "1.1.0"
"version": "1.2.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