@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.cjs CHANGED
@@ -439,7 +439,6 @@ function createInternalLogger(moduleName, explicitLogger) {
439
439
  },
440
440
  warning(message) {
441
441
  baseLogger.warning(message);
442
- a;
443
442
  },
444
443
  info(message) {
445
444
  baseLogger.info(message);
@@ -686,9 +685,9 @@ var resolveResourceTypeMeta = (domain) => {
686
685
  if (!byType || byType.size === 0) {
687
686
  return { resourceType: "", resourceTypeCounts: void 0 };
688
687
  }
689
- const entries = Array.from(byType.entries()).filter(([type, count]) => type && Number(count) > 0).sort((a2, b) => {
690
- if (Number(b[1]) !== Number(a2[1])) return Number(b[1]) - Number(a2[1]);
691
- return String(a2[0]).localeCompare(String(b[0]));
688
+ const entries = Array.from(byType.entries()).filter(([type, count]) => type && Number(count) > 0).sort((a, b) => {
689
+ if (Number(b[1]) !== Number(a[1])) return Number(b[1]) - Number(a[1]);
690
+ return String(a[0]).localeCompare(String(b[0]));
692
691
  });
693
692
  if (entries.length === 0) {
694
693
  return { resourceType: "", resourceTypeCounts: void 0 };
@@ -778,10 +777,10 @@ var normalizeDomainRows = (hosts) => {
778
777
  resourceTypeCounts: resourceTypeMeta.resourceTypeCounts || void 0
779
778
  });
780
779
  }
781
- rows.sort((a2, b) => {
782
- if (b.totalBytes !== a2.totalBytes) return b.totalBytes - a2.totalBytes;
783
- if (b.requests !== a2.requests) return b.requests - a2.requests;
784
- return String(a2.domain).localeCompare(String(b.domain));
780
+ rows.sort((a, b) => {
781
+ if (b.totalBytes !== a.totalBytes) return b.totalBytes - a.totalBytes;
782
+ if (b.requests !== a.requests) return b.requests - a.requests;
783
+ return String(a.domain).localeCompare(String(b.domain));
785
784
  });
786
785
  return {
787
786
  topDomains: rows.slice(0, MAX_TOP_DOMAINS),