@adhdev/daemon-core 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/package.json
CHANGED
package/src/commands/router.ts
CHANGED
|
@@ -818,10 +818,16 @@ export class DaemonCommandRouter {
|
|
|
818
818
|
// ignore ls failures; upgrade can still proceed
|
|
819
819
|
}
|
|
820
820
|
|
|
821
|
-
|
|
821
|
+
const runningVersion = typeof this.deps.statusVersion === 'string'
|
|
822
|
+
? this.deps.statusVersion.trim().replace(/^v/, '')
|
|
823
|
+
: null;
|
|
824
|
+
if (currentInstalled === latest && runningVersion === latest) {
|
|
822
825
|
LOG.info('Upgrade', `Already on latest version v${latest}; skipping install`);
|
|
823
826
|
return { success: true, upgraded: false, alreadyLatest: true, version: latest };
|
|
824
827
|
}
|
|
828
|
+
if (currentInstalled === latest && runningVersion && runningVersion !== latest) {
|
|
829
|
+
LOG.info('Upgrade', `Installed package is v${latest}, but running daemon is v${runningVersion}; scheduling restart`);
|
|
830
|
+
}
|
|
825
831
|
|
|
826
832
|
spawnDetachedDaemonUpgradeHelper({
|
|
827
833
|
packageName: pkgName,
|