google-trends-for-agent 0.2.47 → 0.2.48
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/CHANGELOG.md +5 -0
- package/dist/dsh-client.js +13 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.48 — 2026-11-30
|
|
4
|
+
|
|
5
|
+
### OS-aware restart shortcut in upgrade banner
|
|
6
|
+
- Show the platform-appropriate quit shortcut (`⌘Q` on macOS, `Alt+F4` on Windows, `Ctrl+Q` on Linux, with a neutral fallback when unknown) in the post-upgrade restart instruction banner (`src/client/update-banner.tsx`, `src/client/index.tsx`).
|
|
7
|
+
|
|
3
8
|
## 0.2.47 — 2026-11-30
|
|
4
9
|
|
|
5
10
|
### Reliable one-click upgrade under pnpm minimumReleaseAge & Electron runtime
|
package/dist/dsh-client.js
CHANGED
|
@@ -2260,13 +2260,21 @@ function parseVersionStatus(value) {
|
|
|
2260
2260
|
|
|
2261
2261
|
// src/client/update-banner.tsx
|
|
2262
2262
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
2263
|
-
var CLIENT_VERSION = "0.2.
|
|
2263
|
+
var CLIENT_VERSION = "0.2.48" ? "0.2.48" : null;
|
|
2264
2264
|
var VERSION_URL = "api/gtfa.version";
|
|
2265
2265
|
var PLUGIN_UPGRADE_URL = "api/gtfa.plugin-upgrade";
|
|
2266
2266
|
var DISMISS_STORAGE_KEY = "gtfa.update.dismissed.1";
|
|
2267
2267
|
function template2(text2, values) {
|
|
2268
2268
|
return text2.replace(/\{(\w+)\}/g, (_, key) => String(values[key] ?? ""));
|
|
2269
2269
|
}
|
|
2270
|
+
function detectQuitShortcut(platformHint) {
|
|
2271
|
+
const raw = (platformHint ?? (typeof navigator !== "undefined" ? navigator.userAgentData?.platform || navigator.platform || navigator.userAgent || "" : "")).toLowerCase();
|
|
2272
|
+
if (!raw) return null;
|
|
2273
|
+
if (raw.includes("mac") || raw.includes("darwin")) return "\u2318Q";
|
|
2274
|
+
if (raw.includes("win")) return "Alt+F4";
|
|
2275
|
+
if (raw.includes("linux") || raw.includes("x11")) return "Ctrl+Q";
|
|
2276
|
+
return null;
|
|
2277
|
+
}
|
|
2270
2278
|
async function loadVersionStatus(refresh = false, signal) {
|
|
2271
2279
|
try {
|
|
2272
2280
|
const response = await fetch(refresh ? `${VERSION_URL}?refresh=1` : VERSION_URL, {
|
|
@@ -2477,6 +2485,7 @@ function UpdateBanner({
|
|
|
2477
2485
|
] });
|
|
2478
2486
|
}
|
|
2479
2487
|
if (upgradeDoneVersion) {
|
|
2488
|
+
const quitShortcut = detectQuitShortcut();
|
|
2480
2489
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("aside", { className: "gtfa-update-banner warn", role: "status", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "gtfa-update-row", children: [
|
|
2481
2490
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "gtfa-update-icon", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "check", size: 14 }) }),
|
|
2482
2491
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "gtfa-update-copy", children: [
|
|
@@ -2489,7 +2498,7 @@ function UpdateBanner({
|
|
|
2489
2498
|
upgradeDoneVersion
|
|
2490
2499
|
] })
|
|
2491
2500
|
] }),
|
|
2492
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "gtfa-update-sub", children: template2(t("updateDoneSub"), { version: upgradeDoneVersion }) })
|
|
2501
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "gtfa-update-sub", children: quitShortcut ? template2(t("updateDoneSubShortcut"), { version: upgradeDoneVersion, shortcut: quitShortcut }) : template2(t("updateDoneSub"), { version: upgradeDoneVersion }) })
|
|
2493
2502
|
] })
|
|
2494
2503
|
] }) });
|
|
2495
2504
|
}
|
|
@@ -4626,6 +4635,7 @@ var EN = {
|
|
|
4626
4635
|
updateUpgrading: "Upgrading\u2026",
|
|
4627
4636
|
updateDoneTitle: "Upgrade installed \u2014 restart dsh",
|
|
4628
4637
|
updateDoneSub: "Installed v{version} into this profile. Fully quit and reopen dsh to load the new version.",
|
|
4638
|
+
updateDoneSubShortcut: "Installed v{version} into this profile. Press {shortcut} to fully quit and reopen dsh.",
|
|
4629
4639
|
updateFailedFallback: "Automatic upgrade failed. Run the command below in your terminal instead.",
|
|
4630
4640
|
updateShowSteps: "Upgrade steps",
|
|
4631
4641
|
updateHideSteps: "Hide steps",
|
|
@@ -4972,6 +4982,7 @@ var ZH = {
|
|
|
4972
4982
|
updateUpgrading: "\u6B63\u5728\u5347\u7EA7\u2026",
|
|
4973
4983
|
updateDoneTitle: "\u5DF2\u5B89\u88C5\u65B0\u7248\u672C\uFF0C\u8BF7\u91CD\u542F dsh",
|
|
4974
4984
|
updateDoneSub: "\u5DF2\u5C06 v{version} \u5B89\u88C5\u5230\u5F53\u524D profile\u3002\u8BF7\u5B8C\u5168\u9000\u51FA\u5E76\u91CD\u65B0\u6253\u5F00\u684C\u9762\u7AEF / dsh \u4EE5\u751F\u6548\u3002",
|
|
4985
|
+
updateDoneSubShortcut: "\u5DF2\u5C06 v{version} \u5B89\u88C5\u5230\u5F53\u524D profile\u3002\u6309 {shortcut} \u5B8C\u5168\u9000\u51FA\u5E76\u91CD\u65B0\u6253\u5F00\u684C\u9762\u7AEF / dsh \u4EE5\u751F\u6548\u3002",
|
|
4975
4986
|
updateFailedFallback: "\u81EA\u52A8\u5347\u7EA7\u672A\u6210\u529F\uFF0C\u8BF7\u590D\u5236\u4E0B\u65B9\u547D\u4EE4\u5728\u7EC8\u7AEF\u8FD0\u884C\u3002",
|
|
4976
4987
|
updateShowSteps: "\u5347\u7EA7\u6B65\u9AA4",
|
|
4977
4988
|
updateHideSteps: "\u6536\u8D77\u6B65\u9AA4",
|