@xhmikosr/bin-check
Advanced tools
Comparing version 5.0.2 to 6.0.0
import execa from 'execa'; | ||
import executable from '@xhmikosr/executable'; | ||
import isexe from 'isexe'; | ||
@@ -9,3 +9,3 @@ const binCheck = (bin, args) => { | ||
return executable(bin) | ||
return isexe(bin) | ||
.then(works => { | ||
@@ -26,3 +26,3 @@ if (!works) { | ||
if (!executable.sync(bin)) { | ||
if (!isexe.sync(bin)) { | ||
throw new Error(`Couldn't execute the "${bin}" binary. Make sure it has the right permissions.`); | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "@xhmikosr/bin-check", | ||
"version": "5.0.2", | ||
"version": "6.0.0", | ||
"description": "Check if a binary is working", | ||
@@ -40,4 +40,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@xhmikosr/executable": "^5.0.1", | ||
"execa": "^5.1.1" | ||
"execa": "^5.1.1", | ||
"isexe": "^2.0.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "devDependencies": { |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
3461
2
+ Addedisexe@^2.0.0
- Removed@xhmikosr/executable@^5.0.1
- Removed@xhmikosr/executable@5.0.1(transitive)