hydra-express
Advanced tools
Comparing version 1.6.4 to 1.6.5
17
index.js
@@ -342,10 +342,13 @@ /** | ||
*/ | ||
let doOnce = 1; | ||
process.on('cleanup', () => { | ||
this._shutdown() | ||
.then(() => { | ||
process.exit(1); | ||
}) | ||
.catch((_err) => { | ||
process.exit(1); | ||
}); | ||
if (doOnce === 1) { | ||
doOnce += 1; | ||
setTimeout(() => { | ||
this._shutdown() | ||
.then(() => { | ||
process.exit(1); | ||
}); | ||
}, 1000); | ||
} | ||
}); | ||
@@ -352,0 +355,0 @@ process.on('unhandledRejection', (reason, _p) => { |
{ | ||
"name": "hydra-express", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"description": "A module which wraps Hydra and ExpressJS to provide an out of the box microservice which can support API routes and handlers.", | ||
@@ -5,0 +5,0 @@ "author": { |
901086
760