@vitest/utils 1.0.0-beta.1 → 1.0.0-beta.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/diff.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DiffOptions } from './types-f5c02aaf.js';
2
- export { a as DiffOptionsColor } from './types-f5c02aaf.js';
1
+ import { D as DiffOptions } from './types-39717483.js';
2
+ export { a as DiffOptionsColor } from './types-39717483.js';
3
3
  import 'pretty-format';
4
4
 
5
5
  /**
package/dist/error.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { D as DiffOptions } from './types-f5c02aaf.js';
1
+ import { D as DiffOptions } from './types-39717483.js';
2
2
  import 'pretty-format';
3
3
 
4
4
  declare function serializeError(val: any, seen?: WeakMap<object, any>): any;
package/dist/helpers.d.ts CHANGED
@@ -32,4 +32,4 @@ declare function createDefer<T>(): DeferPromise<T>;
32
32
  */
33
33
  declare function getCallLastIndex(code: string): number | null;
34
34
 
35
- export { DeferPromise, assertTypes, clone, createDefer, deepClone, getCallLastIndex, getOwnProperties, getType, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray };
35
+ export { type DeferPromise, assertTypes, clone, createDefer, deepClone, getCallLastIndex, getOwnProperties, getType, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray };
@@ -107,4 +107,4 @@ declare function parseSingleV8Stack(raw: string): ParsedStack | null;
107
107
  declare function parseStacktrace(stack: string, options?: StackTraceParserOptions): ParsedStack[];
108
108
  declare function parseErrorStacktrace(e: ErrorWithDiff, options?: StackTraceParserOptions): ParsedStack[];
109
109
 
110
- export { SourceMapInput, StackTraceParserOptions, TraceMap, generatedPositionFor, originalPositionFor, parseErrorStacktrace, parseSingleFFOrSafariStack, parseSingleStack, parseSingleV8Stack, parseStacktrace };
110
+ export { type SourceMapInput, type StackTraceParserOptions, TraceMap, generatedPositionFor, originalPositionFor, parseErrorStacktrace, parseSingleFFOrSafariStack, parseSingleStack, parseSingleV8Stack, parseStacktrace };
@@ -29,4 +29,4 @@ interface DiffOptions {
29
29
  compareKeys?: CompareKeys;
30
30
  }
31
31
 
32
- export { DiffOptions as D, DiffOptionsColor as a };
32
+ export type { DiffOptions as D, DiffOptionsColor as a };
package/dist/types.d.ts CHANGED
@@ -35,4 +35,4 @@ interface ErrorWithDiff extends Error {
35
35
  diff?: string;
36
36
  }
37
37
 
38
- export { ArgumentsType, Arrayable, Awaitable, Constructable, DeepMerge, ErrorWithDiff, MergeInsertions, MutableArray, Nullable, ParsedStack };
38
+ export type { ArgumentsType, Arrayable, Awaitable, Constructable, DeepMerge, ErrorWithDiff, MergeInsertions, MutableArray, Nullable, ParsedStack };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/utils",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.1",
4
+ "version": "1.0.0-beta.2",
5
5
  "description": "Shared Vitest utility functions",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",