extension-install 4.0.26 → 4.0.27

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/dist/module.cjs +8 -2
  2. package/package.json +1 -1
package/dist/module.cjs CHANGED
@@ -297,7 +297,10 @@ function detectSystemEdgeBinary() {
297
297
  stdio: 'pipe',
298
298
  encoding: 'utf8'
299
299
  });
300
- result.status;
300
+ if (0 === result.status) {
301
+ const first = String(result.stdout || '').split(/\r?\n/).map((line)=>line.trim()).find(Boolean);
302
+ return first || null;
303
+ }
301
304
  return null;
302
305
  }
303
306
  const candidates = [
@@ -312,7 +315,10 @@ function detectSystemEdgeBinary() {
312
315
  stdio: 'pipe',
313
316
  encoding: 'utf8'
314
317
  });
315
- result.status;
318
+ if (0 === result.status) {
319
+ const found = String(result.stdout || '').split(/\r?\n/).map((line)=>line.trim()).find(Boolean);
320
+ if (found) return found;
321
+ }
316
322
  }
317
323
  return null;
318
324
  }
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "name": "extension-install",
26
- "version": "4.0.26",
26
+ "version": "4.0.27",
27
27
  "description": "Managed browser installer/uninstaller for Extension.js",
28
28
  "author": {
29
29
  "name": "Cezar Augusto",