@vitest/utils 4.0.8 → 4.0.10
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/dist/chunk-_commonjsHelpers.js +2 -2
- package/dist/display.d.ts +1 -1
- package/dist/display.js +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
function getDefaultExportFromCjs
|
|
2
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x,
|
|
1
|
+
function getDefaultExportFromCjs(x) {
|
|
2
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
export { getDefaultExportFromCjs as g };
|
package/dist/display.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ type LoupeOptions = Partial<Options>;
|
|
|
18
18
|
interface StringifyOptions extends PrettyFormatOptions {
|
|
19
19
|
maxLength?: number;
|
|
20
20
|
}
|
|
21
|
-
declare function stringify(object: unknown, maxDepth?: number, { maxLength
|
|
21
|
+
declare function stringify(object: unknown, maxDepth?: number, { maxLength, ...options }?: StringifyOptions): string;
|
|
22
22
|
declare const formatRegExp: RegExp;
|
|
23
23
|
declare function format(...args: unknown[]): string;
|
|
24
24
|
declare function inspect(obj: unknown, options?: LoupeOptions): string;
|
package/dist/display.js
CHANGED
|
@@ -583,7 +583,7 @@ const PLUGINS = [
|
|
|
583
583
|
Immutable,
|
|
584
584
|
AsymmetricMatcher
|
|
585
585
|
];
|
|
586
|
-
function stringify(object, maxDepth = 10, { maxLength
|
|
586
|
+
function stringify(object, maxDepth = 10, { maxLength, ...options } = {}) {
|
|
587
587
|
const MAX_LENGTH = maxLength ?? 1e4;
|
|
588
588
|
let result;
|
|
589
589
|
try {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.10",
|
|
5
5
|
"description": "Shared Vitest utility functions",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
],
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"tinyrainbow": "^3.0.3",
|
|
85
|
-
"@vitest/pretty-format": "4.0.
|
|
85
|
+
"@vitest/pretty-format": "4.0.10"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@jridgewell/trace-mapping": "0.3.31",
|