@percy/core 1.29.4-beta.4 → 1.29.4-beta.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.
- package/dist/network.js +4 -0
- package/package.json +8 -8
package/dist/network.js
CHANGED
|
@@ -393,6 +393,7 @@ async function sendResponseResource(network, request, session) {
|
|
|
393
393
|
errorReason: 'Aborted'
|
|
394
394
|
});
|
|
395
395
|
} else if (resource && (resource.root || resource.provided || !disableCache)) {
|
|
396
|
+
// Don't rename the below log line as it is used in getting network logs in api
|
|
396
397
|
log.debug(resource.root ? '- Serving root resource' : '- Resource cache hit', meta);
|
|
397
398
|
await send('Fetch.fulfillRequest', {
|
|
398
399
|
requestId: request.interceptId,
|
|
@@ -478,10 +479,12 @@ async function saveResponseResource(network, request) {
|
|
|
478
479
|
let resource = network.intercept.getResource(url);
|
|
479
480
|
if (!resource || !resource.root && !resource.provided && disableCache) {
|
|
480
481
|
try {
|
|
482
|
+
// Don't rename the below log line as it is used in getting network logs in api
|
|
481
483
|
log.debug(`Processing resource: ${url}`, meta);
|
|
482
484
|
let shouldCapture = response && hostnameMatches(allowedHostnames, url);
|
|
483
485
|
let body = shouldCapture && (await response.buffer());
|
|
484
486
|
|
|
487
|
+
// Don't rename the below log line as it is used in getting network logs in api
|
|
485
488
|
/* istanbul ignore if: first check is a sanity check */
|
|
486
489
|
if (!response) {
|
|
487
490
|
return log.debug('- Skipping no response', meta);
|
|
@@ -524,6 +527,7 @@ async function saveResponseResource(network, request) {
|
|
|
524
527
|
log.debug(`- sha: ${resource.sha}`, meta);
|
|
525
528
|
log.debug(`- mimetype: ${resource.mimetype}`, meta);
|
|
526
529
|
} catch (error) {
|
|
530
|
+
// Don't rename the below log line as it is used in getting network logs in api
|
|
527
531
|
log.debug(`Encountered an error processing resource: ${url}`, meta);
|
|
528
532
|
log.debug(error, meta);
|
|
529
533
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.29.4-beta.
|
|
3
|
+
"version": "1.29.4-beta.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test:types": "tsd"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@percy/client": "1.29.4-beta.
|
|
47
|
-
"@percy/config": "1.29.4-beta.
|
|
48
|
-
"@percy/dom": "1.29.4-beta.
|
|
49
|
-
"@percy/logger": "1.29.4-beta.
|
|
50
|
-
"@percy/webdriver-utils": "1.29.4-beta.
|
|
46
|
+
"@percy/client": "1.29.4-beta.5",
|
|
47
|
+
"@percy/config": "1.29.4-beta.5",
|
|
48
|
+
"@percy/dom": "1.29.4-beta.5",
|
|
49
|
+
"@percy/logger": "1.29.4-beta.5",
|
|
50
|
+
"@percy/webdriver-utils": "1.29.4-beta.5",
|
|
51
51
|
"content-disposition": "^0.5.4",
|
|
52
52
|
"cross-spawn": "^7.0.3",
|
|
53
53
|
"extract-zip": "^2.0.1",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"micromatch": "^4.0.6",
|
|
56
56
|
"mime-types": "^2.1.34",
|
|
57
57
|
"pako": "^2.1.0",
|
|
58
|
-
"path-to-regexp": "^6.
|
|
58
|
+
"path-to-regexp": "^6.3.0",
|
|
59
59
|
"rimraf": "^3.0.2",
|
|
60
60
|
"ws": "^8.17.1",
|
|
61
61
|
"yaml": "^2.4.1"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "aa585ef0d0cea47653ca7e64e6e2928f0a0ab2c9"
|
|
64
64
|
}
|