consul-service-registrator
Advanced tools
Comparing version 2.4.0 to 2.4.1
# Changelog | ||
### 2.4.1 | ||
- Bugfix of the logic of 2.4.0 | ||
### 2.4.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "consul-service-registrator", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Set of classes for service registration in Consul", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -249,4 +249,8 @@ 'use strict'; | ||
_isUnknownServiceError(err) { | ||
return err.message && | ||
const unknownFormatBeforeConsul112 = err.message && | ||
_.isString(err.message) && | ||
err.message.includes('Unknown service "' + this._serviceId + '"'); | ||
const unknownFormatFromConsul112 = err.message && | ||
_.isString(err.message) && | ||
err.message === 'not found' && | ||
@@ -258,2 +262,4 @@ err.response && | ||
(err.response.body.includes('Unknown service') && err.response.body.includes(`"${this._serviceId}"`)); | ||
return unknownFormatBeforeConsul112 || unknownFormatFromConsul112; | ||
} | ||
@@ -260,0 +266,0 @@ } |
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
69597
1286