auq-mcp-server 2.6.2 → 2.6.3
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/package.json +1 -1
- package/dist/src/update/checker.js +3 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -62,7 +62,9 @@ export class UpdateChecker {
|
|
|
62
62
|
try {
|
|
63
63
|
// 1. Check cache first
|
|
64
64
|
const cache = await readCache();
|
|
65
|
-
|
|
65
|
+
// Only trust cache if fresh AND cached latest >= current version.
|
|
66
|
+
// If current > cached latest (user upgraded), cache is stale — must refetch from npm.
|
|
67
|
+
if (cache && isCacheFresh(cache) && !isNewer(cache.latestVersion, this.currentVersion)) {
|
|
66
68
|
if (!isNewer(this.currentVersion, cache.latestVersion))
|
|
67
69
|
return null;
|
|
68
70
|
if (shouldSkipVersion(cache, cache.latestVersion))
|