dsh-home-hosted 0.4.3 → 0.4.5
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/docs/DESIGN.md +1 -1
- package/lib/index.js +5 -2
- package/lib/index.js.map +2 -2
- package/lib/types/home-hosted/resolve.d.ts +1 -1
- package/package.json +2 -2
package/docs/DESIGN.md
CHANGED
|
@@ -175,7 +175,7 @@ channel).
|
|
|
175
175
|
`onPortConflict: kill` arrived in home-hosted 0.6.0 and `persistent` in 0.6.3, and
|
|
176
176
|
an older panel handed either key can refuse to *boot* from the config. The plugin
|
|
177
177
|
used to consult the answering panel's version and refuse or drop them
|
|
178
|
-
(`KILL_UNSUPPORTED`). That is gone on purpose: it pins `home-hosted@^0.6.
|
|
178
|
+
(`KILL_UNSUPPORTED`). That is gone on purpose: it pins `home-hosted@^0.6.8` and
|
|
179
179
|
autostarts its own copy, so a panel older than those keys is only reachable by
|
|
180
180
|
deliberately preferring an old global install — and this is pre-1.0. Supporting
|
|
181
181
|
older panels again means bringing that check back from history, not re-deriving
|
package/lib/index.js
CHANGED
|
@@ -1990,10 +1990,13 @@ function resolveHomeHostedHome(stateDir, env = process.env, homeDir = os3.homedi
|
|
|
1990
1990
|
if (configured)
|
|
1991
1991
|
return { home: resolveUnder(configured, homeDir), source: "env" };
|
|
1992
1992
|
const state = resolveUnder(stateDir, homeDir);
|
|
1993
|
+
const own = path6.join(state, "panel");
|
|
1994
|
+
if (fs7.existsSync(own))
|
|
1995
|
+
return { home: own, source: "instance" };
|
|
1993
1996
|
const legacy = path6.join(homeDir, ".home-hosted");
|
|
1994
1997
|
if (isEstablishedInstance(state, homeDir) && hasLivePanel(legacy))
|
|
1995
1998
|
return { home: legacy, source: "legacy" };
|
|
1996
|
-
return { home:
|
|
1999
|
+
return { home: own, source: "instance" };
|
|
1997
2000
|
}
|
|
1998
2001
|
function isEstablishedInstance(stateDir, homeDir) {
|
|
1999
2002
|
if (stateDir === path6.join(homeDir, ".dsh", "dsh-home-hosted"))
|
|
@@ -2175,7 +2178,7 @@ import { createRequire } from "node:module";
|
|
|
2175
2178
|
import fs10 from "node:fs";
|
|
2176
2179
|
import path8 from "node:path";
|
|
2177
2180
|
import process5 from "node:process";
|
|
2178
|
-
var EXPECTED_RANGE = "^0.6.
|
|
2181
|
+
var EXPECTED_RANGE = "^0.6.8";
|
|
2179
2182
|
var MIN_SUPPORTED_VERSION = "0.4.1";
|
|
2180
2183
|
function pinnedManifestPath() {
|
|
2181
2184
|
try {
|