@skrillex1224/playwright-toolkit 2.1.91 → 2.1.92

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
@@ -1350,17 +1350,13 @@ var Sse = {
1350
1350
  initialTimer = null;
1351
1351
  overallTimer = null;
1352
1352
  };
1353
- let streamIndex = 0;
1354
1353
  const workPromise = new Promise((resolve, reject) => {
1355
1354
  page.route(urlPattern, async (route) => {
1356
- streamIndex++;
1357
- const currentStreamIndex = streamIndex;
1358
1355
  const request = route.request();
1359
- const postData = request.postData();
1360
- const postPreview = postData ? postData.substring(0, 1e3) : "(\u65E0POST\u6570\u636E)";
1361
- logger8.info(`[MITM] \u{1F539} \u6D41#${currentStreamIndex} \u62E6\u622A\u8BF7\u6C42: ${request.url()} POST\u9884\u89C8: ${postPreview}`);
1356
+ logger8.info(`[MITM] \u5DF2\u62E6\u622A\u8BF7\u6C42: ${request.url()}`);
1362
1357
  try {
1363
1358
  const headers = await request.allHeaders();
1359
+ const postData = request.postData();
1364
1360
  const urlObj = new import_url.URL(request.url());
1365
1361
  delete headers["accept-encoding"];
1366
1362
  delete headers["content-length"];
@@ -1396,7 +1392,7 @@ var Sse = {
1396
1392
  }
1397
1393
  });
1398
1394
  res.on("end", () => {
1399
- logger8.info(`[MITM] \u{1F539} \u6D41#${currentStreamIndex} \u4E0A\u6E38\u54CD\u5E94\u7ED3\u675F | \u7D2F\u8BA1\u5B57\u7B26\u6570: ${accumulatedText.length}`);
1395
+ logger8.info("[MITM] \u4E0A\u6E38\u54CD\u5E94\u7ED3\u675F");
1400
1396
  clearAllTimers();
1401
1397
  if (onEnd) {
1402
1398
  try {