@skrillex1224/playwright-toolkit 2.1.99 → 2.1.100
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 +3 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +3 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1362,6 +1362,7 @@ var Sse = {
|
|
|
1362
1362
|
if (!autoUnroute) return;
|
|
1363
1363
|
if (unrouteRequested) return;
|
|
1364
1364
|
unrouteRequested = true;
|
|
1365
|
+
logger8.info("[MITM] autoUnroute: \u53D6\u6D88\u540E\u7EED\u62E6\u622A");
|
|
1365
1366
|
page.unroute(urlPattern, routeHandler).catch(() => {
|
|
1366
1367
|
});
|
|
1367
1368
|
};
|
|
@@ -1381,12 +1382,14 @@ var Sse = {
|
|
|
1381
1382
|
};
|
|
1382
1383
|
const routeHandler = async (route) => {
|
|
1383
1384
|
if (firstMatchOnly && hasMatchedOnce) {
|
|
1385
|
+
logger8.info(`[MITM] firstMatchOnly: \u653E\u884C\u540E\u7EED\u8BF7\u6C42: ${route.request().url()}`);
|
|
1384
1386
|
route.continue().catch(() => {
|
|
1385
1387
|
});
|
|
1386
1388
|
return;
|
|
1387
1389
|
}
|
|
1388
1390
|
if (firstMatchOnly && !hasMatchedOnce) {
|
|
1389
1391
|
hasMatchedOnce = true;
|
|
1392
|
+
logger8.info("[MITM] firstMatchOnly: \u547D\u4E2D\u9996\u4E2A\u8BF7\u6C42\uFF0C\u53D6\u6D88\u540E\u7EED\u62E6\u622A");
|
|
1390
1393
|
page.unroute(urlPattern, routeHandler).catch(() => {
|
|
1391
1394
|
});
|
|
1392
1395
|
}
|