Socket
Socket
Sign inDemoInstall

exit

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

6

lib/exit.js

@@ -21,4 +21,2 @@ /*

streams.forEach(function(stream) {
// Prevent further writing.
stream.write = function() {};
// Count drained streams now, but monitor non-drained streams.

@@ -28,3 +26,3 @@ if (stream.bufferSize === 0) {

} else {
stream.once('drain', function() {
stream.write('', 'utf-8', function() {
drainCount++;

@@ -34,2 +32,4 @@ tryToExit();

}
// Prevent further writing.
stream.write = function() {};
});

@@ -36,0 +36,0 @@ // If all streams were already drained, exit now.

{
"name": "exit",
"description": "A replacement for process.exit that ensures stdio are fully drained before exiting.",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/cowboy/node-exit",

@@ -6,0 +6,0 @@ "author": {

@@ -69,2 +69,3 @@ # exit [![Build Status](https://secure.travis-ci.org/cowboy/node-exit.png?branch=master)](http://travis-ci.org/cowboy/node-exit)

## Release History
2013-11-26 - v0.1.2 - Fixed a bug with hanging processes.
2013-09-26 - v0.1.1 - Fixed some bugs. It seems to actually work now!

@@ -71,0 +72,0 @@ 2013-09-20 - v0.1.0 - Initial release.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc