Comparing version 0.31.0 to 0.32.0
@@ -226,4 +226,7 @@ /** | ||
if ((src.http || src.args || src.script || src.tcp) && src.interval) { | ||
if (src.http) { | ||
if ((src.grpc || src.http || src.tcp || src.args || src.script) && src.interval) { | ||
if (src.grpc) { | ||
dst.GRPC = src.grpc; | ||
if (src.hasOwnProperty('grpcusetls')) dst.GRPCUseTLS = src.grpcusetls; | ||
} else if (src.http) { | ||
dst.HTTP = src.http; | ||
@@ -247,3 +250,3 @@ if (src.hasOwnProperty('tlsskipverify')) dst.TLSSkipVerify = src.tlsskipverify; | ||
} else { | ||
throw new Error('http/tcp/script and interval, or ttl required'); | ||
throw new Error('args/grpc/http/tcp and interval, or ttl'); | ||
} | ||
@@ -250,0 +253,0 @@ if (src.hasOwnProperty('notes')) dst.Notes = src.notes; |
{ | ||
"name": "consul", | ||
"version": "0.31.0", | ||
"version": "0.32.0", | ||
"description": "Consul client", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
@@ -572,2 +572,4 @@ # Consul [![Build Status](https://travis-ci.org/silas/node-consul.png?branch=master)](https://travis-ci.org/silas/node-consul) | ||
* dockercontainerid (String, optional): Docker container ID to run script | ||
* grpc (String, optional): gRPC endpoint (ex: `127.0.0.1:12345`) | ||
* grpcusetls (Boolean, optional): enable TLS for gRPC check | ||
* shell (String, optional): shell in which to run script (currently only supported with Docker) | ||
@@ -574,0 +576,0 @@ * interval (String): interval to run check, requires script (ex: `15s`) |
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
122109
2443
2072