diff options
author | Scoots Dash <contact@minteck.org> | 2022-04-23 14:12:30 +0000 |
---|---|---|
committer | Scoots Dash <contact@minteck.org> | 2022-04-23 14:12:30 +0000 |
commit | a927497b43cbe1438f3d7478932f3f7d03ea347c (patch) | |
tree | 0a3c88978b4294fb30afad58daa86c46fbedc2f6 /node_modules/simple-git/src/lib/utils | |
parent | ba5fa694351774f2684c1aefdc215da5c6f39ba6 (diff) | |
parent | f0db5bbbcd623812a391862d217519afafe197c6 (diff) | |
download | twilight-trunk.tar.gz twilight-trunk.tar.bz2 twilight-trunk.zip |
Disable the Twilight Package Manager
See merge request minteck/twilight!1
Diffstat (limited to 'node_modules/simple-git/src/lib/utils')
9 files changed, 0 insertions, 121 deletions
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<T> { - (input: any): input is T; -} -export declare function filterType<T, K>(input: K, filter: ArgumentFilterPredicate<T>): K extends T ? T : undefined; -export declare function filterType<T, K>(input: K, filter: ArgumentFilterPredicate<T>, def: T): T; -export declare const filterArray: ArgumentFilterPredicate<Array<any>>; -export declare function filterPrimitives(input: unknown, omit?: Array<'boolean' | 'string' | 'number'>): input is Primitives; -export declare const filterString: ArgumentFilterPredicate<string>; -export declare const filterStringArray: ArgumentFilterPredicate<string[]>; -export declare const filterStringOrStringArray: ArgumentFilterPredicate<string | string[]>; -export declare function filterPlainObject<T extends Options>(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 @@ -/// <reference types="node" /> -import { TaskResponseFormat } from '../types'; -export declare class GitOutputStreams<T extends TaskResponseFormat = Buffer> { - readonly stdOut: T; - readonly stdErr: T; - constructor(stdOut: T, stdErr: T); - asStrings(): GitOutputStreams<string>; -} 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<T> { - 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<T> extends LineParser<T> { - 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<Partial<SimpleGitOptions> | 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<T extends Options = Options>(options: Maybe<T>, 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<Options>; -/** - * 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<INPUT extends TaskResponseFormat, RESPONSE>(parser: TaskParser<INPUT, RESPONSE>, streams: GitOutputStreams<INPUT>): RESPONSE; -export declare function parseStringResponse<T>(result: T, parsers: LineParser<T>[], ...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 @@ -/// <reference types="node" /> -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<T extends () => any>(source: T | any): T; -/** - * Determines whether the supplied argument is both a function, and is not - * the `NOOP` function. - */ -export declare function isUserFunction<T extends Function>(source: T | any): source is T; -export declare function splitOn(input: string, char: string): [string, string]; -export declare function first<T extends any[]>(input: T, offset?: number): Maybe<T[number]>; -export declare function first<T extends IArguments>(input: T, offset?: number): Maybe<unknown>; -export declare function last<T extends any[]>(input: T, offset?: number): Maybe<T[number]>; -export declare function last<T extends IArguments>(input: T, offset?: number): Maybe<unknown>; -export declare function last<T>(input: T, offset?: number): Maybe<unknown>; -export declare function toLinesWithContent(input?: string, trimmed?: boolean, separator?: string): string[]; -declare type LineWithContentCallback<T = void> = (line: string) => T; -export declare function forEachLineWithContent<T>(input: string, callback: LineWithContentCallback<T>): 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<T>(target: T[] | Set<T>, item: T): typeof item; -/** - * Adds `item` into the `target` `Array` when it is not already present and returns the `target`. - */ -export declare function including<T>(target: T[], item: T): typeof target; -export declare function remove<T>(target: Set<T> | T[], item: T): T; -export declare const objectToString: (input: any) => string; -export declare function asArray<T>(source: T | T[]): T[]; -export declare function asStringArray<T>(source: T | T[]): string[]; -export declare function asNumber(source: string | null | undefined, onNaN?: number): number; -export declare function prefixedArray<T>(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<string, any>, properties: string[]): any; -export declare function delay(duration?: number): Promise<void>; -export {}; |