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

hydra

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydra - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

16

index.js

@@ -168,3 +168,3 @@ 'use strict';

this.serviceDescription = this.config.serviceDescription || 'not specified';
this.serviceVersion = this.config.serviceVersion || 'not specified';
this.serviceVersion = this.config.serviceVersion || this._getParentPackageJSONVersion();

@@ -1517,2 +1517,16 @@ // if serviceIP field contains a name rather than a dotted IP address

}
/**
* @name _getParentPackageJSONVersion
* @summary Retreieve the vesion from the host app's package.json file.
* @return {string} version - package version
*/
_getParentPackageJSONVersion() {
let version = 'not specified';
if (process.argv[1]) {
const path = require('path');
version = require(`${path.dirname(process.argv[1])}/package.json`).version;
}
return version;
}
}

@@ -1519,0 +1533,0 @@

2

package.json
{
"name": "hydra",
"version": "1.0.4",
"version": "1.0.5",
"author": "Carlos Justiniano",

@@ -5,0 +5,0 @@ "contributors": [

@@ -9,6 +9,4 @@ ![](hydra.png)

[What is Hydra? (2min read)](https://medium.com/@cjus/what-is-hydra-226db88fc075#.vb1ha78tn)
[See our quick start guide](https://www.hydramicroservice.com/docs/quick-start/)
> Hydra replies on an instance of Redis, if you need to learn more about Redis, see our [Redis quick start guide](https://youtu.be/eX7EamF_WuA).
If you're just getting started with Node Microservices and you have ExpressJS experience you should first look at our [HydraExpress](https://github.com/flywheelsports/hydra-express) project.

@@ -18,7 +16,10 @@

Read the [Full documentation](documentation.md)
We're building a dedicated documentation site for hydra at: https://www.hydramicroservice.com
Our older docs are still available at: [Full documentation](documentation.md)
Interested in running Hydra on AWS using Docker containers and Swarm mode? See: https://github.com/cjus/hydra-and-aws-in-docker-swarm
### Join us on Slack!
Are you using or planning on using Hydra on your project? Join us on Slack for more direct support. https://fwsp-hydra.slack.com
Are you using or planning on using Hydra on your project? Join us on Slack for more direct support. https://fwsp-hydra.slack.com To join, email cjus34@gmail.com with your desired username and email address (for invite).

@@ -39,8 +40,2 @@ ### Related projects

* [What is Hydra?](https://medium.com/@cjus/what-is-hydra-226db88fc075#.c9jm9l3ql)
* [Using Hydra’s CLI](https://medium.com/@cjus/using-hydras-cli-f66f56fe355d#.57ep34fv2)
* [Hydra, AWS, and Docker: a microservices deployment story](https://medium.com/@cjus/hydra-aws-and-docker-a-microservices-deployment-story-ce7c3f4abad9#.rqw11heff)
On RisingStack:
* [Tutorial: Building ExpressJS-based microservices using Hydra](https://community.risingstack.com/tutorial-building-expressjs-based-microservices-using-hydra/)

@@ -51,2 +46,2 @@ * [Building a Microservices Example Game with Distributed Messaging](https://community.risingstack.com/building-a-microservices-example-game-with-distributed-messaging/)

A special thanks to Michael Stillwell for generously allowing the Hydra project to use his old repo name on NPM!
A special thanks to Michael Stillwell for generously transfering his `Hydra` project name on NPM!
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