snyk-go-parser
Advanced tools
Comparing version 1.1.0 to 1.2.0
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 |
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
30508
467