@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/browser.js.map +1 -1
- package/dist/index.cjs +7 -8
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +7 -8
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
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((
|
|
690
|
-
if (Number(b[1]) !== Number(
|
|
691
|
-
return String(
|
|
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((
|
|
782
|
-
if (b.totalBytes !==
|
|
783
|
-
if (b.requests !==
|
|
784
|
-
return String(
|
|
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),
|