@livedesk/client 0.1.137 → 0.1.138

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.
@@ -1311,7 +1311,10 @@ function remotePolicyAllows(options, command) {
1311
1311
  }
1312
1312
 
1313
1313
  function scheduleClientUpdate(options, payload = {}) {
1314
- const parentPid = Number(process.env.LIVEDESK_CLIENT_PARENT_PID || process.ppid);
1314
+ const configuredParentPid = Number(process.env.LIVEDESK_CLIENT_PARENT_PID || process.ppid);
1315
+ const parentPid = Number.isInteger(configuredParentPid) && configuredParentPid > 1
1316
+ ? configuredParentPid
1317
+ : process.pid;
1315
1318
  if (!Number.isInteger(parentPid) || parentPid <= 1) {
1316
1319
  return Promise.reject(new Error('LiveDesk client launcher process id is unavailable.'));
1317
1320
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livedesk/client",
3
- "version": "0.1.137",
3
+ "version": "0.1.138",
4
4
  "description": "LiveDesk local remote client",
5
5
  "type": "module",
6
6
  "bin": {