@skrillex1224/playwright-toolkit 2.1.221 → 2.1.222

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.js CHANGED
@@ -412,7 +412,6 @@ function createInternalLogger(moduleName, explicitLogger) {
412
412
  },
413
413
  warning(message) {
414
414
  baseLogger.warning(message);
415
- a;
416
415
  },
417
416
  info(message) {
418
417
  baseLogger.info(message);
@@ -658,9 +657,9 @@ var resolveResourceTypeMeta = (domain) => {
658
657
  if (!byType || byType.size === 0) {
659
658
  return { resourceType: "", resourceTypeCounts: void 0 };
660
659
  }
661
- const entries = Array.from(byType.entries()).filter(([type, count]) => type && Number(count) > 0).sort((a2, b) => {
662
- if (Number(b[1]) !== Number(a2[1])) return Number(b[1]) - Number(a2[1]);
663
- return String(a2[0]).localeCompare(String(b[0]));
660
+ const entries = Array.from(byType.entries()).filter(([type, count]) => type && Number(count) > 0).sort((a, b) => {
661
+ if (Number(b[1]) !== Number(a[1])) return Number(b[1]) - Number(a[1]);
662
+ return String(a[0]).localeCompare(String(b[0]));
664
663
  });
665
664
  if (entries.length === 0) {
666
665
  return { resourceType: "", resourceTypeCounts: void 0 };
@@ -750,10 +749,10 @@ var normalizeDomainRows = (hosts) => {
750
749
  resourceTypeCounts: resourceTypeMeta.resourceTypeCounts || void 0
751
750
  });
752
751
  }
753
- rows.sort((a2, b) => {
754
- if (b.totalBytes !== a2.totalBytes) return b.totalBytes - a2.totalBytes;
755
- if (b.requests !== a2.requests) return b.requests - a2.requests;
756
- return String(a2.domain).localeCompare(String(b.domain));
752
+ rows.sort((a, b) => {
753
+ if (b.totalBytes !== a.totalBytes) return b.totalBytes - a.totalBytes;
754
+ if (b.requests !== a.requests) return b.requests - a.requests;
755
+ return String(a.domain).localeCompare(String(b.domain));
757
756
  });
758
757
  return {
759
758
  topDomains: rows.slice(0, MAX_TOP_DOMAINS),