Comparing version 2.0.0 to 2.0.1
@@ -32,3 +32,3 @@ import { CommonOptions, Consul } from "../consul"; | ||
name: string; | ||
id?: string; | ||
checkid?: string; | ||
serviceid?: string; | ||
@@ -35,0 +35,0 @@ http?: string; |
@@ -296,10 +296,9 @@ "use strict"; | ||
* Corresponds to CheckType in Consul Agent Endpoint: | ||
* https://github.com/hashicorp/consul/blob/master/command/agent/check.go#L43 | ||
* Corresponds to AgentServiceCheck in Consul Go API (which currently omits Notes): | ||
* https://github.com/hashicorp/consul/blob/master/api/agent.go#L66 | ||
* Currently omits ID and Name fields: | ||
* https://github.com/hashicorp/consul/issues/2223 | ||
* https://developer.hashicorp.com/consul/docs/services/usage/checks | ||
*/ | ||
function _createServiceCheck(src) { | ||
const dst = {}; | ||
if (src.hasOwnProperty("checkid")) dst.CheckID = src.checkid; | ||
if (src.hasOwnProperty("name")) dst.Name = src.name; | ||
if (src.hasOwnProperty("notes")) dst.Notes = src.notes; | ||
@@ -306,0 +305,0 @@ if ( |
{ | ||
"name": "consul", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Consul client", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
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
132026
3106