From 726b81b19251674e149ccfbb1abacbd837fc6db0 Mon Sep 17 00:00:00 2001 From: LinuxWizard42 Date: Wed, 12 Oct 2022 23:08:57 +0300 Subject: Removed files that should not have been included in git --- .../cross-spawn-promise/dist/src/index.d.ts | 61 ---------------------- 1 file changed, 61 deletions(-) delete mode 100644 node_modules/@malept/cross-spawn-promise/dist/src/index.d.ts (limited to 'node_modules/@malept/cross-spawn-promise/dist/src/index.d.ts') diff --git a/node_modules/@malept/cross-spawn-promise/dist/src/index.d.ts b/node_modules/@malept/cross-spawn-promise/dist/src/index.d.ts deleted file mode 100644 index 68789ac..0000000 --- a/node_modules/@malept/cross-spawn-promise/dist/src/index.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -/// -import { SpawnOptions } from "child_process"; -export declare type LoggerFunction = (message: string) => void; -/** - * List of string arguments. - */ -export declare type CrossSpawnArgs = ReadonlyArray | undefined; -export declare type CrossSpawnOptions = SpawnOptions & { - /** - * A `Function` such as `console.log` or `debug(name)` to log some information about the - * spawned process. - */ - logger?: LoggerFunction; - /** - * A callback which mutates the error before it is rethrown. Most commonly, this is used to - * augment the error message of `ENOENT` errors to provide a more human-friendly message as to - * how to install the missing executable. - * - * @param error - The error thrown from the `spawn` function - * @param hasLogger - Whether `logger` was set - */ - updateErrorCallback?: (error: Error, hasLogger: boolean) => void; -}; -/** - * Wrapper error for when the spawn function itself emits an error. - */ -export declare class CrossSpawnError extends Error { - originalError: Error; - constructor(cmd: string, args: CrossSpawnArgs, originalError: Error, stderr: string); -} -/** - * Base error class for when a process does not exit with a status code of zero. - */ -export declare abstract class ExitError extends Error { - cmd: string; - args: CrossSpawnArgs; - stdout: string; - stderr: string; - constructor(cmd: string, args: CrossSpawnArgs, message: string, stdout: string, stderr: string); -} -/** - * The error thrown when a process emits a non-zero exit code. - */ -export declare class ExitCodeError extends ExitError { - code: number; - constructor(cmd: string, args: CrossSpawnArgs, code: number, stdout: string, stderr: string); -} -/** - * The error thrown when a process exits via a signal. - */ -export declare class ExitSignalError extends ExitError { - signal: string; - constructor(cmd: string, args: CrossSpawnArgs, signal: string, stdout: string, stderr: string); -} -/** - * A wrapper around `cross-spawn`'s `spawn` function which can optionally log the command executed - * and/or change the error object via a callback. - * - * @param cmd - The command to run - */ -export declare function spawn(cmd: string, args?: CrossSpawnArgs, options?: CrossSpawnOptions): Promise; -- cgit v1.2.3-86-g962b