@mole-inc/bin-wrapper
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [6.0.1](https://github.com/mole-inc/bin-wrapper/compare/v6.0.0...v6.0.1) (2020-04-24) | ||
### Bug Fixes | ||
* checking version early in `runCheck` ([79529df](https://github.com/mole-inc/bin-wrapper/commit/79529dfef4d71b5ef4454f7f1f610f29f84d6332)) | ||
## [6.0.0](https://github.com/mole-inc/bin-wrapper/compare/v5.0.0...v6.0.0) (2020-04-17) | ||
@@ -7,0 +14,0 @@ |
10
index.js
@@ -133,8 +133,4 @@ 'use strict'; | ||
const bin = this.path(); | ||
await binCheck(bin, cmd).catch(() => { | ||
throw new Error(`The \`${bin}\` binary doesn't seem to work correctly`); | ||
}); | ||
if (this.version()) { | ||
if (JSON.stringify(['--version']) === JSON.stringify(cmd)) { | ||
if (cmd.length === 1 && cmd[0] === '--version') { | ||
return binVersionCheck(bin, this.version()); | ||
@@ -145,2 +141,6 @@ } | ||
} | ||
await binCheck(bin, cmd).catch(() => { | ||
throw new Error(`The \`${bin}\` binary doesn't seem to work correctly`); | ||
}); | ||
} | ||
@@ -147,0 +147,0 @@ |
{ | ||
"name": "@mole-inc/bin-wrapper", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Binary wrapper that makes your programs seamlessly available as local dependencies", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
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
9579