@depup/vitest__pretty-format 4.1.2-depup.0 → 4.1.3-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/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/vitest__pretty-format
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@vitest/pretty-format](https://www.npmjs.com/package/@vitest/pretty-format) @ 4.1.2 |
17
- | Processed | 2026-03-26 |
16
+ | Original | [@vitest/pretty-format](https://www.npmjs.com/package/@vitest/pretty-format) @ 4.1.3 |
17
+ | Processed | 2026-04-07 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-03-26T16:31:44.515Z",
3
+ "timestamp": "2026-04-07T12:27:10.895Z",
4
4
  "totalUpdated": 0
5
5
  }
package/dist/index.d.ts CHANGED
@@ -46,12 +46,41 @@ interface Options extends Omit<RequiredOptions, "compareKeys" | "theme"> {
46
46
  theme: Theme;
47
47
  }
48
48
  interface PrettyFormatOptions {
49
+ /**
50
+ * Call `toJSON` on objects before formatting them.
51
+ * Ignored after the formatter has already called `toJSON` once for a value.
52
+ * @default true
53
+ */
49
54
  callToJSON?: boolean;
55
+ /**
56
+ * Whether to escape special characters in regular expressions.
57
+ * @default false
58
+ */
50
59
  escapeRegex?: boolean;
60
+ /**
61
+ * Whether to escape special characters in strings.
62
+ * @default true
63
+ */
51
64
  escapeString?: boolean;
65
+ /**
66
+ * Whether to highlight syntax using terminal colors.
67
+ * @default false
68
+ */
52
69
  highlight?: boolean;
70
+ /**
71
+ * Number of spaces to use for each level of indentation.
72
+ * @default 2
73
+ */
53
74
  indent?: number;
75
+ /**
76
+ * Maximum depth to recurse into nested values.
77
+ * @default Infinity
78
+ */
54
79
  maxDepth?: number;
80
+ /**
81
+ * Maximum number of items to print in arrays, sets, maps, and similar collections.
82
+ * @default Infinity
83
+ */
55
84
  maxWidth?: number;
56
85
  /**
57
86
  * Approximate per-depth-level budget for output length.
@@ -61,11 +90,34 @@ interface PrettyFormatOptions {
61
90
  * @default 1_000_000
62
91
  */
63
92
  maxOutputLength?: number;
93
+ /**
94
+ * Whether to minimize added whitespace, including indentation and line breaks.
95
+ * @default false
96
+ */
64
97
  min?: boolean;
98
+ /**
99
+ * Whether to print `Object` / `Array` prefixes for plain objects and arrays.
100
+ * @default true
101
+ */
65
102
  printBasicPrototype?: boolean;
103
+ /**
104
+ * Whether to include the function name when formatting functions.
105
+ * @default true
106
+ */
66
107
  printFunctionName?: boolean;
108
+ /**
109
+ * Whether to include shadow-root contents when formatting DOM nodes.
110
+ * @default true
111
+ */
67
112
  printShadowRoot?: boolean;
113
+ /**
114
+ * Compare function used when sorting object keys. Set to `null` to disable sorting.
115
+ */
68
116
  compareKeys?: CompareKeys;
117
+ /**
118
+ * Plugins used to serialize application-specific data types.
119
+ * @default []
120
+ */
69
121
  plugins?: Plugins;
70
122
  }
71
123
  type OptionsReceived = PrettyFormatOptions;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depup/vitest__pretty-format",
3
3
  "type": "module",
4
- "version": "4.1.2-depup.0",
4
+ "version": "4.1.3-depup.0",
5
5
  "description": "Fork of pretty-format with support for ESM (with updated dependencies)",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -59,8 +59,8 @@
59
59
  "changes": {},
60
60
  "depsUpdated": 0,
61
61
  "originalPackage": "@vitest/pretty-format",
62
- "originalVersion": "4.1.2",
63
- "processedAt": "2026-03-26T16:31:46.070Z",
62
+ "originalVersion": "4.1.3",
63
+ "processedAt": "2026-04-07T12:27:12.074Z",
64
64
  "smokeTest": "passed"
65
65
  }
66
66
  }