graceful-process
Advanced tools
Comparing version 1.1.0 to 1.2.0
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 @@ ================== |
'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": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
6402
5
82
2
10
1
+ Addedis-type-of@^1.2.0
+ Addedonce@^1.4.0
+ Addedcore-util-is@1.0.3(transitive)
+ Addedis-class-hotfix@0.0.6(transitive)
+ Addedis-type-of@1.4.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedwrappy@1.0.2(transitive)