@vitest/snapshot 1.0.0-beta.4 → 1.0.0-beta.6

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.
@@ -1,4 +1,4 @@
1
- import { S as SnapshotEnvironment } from './environment-e71c592b.js';
1
+ import { S as SnapshotEnvironment } from './environment-AwZ-cC__.js';
2
2
 
3
3
  declare class NodeSnapshotEnvironment implements SnapshotEnvironment {
4
4
  getVersion(): string;
@@ -1,5 +1,5 @@
1
1
  import { OptionsReceived } from 'pretty-format';
2
- import { S as SnapshotEnvironment } from './environment-e71c592b.js';
2
+ import { S as SnapshotEnvironment } from './environment-AwZ-cC__.js';
3
3
 
4
4
  interface RawSnapshotInfo {
5
5
  file: string;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { S as SnapshotStateOptions, a as SnapshotMatchOptions, b as SnapshotResult, R as RawSnapshotInfo } from './index-d5eca340.js';
2
- export { c as SnapshotData, e as SnapshotSummary, d as SnapshotUpdateState, U as UncheckedSnapshot } from './index-d5eca340.js';
3
- import { S as SnapshotEnvironment } from './environment-e71c592b.js';
1
+ import { S as SnapshotStateOptions, a as SnapshotMatchOptions, b as SnapshotResult, R as RawSnapshotInfo } from './index-lPCXZXKD.js';
2
+ export { c as SnapshotData, e as SnapshotSummary, d as SnapshotUpdateState, U as UncheckedSnapshot } from './index-lPCXZXKD.js';
3
+ import { S as SnapshotEnvironment } from './environment-AwZ-cC__.js';
4
4
  import { Plugin, Plugins } from 'pretty-format';
5
5
 
6
6
  interface ParsedStack {
package/dist/index.js CHANGED
@@ -818,7 +818,7 @@ class TraceMap {
818
818
  const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
819
819
  this.version = version;
820
820
  this.file = file;
821
- this.names = names;
821
+ this.names = names || [];
822
822
  this.sourceRoot = sourceRoot;
823
823
  this.sources = sources;
824
824
  this.sourcesContent = sourcesContent;
package/dist/manager.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { S as SnapshotStateOptions, e as SnapshotSummary, b as SnapshotResult } from './index-d5eca340.js';
1
+ import { S as SnapshotStateOptions, e as SnapshotSummary, b as SnapshotResult } from './index-lPCXZXKD.js';
2
2
  import 'pretty-format';
3
- import './environment-e71c592b.js';
3
+ import './environment-AwZ-cC__.js';
4
4
 
5
5
  declare class SnapshotManager {
6
6
  options: Omit<SnapshotStateOptions, 'snapshotEnvironment'>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/snapshot",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.4",
4
+ "version": "1.0.0-beta.6",
5
5
  "description": "Vitest snapshot manager",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -18,15 +18,15 @@
18
18
  "exports": {
19
19
  ".": {
20
20
  "types": "./dist/index.d.ts",
21
- "import": "./dist/index.js"
21
+ "default": "./dist/index.js"
22
22
  },
23
23
  "./environment": {
24
24
  "types": "./dist/environment.d.ts",
25
- "import": "./dist/environment.js"
25
+ "default": "./dist/environment.js"
26
26
  },
27
27
  "./manager": {
28
28
  "types": "./dist/manager.d.ts",
29
- "import": "./dist/manager.js"
29
+ "default": "./dist/manager.js"
30
30
  },
31
31
  "./*": "./*"
32
32
  },
@@ -34,18 +34,18 @@
34
34
  "module": "./dist/index.js",
35
35
  "types": "./dist/index.d.ts",
36
36
  "files": [
37
- "dist",
38
- "*.d.ts"
37
+ "*.d.ts",
38
+ "dist"
39
39
  ],
40
40
  "dependencies": {
41
41
  "magic-string": "^0.30.5",
42
42
  "pathe": "^1.1.1",
43
- "pretty-format": "^29.5.0"
43
+ "pretty-format": "^29.7.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/natural-compare": "^1.4.1",
46
+ "@types/natural-compare": "^1.4.3",
47
47
  "natural-compare": "^1.4.0",
48
- "@vitest/utils": "1.0.0-beta.4"
48
+ "@vitest/utils": "1.0.0-beta.6"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "rimraf dist && rollup -c",