@vitest/utils 2.1.0-beta.2 → 2.1.0-beta.4

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -3
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -32,9 +32,10 @@ interface Options {
32
32
  stylize: (value: string, styleType: string) => string;
33
33
  }
34
34
  type LoupeOptions = Partial<Options>;
35
- declare function stringify(object: unknown, maxDepth?: number, { maxLength, ...options }?: PrettyFormatOptions & {
35
+ interface StringifyOptions extends PrettyFormatOptions {
36
36
  maxLength?: number;
37
- }): string;
37
+ }
38
+ declare function stringify(object: unknown, maxDepth?: number, { maxLength, ...options }?: StringifyOptions): string;
38
39
  declare function format(...args: unknown[]): string;
39
40
  declare function inspect(obj: unknown, options?: LoupeOptions): string;
40
41
  declare function objDisplay(obj: unknown, options?: LoupeOptions): string;
@@ -49,4 +50,4 @@ interface HighlightOptions {
49
50
  }
50
51
  declare function highlight(code: string, options?: HighlightOptions): string;
51
52
 
52
- export { type SafeTimers, format, getSafeTimers, highlight, inspect, lineSplitRE, objDisplay, offsetToLineNumber, positionToOffset, setSafeTimers, shuffle, stringify };
53
+ export { type SafeTimers, type StringifyOptions, format, getSafeTimers, highlight, inspect, lineSplitRE, objDisplay, offsetToLineNumber, positionToOffset, setSafeTimers, shuffle, stringify };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/utils",
3
3
  "type": "module",
4
- "version": "2.1.0-beta.2",
4
+ "version": "2.1.0-beta.4",
5
5
  "description": "Shared Vitest utility functions",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -63,7 +63,7 @@
63
63
  "estree-walker": "^3.0.3",
64
64
  "loupe": "^3.1.1",
65
65
  "tinyrainbow": "^1.2.0",
66
- "@vitest/pretty-format": "2.1.0-beta.2"
66
+ "@vitest/pretty-format": "2.1.0-beta.4"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@jridgewell/trace-mapping": "^0.3.25",