@uipath/rpa-tool 1.198.0 → 1.198.2

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/index.js CHANGED
@@ -2197,7 +2197,7 @@ var {
2197
2197
 
2198
2198
  // src/commander-polyfill.ts
2199
2199
  if (!Command.prototype.trackedAction) {
2200
- Command.prototype.trackedAction = function(context, fn) {
2200
+ Command.prototype.trackedAction = function(context, fn, _properties) {
2201
2201
  return this.action(async (...args) => {
2202
2202
  try {
2203
2203
  await fn(...args);
@@ -43996,6 +43996,16 @@ function ensureSymlink(linkPath, target) {
43996
43996
  function withTrailingSeparator(p) {
43997
43997
  return p.endsWith("/") || p.endsWith("\\") ? p : `${p}/`;
43998
43998
  }
43999
+ // src/process-liveness.ts
44000
+ function isProcessAlive(pid) {
44001
+ try {
44002
+ process.kill(pid, 0);
44003
+ return true;
44004
+ } catch (err) {
44005
+ return err.code === "EPERM";
44006
+ }
44007
+ }
44008
+
43999
44009
  // src/discovery/StudioDiscoveryService.ts
44000
44010
  function getStatusFilePath(processId) {
44001
44011
  return join2(safeTmpDir(), "UiPath", "Studio", `Studio_${processId}.status`);
@@ -44014,14 +44024,6 @@ function parseStatusFileNames(fileNames) {
44014
44024
  }
44015
44025
  return pids;
44016
44026
  }
44017
- function isProcessAlive(pid) {
44018
- try {
44019
- process.kill(pid, 0);
44020
- return true;
44021
- } catch {
44022
- return false;
44023
- }
44024
- }
44025
44027
  function readStatusFile(filePath) {
44026
44028
  let fd;
44027
44029
  try {
@@ -45017,6 +45019,7 @@ var defaultResolverDeps = {
45017
45019
  activeToolName: status.ActiveToolName ?? null
45018
45020
  };
45019
45021
  },
45022
+ isProcessAlive,
45020
45023
  discoverInstances,
45021
45024
  executeCommand(command, args) {
45022
45025
  return execFileSync4(command, args, {