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 @@ |
{ | ||
"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! |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
952672
2073
44
5