@xhmikosr/bin-check
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -1,3 +0,3 @@ | ||
import execa from 'execa'; | ||
import isexe from 'isexe'; | ||
import {execa, execaSync} from 'execa'; | ||
import {isexe, sync as isexeSync} from 'isexe'; | ||
@@ -25,9 +25,9 @@ const binCheck = (bin, args) => { | ||
if (!isexe.sync(bin)) { | ||
if (!isexeSync(bin)) { | ||
throw new Error(`Couldn't execute the "${bin}" binary. Make sure it has the right permissions.`); | ||
} | ||
return execa.sync(bin, args).exitCode === 0; | ||
return execaSync(bin, args).exitCode === 0; | ||
}; | ||
export default binCheck; |
{ | ||
"name": "@xhmikosr/bin-check", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Check if a binary is working", | ||
"license": "MIT", | ||
"repository": "XhmikosR/bin-check", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/XhmikosR/bin-check.git" | ||
}, | ||
"publishConfig": { | ||
@@ -16,3 +19,3 @@ "access": "public" | ||
"engines": { | ||
"node": "^14.14.0 || >=16.0.0" | ||
"node": ">=18" | ||
}, | ||
@@ -41,9 +44,14 @@ "scripts": { | ||
"dependencies": { | ||
"execa": "^5.1.1", | ||
"isexe": "^2.0.0" | ||
"execa": "^8.0.1", | ||
"isexe": "^3.1.1" | ||
}, | ||
"devDependencies": { | ||
"ava": "^5.3.0", | ||
"xo": "^0.54.2" | ||
"ava": "^6.1.2", | ||
"xo": "^0.58.0" | ||
}, | ||
"xo": { | ||
"rules": { | ||
"unicorn/prevent-abbreviations": "off" | ||
} | ||
} | ||
} |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
3621
0
+ Addedexeca@8.0.1(transitive)
+ Addedget-stream@8.0.1(transitive)
+ Addedhuman-signals@5.0.0(transitive)
+ Addedis-stream@3.0.0(transitive)
+ Addedisexe@3.1.1(transitive)
+ Addedmimic-fn@4.0.0(transitive)
+ Addednpm-run-path@5.3.0(transitive)
+ Addedonetime@6.0.0(transitive)
+ Addedpath-key@4.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstrip-final-newline@3.0.0(transitive)
- Removedexeca@5.1.1(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedhuman-signals@2.1.0(transitive)
- Removedis-stream@2.0.1(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removednpm-run-path@4.0.1(transitive)
- Removedonetime@5.1.2(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstrip-final-newline@2.0.0(transitive)
Updatedexeca@^8.0.1
Updatedisexe@^3.1.1