Socket
Socket
Sign inDemoInstall

@ladjs/graceful

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ladjs/graceful - npm Package Compare versions

Comparing version 1.0.5 to 1.1.2

index.d.ts

5

index.js

@@ -0,1 +1,2 @@

const process = require('process');
const debug = require('debug')('@ladjs/graceful');

@@ -69,7 +70,7 @@

// <https://github.com/remy/nodemon#controlling-shutdown-of-your-script>
['SIGTERM', 'SIGHUP', 'SIGINT', 'SIGUSR2'].forEach((sig) => {
for (const sig of ['SIGTERM', 'SIGHUP', 'SIGINT', 'SIGUSR2']) {
process.once(sig, async () => {
await this.exit(sig);
});
});
}
}

@@ -76,0 +77,0 @@

57

package.json
{
"name": "@ladjs/graceful",
"description": "Gracefully exit server (Koa), database (Mongo/Mongoose), Bree job schedulers, Bull job schedulers, and custom handlers.",
"version": "1.0.5",
"version": "1.1.2",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",

@@ -17,22 +17,23 @@ "bugs": {

"Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
"Felix Mosheev (https://github.com/felixmosh)"
"Felix Mosheev (https://github.com/felixmosh)",
"Nicholai Nissen <nicholainissen@gmail.com> (https://nicholai.dev)"
],
"dependencies": {
"debug": "^4.2.0"
"debug": "^4.3.2"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"ava": "^3.13.0",
"codecov": "^3.8.0",
"cross-env": "^7.0.2",
"eslint": "7.12.0",
"eslint-config-xo-lass": "^1.0.4",
"fixpack": "^3.0.6",
"husky": "^4.3.0",
"lint-staged": "^10.4.2",
"@commitlint/cli": "^14.1.0",
"@commitlint/config-conventional": "^14.1.0",
"ava": "^3.15.0",
"codecov": "^3.8.2",
"cross-env": "^7.0.3",
"eslint": "8.2.0",
"eslint-config-xo-lass": "^1.0.6",
"fixpack": "^4.0.0",
"husky": "^7.0.4",
"lint-staged": "^11.2.6",
"nyc": "^15.1.0",
"remark-cli": "^9.0.0",
"remark-preset-github": "^3.0.4",
"xo": "^0.34.1"
"remark-cli": "^10.0.0",
"remark-preset-github": "^4.0.1",
"xo": "^0.46.4"
},

@@ -42,9 +43,7 @@ "engines": {

},
"files": [
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/ladjs/graceful",
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"keywords": [

@@ -83,12 +82,9 @@ "bree",

"*.js": [
"xo --fix",
"git add"
"xo --fix"
],
"*.md": [
"remark . -qfo",
"git add"
"remark . -qfo"
],
"package.json": [
"fixpack",
"git add"
"fixpack"
]

@@ -102,2 +98,5 @@ },

},
"publishConfig": {
"access": "public"
},
"remarkConfig": {

@@ -115,5 +114,7 @@ "plugins": [

"lint": "xo && remark . -qfo",
"prepare": "husky install",
"test": "npm run lint && npm run test-coverage",
"test-coverage": "cross-env NODE_ENV=test nyc ava"
},
"types": "index.d.ts",
"xo": {

@@ -120,0 +121,0 @@ "prettier": true,

@@ -63,6 +63,7 @@ # [**@ladjs/graceful**](https://github.com/ladjs/graceful)

| Name | Website |
| ----------------- | ------------------------------ |
| **Nick Baugh** | <http://niftylettuce.com/> |
| **Felix Mosheev** | <https://github.com/felixmosh> |
| Name | Website |
| ------------------- | ------------------------------ |
| **Nick Baugh** | <http://niftylettuce.com/> |
| **Felix Mosheev** | <https://github.com/felixmosh> |
| **Nicholai Nissen** | <https://nicholai.dev> |

@@ -69,0 +70,0 @@

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