@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.js
CHANGED
|
@@ -1335,6 +1335,7 @@ var Sse = {
|
|
|
1335
1335
|
if (!autoUnroute) return;
|
|
1336
1336
|
if (unrouteRequested) return;
|
|
1337
1337
|
unrouteRequested = true;
|
|
1338
|
+
logger8.info("[MITM] autoUnroute: \u53D6\u6D88\u540E\u7EED\u62E6\u622A");
|
|
1338
1339
|
page.unroute(urlPattern, routeHandler).catch(() => {
|
|
1339
1340
|
});
|
|
1340
1341
|
};
|
|
@@ -1354,12 +1355,14 @@ var Sse = {
|
|
|
1354
1355
|
};
|
|
1355
1356
|
const routeHandler = async (route) => {
|
|
1356
1357
|
if (firstMatchOnly && hasMatchedOnce) {
|
|
1358
|
+
logger8.info(`[MITM] firstMatchOnly: \u653E\u884C\u540E\u7EED\u8BF7\u6C42: ${route.request().url()}`);
|
|
1357
1359
|
route.continue().catch(() => {
|
|
1358
1360
|
});
|
|
1359
1361
|
return;
|
|
1360
1362
|
}
|
|
1361
1363
|
if (firstMatchOnly && !hasMatchedOnce) {
|
|
1362
1364
|
hasMatchedOnce = true;
|
|
1365
|
+
logger8.info("[MITM] firstMatchOnly: \u547D\u4E2D\u9996\u4E2A\u8BF7\u6C42\uFF0C\u53D6\u6D88\u540E\u7EED\u62E6\u622A");
|
|
1363
1366
|
page.unroute(urlPattern, routeHandler).catch(() => {
|
|
1364
1367
|
});
|
|
1365
1368
|
}
|