@depup/vitest__utils 4.1.0-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +31 -0
- package/changes.json +10 -0
- package/diff.d.ts +1 -0
- package/dist/chunk-pathe.M-eThtNZ.js +156 -0
- package/dist/constants.d.ts +21 -0
- package/dist/constants.js +49 -0
- package/dist/diff.d.ts +93 -0
- package/dist/diff.js +2201 -0
- package/dist/display.d.ts +30 -0
- package/dist/display.js +775 -0
- package/dist/error.d.ts +8 -0
- package/dist/error.js +41 -0
- package/dist/helpers.d.ts +76 -0
- package/dist/helpers.js +337 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/offset.d.ts +5 -0
- package/dist/offset.js +32 -0
- package/dist/resolver.d.ts +7 -0
- package/dist/resolver.js +70 -0
- package/dist/serialize.d.ts +3 -0
- package/dist/serialize.js +118 -0
- package/dist/source-map/node.d.ts +6 -0
- package/dist/source-map/node.js +23 -0
- package/dist/source-map.d.ts +55 -0
- package/dist/source-map.js +488 -0
- package/dist/timers.d.ts +33 -0
- package/dist/timers.js +49 -0
- package/dist/types.d-BCElaP-c.d.ts +53 -0
- package/dist/types.d.ts +34 -0
- package/dist/types.js +1 -0
- package/error.d.ts +1 -0
- package/helpers.d.ts +1 -0
- package/package.json +123 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PrettyFormatOptions } from '@vitest/pretty-format';
|
|
2
|
+
|
|
3
|
+
type Inspect = (value: unknown, options: Options) => string;
|
|
4
|
+
interface Options {
|
|
5
|
+
showHidden: boolean;
|
|
6
|
+
depth: number;
|
|
7
|
+
colors: boolean;
|
|
8
|
+
customInspect: boolean;
|
|
9
|
+
showProxy: boolean;
|
|
10
|
+
maxArrayLength: number;
|
|
11
|
+
breakLength: number;
|
|
12
|
+
truncate: number;
|
|
13
|
+
seen: unknown[];
|
|
14
|
+
inspect: Inspect;
|
|
15
|
+
stylize: (value: string, styleType: string) => string;
|
|
16
|
+
}
|
|
17
|
+
type LoupeOptions = Partial<Options>;
|
|
18
|
+
interface StringifyOptions extends PrettyFormatOptions {
|
|
19
|
+
maxLength?: number;
|
|
20
|
+
filterNode?: string | ((node: any) => boolean);
|
|
21
|
+
}
|
|
22
|
+
declare function stringify(object: unknown, maxDepth?: number, { maxLength, filterNode, ...options }?: StringifyOptions): string;
|
|
23
|
+
declare const formatRegExp: RegExp;
|
|
24
|
+
declare function format(...args: unknown[]): string;
|
|
25
|
+
declare function browserFormat(...args: unknown[]): string;
|
|
26
|
+
declare function inspect(obj: unknown, options?: LoupeOptions): string;
|
|
27
|
+
declare function objDisplay(obj: unknown, options?: LoupeOptions): string;
|
|
28
|
+
|
|
29
|
+
export { browserFormat, format, formatRegExp, inspect, objDisplay, stringify };
|
|
30
|
+
export type { LoupeOptions, StringifyOptions };
|