Comparing version 0.34.1 to 0.35.0
@@ -71,2 +71,3 @@ /** | ||
if (opts.tags) req.body.Tags = opts.tags; | ||
if (opts.meta) req.body.Meta = opts.meta; | ||
if (opts.hasOwnProperty('address')) req.body.Address = opts.address; | ||
@@ -73,0 +74,0 @@ if (opts.hasOwnProperty('port')) req.body.Port = opts.port; |
{ | ||
"name": "consul", | ||
"version": "0.34.1", | ||
"version": "0.35.0", | ||
"description": "Consul client", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
@@ -1,2 +0,2 @@ | ||
# Consul [![Build Status](https://travis-ci.org/silas/node-consul.png?branch=master)](https://travis-ci.org/silas/node-consul) | ||
# Consul | ||
@@ -718,2 +718,3 @@ This is a [Consul][consul] client. | ||
* port (Integer, optional): service port | ||
* meta (Object, optional): metadata linked to the service instance | ||
* check (Object, optional): service check | ||
@@ -1287,3 +1288,3 @@ * http (String): URL endpoint, requires interval | ||
Return key/value (kv) pair(s). | ||
Return key/value (kv) pair(s) or `undefined` if key not found. | ||
@@ -1305,2 +1306,3 @@ Options | ||
if (err) throw err; | ||
if (result === undefined) throw new Error('key not found'); | ||
}); | ||
@@ -2054,3 +2056,7 @@ ``` | ||
``` javascript | ||
var watch = consul.watch({ method: consul.kv.get, options: { key: 'test' }}); | ||
var watch = consul.watch({ | ||
method: consul.kv.get, | ||
options: { key: 'test' }, | ||
backoffFactor: 1000, | ||
}); | ||
@@ -2057,0 +2063,0 @@ watch.on('change', function(data, res) { |
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
126090
2518
2140