kimiflare 0.8.0 → 0.8.1
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 +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1252,7 +1252,8 @@ async function checkForUpdate(force = false) {
|
|
|
1252
1252
|
if (!force) {
|
|
1253
1253
|
const cached = await readCache();
|
|
1254
1254
|
if (cached) {
|
|
1255
|
-
|
|
1255
|
+
const hasUpdate2 = isNewer(localVersion, cached.latestVersion);
|
|
1256
|
+
return { hasUpdate: hasUpdate2, localVersion, latestVersion: cached.latestVersion };
|
|
1256
1257
|
}
|
|
1257
1258
|
}
|
|
1258
1259
|
const latestVersion = await fetchLatestVersion();
|
|
@@ -1260,7 +1261,7 @@ async function checkForUpdate(force = false) {
|
|
|
1260
1261
|
return { hasUpdate: false, localVersion, latestVersion: null };
|
|
1261
1262
|
}
|
|
1262
1263
|
const hasUpdate = isNewer(localVersion, latestVersion);
|
|
1263
|
-
await writeCache({ checkedAt: Date.now(), latestVersion
|
|
1264
|
+
await writeCache({ checkedAt: Date.now(), latestVersion });
|
|
1264
1265
|
return { hasUpdate, localVersion, latestVersion };
|
|
1265
1266
|
}
|
|
1266
1267
|
async function isGitRepo() {
|
|
@@ -1929,10 +1930,7 @@ function ThemePicker({ themes, current, onPick }) {
|
|
|
1929
1930
|
itemComponent: ({ label, isSelected }) => {
|
|
1930
1931
|
const theme = themes.find((t) => t.label === label);
|
|
1931
1932
|
const color = theme?.accent ?? current.accent;
|
|
1932
|
-
return /* @__PURE__ */ jsx8(Box8, { children: /* @__PURE__ */
|
|
1933
|
-
isSelected ? "\u203A " : " ",
|
|
1934
|
-
label
|
|
1935
|
-
] }) });
|
|
1933
|
+
return /* @__PURE__ */ jsx8(Box8, { children: /* @__PURE__ */ jsx8(Text8, { color, bold: isSelected, dimColor: !isSelected, children: label }) });
|
|
1936
1934
|
}
|
|
1937
1935
|
}
|
|
1938
1936
|
) })
|