@everymundo/em-eureka
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -12,4 +12,5 @@ 'use strict'; | ||
const majorVersionNumber = version.split('.')[0]; | ||
const cleanName = name.split('/').pop(); | ||
const appName = `${name}-V${majorVersionNumber}`; | ||
const appName = `${cleanName}-v${majorVersionNumber}`; | ||
@@ -16,0 +17,0 @@ return appName; |
{ | ||
"name": "@everymundo/em-eureka", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "wrapper around eureka-js-client for everymundo microservice apps", | ||
@@ -14,2 +14,8 @@ "main": "index.js", | ||
}, | ||
"config": { | ||
"ghooks": { | ||
"pre-commit": "npm run check-lint && npm test", | ||
"pre-push": "npm run cover && npm run check-coverage" | ||
} | ||
}, | ||
"keywords": [], | ||
@@ -21,5 +27,6 @@ "author": "Daniel Santana <git@danielsantan.net>", | ||
"chai": "^4.1.2", | ||
"ghooks": "^2.0.2", | ||
"istanbul": "^1.1.0-alpha.1", | ||
"mocha": "^5.0.4", | ||
"sinon": "^4.4.2" | ||
"sinon": "^4.4.3" | ||
}, | ||
@@ -26,0 +33,0 @@ "dependencies": { |
@@ -246,4 +246,4 @@ 'require strict'; | ||
instance: { | ||
instanceId: `my-test-project-V5:${ip}`, | ||
app: 'my-test-project-V5', | ||
instanceId: `my-test-project-v5:${ip}`, | ||
app: 'my-test-project-v5', | ||
hostName: 'localhost', | ||
@@ -408,3 +408,3 @@ ipAddr: ip, | ||
const expected = 'my-test-project-V5'; | ||
const expected = 'my-test-project-v5'; | ||
@@ -411,0 +411,0 @@ expect(res).to.equal(expected); |
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
20622
454
6