@percy/core 1.2.0 → 1.2.1
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/snapshot.js +1 -1
- package/package.json +6 -6
package/dist/snapshot.js
CHANGED
|
@@ -168,7 +168,7 @@ export async function getSitemapSnapshots(options) {
|
|
|
168
168
|
} // parse XML content into a list of URLs
|
|
169
169
|
|
|
170
170
|
|
|
171
|
-
let urls = body.match(/(?<=<loc>)(
|
|
171
|
+
let urls = body.match(/(?<=<loc>)(.*?)(?=<\/loc>)/ig) ?? []; // filter out duplicate URLs that differ by a trailing slash
|
|
172
172
|
|
|
173
173
|
return urls.filter((url, i) => {
|
|
174
174
|
let match = urls.indexOf(url.replace(/\/$/, ''));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"test:types": "tsd"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@percy/client": "1.2.
|
|
43
|
-
"@percy/config": "1.2.
|
|
44
|
-
"@percy/dom": "1.2.
|
|
45
|
-
"@percy/logger": "1.2.
|
|
42
|
+
"@percy/client": "1.2.1",
|
|
43
|
+
"@percy/config": "1.2.1",
|
|
44
|
+
"@percy/dom": "1.2.1",
|
|
45
|
+
"@percy/logger": "1.2.1",
|
|
46
46
|
"content-disposition": "^0.5.4",
|
|
47
47
|
"cross-spawn": "^7.0.3",
|
|
48
48
|
"extract-zip": "^2.0.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"rimraf": "^3.0.2",
|
|
54
54
|
"ws": "^8.0.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "179bfce5c68f54001b92e5f332c2fb51fae48bc9"
|
|
57
57
|
}
|