bin-version-check
Advanced tools
Comparing version 5.1.0 to 6.0.0
import semver from 'semver'; | ||
import binaryVersion from 'bin-version'; | ||
import binaryVersion from 'binary-version'; | ||
import semverTruncate from 'semver-truncate'; | ||
@@ -20,5 +20,5 @@ | ||
const error = new Error(`${binary} ${version} doesn't satisfy the version requirement of ${semverRange}`); | ||
const error = new Error(`${binary} ${version} does not satisfy the version requirement of ${semverRange}`); | ||
error.name = 'InvalidBinaryVersion'; | ||
throw error; | ||
} |
{ | ||
"name": "bin-version-check", | ||
"version": "5.1.0", | ||
"version": "6.0.0", | ||
"description": "Check whether a binary version satisfies a semver range", | ||
@@ -15,4 +15,5 @@ "license": "MIT", | ||
"exports": "./index.js", | ||
"sideEffects": false, | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=18" | ||
}, | ||
@@ -38,10 +39,10 @@ "scripts": { | ||
"dependencies": { | ||
"bin-version": "^6.0.0", | ||
"semver": "^7.5.3", | ||
"binary-version": "^7.1.0", | ||
"semver": "^7.6.0", | ||
"semver-truncate": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^4.3.3", | ||
"xo": "^0.45.0" | ||
"ava": "^6.1.2", | ||
"xo": "^0.58.0" | ||
} | ||
} |
@@ -9,9 +9,9 @@ # bin-version-check | ||
```sh | ||
npm install bin-version-check | ||
``` | ||
$ npm install bin-version-check | ||
``` | ||
## Usage | ||
``` | ||
```console | ||
$ curl --version | ||
@@ -18,0 +18,0 @@ curl 7.30.0 (x86_64-apple-darwin13.0) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3782
1
+ Addedbinary-version@^7.1.0
+ Addedbinary-version@7.1.0(transitive)
+ Addedconvert-hrtime@5.0.0(transitive)
+ Addedexeca@8.0.1(transitive)
+ Addedfind-versions@6.0.0(transitive)
+ Addedfunction-timeout@1.0.2(transitive)
+ Addedget-stream@8.0.1(transitive)
+ Addedhuman-signals@5.0.0(transitive)
+ Addedis-stream@3.0.0(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)
+ Addedsuper-regex@1.0.0(transitive)
+ Addedtime-span@5.1.0(transitive)
- Removedbin-version@^6.0.0
- Removedbin-version@6.0.0(transitive)
- Removedexeca@5.1.1(transitive)
- Removedfind-versions@5.1.0(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)
Updatedsemver@^7.6.0