Socket
Socket
Sign inDemoInstall

plugin-error

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plugin-error - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

31

index.d.ts
declare namespace PluginError {
export interface Constructor {
interface Constructor {
/**
* @param options Options with plugin name and message
* @param plugin Plugin name
* @param error Base error
* @param options Error options
*/
new(options: Options & {plugin: string, message: string}): PluginError;
new <E extends Error>(plugin: string, error: E, options?: Options): PluginError<E>;
/**
* @param plugin Plugin name
* @param message Error message
* @param error Base error or error message
* @param options Error options
*/
new (plugin: string, message: string, options?: Options): PluginError;
new <E extends Error = Error>(plugin: string, error: E | string, options: Options): PluginError<E | {[K in keyof E]: undefined}>;
/**
* @param plugin Plugin name
* @param error Base error
* @param options Error options
* @param error Base error, error message, or options with message
*/
new <E extends Error>(plugin: string, error: E, options?: Options): PluginError<E>;
new <E extends Error = Error>(plugin: string, error: E | string | (Options & {message: string})): PluginError<E | {[K in keyof E]: undefined}>;
/**
* @param plugin Plugin name
* @param options Options with message
* @param options Options with plugin name and message
*/
new(plugin: string, options: Options & {message: string}): PluginError;
new(options: Options & {plugin: string, message: string}): PluginError;
}

@@ -74,7 +74,8 @@

/**
* The `Base` interface defines the properties available on all the the instances of `PluginError`.
* The `SimplePluginError` interface defines the properties available on all the the instances of `PluginError`.
*
* @internal
*/
export interface Base extends Error {
interface SimplePluginError extends Error {
/**

@@ -110,3 +111,3 @@ * Plugin name

*/
type PluginError<T = {}> = PluginError.Base & T;
type PluginError<T = {}> = PluginError.SimplePluginError & T;

@@ -113,0 +114,0 @@ declare const PluginError: PluginError.Constructor;

{
"name": "plugin-error",
"version": "1.0.0",
"version": "1.0.1",
"description": "Error handling for Vinyl plugins.",

@@ -5,0 +5,0 @@ "author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",

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