Socket
Socket
Sign inDemoInstall

@snyk/cli-interface

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snyk/cli-interface - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

9

dist/legacy/common.d.ts

@@ -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';

12

dist/legacy/plugin.d.ts
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

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