@skrillex1224/playwright-toolkit 2.1.168 → 2.1.169
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.cjs +2 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1797,11 +1797,11 @@ var Launch = {
|
|
|
1797
1797
|
const requestHandler = (req) => {
|
|
1798
1798
|
const requestUrl = req.url();
|
|
1799
1799
|
const resourceType = req.resourceType();
|
|
1800
|
-
|
|
1800
|
+
const matched = byPassDomains.length > 0 ? findMatchedByPassRule(byPassRules, requestUrl) : null;
|
|
1801
|
+
if (launchProxy && !matched) {
|
|
1801
1802
|
recordProxyMeterResourceType(requestUrl, resourceType);
|
|
1802
1803
|
}
|
|
1803
1804
|
if (!enableByPassLogger || byPassDomains.length === 0) return;
|
|
1804
|
-
const matched = findMatchedByPassRule(byPassRules, requestUrl);
|
|
1805
1805
|
if (!matched || !matched.rule) return;
|
|
1806
1806
|
logger7.info(`[\u76F4\u8FDE\u547D\u4E2D] \u89C4\u5219=${matched.rule.pattern} \u57DF\u540D=${matched.hostname} \u8D44\u6E90\u7C7B\u578B=${resourceType} \u65B9\u6CD5=${req.method()} \u5730\u5740=${requestUrl}`);
|
|
1807
1807
|
};
|