Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

consul

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

consul - npm Package Compare versions

Comparing version 0.34.1 to 0.35.0

1

lib/agent/service.js

@@ -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;

2

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc