livedesk 0.1.255 → 0.1.256

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.
Files changed (2) hide show
  1. package/bin/livedesk.js +1 -1
  2. package/package.json +1 -1
package/bin/livedesk.js CHANGED
@@ -272,7 +272,7 @@ async function collectUnixPortRecords(ports) {
272
272
  const records = [];
273
273
  for (const port of ports) {
274
274
  const lsof = await runQuiet('lsof', ['-nP', '-ti', `tcp:${port}`, '-sTCP:LISTEN']);
275
- if (!lsof.ok && !lsof.stdout) {
275
+ if (lsof.error?.code === 'ENOENT') {
276
276
  throw new Error(`Could not inspect listening port TCP ${port}: ${lsof.stderr || lsof.error?.message || 'lsof failed'}`);
277
277
  }
278
278
  const pids = [...new Set(lsof.stdout.split(/\r?\n/).map(value => Number(value.trim())).filter(Number.isInteger))];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livedesk",
3
- "version": "0.1.255",
3
+ "version": "0.1.256",
4
4
  "description": "LiveDesk Hub and client launcher",
5
5
  "type": "module",
6
6
  "bin": {