@vitest/utils 3.0.0-beta.4 → 3.0.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.
@@ -38,7 +38,7 @@ function stringify(object, maxDepth = 10, { maxLength, ...options } = {}) {
38
38
  ...options
39
39
  });
40
40
  }
41
- return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(maxDepth / 2)) : result;
41
+ return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(Math.min(maxDepth, Number.MAX_SAFE_INTEGER) / 2), { maxLength, ...options }) : result;
42
42
  }
43
43
  const formatRegExp = /%[sdjifoOc%]/g;
44
44
  function format(...args) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/utils",
3
3
  "type": "module",
4
- "version": "3.0.0-beta.4",
4
+ "version": "3.0.0",
5
5
  "description": "Shared Vitest utility functions",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -61,8 +61,8 @@
61
61
  ],
62
62
  "dependencies": {
63
63
  "loupe": "^3.1.2",
64
- "tinyrainbow": "^1.2.0",
65
- "@vitest/pretty-format": "3.0.0-beta.4"
64
+ "tinyrainbow": "^2.0.0",
65
+ "@vitest/pretty-format": "3.0.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@jridgewell/trace-mapping": "^0.3.25",