Comparing version 1.0.0 to 1.0.1
@@ -9,2 +9,6 @@ All notable changes to this project will be documented in this file. | ||
## [1.0.1] - 2021-04-29 | ||
### Fixed | ||
- not very meaningful no/bad command errors | ||
## [1.0.0] - 2021-04-29 | ||
@@ -11,0 +15,0 @@ ### Added |
@@ -198,3 +198,10 @@ #!/usr/bin/env node | ||
.command("*", false, noop, () => { | ||
throw new Error("Unknown command " + process.argv[2]); | ||
yargs_1.default.showHelp(); | ||
console.error(); | ||
if (!process.argv[2]) { | ||
console.error("No command given, did you miss `compress` keyword?"); | ||
return; | ||
} | ||
console.error("Unknown command, did you miss `compress` keyword?"); | ||
process.exit(1); | ||
}) | ||
@@ -201,0 +208,0 @@ .strictOptions(true) |
{ | ||
"name": "brotli-cli", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"repository": "git@github.com:dzek69/brotli-cli.git", | ||
@@ -5,0 +5,0 @@ "author": "Jacek Nowacki", |
@@ -249,3 +249,12 @@ #!/usr/bin/env node | ||
.command("*", false, noop, () => { | ||
throw new Error("Unknown command " + process.argv[2]); | ||
yargs.showHelp(); | ||
console.error(); | ||
if (!process.argv[2]) { | ||
console.error("No command given, did you miss `compress` keyword?"); | ||
return; | ||
} | ||
console.error("Unknown command, did you miss `compress` keyword?"); | ||
// eslint-disable-next-line no-process-exit | ||
process.exit(1); | ||
}) | ||
@@ -252,0 +261,0 @@ // @ts-expect-error Missing TS type |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
295899
3639
0