@leeguoo/pwtk-network-debugger 1.3.6 → 1.3.7
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.esm.js
CHANGED
|
@@ -18093,6 +18093,8 @@ class LiquidGlassScene {
|
|
|
18093
18093
|
await new Promise((resolve) => window.setTimeout(resolve, this.minSnapshotInterval - elapsed));
|
|
18094
18094
|
}
|
|
18095
18095
|
}
|
|
18096
|
+
const containerClass = typeof window !== "undefined" ? window.Container : null;
|
|
18097
|
+
containerClass?.suppressDocumentWriteWarnings?.();
|
|
18096
18098
|
const scale = this.calculateSnapshotScale();
|
|
18097
18099
|
this.capturePromise = html2canvas(document.body, {
|
|
18098
18100
|
scale,
|
|
@@ -18113,6 +18115,7 @@ class LiquidGlassScene {
|
|
|
18113
18115
|
this.pendingBackgroundRefresh = true;
|
|
18114
18116
|
}).finally(() => {
|
|
18115
18117
|
this.capturePromise = null;
|
|
18118
|
+
containerClass?.restoreDocumentWriteWarnings?.();
|
|
18116
18119
|
});
|
|
18117
18120
|
await this.capturePromise;
|
|
18118
18121
|
}
|
|
@@ -18494,7 +18497,7 @@ const _DebugPanel = class _DebugPanel {
|
|
|
18494
18497
|
this.container.style.pointerEvents = "auto";
|
|
18495
18498
|
this.container.innerHTML = `
|
|
18496
18499
|
<div class="debugger-header">
|
|
18497
|
-
<div class="debugger-title">🔓 PWTK 解密小工具 <span style="font-size: 10px; opacity: 0.7;">by Leo v${"1.3.
|
|
18500
|
+
<div class="debugger-title">🔓 PWTK 解密小工具 <span style="font-size: 10px; opacity: 0.7;">by Leo v${"1.3.7"}</span></div>
|
|
18498
18501
|
<div class="debugger-controls">
|
|
18499
18502
|
<button class="debugger-btn" data-action="clear" title="清空"><svg class="debugger-icon" viewBox="0 0 24 24"><path fill="currentColor" d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg></button>
|
|
18500
18503
|
<button class="debugger-btn" data-action="export" title="导出"><svg class="debugger-icon" viewBox="0 0 24 24"><path fill="currentColor" d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg></button>
|
|
@@ -19774,7 +19777,7 @@ if (typeof window !== "undefined") {
|
|
|
19774
19777
|
}
|
|
19775
19778
|
function loadLiquidGlass() {
|
|
19776
19779
|
return new Promise((resolve) => {
|
|
19777
|
-
import("./container-
|
|
19780
|
+
import("./container-fXvGYIU-.mjs").then(() => {
|
|
19778
19781
|
return import("./button-B5OqHDUm.mjs");
|
|
19779
19782
|
}).then(() => {
|
|
19780
19783
|
resolve();
|
|
@@ -19915,7 +19918,7 @@ const _NetworkDebugger = class _NetworkDebugger {
|
|
|
19915
19918
|
}
|
|
19916
19919
|
async checkForUpdates() {
|
|
19917
19920
|
try {
|
|
19918
|
-
const currentVersion = "1.3.
|
|
19921
|
+
const currentVersion = "1.3.7";
|
|
19919
19922
|
logger.info(`[PWTK Update] Checking for updates... Current version: ${currentVersion}`);
|
|
19920
19923
|
const response = await fetch("https://registry.npmjs.org/@leeguoo/pwtk-network-debugger/latest");
|
|
19921
19924
|
const data = await response.json();
|
|
@@ -19935,7 +19938,7 @@ const _NetworkDebugger = class _NetworkDebugger {
|
|
|
19935
19938
|
logger.error("[PWTK Update] Failed to check for updates:", error);
|
|
19936
19939
|
return {
|
|
19937
19940
|
hasUpdate: false,
|
|
19938
|
-
currentVersion: "1.3.
|
|
19941
|
+
currentVersion: "1.3.7"
|
|
19939
19942
|
};
|
|
19940
19943
|
}
|
|
19941
19944
|
}
|