@vitest/snapshot 3.0.3 → 3.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -720,7 +720,7 @@ function parseSingleV8Stack(raw) {
720
720
  if (file.startsWith("file://")) {
721
721
  file = file.slice(7);
722
722
  }
723
- file = resolve$2(file);
723
+ file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve$2(file);
724
724
  if (method) {
725
725
  method = method.replace(/__vite_ssr_import_\d+__\./g, "");
726
726
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/snapshot",
3
3
  "type": "module",
4
- "version": "3.0.3",
4
+ "version": "3.0.5",
5
5
  "description": "Vitest snapshot manager",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -39,13 +39,13 @@
39
39
  ],
40
40
  "dependencies": {
41
41
  "magic-string": "^0.30.17",
42
- "pathe": "^2.0.1",
43
- "@vitest/pretty-format": "3.0.3"
42
+ "pathe": "^2.0.2",
43
+ "@vitest/pretty-format": "3.0.5"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/natural-compare": "^1.4.3",
47
47
  "natural-compare": "^1.4.0",
48
- "@vitest/utils": "3.0.3"
48
+ "@vitest/utils": "3.0.5"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "rimraf dist && rollup -c",