@skrillex1224/playwright-toolkit 2.1.168 → 2.1.170

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 CHANGED
@@ -1825,11 +1825,11 @@ var Launch = {
1825
1825
  const requestHandler = (req) => {
1826
1826
  const requestUrl = req.url();
1827
1827
  const resourceType = req.resourceType();
1828
- if (launchProxy) {
1828
+ const matched = byPassDomains.length > 0 ? findMatchedByPassRule(byPassRules, requestUrl) : null;
1829
+ if (launchProxy && !matched) {
1829
1830
  recordProxyMeterResourceType(requestUrl, resourceType);
1830
1831
  }
1831
1832
  if (!enableByPassLogger || byPassDomains.length === 0) return;
1832
- const matched = findMatchedByPassRule(byPassRules, requestUrl);
1833
1833
  if (!matched || !matched.rule) return;
1834
1834
  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}`);
1835
1835
  };