hydra-express
Advanced tools
Comparing version 1.0.10 to 1.1.0
19
index.js
@@ -402,4 +402,14 @@ /** | ||
}); | ||
process.on('SIGTERM', () => process.emit('cleanup')); | ||
process.on('SIGINT', () => process.emit('cleanup')); | ||
process.on('SIGTERM', () => { | ||
this.log('fatal', 'Received SIGTERM'); | ||
process.emit('cleanup'); | ||
}); | ||
process.on('SIGINT', () => { | ||
this.log('fatal', 'Received SIGINT'); | ||
process.emit('cleanup'); | ||
}); | ||
process.on('unhandledRejection', (reason, _p) => { | ||
this.log('fatal', reason); | ||
process.emit('cleanup'); | ||
}); | ||
process.on('uncaughtException', (err) => { | ||
@@ -486,7 +496,2 @@ let stack = err.stack; | ||
app.get(`/_config/${this.config.hydra.serviceName}`, (req, res) => { | ||
this.sendResponse(HTTP_OK, res, {result: this.config}); | ||
}); | ||
hydra.registerRoutes([`[GET]/_config/${this.config.hydra.serviceName}`]); | ||
app.use('/*', (req, res) => { | ||
@@ -493,0 +498,0 @@ res.sendFile(path.resolve(this.config.appPath + '/index.html')); |
{ | ||
"name": "hydra-express", | ||
"version": "1.0.10", | ||
"version": "1.1.0", | ||
"description": "A module which wraps Hydra and ExpressJS to provide an out of the box microservice which can support API routes and handlers.", | ||
@@ -45,3 +45,3 @@ "author": { | ||
"express": "4.15.2", | ||
"hydra": "1.0.8", | ||
"hydra": "1.1.0", | ||
"fwsp-jsutils": "1.0.9", | ||
@@ -48,0 +48,0 @@ "fwsp-jwt-auth": "0.0.8", |
@@ -38,1 +38,3 @@ ![logo](hydra-express.png) | ||
* [Building a Microservices Example Game with Distributed Messaging](https://community.risingstack.com/building-a-microservices-example-game-with-distributed-messaging/) | ||
* [Deploying Node.js Microservices to AWS using Docker](https://community.risingstack.com/deploying-node-js-microservices-to-aws-using-docker/) | ||
* [Using Docker Swarm for Deploying Node.js Microservices](https://community.risingstack.com/using-docker-swarm-for-deploying-nodejs-microservices/) |
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
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
903730
846
40
+ Addedhydra@1.1.0(transitive)
- Removedhydra@1.0.8(transitive)
Updatedhydra@1.1.0