New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@oclif/command

Package Overview
Dependencies
Maintainers
5
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/command - npm Package Compare versions

Comparing version 1.5.10 to 1.5.11

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [1.5.11](https://github.com/oclif/command/compare/v1.5.10...v1.5.11) (2019-02-27)
### Bug Fixes
* handle epipe errors ([61d3a29](https://github.com/oclif/command/commit/61d3a29))
## [1.5.10](https://github.com/oclif/command/compare/v1.5.9...v1.5.10) (2019-02-11)

@@ -2,0 +11,0 @@

@@ -71,2 +71,7 @@ import * as Config from '@oclif/config';

protected _version(): never;
/**
* swallows stdout epipe errors
* this occurs when stdout closes such as when piping to head
*/
protected _swallowEPIPE(): void;
}

@@ -67,2 +67,3 @@ "use strict";

g['http-call'].userAgent = this.config.userAgent;
this._swallowEPIPE();
if (this._helpOverride())

@@ -128,2 +129,13 @@ return this._help();

}
/**
* swallows stdout epipe errors
* this occurs when stdout closes such as when piping to head
*/
_swallowEPIPE() {
process.stdout.on('error', err => {
if (err && err.code === 'EPIPE')
return;
throw err;
});
}
}

@@ -130,0 +142,0 @@ Command._base = `${pjson.name}@${pjson.version}`;

2

package.json
{
"name": "@oclif/command",
"description": "oclif base command",
"version": "1.5.10",
"version": "1.5.11",
"author": "Jeff Dickey @jdxcode",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/command/issues",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc