arn-browser 0.1.21 → 0.1.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arn-browser",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "A lightweight, browser autmation helper.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -435,20 +435,10 @@ export async function startProxyServer({
435
435
 
436
436
  // Log stats AFTER close so all connectionClosed events have accumulated bytes
437
437
  if (proxy_stats) {
438
- console.log("\n░░ Proxy Stats:");
439
- for (const [type, data] of Object.entries(getProxyStatsFormatted())) {
440
- console.log(` ${type}: { req: ${data.req}, sTx: '${data.sTx}', sRx: '${data.sRx}', tTx: '${data.tTx}', tRx: '${data.tRx}' }`);
441
- }
438
+ console.log("░░ Proxy Stats:", getProxyStatsFormatted());
442
439
  }
443
440
  if (host_stats) {
444
- console.log("░░ Host Stats:");
445
- for (const [type, hosts] of Object.entries(getHostStatsFormatted())) {
446
- console.log(` ${type}: {`);
447
- for (const [host, data] of Object.entries(hosts)) {
448
- console.log(` '${host}': { req: ${data.req}, sTx: '${data.sTx}', sRx: '${data.sRx}', tTx: '${data.tTx}', tRx: '${data.tRx}' }`);
449
- }
450
- console.log(` }`);
451
- }
441
+ console.log("░░ Host Stats:", getHostStatsFormatted());
452
442
  }
453
443
 
454
444
  console.log("░░ Proxy server closed.");