Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graceful-process

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graceful-process - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

exit.js

6

History.md
1.2.0 / 2018-03-02
==================
**features**
* [[`0f0069c`](http://github.com/node-modules/graceful-process/commit/0f0069cb5f97ae1f4f6c80b0b6f5d5f7e6f9ae4c)] - feat: add beforeExit options (#4) (Haoliang Gao <<sakura9515@gmail.com>>)
1.1.0 / 2018-01-17

@@ -3,0 +9,0 @@ ==================

8

index.js
'use strict';
const cluster = require('cluster');
const getExitFunction = require('./exit');
const init = Symbol('graceful-process-init');

@@ -32,2 +34,4 @@

const exit = getExitFunction(options.beforeExit, logger, label);
// https://github.com/eggjs/egg-cluster/blob/master/lib/agent_worker.js#L35

@@ -37,3 +41,3 @@ // exit gracefully

printLogLevels.info && logger.info('[%s] receive signal SIGTERM, exiting with code:0', label);
process.exit(0);
exit(0);
});

@@ -61,3 +65,3 @@

logger.error('[%s] receive disconnect event on child_process fork mode, exiting with code:110', label);
process.exit(110);
exit(110);
});

@@ -64,0 +68,0 @@ });

{
"name": "graceful-process",
"version": "1.1.0",
"version": "1.2.0",
"description": "graceful exit process even parent exit on SIGKILL.",
"files": [
"index.js"
"index.js",
"exit.js"
],

@@ -14,2 +15,3 @@ "scripts": {

"autod": "autod",
"pkgfiles": "egg-bin pkgfiles",
"ci": "npm run lint && npm run cov"

@@ -26,13 +28,17 @@ },

"license": "MIT",
"dependencies": {},
"dependencies": {
"is-type-of": "^1.2.0",
"once": "^1.4.0"
},
"devDependencies": {
"autod": "^2.8.0",
"coffee": "^4.0.1",
"autod": "^3.0.1",
"coffee": "^4.1.0",
"cross-env": "^5.0.1",
"egg-bin": "^4.0.4",
"egg-bin": "^4.3.7",
"egg-ci": "^1.8.0",
"eslint": "^4.0.0",
"eslint-config-egg": "^4.2.1",
"mz-modules": "^1.0.0",
"urllib": "^2.22.0"
"eslint": "^4.18.1",
"eslint-config-egg": "^7.0.0",
"mm": "^2.2.0",
"mz-modules": "^2.1.0",
"urllib": "^2.26.0"
},

@@ -39,0 +45,0 @@ "ci": {

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