@vitest/snapshot 0.31.0 → 0.31.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.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -239,7 +239,7 @@ function extractLocation(urlLike) {
|
|
|
239
239
|
if (!urlLike.includes(":"))
|
|
240
240
|
return [urlLike];
|
|
241
241
|
const regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/;
|
|
242
|
-
const parts = regExp.exec(urlLike.replace(
|
|
242
|
+
const parts = regExp.exec(urlLike.replace(/^\(|\)$/g, ""));
|
|
243
243
|
if (!parts)
|
|
244
244
|
return [urlLike];
|
|
245
245
|
return [parts[1], parts[2] || void 0, parts[3] || void 0];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/snapshot",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.31.
|
|
4
|
+
"version": "0.31.2",
|
|
5
5
|
"description": "Vitest snapshot manager",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/natural-compare": "^1.4.1",
|
|
47
47
|
"natural-compare": "^1.4.0",
|
|
48
|
-
"@vitest/utils": "0.31.
|
|
48
|
+
"@vitest/utils": "0.31.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "rimraf dist && rollup -c",
|