@neat.is/core 0.10.2 → 0.10.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/{chunk-CAGAHYDB.js → chunk-DLQNMU3R.js} +2 -2
- package/dist/{chunk-TXKOAART.js → chunk-LNIVRE4L.js} +6 -8
- package/dist/{chunk-TXKOAART.js.map → chunk-LNIVRE4L.js.map} +1 -1
- package/dist/cli.cjs +75 -40
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +72 -35
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +5 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/neatd.cjs +5 -7
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +2 -2
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +2 -2
- /package/dist/{chunk-CAGAHYDB.js.map → chunk-DLQNMU3R.js.map} +0 -0
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
startStalenessLoop,
|
|
34
34
|
touchLastSeen,
|
|
35
35
|
writeAtomically
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LNIVRE4L.js";
|
|
37
37
|
import {
|
|
38
38
|
assertBindAuthority,
|
|
39
39
|
buildOtelReceiver,
|
|
@@ -1946,4 +1946,4 @@ export {
|
|
|
1946
1946
|
resolveHost,
|
|
1947
1947
|
startDaemon
|
|
1948
1948
|
};
|
|
1949
|
-
//# sourceMappingURL=chunk-
|
|
1949
|
+
//# sourceMappingURL=chunk-DLQNMU3R.js.map
|
|
@@ -17001,14 +17001,12 @@ async function readLockPid(lockPath) {
|
|
|
17001
17001
|
async function classifyLockHolder(lockPath, probe = defaultLockHolderProbe) {
|
|
17002
17002
|
const lockPid = await readLockPid(lockPath);
|
|
17003
17003
|
const daemonPid = await probe.daemonPidFromFile();
|
|
17004
|
-
if (daemonPid !== void 0 && daemonPid !== process.pid && probe.isPidAlive(daemonPid) && // The lock already names the daemon, or the daemon answers on its port.
|
|
17005
|
-
// Either confirms a live daemon is in the picture (the second guards
|
|
17006
|
-
// against a stale pidfile whose PID got reused).
|
|
17007
|
-
(daemonPid === lockPid || await probe.daemonResponds())) {
|
|
17008
|
-
return { kind: "daemon", pid: daemonPid };
|
|
17009
|
-
}
|
|
17010
17004
|
if (lockPid !== void 0 && lockPid !== process.pid && probe.isPidAlive(lockPid)) {
|
|
17011
|
-
return { kind: "command", pid: lockPid };
|
|
17005
|
+
return { kind: lockPid === daemonPid ? "daemon" : "command", pid: lockPid };
|
|
17006
|
+
}
|
|
17007
|
+
if (daemonPid !== void 0 && daemonPid !== process.pid && probe.isPidAlive(daemonPid) && // Guards against a stale pidfile whose PID got reused.
|
|
17008
|
+
await probe.daemonResponds()) {
|
|
17009
|
+
return { kind: "daemon", pid: daemonPid };
|
|
17012
17010
|
}
|
|
17013
17011
|
return { kind: "stale" };
|
|
17014
17012
|
}
|
|
@@ -23532,4 +23530,4 @@ export {
|
|
|
23532
23530
|
deprovisionConnector,
|
|
23533
23531
|
buildApi
|
|
23534
23532
|
};
|
|
23535
|
-
//# sourceMappingURL=chunk-
|
|
23533
|
+
//# sourceMappingURL=chunk-LNIVRE4L.js.map
|