This commit is contained in:
parent
7a9bf3199a
commit
c294e2e9ae
5702 changed files with 465039 additions and 34 deletions
94
node_modules/jest-diff/build/index.d.ts
generated
vendored
Normal file
94
node_modules/jest-diff/build/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import {CompareKeys} from 'pretty-format';
|
||||
|
||||
/**
|
||||
* Class representing one diff tuple.
|
||||
* Attempts to look like a two-element array (which is what this used to be).
|
||||
* @param {number} op Operation, one of: DIFF_DELETE, DIFF_INSERT, DIFF_EQUAL.
|
||||
* @param {string} text Text to be deleted, inserted, or retained.
|
||||
* @constructor
|
||||
*/
|
||||
export declare class Diff {
|
||||
0: number;
|
||||
1: string;
|
||||
constructor(op: number, text: string);
|
||||
}
|
||||
|
||||
export declare function diff(
|
||||
a: any,
|
||||
b: any,
|
||||
options?: DiffOptions,
|
||||
): string | null;
|
||||
|
||||
/**
|
||||
* The data structure representing a diff is an array of tuples:
|
||||
* [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]
|
||||
* which means: delete 'Hello', add 'Goodbye' and keep ' world.'
|
||||
*/
|
||||
export declare var DIFF_DELETE: number;
|
||||
|
||||
export declare var DIFF_EQUAL: number;
|
||||
|
||||
export declare var DIFF_INSERT: number;
|
||||
|
||||
export declare const diffLinesRaw: (
|
||||
aLines: Array<string>,
|
||||
bLines: Array<string>,
|
||||
) => Array<Diff>;
|
||||
|
||||
export declare const diffLinesUnified: (
|
||||
aLines: Array<string>,
|
||||
bLines: Array<string>,
|
||||
options?: DiffOptions,
|
||||
) => string;
|
||||
|
||||
export declare const diffLinesUnified2: (
|
||||
aLinesDisplay: Array<string>,
|
||||
bLinesDisplay: Array<string>,
|
||||
aLinesCompare: Array<string>,
|
||||
bLinesCompare: Array<string>,
|
||||
options?: DiffOptions,
|
||||
) => string;
|
||||
|
||||
export declare type DiffOptions = {
|
||||
aAnnotation?: string;
|
||||
aColor?: DiffOptionsColor;
|
||||
aIndicator?: string;
|
||||
bAnnotation?: string;
|
||||
bColor?: DiffOptionsColor;
|
||||
bIndicator?: string;
|
||||
changeColor?: DiffOptionsColor;
|
||||
changeLineTrailingSpaceColor?: DiffOptionsColor;
|
||||
commonColor?: DiffOptionsColor;
|
||||
commonIndicator?: string;
|
||||
commonLineTrailingSpaceColor?: DiffOptionsColor;
|
||||
contextLines?: number;
|
||||
emptyFirstOrLastLinePlaceholder?: string;
|
||||
expand?: boolean;
|
||||
includeChangeCounts?: boolean;
|
||||
omitAnnotationLines?: boolean;
|
||||
patchColor?: DiffOptionsColor;
|
||||
compareKeys?: CompareKeys;
|
||||
};
|
||||
|
||||
export declare type DiffOptionsColor = (arg: string) => string;
|
||||
|
||||
export declare const diffStringsRaw: (
|
||||
a: string,
|
||||
b: string,
|
||||
cleanup: boolean,
|
||||
) => Array<Diff>;
|
||||
|
||||
export declare const diffStringsUnified: (
|
||||
a: string,
|
||||
b: string,
|
||||
options?: DiffOptions,
|
||||
) => string;
|
||||
|
||||
export {};
|
||||
1560
node_modules/jest-diff/build/index.js
generated
vendored
Normal file
1560
node_modules/jest-diff/build/index.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
12
node_modules/jest-diff/build/index.mjs
generated
vendored
Normal file
12
node_modules/jest-diff/build/index.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import cjsModule from './index.js';
|
||||
|
||||
export const DIFF_DELETE = cjsModule.DIFF_DELETE;
|
||||
export const DIFF_EQUAL = cjsModule.DIFF_EQUAL;
|
||||
export const DIFF_INSERT = cjsModule.DIFF_INSERT;
|
||||
export const Diff = cjsModule.Diff;
|
||||
export const diff = cjsModule.diff;
|
||||
export const diffLinesRaw = cjsModule.diffLinesRaw;
|
||||
export const diffLinesUnified = cjsModule.diffLinesUnified;
|
||||
export const diffLinesUnified2 = cjsModule.diffLinesUnified2;
|
||||
export const diffStringsRaw = cjsModule.diffStringsRaw;
|
||||
export const diffStringsUnified = cjsModule.diffStringsUnified;
|
||||
Loading…
Add table
Add a link
Reference in a new issue