@snyk/cli-interface
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -28,2 +28,9 @@ export interface DepTreeDep { | ||
} | ||
export declare type SupportedPackageManagers = 'rubygems' | 'npm' | 'yarn' | 'maven' | 'pip' | 'sbt' | 'gradle' | 'golangdep' | 'govendor' | 'gomodules' | 'nuget' | 'paket' | 'composer'; | ||
export declare type SupportedPackageManagers = 'rubygems' | // Ruby | ||
'npm' | 'yarn' | // Node.js | ||
'maven' | 'sbt' | 'gradle' | // JVM | ||
'golangdep' | 'govendor' | 'gomodules' | // Go | ||
'pip' | // Python | ||
'nuget' | 'paket' | // .Net | ||
'composer' | // PHP | ||
'rpm' | 'apk' | 'deb' | 'dockerfile'; |
import { DepTree, ScannedProject, SupportedPackageManagers } from './common'; | ||
export interface Plugin { | ||
export interface SingleSubprojectPlugin { | ||
inspect(root: string, targetFile?: string, options?: SingleSubprojectInspectOptions): Promise<SinglePackageResult>; | ||
inspect(root: string, targetFile?: string, options?: MultiSubprojectInspectOptions): Promise<MultiProjectResult>; | ||
pluginName?(): string; | ||
} | ||
export interface Plugin extends SingleSubprojectPlugin { | ||
inspect(root: string, targetFile?: string, options?: InspectOptions): Promise<InspectResult>; | ||
} | ||
export interface SingleSubprojectPlugin { | ||
inspect(root: string, targetFile?: string, options?: SingleSubprojectInspectOptions): Promise<SinglePackageResult>; | ||
pluginName(): string; | ||
inspect(root: string, targetFile?: string, options?: MultiSubprojectInspectOptions): Promise<MultiProjectResult>; | ||
} | ||
@@ -27,3 +27,3 @@ export declare function adaptSingleProjectPlugin(plugin: SingleSubprojectPlugin): Plugin; | ||
name: string; | ||
runtime: string; | ||
runtime?: string; | ||
targetFile?: string; | ||
@@ -30,0 +30,0 @@ packageManager?: SupportedPackageManagers; |
@@ -6,3 +6,4 @@ "use strict"; | ||
if (options && isMultiSubProject(options)) { | ||
throw new Error(`Plugin ${plugin.pluginName()} does not support scanning multiple sub-projects`); | ||
const name = plugin.pluginName ? plugin.pluginName() : '[unknown]'; | ||
throw new Error(`Plugin ${name} does not support scanning multiple sub-projects`); | ||
} | ||
@@ -9,0 +10,0 @@ else { |
@@ -28,3 +28,3 @@ { | ||
}, | ||
"version": "1.3.0" | ||
"version": "1.3.1" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18420
144