@@ -9,5 +9,7 @@ const { execSync, spawn } = require('child_process'); | ||
| let commands = Array.isArray(executables) ? executables : [executables]; | ||
| return commands.filter(c => { | ||
| return this.isInstalled(c); | ||
| })[0]; | ||
| for (const command of commands) { | ||
| if (this.isInstalled(command)) { | ||
| return command; | ||
| } | ||
| } | ||
| } | ||
@@ -22,3 +24,3 @@ | ||
| try { | ||
| execSync(`which ${executable}`); | ||
| execSync(`which ${executable}`, { stdio:'ignore'}); | ||
| return true; | ||
@@ -25,0 +27,0 @@ } |
+1
-1
| { | ||
| "name": "node-sound", | ||
| "version": "0.0.4", | ||
| "version": "0.0.5", | ||
| "description": "A library to play audio files from nodejs applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
201959
0.02%200
1.01%1
Infinity%