cve.now 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.js +8 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -5,7 +5,7 @@ import { parseArgs } from "node:util";
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@sazabi/cve-now-cli",
8
- version: "0.1.0",
8
+ version: "0.1.1",
9
9
  private: true,
10
10
  type: "module",
11
11
  description: "The cve.now CLI (npm `cve.now`): look up vulnerabilities, read feeds and the cve.now Index, search, and check lockfiles against cve.now's public REST API",
@@ -1568,6 +1568,13 @@ function isHttpUrl(value) {
1568
1568
  return false;
1569
1569
  }
1570
1570
  }
1571
+ function exitQuietlyOnEpipe(error) {
1572
+ if (error.code === "EPIPE")
1573
+ process.exit(EXIT.ok);
1574
+ throw error;
1575
+ }
1576
+ process.stdout.on("error", exitQuietlyOnEpipe);
1577
+ process.stderr.on("error", exitQuietlyOnEpipe);
1571
1578
  process.exitCode = await main(process.argv.slice(2));
1572
1579
  export {
1573
1580
  main
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cve.now",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Look up vulnerabilities, read cve.now feeds and the cve.now Index, search, and check lockfiles from the terminal or CI. Free, no signup.",
5
5
  "keywords": [
6
6
  "cve",