offgrid-ai 0.8.1 → 0.8.2
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/package.json +1 -1
- package/src/updates.mjs +1 -4
package/package.json
CHANGED
package/src/updates.mjs
CHANGED
|
@@ -20,10 +20,7 @@ export async function checkForUpdate({ now = Date.now(), fetchImpl = globalThis.
|
|
|
20
20
|
if (cached.currentVersion === currentVersion) {
|
|
21
21
|
return updateResult(currentVersion, cached.latestVersion);
|
|
22
22
|
}
|
|
23
|
-
// Cache is from a different version —
|
|
24
|
-
if (cached.latestVersion && !isNewerVersion(cached.latestVersion, currentVersion)) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
23
|
+
// Cache is from a different installed version — invalidate and refetch
|
|
27
24
|
}
|
|
28
25
|
|
|
29
26
|
try {
|