From 4081c2036a5af21519095da1b8b99c507b0fba93 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 17 Apr 2022 17:37:10 +0200 Subject: Deprecation --- .../simple-git/src/lib/utils/argument-filters.d.ts | 16 -------- .../simple-git/src/lib/utils/exit-codes.d.ts | 9 ----- .../src/lib/utils/git-output-streams.d.ts | 8 ---- node_modules/simple-git/src/lib/utils/index.d.ts | 8 ---- .../simple-git/src/lib/utils/line-parser.d.ts | 15 -------- .../src/lib/utils/simple-git-options.d.ts | 2 - .../simple-git/src/lib/utils/task-options.d.ts | 13 ------- .../simple-git/src/lib/utils/task-parser.d.ts | 5 --- node_modules/simple-git/src/lib/utils/util.d.ts | 45 ---------------------- 9 files changed, 121 deletions(-) delete mode 100644 node_modules/simple-git/src/lib/utils/argument-filters.d.ts delete mode 100644 node_modules/simple-git/src/lib/utils/exit-codes.d.ts delete mode 100644 node_modules/simple-git/src/lib/utils/git-output-streams.d.ts delete mode 100644 node_modules/simple-git/src/lib/utils/index.d.ts delete mode 100644 node_modules/simple-git/src/lib/utils/line-parser.d.ts delete mode 100644 node_modules/simple-git/src/lib/utils/simple-git-options.d.ts delete mode 100644 node_modules/simple-git/src/lib/utils/task-options.d.ts delete mode 100644 node_modules/simple-git/src/lib/utils/task-parser.d.ts delete mode 100644 node_modules/simple-git/src/lib/utils/util.d.ts (limited to 'node_modules/simple-git/src/lib/utils') diff --git a/node_modules/simple-git/src/lib/utils/argument-filters.d.ts b/node_modules/simple-git/src/lib/utils/argument-filters.d.ts deleted file mode 100644 index 6be6925..0000000 --- a/node_modules/simple-git/src/lib/utils/argument-filters.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Options, Primitives } from '../types'; -export interface ArgumentFilterPredicate { - (input: any): input is T; -} -export declare function filterType(input: K, filter: ArgumentFilterPredicate): K extends T ? T : undefined; -export declare function filterType(input: K, filter: ArgumentFilterPredicate, def: T): T; -export declare const filterArray: ArgumentFilterPredicate>; -export declare function filterPrimitives(input: unknown, omit?: Array<'boolean' | 'string' | 'number'>): input is Primitives; -export declare const filterString: ArgumentFilterPredicate; -export declare const filterStringArray: ArgumentFilterPredicate; -export declare const filterStringOrStringArray: ArgumentFilterPredicate; -export declare function filterPlainObject(input: T | unknown): input is T; -export declare function filterFunction(input: unknown): input is Function; -export declare const filterHasLength: ArgumentFilterPredicate<{ - length: number; -}>; diff --git a/node_modules/simple-git/src/lib/utils/exit-codes.d.ts b/node_modules/simple-git/src/lib/utils/exit-codes.d.ts deleted file mode 100644 index 1c389c7..0000000 --- a/node_modules/simple-git/src/lib/utils/exit-codes.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Known process exit codes used by the task parsers to determine whether an error - * was one they can automatically handle - */ -export declare enum ExitCodes { - SUCCESS = 0, - ERROR = 1, - UNCLEAN = 128 -} diff --git a/node_modules/simple-git/src/lib/utils/git-output-streams.d.ts b/node_modules/simple-git/src/lib/utils/git-output-streams.d.ts deleted file mode 100644 index 72db466..0000000 --- a/node_modules/simple-git/src/lib/utils/git-output-streams.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -import { TaskResponseFormat } from '../types'; -export declare class GitOutputStreams { - readonly stdOut: T; - readonly stdErr: T; - constructor(stdOut: T, stdErr: T); - asStrings(): GitOutputStreams; -} diff --git a/node_modules/simple-git/src/lib/utils/index.d.ts b/node_modules/simple-git/src/lib/utils/index.d.ts deleted file mode 100644 index 04cb604..0000000 --- a/node_modules/simple-git/src/lib/utils/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from './argument-filters'; -export * from './exit-codes'; -export * from './git-output-streams'; -export * from './line-parser'; -export * from './simple-git-options'; -export * from './task-options'; -export * from './task-parser'; -export * from './util'; diff --git a/node_modules/simple-git/src/lib/utils/line-parser.d.ts b/node_modules/simple-git/src/lib/utils/line-parser.d.ts deleted file mode 100644 index c50560a..0000000 --- a/node_modules/simple-git/src/lib/utils/line-parser.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export declare class LineParser { - protected matches: string[]; - private _regExp; - constructor(regExp: RegExp | RegExp[], useMatches?: (target: T, match: string[]) => boolean | void); - parse: (line: (offset: number) => (string | undefined), target: T) => boolean; - protected useMatches(target: T, match: string[]): boolean | void; - protected resetMatches(): void; - protected prepareMatches(): string[]; - protected addMatch(reg: RegExp, index: number, line?: string): boolean; - protected pushMatch(_index: number, matched: string[]): void; -} -export declare class RemoteLineParser extends LineParser { - protected addMatch(reg: RegExp, index: number, line?: string): boolean; - protected pushMatch(index: number, matched: string[]): void; -} diff --git a/node_modules/simple-git/src/lib/utils/simple-git-options.d.ts b/node_modules/simple-git/src/lib/utils/simple-git-options.d.ts deleted file mode 100644 index 552d68d..0000000 --- a/node_modules/simple-git/src/lib/utils/simple-git-options.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { SimpleGitOptions } from '../types'; -export declare function createInstanceConfig(...options: Array | undefined>): SimpleGitOptions; diff --git a/node_modules/simple-git/src/lib/utils/task-options.d.ts b/node_modules/simple-git/src/lib/utils/task-options.d.ts deleted file mode 100644 index 23d3705..0000000 --- a/node_modules/simple-git/src/lib/utils/task-options.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Maybe, Options } from '../types'; -export declare function appendTaskOptions(options: Maybe, commands?: string[]): string[]; -export declare function getTrailingOptions(args: IArguments, initialPrimitive?: number, objectOnly?: boolean): string[]; -/** - * Given any number of arguments, returns the trailing options argument, ignoring a trailing function argument - * if there is one. When not found, the return value is null. - */ -export declare function trailingOptionsArgument(args: IArguments): Maybe; -/** - * Returns either the source argument when it is a `Function`, or the default - * `NOOP` function constant - */ -export declare function trailingFunctionArgument(args: unknown[] | IArguments | unknown, includeNoop?: boolean): Maybe<(...args: any[]) => unknown>; diff --git a/node_modules/simple-git/src/lib/utils/task-parser.d.ts b/node_modules/simple-git/src/lib/utils/task-parser.d.ts deleted file mode 100644 index 5734495..0000000 --- a/node_modules/simple-git/src/lib/utils/task-parser.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { TaskParser, TaskResponseFormat } from '../types'; -import { GitOutputStreams } from './git-output-streams'; -import { LineParser } from './line-parser'; -export declare function callTaskParser(parser: TaskParser, streams: GitOutputStreams): RESPONSE; -export declare function parseStringResponse(result: T, parsers: LineParser[], ...texts: string[]): T; diff --git a/node_modules/simple-git/src/lib/utils/util.d.ts b/node_modules/simple-git/src/lib/utils/util.d.ts deleted file mode 100644 index 5f0b543..0000000 --- a/node_modules/simple-git/src/lib/utils/util.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/// -import { Maybe } from '../types'; -export declare const NULL = "\0"; -export declare const NOOP: (...args: any[]) => void; -/** - * Returns either the source argument when it is a `Function`, or the default - * `NOOP` function constant - */ -export declare function asFunction any>(source: T | any): T; -/** - * Determines whether the supplied argument is both a function, and is not - * the `NOOP` function. - */ -export declare function isUserFunction(source: T | any): source is T; -export declare function splitOn(input: string, char: string): [string, string]; -export declare function first(input: T, offset?: number): Maybe; -export declare function first(input: T, offset?: number): Maybe; -export declare function last(input: T, offset?: number): Maybe; -export declare function last(input: T, offset?: number): Maybe; -export declare function last(input: T, offset?: number): Maybe; -export declare function toLinesWithContent(input?: string, trimmed?: boolean, separator?: string): string[]; -declare type LineWithContentCallback = (line: string) => T; -export declare function forEachLineWithContent(input: string, callback: LineWithContentCallback): T[]; -export declare function folderExists(path: string): boolean; -/** - * Adds `item` into the `target` `Array` or `Set` when it is not already present and returns the `item`. - */ -export declare function append(target: T[] | Set, item: T): typeof item; -/** - * Adds `item` into the `target` `Array` when it is not already present and returns the `target`. - */ -export declare function including(target: T[], item: T): typeof target; -export declare function remove(target: Set | T[], item: T): T; -export declare const objectToString: (input: any) => string; -export declare function asArray(source: T | T[]): T[]; -export declare function asStringArray(source: T | T[]): string[]; -export declare function asNumber(source: string | null | undefined, onNaN?: number): number; -export declare function prefixedArray(input: T[], prefix: T): T[]; -export declare function bufferToString(input: Buffer | Buffer[]): string; -/** - * Get a new object from a source object with only the listed properties. - */ -export declare function pick(source: Record, properties: string[]): any; -export declare function delay(duration?: number): Promise; -export {}; -- cgit