querysub 0.208.0 → 0.209.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.208.0",
3
+ "version": "0.209.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -114,12 +114,11 @@ async function getTmuxPPID(pid: string) {
114
114
  }
115
115
  const isScreenRunningProcess = measureWrap(async function isScreenRunningProcess(pid: string): Promise<boolean> {
116
116
  try {
117
- const prefix = getTmuxPrefix();
118
117
  let ppid = (await getTmuxProcessInfo(pid))?.PPID;
119
118
  if (!ppid) return false;
120
119
  let parentCommand = (await getTmuxProcessInfo(ppid))?.CMD;
121
120
  let execName = parentCommand?.split("/").at(-1);
122
- return execName === "tmux";
121
+ return execName !== "tmux";
123
122
  } catch (e: any) {
124
123
  console.warn(`Error checking if screen is running for ${pid}: ${e.stack}`);
125
124
  return false;