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.2.0 to 1.3.0

5

dist/legacy/plugin.d.ts

@@ -7,2 +7,7 @@ import { DepTree, ScannedProject, SupportedPackageManagers } from './common';

}
export interface SingleSubprojectPlugin {
inspect(root: string, targetFile?: string, options?: SingleSubprojectInspectOptions): Promise<SinglePackageResult>;
pluginName(): string;
}
export declare function adaptSingleProjectPlugin(plugin: SingleSubprojectPlugin): Plugin;
export interface BaseInspectOptions {

@@ -9,0 +14,0 @@ dev?: boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function adaptSingleProjectPlugin(plugin) {
return { inspect: (root, targetFile, options) => {
if (options && isMultiSubProject(options)) {
throw new Error(`Plugin ${plugin.pluginName()} does not support scanning multiple sub-projects`);
}
else {
return plugin.inspect(root, targetFile, options);
}
} };
}
exports.adaptSingleProjectPlugin = adaptSingleProjectPlugin;
function isMultiSubProject(options) {

@@ -4,0 +15,0 @@ return options.allSubProjects;

2

package.json

@@ -28,3 +28,3 @@ {

},
"version": "1.2.0"
"version": "1.3.0"
}

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