@vitest/snapshot 3.2.4 → 4.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/index.d.ts CHANGED
@@ -134,4 +134,4 @@ declare function stripSnapshotIndentation(inlineSnapshot: string): string;
134
134
  declare function addSerializer(plugin: Plugin): void;
135
135
  declare function getSerializers(): Plugins;
136
136
 
137
- export { SnapshotClient, SnapshotMatchOptions, SnapshotResult, SnapshotState, SnapshotStateOptions, addSerializer, getSerializers, stripSnapshotIndentation };
137
+ export { SnapshotClient, SnapshotEnvironment, SnapshotMatchOptions, SnapshotResult, SnapshotState, SnapshotStateOptions, addSerializer, getSerializers, stripSnapshotIndentation };
package/dist/index.js CHANGED
@@ -804,7 +804,7 @@ function parseErrorStacktrace(e, options = {}) {
804
804
  if (!e || isPrimitive(e)) {
805
805
  return [];
806
806
  }
807
- if (e.stacks) {
807
+ if ("stacks" in e && e.stacks) {
808
808
  return e.stacks;
809
809
  }
810
810
  const stackStr = e.stack || "";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/snapshot",
3
3
  "type": "module",
4
- "version": "3.2.4",
4
+ "version": "4.0.0-beta.2",
5
5
  "description": "Vitest snapshot manager",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -40,12 +40,12 @@
40
40
  "dependencies": {
41
41
  "magic-string": "^0.30.17",
42
42
  "pathe": "^2.0.3",
43
- "@vitest/pretty-format": "3.2.4"
43
+ "@vitest/pretty-format": "4.0.0-beta.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/natural-compare": "^1.4.3",
47
47
  "natural-compare": "^1.4.0",
48
- "@vitest/utils": "3.2.4"
48
+ "@vitest/utils": "4.0.0-beta.2"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "rimraf dist && rollup -c",