@percy/core 1.30.10-beta.0 → 1.30.11-beta.0
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/discovery.js +6 -0
- package/package.json +8 -8
package/dist/discovery.js
CHANGED
|
@@ -507,6 +507,12 @@ export function createDiscoveryQueue(percy) {
|
|
|
507
507
|
return resource;
|
|
508
508
|
},
|
|
509
509
|
saveResource: r => {
|
|
510
|
+
const limitResources = process.env.LIMIT_SNAPSHOT_RESOURCES || false;
|
|
511
|
+
const MAX_RESOURCES = Number(process.env.MAX_SNAPSHOT_RESOURCES) || 749;
|
|
512
|
+
if (limitResources && snapshot.resources.size >= MAX_RESOURCES) {
|
|
513
|
+
percy.log.debug(`Skipping resource ${r.url} — resource limit reached`);
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
510
516
|
snapshot.resources.set(r.url, r);
|
|
511
517
|
if (!snapshot.discovery.disableCache) {
|
|
512
518
|
cache.set(r.url, r);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.11-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"test:types": "tsd"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@percy/client": "1.30.
|
|
47
|
-
"@percy/config": "1.30.
|
|
48
|
-
"@percy/dom": "1.30.
|
|
49
|
-
"@percy/logger": "1.30.
|
|
50
|
-
"@percy/monitoring": "1.30.
|
|
51
|
-
"@percy/webdriver-utils": "1.30.
|
|
46
|
+
"@percy/client": "1.30.11-beta.0",
|
|
47
|
+
"@percy/config": "1.30.11-beta.0",
|
|
48
|
+
"@percy/dom": "1.30.11-beta.0",
|
|
49
|
+
"@percy/logger": "1.30.11-beta.0",
|
|
50
|
+
"@percy/monitoring": "1.30.11-beta.0",
|
|
51
|
+
"@percy/webdriver-utils": "1.30.11-beta.0",
|
|
52
52
|
"content-disposition": "^0.5.4",
|
|
53
53
|
"cross-spawn": "^7.0.3",
|
|
54
54
|
"extract-zip": "^2.0.1",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"ws": "^8.17.1",
|
|
62
62
|
"yaml": "^2.4.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "5e4b3eb96a8279b114cec161020fa9ca421f9524"
|
|
65
65
|
}
|