@ladjs/graceful
Advanced tools
Comparing version 1.1.4 to 1.1.5
10
index.js
@@ -136,5 +136,5 @@ const process = require('process'); | ||
stopBree(bree) { | ||
async stopBree(bree) { | ||
try { | ||
bree.stop(); | ||
await bree.stop(); | ||
} catch (err) { | ||
@@ -145,6 +145,4 @@ this.config.logger.error(err); | ||
stopBrees() { | ||
for (const bree of this.config.brees) { | ||
this.stopBree(bree); | ||
} | ||
async stopBrees() { | ||
await Promise.all(this.config.brees.map((bree) => this.stopBree(bree))); | ||
} | ||
@@ -151,0 +149,0 @@ |
{ | ||
"name": "@ladjs/graceful", | ||
"description": "Gracefully exit server (Koa), database (Mongo/Mongoose), Bree job schedulers, Bull job schedulers, and custom handlers.", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -21,19 +21,19 @@ "bugs": { | ||
"dependencies": { | ||
"debug": "^4.3.2" | ||
"debug": "^4.3.3" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^14.1.0", | ||
"@commitlint/config-conventional": "^14.1.0", | ||
"ava": "^3.15.0", | ||
"@commitlint/cli": "^16.0.2", | ||
"@commitlint/config-conventional": "^16.0.0", | ||
"ava": "^4.0.1", | ||
"codecov": "^3.8.2", | ||
"cross-env": "^7.0.3", | ||
"eslint": "8.2.0", | ||
"eslint": "8.7.0", | ||
"eslint-config-xo-lass": "^1.0.6", | ||
"fixpack": "^4.0.0", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^11.2.6", | ||
"lint-staged": "^12.1.7", | ||
"nyc": "^15.1.0", | ||
"remark-cli": "^10.0.0", | ||
"remark-cli": "^10.0.1", | ||
"remark-preset-github": "^4.0.1", | ||
"xo": "^0.46.4" | ||
"xo": "^0.47.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "engines": { |
12474
204
Updateddebug@^4.3.3