extension-install 4.0.26 → 4.0.28
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/module.cjs +8 -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
|
}
|