Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hydra-express

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydra-express - npm Package Compare versions

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/)
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