@flowscripter/dynamic-cli-framework 1.4.2 → 1.4.3
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
|
@@ -29,7 +29,7 @@ export default class PowerShellShellHandler implements ShellHandler {
|
|
|
29
29
|
|
|
30
30
|
validateEnvironment(): Promise<boolean> {
|
|
31
31
|
try {
|
|
32
|
-
const result = Bun.spawnSync(["pwsh", "--version"]);
|
|
32
|
+
const result = Bun.spawnSync(["pwsh", "--version"], { timeout: 2000 });
|
|
33
33
|
if (result.exitCode === 0) {
|
|
34
34
|
return Promise.resolve(true);
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ export default class PowerShellShellHandler implements ShellHandler {
|
|
|
37
37
|
// try powershell fallback
|
|
38
38
|
}
|
|
39
39
|
try {
|
|
40
|
-
const result = Bun.spawnSync(["powershell", "-Command", "echo ok"]);
|
|
40
|
+
const result = Bun.spawnSync(["powershell", "-Command", "echo ok"], { timeout: 2000 });
|
|
41
41
|
return Promise.resolve(result.exitCode === 0);
|
|
42
42
|
} catch {
|
|
43
43
|
return Promise.resolve(false);
|