@adhdev/daemon-standalone 0.9.13 → 0.9.14
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
CHANGED
|
@@ -46521,10 +46521,14 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
46521
46521
|
currentInstalled = parsed?.dependencies?.[pkgName]?.version || null;
|
|
46522
46522
|
} catch {
|
|
46523
46523
|
}
|
|
46524
|
-
|
|
46524
|
+
const runningVersion = typeof this.deps.statusVersion === "string" ? this.deps.statusVersion.trim().replace(/^v/, "") : null;
|
|
46525
|
+
if (currentInstalled === latest && runningVersion === latest) {
|
|
46525
46526
|
LOG2.info("Upgrade", `Already on latest version v${latest}; skipping install`);
|
|
46526
46527
|
return { success: true, upgraded: false, alreadyLatest: true, version: latest };
|
|
46527
46528
|
}
|
|
46529
|
+
if (currentInstalled === latest && runningVersion && runningVersion !== latest) {
|
|
46530
|
+
LOG2.info("Upgrade", `Installed package is v${latest}, but running daemon is v${runningVersion}; scheduling restart`);
|
|
46531
|
+
}
|
|
46528
46532
|
spawnDetachedDaemonUpgradeHelper({
|
|
46529
46533
|
packageName: pkgName,
|
|
46530
46534
|
targetVersion: latest,
|