@vitest/utils 2.1.0 → 2.1.2

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/error.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { printDiffOrStringify } from './diff.js';
2
- import { f as format, s as stringify } from './chunk-display.js';
2
+ import { f as format, s as stringify } from './chunk-_commonjsHelpers.js';
3
3
  import '@vitest/pretty-format';
4
4
  import 'tinyrainbow';
5
5
  import './helpers.js';
package/dist/index.d.ts CHANGED
@@ -50,4 +50,6 @@ interface HighlightOptions {
50
50
  }
51
51
  declare function highlight(code: string, options?: HighlightOptions): string;
52
52
 
53
- export { type SafeTimers, type StringifyOptions, format, getSafeTimers, highlight, inspect, lineSplitRE, objDisplay, offsetToLineNumber, positionToOffset, setSafeTimers, shuffle, stringify };
53
+ declare function nanoid(size?: number): string;
54
+
55
+ export { type SafeTimers, type StringifyOptions, format, getSafeTimers, highlight, inspect, lineSplitRE, nanoid, objDisplay, offsetToLineNumber, positionToOffset, setSafeTimers, shuffle, stringify };